[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Stefan Behnel
Stefan Behnel added the comment: FWIW, I can see that Cython is a special case because it can control the source line mapping and reporting through the C-API. Other code generators might not be able to do that, e.g. for a DSL or template language that gets translated to Python code, for

[issue34330] The decode_header function does not always work correctly.

2018-08-04 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: Regarding PEP 302 compliance: until Python 3.3, the builtin import system wasn't present on sys.metapath - it was its own implicit legacy thing. The change in Python 3.3 was to fix that, and make it work based on a handful of default sys.metapath entries. Not

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed, but it's still a definition time bug, as the types are only nulling out tp_new after creating the singleton instance, and not preventing __new__ from resolving. If they *don't* null out tp_new, but instead set tp_new to a common helper function that

[issue6952] deprecated conversion from string constant to char *

2018-08-04 Thread Berker Peksag
Berker Peksag added the comment: All changes (except PyUnicode_EncodeDecimal() which was deprecated in Python 3.3) have already been implemented in the following commits: * https://github.com/python/cpython/commit/c679227e31245b0e8dec74a1f7cc77710541d985 *

[issue24937] Multiple problems in getters & setters in capsulethunk.h

2018-08-04 Thread Berker Peksag
Berker Peksag added the comment: It would be nice to remove PyCObject_* entries from Doc/data/refcounts.dat. +.. _documentation: http://py3c.readthedocs.org/en/latest/capsulethunk.html Nit: We could the HTTPS link. -- nosy: +berker.peksag stage: -> patch review type: ->

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Brett Cannon
Brett Cannon added the comment: On Sat, Aug 4, 2018, 16:07 Jeroen Demeyer, wrote: > > Jeroen Demeyer added the comment: > > To everybody who mentioned that Cython sources don't belong on sys.path: > where *do* they belong then? > In a subdirectory similar to __pycache__. > One issue which

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2018-08-04 Thread Martin Panter
Martin Panter added the comment: I like this option. I suppose choosing which option to take is a compromise between compatiblity and simplicity. In the short term, the “allows_none” option requires user code to be updated. In the long term it may break compatibility. But the “has_netloc”

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: To everybody who mentioned that Cython sources don't belong on sys.path: where *do* they belong then? One issue which hasn't been mentioned before is packaging. By installing Cython sources along with the generated .so files, we can re-use all the existing

[issue34335] Fix examples in asyncio docs (suppliment to bpo-32258)

2018-08-04 Thread Mikhail Terekhov
Change by Mikhail Terekhov : -- keywords: +patch pull_requests: +8167 stage: -> patch review ___ Python tracker ___ ___

[issue32258] Rewrite asyncio docs to use async/await syntax

2018-08-04 Thread Mikhail Terekhov
Change by Mikhail Terekhov : -- pull_requests: +8168 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34335] Fix examples in asyncio docs (suppliment to bpo-32258)

2018-08-04 Thread Mikhail Terekhov
New submission from Mikhail Terekhov : Couple of examples in in asyncio documentation mix @asyncio.coroutine decorator and await. -- components: asyncio messages: 323121 nosy: asvetlov, termim, yselivanov priority: normal severity: normal status: open title: Fix examples in asyncio

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-04 Thread James Emerton
James Emerton added the comment: It looks like a bot got a bit excited when I mentioned this issue in the PR for bpo-33731. I unlinked the PR but this issue still got flagged for review. -- ___ Python tracker

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-04 Thread James Emerton
Change by James Emerton : -- pull_requests: -8166 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34311] locale.format() and locale.format_string() cast Decimals to float

2018-08-04 Thread James Emerton
Change by James Emerton : -- keywords: +patch pull_requests: +8166 stage: -> patch review ___ Python tracker ___ ___

[issue33731] string formatting that produces floats with preset precision while respecting locale

2018-08-04 Thread Stefan Krah
Change by Stefan Krah : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26171] heap overflow in zipimporter module

2018-08-04 Thread Matej Cepl
Change by Matej Cepl : -- nosy: +mcepl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Brett Cannon
Brett Cannon added the comment: On Sat, Aug 4, 2018, 11:52 Jeroen Demeyer, wrote: > > Jeroen Demeyer added the comment: > > > In my view (and that of the documentation for sys.path), sys.path is > where you put things that the Python interpreter can load - .so files, .pyc > files and .py

[issue33187] Document ElementInclude (XInclude) support in ElementTree

2018-08-04 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hello Anjali, As far as I remember, you started this in a PyDelhi Dev Sprint. So, just wanted to check around, if you're looking for any help :) -- nosy: +CuriousLearner ___ Python tracker

[issue34273] %f is confusingly associated with fixed point format

2018-08-04 Thread Terry J. Reedy
Change by Terry J. Reedy : -- keywords: +patch pull_requests: +8165 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > In my view (and that of the documentation for sys.path), sys.path is where > you put things that the Python interpreter can load - .so files, .pyc files > and .py files. It's quite typical for packages to install stuff in site-packages which the

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Paul Moore
Paul Moore added the comment: > What's wrong with that? Installing the .pyx sources together with the .so > compiled modules makes a lot of sense to me: it is very analogous to > installing the .py sources together with the .pyc byte-compiled files. In >

[issue23876] Fix mkdir() call for Watcom compilers on UNIX-like platforms

2018-08-04 Thread Jeffrey Armstrong
Change by Jeffrey Armstrong : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Then instead of adding the source directory to sys.path What's wrong with that? Installing the .pyx sources together with the .so compiled modules makes a lot of sense to me: it is very analogous to installing the .py sources together with the .pyc

