[issue34341] Appending to ZIP archive blows up existing Central Directory entries

2018-08-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : When the ZIP archive is opened for appending, it reads the Central Directory at opening and writes existing entries back at closing. The Zip64 Extra Field is appended to existing Extra Fields if necessary. This leads to increasing the size of the Extra

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-08-06 Thread INADA Naoki
INADA Naoki added the comment: New changeset b2499669ef2e6dc9a2cdb49b4dc498e078167e26 by INADA Naoki (Anthony Sottile) in branch 'master': bpo-19891: Ignore error while writing history file (GH-8483) https://github.com/python/cpython/commit/b2499669ef2e6dc9a2cdb49b4dc498e078167e26

[issue34342] Fix the broken links in CPythonVmInternals wiki page

2018-08-06 Thread Shahriyar Rzayev
New submission from Shahriyar Rzayev : Please see: https://wiki.python.org/moin/CPythonVmInternals There are some links under "Particularly useful pieces of documentation: " which are broken and should be updated respectively as follows: [Execution Model] ->

[issue34248] dbm errors should contain file names

2018-08-06 Thread Berker Peksag
Berker Peksag added the comment: PR 8590 only changes dbm.gnu. If we do this, we should update dbm.ndbm as well: https://github.com/python/cpython/blob/4a745333406a4b9c5b0194bdac4a77d9fadd5457/Modules/_dbmmodule.c#L65 -- nosy: +berker.peksag type: -> enhancement versions:

[issue14315] zipfile.ZipFile() unable to open zip File with a short extra header

2018-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Just for information: the padding in APK files is added by the zipalign utility [1]. [1] https://developer.android.com/studio/command-line/zipalign -- ___ Python tracker

[issue34342] Fix the broken links in CPythonVmInternals wiki page

2018-08-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. wiki.python.org is maintained by the Python community, not by Python core developers. You can fix those broken links by creating an account and requesting edit access by emailing to pydotorg-...@python.org. See

[issue25872] multithreading traceback KeyError when modifying file

2018-08-06 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: It seems there was a major refactor in traceback module with 6bc2c1e7ebf359224e5e547f58ffc2c42cb36a39 where this was fixed in Python 3. Ignoring the KeyError seems reasonable to me. Thanks -- nosy: +xtreak

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8179 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34349] asyncio.wait should accept generator of tasks as first argument

2018-08-06 Thread Nic Watson
New submission from Nic Watson : Currently, passing a generator of coroutines or futures as the first parameter of asyncio.wait raises a TypeError. This is in conflict with the documentation calling the first parameter a "sequence". Line in question.

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
Change by Chris Fuller : Removed file: https://bugs.python.org/file47731/splat.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
Change by Chris Fuller : Added file: https://bugs.python.org/file47732/splat.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34319] Clarify pathlib.Path("filepath").read_text()

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset 3da5c5c76d90ddfc4c188cc801d9387501b63b7f by Miss Islington (bot) in branch '3.6': bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645) https://github.com/python/cpython/commit/3da5c5c76d90ddfc4c188cc801d9387501b63b7f

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-06 Thread Michael Felt
Michael Felt added the comment: In short, I do not understand how this passes on Linux. This is python3-3.4.6 on sles12: >>> 'h\xe9\u20ac'.encode('utf-8') b'h\xc3\xa9\xe2\x82\xac' >>> ascii('h\xe9\u20ac'.encode('utf-8')) "b'h\\xc3\\xa9\\xe2\\x82\\xac'" >>>

[issue27186] add os.fspath()

2018-08-06 Thread Erik Janssens
Erik Janssens added the comment: is there a particular reason for PyOS_FSPath to live in posixmodule.c since Objects/unicodeobject.c uses this function, this makes it not possible to compile Python without a posixmodule. this makes it difficult to compile a 'core' python on a new platform,

[issue27186] add os.fspath()

