[issue40724] Support buffer protocol with type specs

2020-06-06 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset f7c4e236429606e1c982cacf24e10fc86ef4462f by scoder in branch 'master': bpo-40724: Support setting buffer slots from type specs (GH-20648) https://github.com/python/cpython/commit/f7c4e236429606e1c982cacf24e10f

[issue40724] Support buffer protocol with type specs

2020-06-05 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +19868 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20648 ___ Python tracker <https://bugs.python.org/issu

Re: [Cython] Fedora failures with Cython 3.0a5

2020-05-30 Thread Stefan Behnel
Hi Marcel, thanks for testing this, and for triaging the issues! Marcel Plch schrieb am 27.05.20 um 10:27: > In Fedora, we rebuilt 152 packages against Cython 3.0a5 we have found > some breakages that might be relevant to you. We are not entirely sure > whether these issues are caused by the indi

[issue40724] Support buffer protocol with type specs

2020-05-22 Thread Stefan Behnel
New submission from Stefan Behnel : As far as I can see it in typeslots.h [1], the buffer protocol is still not supported when using type specs: /* Disabled, see #10181 */ #undef Py_bf_getbuffer #undef Py_bf_releasebuffer It seems that the discussion in issue 10181 did not lead anywhere at

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-05-20 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +19553 stage: -> patch review pull_request: https://github.com/python/cpython/pull/20273 ___ Python tracker <https://bugs.python.org/issu

[issue40703] PyType_FromSpec*() overwrites the type's "__module__"

2020-05-20 Thread Stefan Behnel
New submission from Stefan Behnel : The PyType_FromSpec() functions set the type's "__module__" attribute at the end: https://github.com/python/cpython/blob/0509c4547fc95cc32a91ac446a26192c3bfdf157/Objects/typeobject.c#L3154-L3172 There are only two possible cases, either it

[Cython] Cython 3.0 alpha 5 released

2020-05-19 Thread Stefan Behnel
S.rst Let's see where fate takes these releases. Stefan Stefan Behnel schrieb am 05.05.20 um 19:32: > Hi all, > > here's yet another alpha release for you, with some great new features and > even more bug fixes this time, and now hopefully generating proper C code > for n

[issue22622] ElementTree only writes declaration when passed encoding

2020-05-17 Thread Stefan Behnel
Stefan Behnel added the comment: Right, thanks. Closing since this works in Py3. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2020-05-12 Thread Stefan Behnel
Stefan Behnel added the comment: Since it's not clear from this ticket what the original problem was, is there a chance it could have been related to issue 35810? -- nosy: +scoder ___ Python tracker <https://bugs.python.org/is

[issue40575] _PyDict_GetItemIdWithError() should call _PyDict_GetItem_KnownHash()

2020-05-10 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue40575] _PyDict_GetItemIdWithError() should call _PyDict_GetItem_KnownHash()

2020-05-10 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 6067d4bc3ce5ff4cfa5b47ceecc84a3941bc031c by scoder in branch 'master': bpo-40575: Avoid unnecessary overhead in _PyDict_GetItemIdWithError() (GH-20018) https://github.com/python/cpython/commit/6067d4bc3ce5ff4cfa5b47ceecc84a

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-05-10 Thread Stefan Behnel
Change by Stefan Behnel : -- pull_requests: +19334 pull_request: https://github.com/python/cpython/pull/20024 ___ Python tracker <https://bugs.python.org/issue38

[issue40575] _PyDict_GetItemIdWithError() should call _PyDict_GetItem_KnownHash()

2020-05-09 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +19329 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20018 ___ Python tracker <https://bugs.python.org/issu

[issue40575] _PyDict_GetItemIdWithError() should call _PyDict_GetItem_KnownHash()

2020-05-09 Thread Stefan Behnel
Change by Stefan Behnel : -- components: +Interpreter Core keywords: +easy (C) ___ Python tracker <https://bugs.python.org/issue40575> ___ ___ Python-bugs-list m

[issue40575] _PyDict_GetItemIdWithError() should call _PyDict_GetItem_KnownHash()

