neonene

Results 36 comments of neonene

PR #117399 fails except Windows. Is there an easy way to access a `PyInterpreterState` member? I'll try later allowing C-API only for the main-interpreter with a global variable.

Where can we see your rationale for the inflating `PyInterpreterState` with PyAST C-API? IIUC, the practice is supposed to be bad: https://github.com/python/cpython/issues/103092#issuecomment-2026952543. How do you associate the PyAST issue with...

#### `Python-ast.c` (3.10.0 alpha 0: b1cc6ba73a51d5cc3aeb113b5e7378fb50a0e20a) ```c int PyAST_Check(PyObject* obj) { astmodulestate *state = get_global_ast_state(); if (state == NULL) { return -1; } return PyObject_IsInstance(obj, state->AST_type); } ``` Previously, `PyAST_Check()`...

I'll wait https://github.com/python/steering-council/issues/243, which is a necessary procedure.

Any reasonable producer is welcome. I think the concern about the capsule is equivalent to that about the module state, because the capsule reference is in sync with the new...

> the missing test coverage I was referring to on the SC issue is described in this comment: [#117398 (comment)](https://github.com/python/cpython/issues/117398#issuecomment-2106112547) Can you explain what needs to be tested, using `_datetime`...

I think the plans do not conflict with `_datetimemodule.c` PoC, which is not in sync with main after c2627d6eea924daf80f374c18a5fd73ef61283fa, though. Feel free to separate or take over. >1. basic multi-phase...

@ericsnowcurrently > * all 5 types will stay static and we'll use the trick we use for builtin types to address cross-interpreter issues Does the `tp_dict` of them keep valid...

> 4. disable the C-API for subinterpreters (but preserve status quo for main interp) > > Then we can separately tackle getting the C-API working for subinterpreters. At least the...

> We only have to make sure the exposed types are isolated (e.g. by applying the same solution as for builtin types). I think `PyDate*_Check(op)` API macros are allowed to...