2018-08-06 Thread Brett Cannon
Brett Cannon added the comment: On Mon, Aug 6, 2018, 13:56 Erik Janssens, wrote: > > Erik Janssens added the comment: > > is there a particular reason for PyOS_FSPath to live in posixmodule.c > It's there because the C API for the os module is kept in that module. --

[issue34319] Clarify pathlib.Path("filepath").read_text()

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8188 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-08-06 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: Sorry for the delay, I'm still working on a new PR. -- ___ Python tracker ___ ___

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-08-06 Thread Steve Dower
Steve Dower added the comment: New changeset b0bf51b32240369ccb736dc32ff82bb96f375402 by Steve Dower in branch '3.6': bpo-31047: Fix ntpath.abspath for invalid paths (GH-8544) https://github.com/python/cpython/commit/b0bf51b32240369ccb736dc32ff82bb96f375402 --

[issue31047] Windows: os.path.isabs(os.path.abspath(" ")) == False

2018-08-06 Thread Steve Dower
Change by Steve Dower : -- assignee: -> steve.dower resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34319] Clarify pathlib.Path("filepath").read_text()

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8189 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34319] Clarify pathlib.Path("filepath").read_text()

2018-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1 by Terry Jan Reedy (Xtreak) in branch 'master': bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645) https://github.com/python/cpython/commit/5b2657fb8c5aaa98e5748e1c325c74b97ea12fd1

[issue34349] asyncio.wait should accept generator of tasks as first argument

2018-08-06 Thread epiphyte
Change by epiphyte : -- nosy: +epiphyte ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-06 Thread Michael Felt
Michael Felt added the comment: On 8/6/2018 10:10 PM, Michael Felt wrote: > Michael Felt added the comment: > > In short, I do not understand how this passes on Linux. > > This is python3-3.4.6 on sles12: > 'h\xe9\u20ac'.encode('utf-8') > b'h\xc3\xa9\xe2\x82\xac'

[issue34350] Non obvious logging handler behaviour

2018-08-06 Thread Sebastian
New submission from Sebastian : In Python 3.6.3 I can do: import logging logger = logging.getLogger() logger.setLevel(logging.INFO) logger.info("this does not work") logging.info("PARTY") logger.info("this works") And it outputs: INFO:root:PARTY INFO:root:this works The line

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
Chris Fuller added the comment: It hangs, and on Cygwin it dumped core when I hit ctrl-break. I uploaded a revised script. It';s a heisenbug, all I did was removed the unused splat method. -- ___ Python tracker

[issue2122] mmap.flush does not check for errors on windows

2018-08-06 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34319] Clarify pathlib.Path("filepath").read_text()

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset 1c6df83e9318ab4ef8e32b805b8226b1324e1ffd by Miss Islington (bot) in branch '3.7': bpo-34319: Clarify file handler closure in pathlib.read_text (GH-8645) https://github.com/python/cpython/commit/1c6df83e9318ab4ef8e32b805b8226b1324e1ffd

[issue34350] Non obvious logging handler behaviour

2018-08-06 Thread Mark Dickinson
Mark Dickinson added the comment: The behaviour is long-standing and documented, in the note just under this entry: https://docs.python.org/3/library/logging.html?highlight=logging#logging.log But I do agree that it's surprising and (at least for me) undesirable behaviour, in that it makes

[issue34343] Why is turtle still present in python embedded for Windows?

2018-08-06 Thread Steve Dower
Steve Dower added the comment: No particular reason. Just needs to be added to EXCLUDE_FILE_FROM_LIBRARY in Tools/msi/make_zip.py -- ___ Python tracker ___

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2018-08-06 Thread Berker Peksag
Berker Peksag added the comment: New changeset e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403 by Berker Peksag in branch 'master': bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634) https://github.com/python/cpython/commit/e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403 --

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2018-08-06 Thread Berker Peksag
Berker Peksag added the comment: New changeset 671a13a7b6ff1022a6fd868e5842687123ab9fd1 by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634) https://github.com/python/cpython/commit/671a13a7b6ff1022a6fd868e5842687123ab9fd1

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2018-08-06 Thread Berker Peksag
Berker Peksag added the comment: New changeset 5799e5a84c78eac672e5f5f4f3fd2d903ba51a9d by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-18540: Fix EAI_NONAME in imaplib.IMAP4*() (GH-8634) https://github.com/python/cpython/commit/5799e5a84c78eac672e5f5f4f3fd2d903ba51a9d

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2018-08-06 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 3.4, Python 3.5 ___ Python tracker

