[issue36152] IDLE: Remove close_when_done from colorizer close()

2019-03-01 Thread miss-islington
Change by miss-islington : -- pull_requests: +12124 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2019-03-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: @guboi72 is right that signature for class constructor is used also for methods. Another possible solution would be that mock stores it's children in _mock_children dictionary so when a method is called then name can be used to get the relevant

[issue36155] ./python -m test -m test_gc fails

2019-03-01 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the explanation :) -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue36156] different method, but id function return same value.

2019-03-01 Thread lgj
New submission from lgj <929102...@qq.com>: >>> class A: ... def a(self): ... return 0 ... def a1(self): ... return 1 ... >>> a =A() >>> id(a.a) 4316559496 >>> id(a.a1) 4316559496 >>> id(a) 4318155272 It' seems oops , according to the id function source code. here is the

[issue31904] Python should support VxWorks RTOS

2019-03-01 Thread Peixing Xin
Change by Peixing Xin : -- pull_requests: +12123 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36152] IDLE: Remove close_when_done from colorizer close()

2019-03-01 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset b9f0354efce95b7557bc43ea193c4b652cd28392 by Cheryl Sabella in branch 'master': bpo-36152: IDLE: Remove unused parameter from colorizer (GH-12109) https://github.com/python/cpython/commit/b9f0354efce95b7557bc43ea193c4b652cd28392 --

[issue36156] different method, but id function return same value.

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: a.a creates temporal method object. After id(a.a), it is removed. So a.a and a.a1 are not "simultaneously existing objects" in your case. Try this: x = a.a y = a.a1 id(x), id(y) x and y are "simultaneously existing objects" now. -- nosy: +inada.naoki

[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:

[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

[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 ___

[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

[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:

[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

[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

[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

[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 >

[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 ___

[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).

[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

[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 ___

[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 ___ ___

[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)

[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 ___ ___

[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,

[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

[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)

[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

[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

[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

[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

[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

[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 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)

[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 ___ ___

[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:

[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

[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

[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:

[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

[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

[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

[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

[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

[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
Change by Eric Snow : -- assignee: -> eric.snow ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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 ___ ___

[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 ___ ___

[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:

[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 --

[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

[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:

[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

[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)

[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 --

[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

[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:

[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

[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

[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:

[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

[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

[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:

[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 --

[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

[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

[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 --

[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 --

[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:

[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:

[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 ___ ___

[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)

[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

[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 --

[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:

[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 ___

[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

[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:

[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 ___ ___

[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

[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 --

[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

[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:

[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

[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:

[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.

[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 ___

[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

[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

[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:

[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

[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

[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.

[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

[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 ___ ___

[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

[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:

[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

[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

[issue36154] Python quit unexpectedly error

2019-03-01 Thread Inada Naoki
Inada Naoki added the comment: How do you execute Python? If you don't use terminal, please try executing Python from terminal. And see what is output from Python in terminal. -- nosy: +inada.naoki ___ Python tracker

[issue36155] ./python -m test -m test_gc fails

2019-03-01 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Ok, this is happening because there is a unittest.mock._ANY in the second generation. -- ___ Python tracker ___

  1   2   >