[issue33649] asyncio docs overhaul

2018-08-04 Thread Yury Selivanov
Yury Selivanov added the comment: Status update: I'm working on a first rewrite. I expect to have something to review on a couple of weeks. -- ___ Python tracker ___

[issue33649] asyncio docs overhaul

2018-08-04 Thread Martin Altmayer
Change by Martin Altmayer : -- nosy: +MartinAltmayer ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-08-04 Thread ppperry
ppperry added the comment: The problem doesn't just happen with `sys.flags`, though. It happens with all types that can't be created directly by python. Ex: frame objects, generators, cells, etc. The bug is that in types whose c-level tp_new is null, the python-level __new__ is inherited

[issue34309] Trouble when reloading extension modules.

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: As others have noted, dynamically reloading CPython extension modules is akin to dynamically reloading any other C/C++ shared library, so it has enough opportunities for things to go wrong that we consider allowing the shared state to persist across

[issue1230540] sys.excepthook doesn't work in threads

2018-08-04 Thread Andrey Vlasovskikh
Andrey Vlasovskikh added the comment: > Would it be possible to modify the default implementation of sys.excepthook > to have a different output when it's not called from the main thread? Mimick > the current traceback from threads. I agree it's a good idea to mimic what `_thread` does in

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at the code in https://github.com/python/cpython/blob/e42b705188271da108de42b55d9344642170aa2b/Python/sysmodule.c#L2360, I think the underlying problem here is that the code to make these PyStructSequence subclasses uninstantiable isn't really right -

[issue33736] Improve the documentation of asyncio stream API

2018-08-04 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue13574] refresh example in doc for Extending and Embedding

2018-08-04 Thread Berker Peksag
Berker Peksag added the comment: The documentation has been modernized in https://github.com/python/cpython/commit/1d80a561734b9932961c546b0897405a3bfbf3e6 and the "Weak Reference Support" section has been updated to show the modern way of adding weakref support:

[issue34194] test_ssl, AIX, and defaults for _ssl connections

2018-08-04 Thread Michael Felt
Michael Felt added the comment: I "guess" it is somewhere in this code. But I am getting lost in all the macros that call other macros. Some help would really be appreciated! Currently looking in _ssl.c at: /*[clinic input] _ssl.get_default_verify_paths Return search paths and environment

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: As a completely minimal strawman design that's the closest fit to what SafeMath is already doing: what if there was a "linecache.fallback_source_path" attribute that linecache searched with importlib whenever a loader returned None to indicate that the module

[issue32797] Tracebacks from Cython modules no longer work

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: This problem isn't unique to Cython extension modules - it exists for pyc-only distribution of pure Python files as well. The underlying problem is that we don't currently have a mechanism comparable to JavaScript source maps, whereby a preprocessed runtime

[issue21914] Create unit tests for Turtle guionly

2018-08-04 Thread Sanyam Khurana
Sanyam Khurana added the comment: Hey Rajalakshmi, Are you still working on this issue? Is there anything we can help you with? -- nosy: +CuriousLearner ___ Python tracker

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-08-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks a lot tzickle, I'll take a look. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue34172] multiprocessing.Pool and ThreadPool leak resources after being deleted

2018-08-04 Thread tzickel
tzickel added the comment: It actually makes tons of sense that while the thread is running, that the object representing it is alive. After the thread finishes its work, the object dies. >>> import time, threading, weakref, gc >>> t = threading.Thread(target=time.sleep, args=(10,)) >>> wr

[issue34273] %f is confusingly associated with fixed point format

2018-08-04 Thread Michael Fischer
Michael Fischer added the comment: Terry: I absolutely agree with you. Changing 'Fixed point' to 'Fixed point notation' is the optimal solution here. -- ___ Python tracker

[issue28009] core logic of uuid.getnode() is broken for AIX - all versions

2018-08-04 Thread Michael Felt
Change by Michael Felt : -- pull_requests: +8164 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33898] pathlib issues with Windows device paths

2018-08-04 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +8163 stage: test needed -> patch review ___ Python tracker ___ ___

[issue20596] Support for alternate wcstok syntax for Windows compilers

2018-08-04 Thread Erik Janssens
Erik Janssens added the comment: Would anyone mind if I create a new issue to reflect the current situation and create a PR to handle it with a Py_WCSTOK ? -- nosy: +erikjanss ___ Python tracker

[issue34334] QueueHandler logs exc_info twice

2018-08-04 Thread Adrian Dries
New submission from Adrian Dries : Since Python 3.7 logging.handlers.QueueHandler logs tracebacks twice:: >>> import logging >>> from logging.handlers import QueueHandler, QueueListener >>> from queue import Queue >>> q = Queue() >>> logging.getLogger().addHandler(QueueHandler(q)) >>>

[issue34332] Suggestion for a new loop type

2018-08-04 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: You can also use a context manager and the `with` statement. -- nosy: +matrixise ___ Python tracker ___

[issue34331] Incorrectly pluralized abstract class error message

2018-08-04 Thread Daniel Andrade Groppe
Change by Daniel Andrade Groppe : -- keywords: +patch pull_requests: +8162 stage: -> patch review ___ Python tracker ___ ___

[issue34296] Speed up python startup by pre-warming the vm

2018-08-04 Thread Nick Coghlan
Nick Coghlan added the comment: It isn't currently feasible to do anything along these lines, as the CPython runtime is highly configurable, so it's far from clear what, if anything, could be shared from run to run, and nor is it clear how the interpreter could check whether or not the