[issue31689] random.choices does not work with negative weights

2018-08-06 Thread David Kopec
David Kopec added the comment: It's not a bug, but I agree with Allen that it could use a much more clear error message. I think his proposed ValueError makes a lot more sense than just raising an IndexError as currently occurs. This will help people debug their programs who don't even

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8190 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18540] imaplib.IMAP4() ends with "Name or service not known" on Fedora 18

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8191 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-08-06 Thread INADA Naoki
INADA Naoki added the comment: * While this issue is "pre warming VM", VM startup is not significant part of your 500ms. * You're talking about application specific strategy now. It's different of this issue. And many ideas like yours are already discussed on ML, again and again. I feel

[issue34343] Why is turtle still present in python embedded for Windows?

2018-08-06 Thread Vlad Tudorache
Vlad Tudorache added the comment: Thank you very much. Then I will simply remove it. -- ___ Python tracker ___ ___

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

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8182 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8181 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34272] Reorganize C API tests

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset a1ff5f9031dc81b2c368def037fc0e88f5bc48b7 by Miss Islington (bot) in branch '3.7': bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)

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

2018-08-06 Thread INADA Naoki
Change by INADA Naoki : -- nosy: +inada.naoki versions: -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

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

2018-08-06 Thread INADA Naoki
INADA Naoki added the comment: > i did 2 implementations in both python and pure bash, python takes about > 500ms to run while bash is more than 10 times faster. VM startup + `import site` are done in 10~20ms on common Linux machine. It won't take 500ms. While Python VM startup is not

[issue34341] Appending to ZIP archive blows up existing Central Directory entries

2018-08-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8178 stage: -> patch review ___ Python tracker ___ ___

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

2018-08-06 Thread Vlad Starostin
New submission from Vlad Starostin : The docstring says "This may be None or an instance of EventLoop". But docs explicitly state that get_event_loop "must never return None". The same docstring is also in the example in docs:

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

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset e39fb207f26f8007e95fcf120f5ff1cb7372791a by Miss Islington (bot) in branch '3.7': bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673) https://github.com/python/cpython/commit/e39fb207f26f8007e95fcf120f5ff1cb7372791a

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

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset ed8dd598ae7e0d944974af0fd73c2fbb6105fd5c by Miss Islington (bot) in branch '3.6': bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673) https://github.com/python/cpython/commit/ed8dd598ae7e0d944974af0fd73c2fbb6105fd5c

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

2018-08-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- pull_requests: +8183 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34236] Test6012 in test_capi is not run as part of make test

2018-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 7e4ff9796cb2c5b64307a2bd928e35930e3f1b2a by Serhiy Storchaka (Zackery Spytz) in branch '2.7': [2.7] bpo-34236: Remove mistakenly backported Test6012 in test_capi.py. (GH-8681)

[issue34236] Test6012 in test_capi is not run as part of make test

2018-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Karthikeyan and Zackery! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34272] Reorganize C API tests

2018-08-06 Thread miss-islington
Change by miss-islington : -- pull_requests: +8184 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34272] Reorganize C API tests

2018-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 8f7bb100d0fa7fb2714f3953b5b627878277c7c6 by Serhiy Storchaka in branch 'master': bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567)

[issue34346] dir() hangs interpreter

2018-08-06 Thread Chris Fuller
New submission from Chris Fuller : It's a little obscure. Nothing to get alarmed about, probably. It involves recursion and __getattr__() during object creation. Only present with 2.7 new-style classes. Old-style 2.7 did not exhibit this behavior nor did 3.x. Checked on Linux/Cygwin/Windows.

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