2020-05-09 Thread Stefan Behnel
New submission from Stefan Behnel : _PyDict_GetItemIdWithError() looks up interned strings, which always have their hash value initialised. It can call _PyDict_GetItem_KnownHash() directly. -- messages: 368506 nosy: scoder priority: low severity: normal stage: needs patch status: open

[issue40421] [C API] Add getter functions for PyFrameObject and maybe move PyFrameObject to the internal C API

2020-05-07 Thread Stefan Behnel
Stefan Behnel added the comment: Adding to the list above: "f_lasti" is used in "libpython.py", which is an almost exact copy of the one in CPython's "Tools/gdb/" for debugging Python code in gdb. If that implementation changes, we can probably adap

Re: [Cython] Cython 3.0 alpha 4 released

2020-05-06 Thread Stefan Behnel
Jakub Wilk schrieb am 06.05.20 um 20:31: > Hi Stefan! > > Could you push the 3.0a4 tag to GitHub? Done, thanks for the reminder. Stefan ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

[Cython] Cython 3.0 alpha 4 released

2020-05-05 Thread Stefan Behnel
S.rst I'll wait a day or two for reports on bugs and regressions and then also prepare the corresponding 0.29.18 release with the relevant beckported bug fixes. Have fun, Stefan Stefan Behnel schrieb am 27.04.20 um 18:36: > … and a third alpha is out, with several fixes (thanks!)

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Stefan Behnel
Stefan Behnel added the comment: >> But as I said, people don't read docs. > After seven, eight years we should do our users a service and point out the > deprecation with a concrete deadline. ¯\_(ツ)_/¯ Honestly, let's just keep it. Maybe we can add an invisible Pen

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Stefan Behnel
Stefan Behnel added the comment: It's not like the deprecation was hidden – the ET docs have this line right at the top: "Changed in version 3.3: This module will use a fast implementation whenever available. The xml.etree.cElementTree module is deprecated." https://do

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-05 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks Miro, that's beautiful. Good to know that I'm not the only one who doesn't read documentation. ;-) So, how do we deal with this? We can't warn about the deprecation without annoying everyone. We can't just remove the empty mod

[issue36543] Remove old-deprecated ElementTree features (part 2)

2020-05-04 Thread Stefan Behnel
Stefan Behnel added the comment: Christian, I understand your complaint, but I've actually never seen code in the wild that didn't provide a fallback for the import, usually something like what Serhiy spelled out and explained above: try: import xml.etree.cElement

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-04-28 Thread Stefan Behnel
Stefan Behnel added the comment: What can we do to move this forward? I see that the original PR was closed in January. Is there or will there be a new one? Can I help with anything? -- ___ Python tracker <https://bugs.python.org/issue38

Re: [Cython] Cython 3.0 alpha 3 released

2020-04-27 Thread Stefan Behnel
//github.com/cython/cython/blob/master/CHANGES.rst > > Have fun, > Stefan > > > > Stefan Behnel schrieb am 12.04.20 um 12:24: >> Dear Cython users and devs, >> >> today, I'm happy to announce the first alpha release of Cython 3.0. >> >> htt

[issue40279] Documentation example of module init function lacks error handling

2020-04-24 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 882a7f44da08c6fb210bd9a17f80903cbca84034 by Miss Islington (bot) in branch '3.8': bpo-40279: Add some error-handling to the module initialisation docs example (GH-19705) (GH-19710) https://github.com/python/cpyt

[issue40279] Documentation example of module init function lacks error handling

2020-04-24 Thread Stefan Behnel
Stefan Behnel added the comment: Hi Cajetan, thank you for your contribution! That's a nice documentation improvement. -- nosy: -miss-islington resolution: -> fixed stage: patch review -> resolved status: open -> closed ___

[issue40279] Documentation example of module init function lacks error handling

