[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-01 Thread Armin Rigo
Armin Rigo added the comment: PyModule_GetState() requires having the module object that corresponds to the given interpreter state. I'm not sure how a C extension module is supposed to get its own module object corresponding to the current interpreter state, without getting it from the cal

[issue36157] Document PyInterpreterState_Main().

2019-03-01 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Mariatta do you want to keep this for the mentored sprint at PyCon? -- nosy: +nanjekyejoannah ___ Python tracker ___ _

[issue36008] [good first issue] Update documentation for 3.8

2019-03-01 Thread Joannah Nanjekye
Joannah Nanjekye added the comment: @Mariatta this issue https://bugs.python.org/issue36157 also looks like one you can track for the mentored sprint at PyCon. -- nosy: +nanjekyejoannah ___ Python tracker _

[issue36164] Updating Py_InspectFlag programmatically

2019-03-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12140 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue35819] Fatal Python error

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: By the way, do you remember why you set PYTHONHOME? I afraid that someone recommends such bad practice on Web and this issue is spreading. Beginner ~ average Python user must not try PYTHONHOME. -- nosy: +inada.naoki ___

[issue36164] Updating Py_InspectFlag programmatically

2019-03-01 Thread Atsuo Ishimoto
New submission from Atsuo Ishimoto : I sometime use a hack to start interactive console after running script. .. code-block:: python import os os.environ['PYTHONINSPECT'] = 'x' print("Hello") This hack works because ``PYTHONINSPECT`` is checked `here

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 1, 2019, at 19:59, Ivan Pozdeev wrote: > > Ivan Pozdeev added the comment: > > On 02.03.2019 2:25, Barry A. Warsaw wrote: >> The fact that .pth files are global and affect the entire Python >> installation. <...> Right now, there’s no control over t

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- pull_requests: -12138 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-01 Thread Open Close
Open Close added the comment: It may be openssl 1.1.1a specific. I don't understand most of what they say, but the changelog (to 1.1.1b) 'looks' suspicious. https://www.openssl.org/news/changelog.html#x1 ...Actually Archlinux updated openssl to 1.1.1b about 4 days ago, so I can 'test' 1.1.1b.

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- pull_requests: +12139 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue36158] Regex search behaves differently in list comprehension

2019-03-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: > i want to apply a regex on a list of strings. The example you give doesn't include a list of strings, it has some unknown "entity" object with an unknown "trigger" attribute. Please refactor the code to remove the use of a class we don't have access to.

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread Nick Coghlan
Nick Coghlan added the comment: Agreed - I think the biggest thing we learned from the pre-implementation in Python 3.7 is that the "Let's move as much config as we can to Python C API data types" fell down in a couple of areas: 1. The embedding application is likely to speak char* and/or wc

[issue36103] Increase shutil.COPY_BUFSIZE

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: I chose 64 KiB because performance difference between 64 and 128 KiB I can see is only up to 5%. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36103] Increase shutil.COPY_BUFSIZE

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: New changeset 4f190306186973c1bbfadd3d3f146920856e by Inada Naoki in branch 'master': bpo-36103: change default buffer size of shutil.copyfileobj() (GH-12115) https://github.com/python/cpython/commit/4f190306186973c1bbfadd3d3f146920856e -- ___

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-01 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue35998] test_asyncio: test_start_tls_server_1() TimeoutError on Fedora 29

2019-03-01 Thread Open Close
Open Close added the comment: I have the same TimeoutError on Arch linux PC (openssl 1.1.1a). It is random, but for now running test continuously at most 5 times successfully brings about the fail. So I think msg335635 needs re-checking. He saids PR 10011 makes this test pass in fedora 29 VM

[issue36154] Python quit unexpectedly error

2019-03-01 Thread kellena
kellena added the comment: That worked! Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: On 02.03.2019 2:25, Barry A. Warsaw wrote: > The fact that .pth files are global and affect the entire Python > installation. <...> Right now, there’s no control over the scope of such > environmental customizations; it’s all or nothing. That's the entire purpo

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Steve Dower
Steve Dower added the comment: Barry's response in https://bugs.python.org/issue33944#msg336970 is exactly what my response to that point was going to be. Just because I want to use package spam and it wants to use package eggs doesn't mean that eggs gets to enable cloud imports (or anything

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Ned Deily
Ned Deily added the comment: Yes, remove the PYTHONHOME env variable definition and things should be fine. -- resolution: -> works for me stage: -> resolved status: open -> closed ___ Python tracker __

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Change by Yasser Alshalaan : -- keywords: +patch pull_requests: +12138 stage: -> patch review ___ Python tracker ___ ___ Python-bug

[issue36163] same object, same method, but the is keyword return false.

2019-03-01 Thread Steven D'Aprano
Steven D'Aprano added the comment: The ``is`` operator returns False because the two objects are different objects. Methods are descriptors, and whenever you access an instance method, you get a brand-new method object. This is described in the documentation for descriptors: https://docs.pyt

[issue36138] Improve documentation about converting datetime.timedelta to scalars

2019-03-01 Thread Yasser Alshalaan
Yasser Alshalaan added the comment: I'll do this in a moment I'll have the PR -- nosy: +Yasser Alshalaan ___ Python tracker ___ ___

[issue36163] same object, same method, but the is keyword return false.

2019-03-01 Thread lgj
New submission from lgj <929102...@qq.com>: >>> class A(): ... def a(self): ... pass ... >>> a = A() >>> a is a True >>> a.a is a.a False >>> id(a.a) 4532803784 >>> id(a.a) 4532803784 It's seems quite oops. -- messages: 336979 nosy: lgj1993 priority: normal severity: normal stat

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: After patching my 3.7.2 Macbook installation, and reviewing #20406 which added the icon code, I understand this issue better. IDLE, while open and unlike other Mac apps I later tested, was replacing the initial Mac IDLE app dock icon (tilted page with doubl

[issue32387] Disallow untagged C extension import on major platforms

2019-03-01 Thread Gregory P. Smith
Gregory P. Smith added the comment: I think it'd be worth doing on POSIX systems for some 3.8 alpha/beta release cycles before making a final call there. -- ___ Python tracker __

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
muhzi added the comment: After some testing, it works and builds extensions OK for android arm with API>=21. fails on lower API versions (e.g. 16). -- ___ Python tracker ___

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-01 Thread David Bolen
David Bolen added the comment: If I can help with testing or builder access or anything just let me know. It appears that I can pretty reliably trigger the error through just the individual tests (test_daemon_threads_shutdown_std{out,err}_deadlock) in isolation, which is definitely less ted

[issue35859] Capture behavior depends on the order of an alternation

2019-03-01 Thread Ma Lin
Change by Ma Lin : -- pull_requests: +12137 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue35466] Use a linked list for the ceval pending calls.

2019-03-01 Thread Eric Snow
Eric Snow added the comment: At this point I'm not terribly interested in this. :) -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___ Python tracker __

[issue36097] Use only public C-API in _xxsubinterpreters module.

2019-03-01 Thread Eric Snow
Change by Eric Snow : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Pyt

[issue36097] Use only public C-API in _xxsubinterpreters module.

2019-03-01 Thread Eric Snow
Eric Snow added the comment: New changeset bcfa450f210074e16feb761ae5b3e966a2532fcf by Eric Snow in branch 'master': bpo-36097: Use only public C-API in the_xxsubinterpreters module (adding as necessary). (#12003) https://github.com/python/cpython/commit/bcfa450f210074e16feb761ae5b3e966a2532

[issue35808] Let's retire pgen

2019-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 1f24a719e7be5e49b876a5dc7daf21d01ee69faa by Pablo Galindo in branch 'master': bpo-35808: Retire pgen and use pgen2 to generate the parser (GH-11814) https://github.com/python/cpython/commit/1f24a719e7be5e49b876a5dc7daf21d01ee69faa -

[issue35808] Let's retire pgen

2019-03-01 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: You must not set PYTHON HOME. Python find it's home by itself. But since PYTHONHOME is set, Python can't find it's home. 2019年3月2日(土) 4:45 kellena : > > kellena added the comment: > > There isn't much. I downloaded this and installed it from python.org with > th

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 1, 2019, at 09:27, Ivan Pozdeev wrote: > Startup code (custom or not) is not a dependency of anything. It rather > customizes the environment in which the program specified by the user would > run, _before_ any user code could be allowed to get contr

[issue33329] sigaddset() can fail on some signal numbers

2019-03-01 Thread Miro Hrončok
Miro Hrončok added the comment: I am not able to do PRs right now but here are the Fedora patches: https://src.fedoraproject.org/rpms/python34/blob/master/f/00302-fix-multiprocessing-regression-on-newer-glibcs.patch https://src.fedoraproject.org/rpms/python35/blob/master/f/00302-fix-multiproces

[issue33329] sigaddset() can fail on some signal numbers

2019-03-01 Thread Larry Hastings
Larry Hastings added the comment: These issues also occur on Python 3.4 and 3.5. And I'm now upgraded to Ubuntu 18.10 which I guess has the new version of glibc. The regression test suite for both 3.4 and 3.5 blocks forever on three tests (multiprocessing_fork, multiprocessing_forkserver, a

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-01 Thread miss-islington
miss-islington added the comment: New changeset 243b2064ce4fb7f90e69f9a4fa9c7e7ec70eba17 by Miss Islington (bot) in branch '3.7': bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031) https://github.com/python/cpython/commit/243b2064ce4fb7f90e69f9a4fa9c7e7ec70eba17

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-01 Thread Ned Deily
Ned Deily added the comment: New changeset 453100f60e3c297226eaf0b0b4eb8c817a73b5ce by Ned Deily in branch '2.7': bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. Original patch by Kevin Walzer. (GH-12034) https://github.com/python/cpython/commit/453100f60e3c297226eaf0b0b4

[issue36154] Python quit unexpectedly error

2019-03-01 Thread kellena
kellena added the comment: Sounds good. Maybe I didn't uninstall properly. What is the correct way to uninstall Python 3.7 on a Mac? Should I also uninstall version 2.7, the version that came with the Mac? Installing version 3.7 did not over-write version 2.7. -- ___

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12136 stage: commit review -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue32129] IDLE app icon is blurry on macOS with Aqua Tk 8.6

2019-03-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 7eebbbd5b3907447eddadf5cb7cb1cc9230d15b2 by Terry Jan Reedy (Ned Deily) in branch 'master': bpo-32129: Avoid blurry IDLE application icon on macOS with Tk 8.6. (GH-12031) https://github.com/python/cpython/commit/7eebbbd5b3907447eddadf5cb7cb1cc92

[issue36161] Use thread-safe functions instead of unsafe ones (crypt, ttyname)

2019-03-01 Thread Thomas Wouters
Thomas Wouters added the comment: Ah, looks like I missed crypt_r getting added in 3.7. Sorry about that. Yes, the error handling would be a behaviour change, a keyword argument may be a good solution. As it is, crypt() returns None, throwing away the *reason* for the failure (which is recor

[issue36161] Use thread-safe functions instead of unsafe ones (crypt, ttyname)

2019-03-01 Thread Martin Panter
Martin Panter added the comment: In Issue 28503, “crypt_r” was added to Python 3.7 and 3.8+, and it looks like it is still there. Regarding error handling for “crypt”, it is not documented, but the Python function returns None on error. You would have to consider backwards compatibility to u

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Anthony Sottile
Anthony Sottile added the comment: I don't have time to look through the data today but I wrote a script to collect the usages of `.pth` from pypi. I realized after I ran it that I skipped source distributions with `.zip` extension but otherwise it's pretty complete: https://github.com/aso

[issue29539] [smtplib] collect response data for all recipients

2019-03-01 Thread sls
sls added the comment: I closed my PR. I'd just rename "senderrs" to "mta_status" or so as aforementioned change means not just storing errors. FirefighterBlu3, do you open a PR for this? I'd like to see this moving into 3.8 as we don't compile Python from source but using it from deb repos

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
muhzi added the comment: Using the latest NDK r19. Here is my compilation steps for arm: export PATH="$ANDROID_NDK/toolchains/llvm/prebuilt/linux-x86_64/bin:$PATH" export CC="armv7a-linux-androideabi16-clang" export CXX="$CC++" export AR="arm-linux-androideabi-ar" export LD="arm-linux-android

[issue36162] error: implicit declaration of function 'sendfile' is invalid in C99

2019-03-01 Thread muhzi
New submission from muhzi : I encountered yet another issue with cross compilation on android, it so happens that these errors occur only when I cross compile for non 64-bit archs. i.e. I could cross compile just fine for arm64 & x86_64 but the 32-bit version of these archs produces the follo

[issue36161] Use thread-safe functions instead of unsafe ones (crypt, ttyname)

2019-03-01 Thread Thomas Wouters
New submission from Thomas Wouters : (good first issue, I think.) CPython currently uses a few functions that are thread-unsafe where thread-safe version exist, at least in glibc (crypt() and ttyname(), at least). This isn't an issue when looking at CPython in isolation because these calls ar

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-01 Thread Eric Snow
Change by Eric Snow : -- assignee: -> eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-01 Thread Eric Snow
Change by Eric Snow : -- keywords: +patch pull_requests: +12135 stage: needs patch -> patch review ___ Python tracker ___ ___ Python

[issue32387] Disallow untagged C extension import on major platforms

2019-03-01 Thread Brett Cannon
Brett Cannon added the comment: It's 3.8 time now. :) Should we try and resolve this? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue36043] FileCookieJar constructor don't accept PathLike

2019-03-01 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-

[issue36043] FileCookieJar constructor don't accept PathLike

2019-03-01 Thread miss-islington
miss-islington added the comment: New changeset 4b219ce81ed04234648a4ce4f0cb0865818abb38 by Miss Islington (bot) (Stéphane Wirtel) in branch 'master': bpo-36043: FileCookieJar supports os.PathLike (GH-11945) https://github.com/python/cpython/commit/4b219ce81ed04234648a4ce4f0cb0865818abb38 --

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-01 Thread Eric Snow
Change by Eric Snow : -- nosy: +petr.viktorin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue35843] importlib.util docs for namespace packages innaccurate

2019-03-01 Thread Brett Cannon
Brett Cannon added the comment: Anyone have an opinion about the __getitem__ proposal? I'm fine with it but I wanted to make sure other import + namespace folks don't disagree. -- ___ Python tracker ___

[issue36153] Freeze support documentation is misleading.

2019-03-01 Thread Brett Cannon
Change by Brett Cannon : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Brett Cannon
Brett Cannon added the comment: Yes, the Mac installer should have installed everything, but software isn't perfect. :) I would try installing again. -- nosy: +brett.cannon, ned.deily, ronaldoussoren ___ Python tracker

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-01 Thread Eric Snow
Eric Snow added the comment: I've merged the PR for hoisting eval_breaker before the ceval loop starts. @Raymond, see if that addresses the performance regression you've been seeing. I'll close this issue after I've sorted out the buildbot issues David mentioned (on his Windows builders).

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-01 Thread Eric Snow
Eric Snow added the comment: New changeset bda918bf65a88560ec453aaba0758a9c0d49b449 by Eric Snow in branch 'master': bpo-33608: Simplify ceval's DISPATCH by hoisting eval_breaker ahead of time. (gh-12062) https://github.com/python/cpython/commit/bda918bf65a88560ec453aaba0758a9c0d49b449 ---

[issue36124] Provide convenient C API for storing per-interpreter state

2019-03-01 Thread Eric Snow
Eric Snow added the comment: Thinking about this, what is the key difference with the existing PyModule_GetState() function? Is it just the return type (module-defined void * vs. a regular dict)? Certainly it provides a C-only namespace that all extensions can share (like PyThreadState_Get

[issue36154] Python quit unexpectedly error

2019-03-01 Thread kellena
kellena added the comment: There isn't much. I downloaded this and installed it from python.org with the install wizard. Shouldn't all of the necessary environment variables have been added at that time? $ env | grep PYTHON PYTHONHOME=/usr/local/bin/python3 --

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-01 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue33608] [subinterpreters] Add a cross-interpreter-safe mechanism to indicate that an object may be destroyed.

2019-03-01 Thread Eric Snow
Eric Snow added the comment: New changeset b05b711a2cef6c6c381e01069dedac372e0b9fb2 by Eric Snow in branch 'master': bpo-33608: Use _Py_AddPendingCall() in _PyCrossInterpreterData_Release(). (gh-12024) https://github.com/python/cpython/commit/b05b711a2cef6c6c381e01069dedac372e0b9fb2 --

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2019-03-01 Thread Ivan Pozdeev
Change by Ivan Pozdeev : -- keywords: +patch pull_requests: +12134 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue36160] Multiple errors in test_site.py on sysconfig._CONFIG_VARS.clear() if run on its own

2019-03-01 Thread Ivan Pozdeev
New submission from Ivan Pozdeev : Sample failure: > cpython\branches\3.7>python.bat -m test.test_site Running Debug|x64 interpreter... E.s. == ERROR: test_addpackage (__main__.HelperFunctionsTests) ---

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 62be763348d16ba90f96667aa0240503261393f0 by Victor Stinner in branch 'master': bpo-36142: Remove _PyMain structure (GH-12120) https://github.com/python/cpython/commit/62be763348d16ba90f96667aa0240503261393f0 -- ___

[issue36159] Modify Formatter Class to handle arbitrary objects

2019-03-01 Thread Ross Biro
New submission from Ross Biro : The only point in the string.Formatter class that really depends on string output is line 245: return ''.join(result), auto_arg_index. I'm currently working on a problem that would be much easier if I could get access to the result list instead of having that

[issue36158] Regex search behaves differently in list comprehension

2019-03-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please add a short script with data for entities to try reproducing this? >>> from re import compile >>> name_regex = compile(r'\[\"([a-zA-Z\s]*)\"{1}') >>> [name_regex.match(a).group(1) for a in ['["a"a]']] ['a'] >>> list(map(lambda a: name

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: On 01.03.2019 20:27, Ivan Pozdeev wrote: > The fact that this feature is mixed up with and often supplements > "real packages" that a program would explicitly use is actually > incidental: a package with a .pth does not need to have any > functionality intende

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks Tashrif Billah and Karthikeyan Singaravelan for the fix! Sadly, Python 3.6 now only accept security fixes, and so this bug cannot be fixed in the 3.6 branch anymore. The workaround is the rename the last parameter of your customer formatmsg function

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2019-03-01 Thread miss-islington
miss-islington added the comment: New changeset b94874f7e27cbc92e0aec8779ee98bcb16efb257 by Miss Islington (bot) in branch '3.7': bpo-35178: Fix warnings._formatwarnmsg() (GH-12033) https://github.com/python/cpython/commit/b94874f7e27cbc92e0aec8779ee98bcb16efb257 -- nosy: +miss-isli

[issue35478] multiprocessing: ApplyResult.get() hangs if the pool is terminated

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: Pablo: since you worked on multiprocessing recently, did you see this bug? I'm not sure about my PR 11139... If someone else wants to work on a fix, ignore my PR ;-) -- nosy: +davin, pitrou ___ Python tracker

[issue33944] Deprecate and remove pth files

2019-03-01 Thread Ivan Pozdeev
Ivan Pozdeev added the comment: On 01.03.2019 3:58, Steve Dower wrote > Import hooks can always be injected by a package __init__.py before the > importer will try and resolve the module, so nothing is needed there. I thought the flaw in this reasoning in https://bugs.python.org/issue33944#m

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: Ok, I splitted my giant PR 12068 into multiple small commits. So they are easier to review and understand ;-) I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ P

[issue27640] add the '--disable-test-suite' option to configure

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: I modified setup.py to add a new TEST_EXTENSIONS which allows to not build test extensions: New changeset cfe172dc6bd0a02d36db31ffabcc38f9320a4510 by Victor Stinner in branch 'master': bpo-36146: Add TEST_EXTENSIONS to setup.py (GH-12129) https://github.com/

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset cfe172dc6bd0a02d36db31ffabcc38f9320a4510 by Victor Stinner in branch 'master': bpo-36146: Add TEST_EXTENSIONS to setup.py (GH-12129) https://github.com/python/cpython/commit/cfe172dc6bd0a02d36db31ffabcc38f9320a4510 --

[issue36158] Regex search behaves differently in list comprehension

2019-03-01 Thread Matthew Drago
New submission from Matthew Drago : Say for example i want to apply a regex on a list of strings. Using list comprehension as such results in the group method not being found. ``` name_regex = compile(r'\[\"([a-zA-Z\s]*)\"{1}') named_entities = [name_regex.match(entity.trigger).group(1) for e

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2019-03-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12133 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35178] Typo/trivial mistake in warnings.py (may be related to 2.x to 3.x conversion)

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset be7c460fb50efe3b88a00281025d76acc62ad2fd by Victor Stinner (Xtreak) in branch 'master': bpo-35178: Fix warnings._formatwarnmsg() (GH-12033) https://github.com/python/cpython/commit/be7c460fb50efe3b88a00281025d76acc62ad2fd -- _

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