2018-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 28c7f8c8ce34a0cb848822a252a9d0a761fb42d5 by Terry Jan Reedy in branch 'master': bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (#8673) https://github.com/python/cpython/commit/28c7f8c8ce34a0cb848822a252a9d0a761fb42d5 --

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

2018-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 9027502e99cba700cadb675b3b2db03c311d1c4d by Terry Jan Reedy in branch '2.7': [2.7] bpo-34273: Change 'Fixed point' to 'Fixed-point notation'. (GH-8673) https://github.com/python/cpython/commit/9027502e99cba700cadb675b3b2db03c311d1c4d

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

2018-08-06 Thread Terry J. Reedy
Change by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34272] Reorganize C API tests

2018-08-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8185 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34272] Reorganize C API tests

2018-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset d1c5e278a1a2458bc5efcdc300c17f9e39a59b6c by Serhiy Storchaka in branch '2.7': [2.7] bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567). (GH-8691)

[issue34272] Reorganize C API tests

2018-08-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8186 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34272] Reorganize C API tests

2018-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 278d975ce158608f6be491c561247d4701c842be by Serhiy Storchaka in branch '3.6': [3.6] bpo-34272: Move argument parsing tests from test_capi to test_getargs2. (GH-8567). (GH-8690)

[issue34346] dir() hangs interpreter