2020-04-24 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset d4f3923d5901ef1ccdbe6ad6c5a753af90832a0f by Cajetan Rodrigues in branch 'master': bpo-40279: Add some error-handling to the module initialisation docs example (GH-19705) https://github.com/python/cpyt

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread Stefan Behnel
da-woods schrieb am 23.04.20 um 22:54: > On 23/04/2020 21:32, Stefan Behnel wrote: >> The question is: how bad is it for existing code, and how can we either >> keep things working or make it easy for users to adapt? Should we implement >> some kind of fallback lookup that

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread Stefan Behnel
da-woods schrieb am 23.04.20 um 20:47: > On closer inspection I believe both are following Python behaviour (and > thus behaving correctly). In Python any > `__name_preceded_by_double_underscores` used within a class ends up looking > up `_Classname__name_preceded_by_double_underscores`. Therefore

Re: [Cython] [cython-users] Problems with "private" functions/methods in Cython 3.0a2

2020-04-23 Thread Stefan Behnel
Hi, thanks for the very detailed report. I'm CC-ing cython-devel, but let's keep the discussion for this on the cython-users list. The background here is Github issue 1382 and PR 3123 https://github.com/cython/cython/issues/1382 https://github.com/cython/cython/pull/3123 This was newly merged

[Cython] Cython 3.0 alpha 2 released

2020-04-23 Thread Stefan Behnel
Hi all, here's the second alpha. I hope we got all major regressions fixed for this release that were reported since alpha 1. Download: https://pypi.org/project/Cython/3.0a2/ Changelog: https://github.com/cython/cython/blob/master/CHANGES.rst Have fun, Stefan Stefan Behnel schri

Re: [Cython] Help with cygdb bug

2020-04-23 Thread Stefan Behnel
Hi Volker! Volker Weißmann schrieb am 22.04.20 um 20:44: > cy exec print(localvar) > > currently does not work. And I need your help to fix it. Do you mean "cy exec print(x)" or "cy print x" here? (The latter is what you used in your example at the end.) > If I'm not mistaken, the function "_f

[python-committers] Re: Language Summit

2020-04-16 Thread Stefan Behnel
Gregory P. Smith schrieb am 15.04.20 um 23:33: > FWIW, I found it surprising to learn that there even was an online language > summit happening (yesterday). I hadn't heard about that being planned at > all. > > Just because I said "no" to attending the physical one sometime in ~January > doesn't

[Python-Dev] Re: PEP: Modify the C API to hide implementation details

2020-04-14 Thread Stefan Behnel
Paul Moore schrieb am 13.04.20 um 14:25: > On a related but different note, what is the recommended policy > (assuming it's not to use the C API) for embedding Python, and for > exposing the embedding app to Python as a C extension? My standard > example of this is the Vim interface to Python - see

[Python-Dev] Re: PEP: Modify the C API to hide implementation details

2020-04-14 Thread Stefan Behnel
André Malo schrieb am 14.04.20 um 13:39: > I think, it does not serve well as a policy for CPython. Since we're talking > hypotheticals right now, if Cython vanishes tomorrow, we're kind of left > empty > handed. Such kind of a runtime, if considered part of the compatibility > "promise", shoul

[Python-Dev] Re: PEP: Modify the C API to hide implementation details

2020-04-14 Thread Stefan Behnel
Steve Dower schrieb am 14.04.20 um 00:27: > On 13Apr2020 2308, André Malo wrote: >> For one thing, if you open up APIs for Cython, they're open for everybody >> (Cython being "just" another C extension). >> More to the point: The ABIs have the same problem as they have now, >> regardless >> how res

[issue40279] Documentation example of module init function lacks error handling

2020-04-13 Thread Stefan Behnel
New submission from Stefan Behnel : The example in the docs that shows how to initialise an embedded module gives a wrong impression about error handling. Most of the functions that it calls return error codes, but those do not get looked at. Innocent users who copy and paste the example may

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: Thanks for the fix, Oren! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 096e41aa4e558b28b7260fe01eb21414b1458b20 by Miss Islington (bot) in branch '3.7': [3.7] bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) (GH-19487) https://github.com/python/cpyt

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: Let's add it to the last bug fix release of 3.7 as well. It fixes a crash bug, after all. -- stage: patch review -> backport needed versions: +Python 3.7 ___ Python tracker <https://bugs.python.org

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 61511488cf4e7a1cb57a38efba7e0a84a387fe58 by Miss Islington (bot) in branch '3.8': bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) (GH-19485) https://github.com/python/cpyt

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 402e1cdb132f384e4dcde7a3d7ec7ea1fc7ab527 by Oren Milman in branch 'master': bpo-31758: Prevent crashes when using an uninitialized _elementtree.XMLParser object (GH-3997) https://github.com/python/cpyt

[issue13743] xml.dom.minidom.Document class is not documented

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: A first PR was applied, but I'll leave this ticket open since it changes nothing for the "Document" class. :) -- versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.5, Python 3.6, Python

[issue13743] xml.dom.minidom.Document class is not documented

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 63e5b59c06fc99f95d274e7f181296e094cc3ee7 by Alex Itkes in branch 'master': bpo-13743: Add some documentation strings to xml.dom.minidom (GH-16355) https://github.com/python/cpython/commit/63e5b59c06fc99f95d274e7f181296

[issue31758] various refleaks in _elementtree, and crashes when using an uninitialized XMLParser object

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: This has been pending for a while too long, but the fixes look good to me. They should still go at least into Py3.8 and later. -- versions: +Python 3.8, Python 3.9 -Python 2.7, Python 3.6, Python 3.7 ___ Python

[issue32476] Add concat functionality to ElementTree xpath find

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: I think the use case of quote escaping is too niche for a feature like concat(), where I (at least) would expect to be able to dynamically concatenate text content, not just constant strings. There seem to be at least a few alternatives to the usage of

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: Also see the later fix in issue 39011, where the EOL normalisation in attribute text was removed again. This change was applied in Py3.9. -- ___ Python tracker <https://bugs.python.org/issue17

[issue39011] ElementTree attributes replace "\r" with "\n"

2020-04-12 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 5fd8123dfdf6df0a9c29363c8327ccfa0c1d41ac by mefistotelis in branch 'master': bpo-39011: Preserve line endings within ElementTree attributes (GH-18468) https://github.com/python/cpython/commit/5fd8123dfdf6df0a9c29363c8327cc

[issue39011] ElementTree attributes replace "\r" with "\n"

2020-04-12 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

Cython 3.0 alpha 1 released

2020-04-12 Thread Stefan Behnel
Dear Pythonistas, today, I'm happy to announce the first alpha release of Cython 3.0. https://cython.org/ https://pypi.org/project/Cython/3.0a1/ It took us a while to get to this point, well more than a year's time, but we received a lot of help along the way, most notably from David Woods, Jer

[Cython] Cython 3.0 alpha 1 released

2020-04-12 Thread Stefan Behnel
Dear Cython users and devs, today, I'm happy to announce the first alpha release of Cython 3.0. https://pypi.org/project/Cython/3.0a1/ It took us a while to get to this point, well more than a year's time, but we received a lot of help along the way, most notably from David Woods, Jeroen Demeyer

[Cython] Preparing the first alpha release of Cython 3.0

2020-03-25 Thread Stefan Behnel
Hi all, I'm curently preparing a first alpha release for Cython 3.0 (alpha 1). Please ping me on any open pull requests that you think are ready and should be included. Note that this is not the end of the journey – anything that's not included right now can still come in later, before the first

[Python-Dev] Accepting PEP 573 (Module State Access from C Extension Methods)

2020-03-23 Thread Stefan Behnel
As (first-time) BDFL delegate, I accept PEP 573 for Python 3.9, "Module State Access from C Extension Methods" https://www.python.org/dev/peps/pep-0573/ Petr, Nick, Eric and Marcel, thank you for your work and intensive discussions on this PEP, and also to everyone else who got involved on mailin

[issue39824] Multi-phase extension module (PEP 489): don't call m_traverse, m_clear nor m_free before the module state is allocated

2020-03-21 Thread Stefan Behnel
Stefan Behnel added the comment: > I think Cython makes use of PEP-489 so unless I am missing something all > generated extensions use PEP-489 structures. Cython doesn't make complete use of PEP-489 yet, specifically not of the module state feature (nor module subclasses). This c

Re: [Cython] Auto-generation of wrapper types