2019-03-01 Thread Ted Whalen
Ted Whalen added the comment: I think this should be reopened, as the behavior doesn't always raise an error, and, in fact, does something very unexpected: Python 3.7.2 (default, Jan 13 2019, 12:50:01) [Clang 10.0.0 (clang-1000.11.45.5)] on darwin Type "help", "copyright", "credits" or "licen

[issue36153] Freeze support documentation is misleading.

2019-03-01 Thread Sridhar Iyer
Sridhar Iyer added the comment: Please find the attached python file where the issue is seen. The cli to create an executable was: $pyinstaller run_server_min.spec Here are the contents of the file (this doesn't support multiple file uploads): # -*- mode: python ; coding: utf-

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 91b9ecf82c3287b45f39158c5134a87414ff26bc by Victor Stinner in branch 'master': bpo-36142: Add preconfig.c (GH-12128) https://github.com/python/cpython/commit/91b9ecf82c3287b45f39158c5134a87414ff26bc --

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12132 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue27321] Email parser creates a message object that can't be flattened

2019-03-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: @r.david.murray, it appears that all your requested changes have been addressed on the PR. Please re-review this when you get a chance. Thanks! -- nosy: +cheryl.sabella versions: -Python 3.6 ___ Python tracker

[issue36157] Document PyInterpreterState_Main().