2018-08-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: I don't think the description you give is very accurate. The description in the file splat.py says: "Hangs/core dumps Python2 when instantiated" (which is it? hang or core dump?) but I can't replicate that. Instantiating A() is fine for me. (Tested in

[issue33802] Regression in logging configuration

2018-08-06 Thread Steap
Steap added the comment: It seems like this regression has not completely been fixed: there are still issues with "None": $ python3.6 -c 'import configparser; configparser.ConfigParser(defaults={"a": None})' $ python3.7 -c 'import configparser; configparser.ConfigParser(defaults={"a":

[issue32797] Tracebacks from Cython modules no longer work

2018-08-06 Thread Erik Bray
Erik Bray added the comment: To add, while an enhancement just to linecache would make sense in its own right, I don't see the problem with also extending the Loader.get_source() API to be more useful as well. Its current behavior is to just return a string (or None), but it seems to me

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

2018-08-06 Thread Cyker Way
Cyker Way added the comment: It was tested on a x86_64 Linux system. The machine is not quite new but is OK for building and running python. The test script is actually a management tool for a larger project that is not released in public so I don't have right to disclose it here. When

[issue32797] Tracebacks from Cython modules no longer work

2018-08-06 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Or, define a new "get_sourcemap()" method that could return additional > metadata, e.g. a line number mapping. What's your use case for that? I am asking because it might make more sense for get_source() (or whatever its replacement is) to return the

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset 416f3435c536c5197f5c6a23504955cf717df200 by Miss Islington (bot) in branch '3.7': bpo-19891: Ignore error while writing history file (GH-8483) https://github.com/python/cpython/commit/416f3435c536c5197f5c6a23504955cf717df200 -- nosy:

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-08-06 Thread INADA Naoki
Change by INADA Naoki : -- components: +Library (Lib) -Extension Modules resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8 -Python 3.3, Python 3.4 ___ Python tracker

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

2018-08-06 Thread INADA Naoki
INADA Naoki added the comment: > In my tests, a helloworld python script generally takes about 30-40 ms. [snip] > Finally, for simple and quick user scrips, the 30-40 ms startup time without > any import statements may not be a huge problem, but it's still tangible and > makes the program

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

2018-08-06 Thread INADA Naoki
INADA Naoki added the comment: > I understand many things can happen while importing a library. But for a > specific program, its imports are usually fixed and very much likely the same > between runs. That's why I believe a zygote/fork/snapshot feature would still > be helpful to help

[issue34345] Add tests for PEP 468 and PEP 520

2018-08-06 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : AFAIK there no purposed tests for PEP 468 and PEP 520. If making dict not preserving order, noting related to these PEPs is failed. I think we need explicit tests for PEP 468 and PEP 520. At least in 3.6 the dict order is not guaranteed. And even in

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-08-06 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- dependencies: +Add tests for PEP 468 and PEP 520 ___ Python tracker ___ ___ Python-bugs-list

[issue19891] Exiting Python REPL prompt with user without home directory throws error in atexit._run_exitfuncs

2018-08-06 Thread miss-islington
miss-islington added the comment: New changeset e20d31cdb33bdfee68bce059f9a9c7ce71b035fe by Miss Islington (bot) in branch '3.6': bpo-19891: Ignore error while writing history file (GH-8483) https://github.com/python/cpython/commit/e20d31cdb33bdfee68bce059f9a9c7ce71b035fe --

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

2018-08-06 Thread Cyker Way
Cyker Way added the comment: > VM startup + `import site` are done in 10~20ms on common Linux machine. > While Python VM startup is not lightning fast, library import time is much > slower than VM startup in many cases. In my tests, a helloworld python script generally takes about 30-40

[issue32797] Tracebacks from Cython modules no longer work

2018-08-06 Thread Stefan Behnel
Stefan Behnel added the comment: Or, define a new "get_sourcemap()" method that could return additional metadata, e.g. a line number mapping. -- ___ Python tracker ___

[issue32797] Tracebacks from Cython modules no longer work

2018-08-06 Thread Erik Bray
Erik Bray added the comment: > To do that, I believe it can be made to work in much the same way it did in > Python 2 if SageMath were to do the following: > > 1. Define a subclass of ExtensionModuleLoader [1] that overrides get_source() > to also look for a ".pyx" file adjacent to the

[issue34347] AIX: test_utf8_mode.test_cmd_line fails

2018-08-06 Thread Michael Felt
New submission from Michael Felt : The test fails because byte_str.decode('ascii', 'surragateescape') is not what ascii(byte_str) - returns when called from the commandline. Assumption: since " check('utf8', [arg_utf8])" succeeds I assume the parsing of the command-line is correct. DETAILS

[issue34343] Why is turtle still present in python embedded for Windows?

2018-08-06 Thread Vlad Tudorache
New submission from Vlad Tudorache : I've just started using the embedded Python 3.6 for Windows and I find turtle.py in the archive, knowing that tkinter isn't present. There's no large space loss because of it, but it's presence may be confusing. -- components: Library (Lib),

[issue32797] Tracebacks from Cython modules no longer work

2018-08-06 Thread Erik Bray
Erik Bray added the comment: Brett: > As Nick said, we have no generalized concept of source maps and I think coming up with that is what will be required to solve this as i personally don't view Loader.get_source() is not meant to be a generalized concept of some form of source code but

[issue32797] Tracebacks from Cython modules no longer work

2018-08-06 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I would love, for example, to be able to get stack traces within extension > modules integrated into Python tracebacks if they are compiled with some > appropriate debug flags. Awesome idea, I want to work on that :-) This should be possible using the

[issue34348] Python 3.7 - Issues Installing Scikit Learn

2018-08-06 Thread Abhishek Reddy
New submission from Abhishek Reddy : Hi I am currently encountering below issues when trying to install any version of Scikit Learn (0.19.0 or 0.19.1 or 0.19.2) Python Version - 3.7 /usr/local/bsb-python37 - Custom Location in which I configured and installed Python 3.7 I have installed

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-08-06 Thread Jens Troeger
Jens Troeger added the comment: David, I tried to find the mentioned '\r\r…\n' issue but I could not find it here. However, from an initial investigation into the BytesGenerator, here is what’s happening. Flattening the body and attachments of the EmailMessage object works, and eventually

[issue2122] mmap.flush does not check for errors on windows

2018-08-06 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +8187 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: