[issue45711] Simplify the interpreter's (type, val, tb) exception representation

2022-02-01 Thread da-woods


da-woods  added the comment:

Just a quick comment on Cython and these changes:

Cython 0.29 can build itself on Python 3.11a4 with 
`CFLAGS="-DCYTHON_FAST_THREAD_STATE=0 -DCYTHON_USE_EXC_INFO_STACK=0" python3.11 
setup.py build_ext`.

I think there's some coroutine code left that isn't fixed by those flags, but a 
large chunk of Cython libraries won't use coroutines and so will work fine with 
these flags. Hopefully that unblocks some stuff for you.

--
nosy: +da-woods

___
Python tracker 
<https://bugs.python.org/issue45711>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45905] Provide a C API for introspectable frames for Cython and similar tools

2021-11-29 Thread da-woods


Change by da-woods :


--
nosy: +da-woods

___
Python tracker 
<https://bugs.python.org/issue45905>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45122] Remove PyCode_New and PyCode_NewWithPosOnlyArgs

2021-09-07 Thread da-woods


da-woods  added the comment:

Done: https://github.com/Nuitka/Nuitka/issues/1203

--

___
Python tracker 
<https://bugs.python.org/issue45122>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue45122] Remove PyCode_New and PyCode_NewWithPosOnlyArgs

2021-09-07 Thread da-woods


da-woods  added the comment:

Nuitka (https://github.com/Nuitka/Nuitka/ - a third Python->C API compiler) 
also looks to use it so you might want to let them know too while you're doing 
the rounds on this.

--
nosy: +da-woods

___
Python tracker 
<https://bugs.python.org/issue45122>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39432] Distutils generates the wrong export symbol for unicode module names

2021-04-17 Thread da-woods


da-woods  added the comment:

It looks like this wasn't quite fixed by the patch: the patch encoded 
`_` when it should have encoded ``.

I've submitted a revised version to setuptools 
https://github.com/pypa/setuptools/pull/2646. My impression is that distutils 
is no longer updated and so there's no value in submitting this patch to Python 
too. However, I can do so if it would be used.

--

___
Python tracker 
<https://bugs.python.org/issue39432>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28254] Add C API for gc.enable, gc.disable, and gc.isenabled

2021-04-17 Thread da-woods


da-woods  added the comment:

Cython currently does an elaborate process of importing the GC module and 
loading the "isenabled", "enable" and "disable" attributes each time it creates 
a cdef type

https://github.com/cython/cython/blob/master/Cython/Utility/ExtensionTypes.c#L73-L107

Admittedly that's partly because it's abusing the Py_TPFLAGS_HEAPTYPE to allow 
multiple inheritance where Python doesn't really allow it.

But the up-shot is that Cython definite has a use-case for doing this directly 
in the C API, and would use these functions if provided.

--
nosy: +da-woods

___
Python tracker 
<https://bugs.python.org/issue28254>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue41886] PyType_Type is documented incorrectly

2020-09-29 Thread da-woods


New submission from da-woods :

In the documentation PyType_Type is listed as a "PyObject*" 
(https://docs.python.org/3/c-api/type.html#c.PyType_Type). This is misleading 
because it is both not a pointer and is a PyTypeObject.

Other type objects are documented as "PyTypeObject" (see unicode 
https://docs.python.org/3/c-api/unicode.html#c.PyUnicode_Type as an arbitrary 
example) so I think the documentation is just inconsistent for PyType_Type 
alone.

--
assignee: docs@python
components: Documentation
messages: 377683
nosy: da-woods, docs@python
priority: normal
severity: normal
status: open
title: PyType_Type is documented incorrectly
versions: Python 3.10, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 
3.9

___
Python tracker 
<https://bugs.python.org/issue41886>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue39432] Distutils generates the wrong export symbol for unicode module names

2020-01-23 Thread da-woods


New submission from da-woods :

Distuitls generates "export symbols" for extension modules to help ensure that 
they have have the correct linkage on Windows.

https://github.com/python/cpython/blob/0d30ae1a03102de07758650af9243fd31211325a/Lib/distutils/command/build_ext.py#L692

It generates the correct symbol in most causes, but if the filename contains 
unicode characters then it creates the wrong symbol, causing linkage errors.

The behaviour should be updated to reflect PEP-489: 
https://www.python.org/dev/peps/pep-0489/#export-hook-name

--
components: Distutils
messages: 360555
nosy: da-woods, dstufft, eric.araujo
priority: normal
severity: normal
status: open
title: Distutils generates the wrong export symbol for unicode module names
type: behavior
versions: Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

___
Python tracker 
<https://bugs.python.org/issue39432>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com