2019-03-01 Thread Eric Snow
New submission from Eric Snow : PyInterpreterState_Main() is a function in the public C-API that returns a pointer to the main interpreter's state. The main interpreter is the first one created by the CPython runtime during startup (e.g. when the "python" command is run). Documentation for

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12131 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36116] test_multiprocessing_spawn fails on AMD64 Windows8 3.x

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: https://buildbot.python.org/all/#/builders/32/builds/2219 FAIL: test_mymanager_context_prestarted (test.test_multiprocessing_spawn.WithManagerTestMyManager) Re-running failed tests in verbose mode Re-running test 'test_multiprocessing_spawn' in verbose mode F

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset c991f2415d4eef663039a83125aa6aad81672680 by Victor Stinner in branch 'master': bpo-36146: Don't run code at setup.py top level (GH-12127) https://github.com/python/cpython/commit/c991f2415d4eef663039a83125aa6aad81672680 -- ___

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12130 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5ec33a1c25a586552751ca35c85ab7ecb6b06ec3 by Victor Stinner in branch 'master': bpo-36146: Split setup.py into subfunctions (GH-12125) https://github.com/python/cpython/commit/5ec33a1c25a586552751ca35c85ab7ecb6b06ec3 -- ___

[issue13055] Distutils tries to handle null versions but fails

2019-03-01 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +12129 stage: needs patch -> patch review ___ Python tracker ___ ___ Py

[issue35975] Put back the ability to parse files where async/await aren't keywords

2019-03-01 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: > Fatal Python error: initfsencoding: unable to load the file system codec > > ModuleNotFoundError: No module named 'encodings' OK, this is the important part which describes what Python failed. In this case, Python can't find it's very important standard librar

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 95e2cbf32f8156c239b27dae558ba058d0f2d496 by Victor Stinner in branch 'master': bpo-36142: Move command line parsing to coreconfig.c (GH-12123) https://github.com/python/cpython/commit/95e2cbf32f8156c239b27dae558ba058d0f2d496 -- __

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12128 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue36146] Refactor setup.py

2019-03-01 Thread STINNER Victor
STINNER Victor added the comment: New changeset 625dbf2567533e6001d57e5969fba75c1b6ece43 by Victor Stinner in branch 'master': bpo-36146: Refactor setup.py: Add PyBuildExt.srcdir (GH-12124) https://github.com/python/cpython/commit/625dbf2567533e6001d57e5969fba75c1b6ece43 -- ___

[issue36154] Python quit unexpectedly error

2019-03-01 Thread kellena
kellena added the comment: When I run python3 in a terminal window, I get the same pop-up window with "Python quit unexpectedly error." In the terminal, I get: Fatal Python error: initfsencoding: unable to load the file system codec ModuleNotFoundError: No module named 'encodings' Current

[issue36142] Add a new _PyPreConfig step to Python initialization to setup memory allocator and encodings

2019-03-01 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +12127 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

  1   2   >