2020-03-15 Thread Stefan Behnel
da-woods schrieb am 12.03.20 um 16:11: > The process of wrapping a C struct or C++ class in an extension type often > has the user doing a pretty mechanical duplication of attributes/functions > that Cython already knows about. I'm looking at doing: > > cdef struct S: >     int a >     # etc. > >

[Python-Dev] Re: Last call for comments on PEP 573 (Module State Access from C Extension Methods)

2020-03-10 Thread Stefan Behnel
Hi Petr! Petr Viktorin schrieb am 14.01.20 um 14:37: > It also includes a more drastic change: it removes the MRO walker from the > proposal. > Reflecting on the feedback, it became clear to me that a MRO walker, as it > was described, won't give correct results in all cases: specifically, is a >

[issue37534] In minidom module ability to add Standalone Document Declaraion is missing while generating XML documents

2020-02-29 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue37534] In minidom module ability to add Standalone Document Declaraion is missing while generating XML documents

2020-02-29 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset dc04a0571e362cd3de040771d7705cb107ae26fc by Henry Harutyunyan in branch 'master': bpo-37534: Allow adding Standalone Document Declaration when generating XML documents (GH-14912) https://github.com/python/cpyt

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

2020-02-18 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

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

2020-02-18 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 5bf58cef151249f1cca92166d1b70693348da9d8 by Miss Islington (bot) in branch '3.8': bpo-39432: Implement PEP-489 algorithm for non-ascii "PyInit_*" symbol names in distutils (GH-18150) (GH-18546) https://github.com/p

[issue39011] ElementTree attributes replace "\r" with "\n"

2020-02-10 Thread Stefan Behnel
Stefan Behnel added the comment: Your patch looks good to me. Could you please add (or adapt) the tests and then create a PR from it? You also need to write a NEWS entry for this change, and it also seems worth an entry in the "What's new" document. https://devguide.python

[issue39538] SystemError when set Element.attrib to non-dict

2020-02-05 Thread Stefan Behnel
Stefan Behnel added the comment: I agree that SystemError is the wrong response. Whether it needs to be AttributeError – probably fine to consider this an implementation detail. TypeError also seems ok in at least some of the cases. I think we should widen the code to expect some kind of

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

2020-02-05 Thread Stefan Behnel
Stefan Behnel added the comment: Ok, this is merged into 3.9. To which versions should we backport it? Definitely 3.8, definitely not 3.5, probably not 3.6 (since it's not a security issue). Ned, what about 3.7? -- nosy: +ned.deily stage: patch review -> backpor

Re: [Cython] Status

2020-02-01 Thread Stefan Behnel
John Skaller2 schrieb am 01.02.20 um 15:38: > On 1 Feb 2020, at 20:00, Greg Ewing wrote: >> On 1/02/20 3:29 pm, John Skaller2 wrote: >>> But the all hell breaks loose for pointers. Your hack only >>> works for rvalues. >> >> Yes, using these it's possible for Cython to accept something >> that will

Re: [Cython] Size of output

2020-02-01 Thread Stefan Behnel
John Skaller2 schrieb am 01.02.20 um 15:32: > My problem is trying to read the generated code. You might be looking for "cython -a". Stefan ___ cython-devel mailing list cython-devel@python.org https://mail.python.org/mailman/listinfo/cython-devel

Re: [Cython] Size of output

2020-02-01 Thread Stefan Behnel
Robert Bradshaw schrieb am 01.02.20 um 00:49: > Taking a quick glance at an auto-generated file for an empty .pyx, we have > [...] > ~300 lines module setup code. Even for trivial modules, we still > declare and call functions for creating globals, preparing types, etc. > even if we don't have any

Re: [Cython] Status

2020-01-30 Thread Stefan Behnel
John Skaller2 schrieb am 30.01.20 um 03:47: > Ok, I have processed most of the Cython/Include/python/*.pxd files. > > Seems these were mechanically derived from docs? They were manually copied over time. > Because some of the bugs in the docs are also in these files. Not sure what > you > woul

Re: [Cython] Hello

2020-01-28 Thread Stefan Behnel
John Skaller2 schrieb am 28.01.20 um 10:57: > What’s a “descr” when its at home? A descriptor, a special protocol in Python. https://docs.python.org/3/howto/descriptor.html > There are some special words in pxd files like “list” which mean > PyObject that happens to be a list. Is there a list o

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

2020-01-28 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +steve.dower ___ Python tracker <https://bugs.python.org/issue39432> ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [Cython] Hello

2020-01-27 Thread Stefan Behnel
John Skaller2 schrieb am 27.01.20 um 06:56: > Hi! I have just built Cython but haven’t used it yet. > > I want to check I understand what it does whilst examing the sources in the > repository. > Please let me know if I have it wrong! > > Given a Python file, Cython parses it, and translates it

Re: [Cython] Adding GPU support to cython

2020-01-24 Thread Stefan Behnel
Hi Frank, sorry for leaving this unresponded for a while. I'm far from an expert in this, but it looks like no-one else jumped in, so here's my response. Schlimbach, Frank schrieb am 06.01.20 um 12:09: > I would like to work on extending cython with a way to offload cython code to > a GPU. I fo

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

2020-01-23 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +petr.viktorin ___ Python tracker <https://bugs.python.org/issue39432> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-01-23 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: +patch pull_requests: +17536 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/18150 ___ Python tracker <https://bugs.python.org/issu

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

2020-01-23 Thread Stefan Behnel
Change by Stefan Behnel : -- nosy: +scoder ___ Python tracker <https://bugs.python.org/issue39432> ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2020-01-23 Thread Stefan Behnel
Change by Stefan Behnel : -- stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue39432> ___ ___ Python-bugs-list mailing list Unsubscrib

Re: [Cython] Fwd: .gitignore file in github repo

2020-01-10 Thread Stefan Behnel
omár sweidán schrieb am 08.01.20 um 22:47: > Is there a way for me to contribute to the C files in the Cython folder? > When I changed them, it does not show in the changed files list (e.g. in > Git GUI). Why are the C files put in the gitignore file? We exclude all files that are generated by Cyt

[issue38597] C Extension import limit

2020-01-05 Thread Stefan Behnel
Stefan Behnel added the comment: Cython doesn't interfere with the C compiler setup in any way, that's left to distutils/setuptools (and the user). -- ___ Python tracker <https://bugs.python.o

[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?

2019-12-23 Thread Stefan Behnel
Stefan Behnel added the comment: FWIW, it seems reasonable to have a protocol for this. -- ___ Python tracker <https://bugs.python.org/issue38225> ___ ___ Pytho

[issue39011] ElementTree attributes replace "\r" with "\n"

2019-12-23 Thread Stefan Behnel
Stefan Behnel added the comment: I think we did it wrong in issue 17582. Parser behaviour is not a reason why the *serialisation* should modify the content. Luckily, fixing this does not impact the C14N serialisation (which aims to guarantee byte identical serialisation), but it changes the

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2019-12-01 Thread Stefan Behnel
Stefan Behnel added the comment: Not so quick. :) You're probably aware of the details, but still, let me state clearly what this is about, to make sure that we're all on the same page here. (I'm also asking in Serhiy, because he did quite some work on ET in the past and has

[issue38941] xml.etree.ElementTree.Element inconsistent warning for bool

2019-11-29 Thread Stefan Behnel
Stefan Behnel added the comment: Agreed that both should behave the same. And, we should finally decide whether this should really be changed or not. The current behaviour is counter-intuitive, but it's been like that forever and lots of code depends on it in one way or anothe

[issue38910] AssertionError: ElementTree not initialized, missing root

2019-11-26 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[Python-Dev] Last call for comments on PEP 573 (Module State Access from C Extension Methods)

2019-11-25 Thread Stefan Behnel
Hi all, I think that PEP 573 is ready to be accepted, to greatly improve the state of extension modules in CPython 3.9. https://www.python.org/dev/peps/pep-0573/ It has come a long way since the original proposal and went through several iterations and discussions by various interested people, e

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2019-11-25 Thread Stefan Behnel
Stefan Behnel added the comment: I think setting "xml:base" from ElementInclude is worth another ticket. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.9 -Python 3.8 ___ Pyt

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2019-11-25 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset c6a7bdb356835c9d7513b1ea6846683d446fe6c3 by Stefan Behnel in branch 'master': bpo-20928: support base-URL and recursive includes in etree.ElementInclude (#5723) https://github.com/python/cpython/commit/c6a7bdb356835c9d7513b1ea684668

[Python-Dev] Re: Pass the Python thread state to internal C functions

2019-11-15 Thread Stefan Behnel
Victor Stinner schrieb am 12.11.19 um 23:03: > Are you ok to modify internal C functions to pass explicitly tstate? FWIW, I started doing the same internally in Cython a while back, because like others, I also considered it wasteful to look it up all over the place, often multiple times inside of

[issue38742] ElementTree won't parse comments before root element

2019-11-15 Thread Stefan Behnel
Stefan Behnel added the comment: Duplicate of issue 9521 (and issue 24287). -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> xml.etree.ElementTree skips processing instructions when parsing ___ Py

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2019-10-31 Thread Stefan Behnel
Change by Stefan Behnel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

Re: [xml] Entering freeze for libxml2-2.9.10

2019-10-31 Thread Stefan Behnel
Hi, sorry to be late to the party. Let me note that the release tests fine with lxml, just with two test failures due to changed (and apparently more accurate) error texts/IDs. I'll adapt the tests in lxml. Thank you for the release, Daniel! Stefan Daniel Veillard schrieb am 28.10.19 um 21:26

[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?

2019-09-21 Thread Stefan Behnel
Stefan Behnel added the comment: > along with the appropriate CO_COROUTINE flag set No, it never did that, for safety reasons. It's difficult to say if enabling these flags is the right thing to do, because it's unclear what assumptions code that tests for them would make. In C

[issue38225] iscoroutinefunction broken with cython - allow tagging of functions as async?

2019-09-19 Thread Stefan Behnel
Stefan Behnel added the comment: My usual first reaction is: "if you need to find out whether the return value of a callable will be an Awaitable or not, without calling it, then you're probably doing something wrong in your design". However, a) there is code that tries this

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-15 Thread Stefan Behnel
Change by Stefan Behnel : -- keywords: -patch resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.or

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-15 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset b65be6cd3d9b6102227d27f4f35385f999a7dd7d by Stefan Behnel (Miss Islington (bot)) in branch '3.8': bpo-38158: Removing nonexistant member "doc" from PyType_Spec documentation (GH-16142) (GH-16154) https://github.com/p

[issue38160] Add a "PyInterpreterState *" field to PyTypeObject.

2019-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: I think access to the global module state is the most critical for an extension, probably by far. A direct pointer to the interpreter state from every type feels like an optimisation that may be premature at this point. Modules should have that reference

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: Absolutely, Tahia. It just needs a PR with a doc update. -- ___ Python tracker <https://bugs.python.org/issue38158> ___ ___

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Stefan Behnel
Change by Stefan Behnel : -- stage: -> needs patch ___ Python tracker <https://bugs.python.org/issue38158> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue38158] PyType_Spec docs list non-existant field "doc"

2019-09-13 Thread Stefan Behnel
New submission from Stefan Behnel : The current documentation of the PyType_Spec struct lists a "doc" member which does not exist. It should be removed from the docs. https://docs.python.org/3.8/c-api/type.html#c.PyType_Spec -- assignee: docs@python components: Documentatio

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2019-09-11 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 195dc142f84804ad9c8ce91414ab4a0bf9615f09 by Stefan Behnel (Miss Islington (bot)) in branch '3.7': bpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861) (GH-15972) https://github.com/python/cpyt

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2019-09-11 Thread Stefan Behnel
Change by Stefan Behnel : -- versions: +Python 3.7 ___ Python tracker <https://bugs.python.org/issue33187> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2019-09-11 Thread Stefan Behnel
Stefan Behnel added the comment: New changeset 6cf0ba8a632b1c0bd3576ed33c971ca3778000de by Stefan Behnel (Miss Islington (bot)) in branch '3.8': bpo-33187: Document ElementInclude (XInclude) support in ElementTree (GH-8861) (GH-15958) https://github.com/python/cpyt

<    1   2   3   4   5   6   7   8   9   10   >