[issue30444] Add ability to change "-- more --" text in pager module

2017-05-23 Thread Gautam krishna.R
Gautam krishna.R added the comment: While i was working on one of my personal project i thought of using pager module for piping the output in the terminal, please see the issue: https://github.com/gautamkrishnar/socli/issues/46 Adding ability to modify "-- more --" (statically specified text

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Would PyThread_free_lock (effectively sem_destroy()) work without (additional) problems? -- ___ Python tracker ___

[issue30451] parse windows path error in webbrowser.get() and lead to webbrowser.Error: could not locate runnable browser

2017-05-23 Thread chainly
New submission from chainly: a bug when platform is not posix, lead to webbrowser.Error: could not locate runnable browser see below: import shlex shlex.split(r'C:\a\chrome.exe', comments=False, posix=True) ['C:achrome.exe'] shlex.split(r'C:\a\chrome.exe', comments=False, posix=False)

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually the locale affects case-insensitively matching if use the re.LOCAL flag. The set of characters matched by b'[A-Z]' is locale-depending. For example in Turkish locale it can include the letters 'İ' and 'ı'. Only 8-bit locales are supported, not

[issue30438] tarfile would fail to extract tarballs with files under R/O directories

2017-05-23 Thread Catherine Devlin
Catherine Devlin added the comment: I apologize, I retract my earlier comment - I believe both Yaroslav and I were confused about the nature of the problem. I think it's not related to permissions at all, but to adding a file to the tarfile twice. To see this, use `tarfilero.py` as provided

[issue30438] tarfile would fail to extract tarballs with files under R/O directories

2017-05-23 Thread Catherine Devlin
Changes by Catherine Devlin : Removed file: http://bugs.python.org/file46890/issue_30438_test.patch ___ Python tracker ___

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 9e98cd0383d9e7f06c0537038a32459bf5efa97a by Xiang Zhang (Joel Hillacre) in branch 'master': bpo-30394: Fix a socket leak in smtplib.SMTP.__init__() (#1700) https://github.com/python/cpython/commit/9e98cd0383d9e7f06c0537038a32459bf5efa97a

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-23 Thread Xiang Zhang
Xiang Zhang added the comment: "192.168.0.0" is the network address of "192.168.0.0/23" while "192.168.1.0" not. :-) -- ___ Python tracker ___

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: I'm surprised that we only detect hard crashes only indirectly through the creation of core dump files... Some tests might be enhanced to raise an exception at least if the process was killed by a signal, maybe also if the exit code is non-zero (depending on the

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: New changeset 1abcf6700b4da6207fe859de40c6c1bada6b4fec by Eric Snow in branch 'master': bpo-22257: Private C-API for core runtime initialization (PEP 432). (#1772) https://github.com/python/cpython/commit/1abcf6700b4da6207fe859de40c6c1bada6b4fec --

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-05-23 Thread Eric Snow
Eric Snow added the comment: That looks similar to other failures due to an issue fixed in a later PR. It shouldn't be an issue any longer. I'll double check in the morning. -- ___ Python tracker

[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: Ok thanks of taking care of my little buildbot babies. -- ___ Python tracker ___

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: + head_mutex = NULL; Shouldn't we free memory here? -- ___ Python tracker ___

[issue29102] Add an id field to PyInterpreterState.

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: Does someone know the PRxxx constant for int64_t? -- ___ Python tracker ___

[issue30150] raw debug allocators to not return malloc alignment

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: Maybe we can use Py_MAX (sizeof (size_t), 8) for SST? If I recall correctly, pymalloc uses 8 bytes for the alignement. Somewhere I read that malloc uses sizeof (double), the largest C type. Well, what do you suggest Julian? Do you want to write a PR?

[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-23 Thread Eric Snow
Eric Snow added the comment: Yeah, I some extra checks (involving pointers) to that test and some platforms don't work as expected. I'll take a look in the morning. -- ___ Python tracker

[issue29102] Add an id field to PyInterpreterState.

2017-05-23 Thread Eric Snow
Eric Snow added the comment: Thanks for pointing this out, Serhiy. I'll take a look in the morning. -- ___ Python tracker ___

[issue28707] add 'directory' option to the http.server module

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: Stéphane Wirtel added the comment: and of course, sorry for this big delay. I am not sure why you are saying that. Nobody was actively awaiting on this feature, we all have busy scedules. It's ok ;-) -- ___ Python

[issue30449] Improve __slots__ datamodel documentation

2017-05-23 Thread Aaron Hall
Aaron Hall added the comment: I've been working on this section quite a lot, trying to improve the flow of content (which in the prior revision is a bit of a mish-mash of information in the "Notes on using __slots__ section") - I intend to move some of that information into the

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-23 Thread Ennis Massey
Ennis Massey added the comment: Well, the tests worked on macOS 10.12.6 beta, although my school network broke the urllib tests Many Thanks, Ennis Massey ennisbarad...@gmail.com -- ___ Python tracker

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: Fixed applied to subprocess32 in https://github.com/google/python-subprocess32/commit/0f1958e982bf44db569470def7281bcafa2a8b0e -- stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-05-23 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +1864 ___ Python tracker ___ ___

[issue30450] Pull Windows dependencies from GitHub rather than svn.python.org

2017-05-23 Thread Zachary Ware
New submission from Zachary Ware: Once we've migrated away from svn.python.org for Windows build dependencies, there should be no reason to continue running svn.python.org. -- components: Build, Extension Modules, Windows messages: 294307 nosy: paul.moore, steve.dower, tim.golden,

[issue30440] document peephole optimizer effects

2017-05-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Emily. This should be probably be a FAQ entry (cpython/Doc/faq) because the peephole optimizer is a CPython implementation detail, because we don't normally document internal details such as which opcodes are generated or big-oh runtimes etc,

[issue30449] Improve __slots__ datamodel documentation

2017-05-23 Thread Aaron Hall
New submission from Aaron Hall: The __slots__ documentation in the datamodel needs improvement. For example: > When inheriting from a class without __slots__, the __dict__ attribute of > that class will always be accessible, so a __slots__ definition in the > subclass is meaningless. The

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-23 Thread Ennis Massey
Ennis Massey added the comment: Actually, having managed to get macOS to update, it seems to be odd, as it correctly delays. Not sure what’s going on there, or whether it’s my setup. I’ll look into it some more. I’m also thinking of writing/finding a set of tests for core POSIX stuff like

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-05-23 Thread Brian Ward
Changes by Brian Ward : -- pull_requests: +1863 ___ Python tracker ___ ___ Python-bugs-list

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-05-23 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1862 ___ Python tracker ___

[issue30448] test_subprocess creates a core dump on FreeBSD

2017-05-23 Thread STINNER Victor
New submission from STINNER Victor: Eric Snow: do you think that it could be related to your recent subinterpreter changes please? http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Debug%203.x/builds/311/steps/test/logs/stdio 0:08:26 load avg: 3.35 [253/405] test_subprocess

[issue30447] test_capi.test_subinterps() fails on ARMv7 Ubuntu 3.x

2017-05-23 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/ARMv7%20Ubuntu%203.x/builds/786/steps/test/logs/stdio == FAIL: test_subinterps (test.test_capi.EmbeddingTests)

[issue30437] SSL_shutdown can return meaningless SSL_ERROR_SYSCALL

2017-05-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: Debian testing, x86-64, with: Python 3.5.3rc1 (default, Jan 3 2017, 04:40:57) [GCC 6.3.0 20161229] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import ssl >>> ssl.OPENSSL_VERSION 'OpenSSL 1.1.0e 16 Feb 2017'

[issue29340] SSL destructor segfaults in python3.6 threads when an unverified-cert connection is closed

2017-05-23 Thread Christian Heimes
Christian Heimes added the comment: It's a bug in OpenSSL. There isn't much we can do about it. I'm closing the issue as 3rd party issue. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

[issue30437] SSL_shutdown can return meaningless SSL_ERROR_SYSCALL

2017-05-23 Thread Christian Heimes
Christian Heimes added the comment: Which OS and OpenSSL version are you on? -- ___ Python tracker ___ ___

[issue30290] IDLE: add tests for help_about.py

2017-05-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: At first glance, 1714 looks great. I hope to merge it tomorrow. On the issues you raised: 1. I want to leave existing constants alone for now. 2. There are two 'create widgets' styles: create, place, create, place, ...; and create, create, ..., place, place,

[issue30446] Embedded 3.6.1 distribution cannot find _socket module

2017-05-23 Thread Thomas Stevenson
New submission from Thomas Stevenson: Trying to import the socket module using the embedded distribution for 3.6.1, I get the error: : No module named '_socket' Running with the standard interpreter works: Python 3.6.1 (v3.6.1:69c0db5, Mar 21 2017, 17:54:52) [MSC v.1900 32 bit (Intel)] on

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-05-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: Right, fixing this bug alone can't make programs control-C safe in general. But there exist techniques to make __enter__/__exit__ methods safe WRT control-C, and if we fix this bug *and* apply those techniques then you can get some meaningful guarantees.

[issue12857] Expose called function on frame object

2017-05-23 Thread Nathaniel Smith
Nathaniel Smith added the comment: I'd also like to make use of this in trio, as a way to get safer and less complicated control-C handling without having to implement things in C. (Exhaustive discussion: https://vorpus.org/blog/control-c-handling-in-python-and-trio/) @Nick: I understand

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-05-23 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +1861 ___ Python tracker ___ ___

[issue30444] Add ability to change "-- more --" text in pager module

2017-05-23 Thread Steven D'Aprano
Steven D'Aprano added the comment: Can you please explain why you need to change the --more-- text in the pager? I haven't been able to find any way to change the "--more--" prompt in the shell commands `less` and `more`, and remember that the pager will under some circumstances use one of

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-05-23 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +1860 ___ Python tracker ___ ___

[issue9146] Segfault in hashlib in OpenSSL FIPS mode using non-FIPS-compliant hashes, if "ssl" imported before "hashlib"

2017-05-23 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- pull_requests: +1859 ___ Python tracker ___ ___

[issue28707] add 'directory' option to the http.server module

2017-05-23 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and of course, sorry for this big delay. -- ___ Python tracker ___ ___

[issue28707] add 'directory' option to the http.server module

2017-05-23 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Victor, I have added the documentation, but for the unit test, there is already a test with the SimpleHTTPRequestHandler class where they specify the cwd attribute, because the code of mdk does not change the behavior, I think it's not needed to write a

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-05-23 Thread Christian Heimes
Christian Heimes added the comment: New changeset 66dc33b6822be93f85d84d24d3f9159ff568fbbb by Christian Heimes in branch 'master': bpo-29334: Fix ssl.getpeercert for auto-handshake (#1769) https://github.com/python/cpython/commit/66dc33b6822be93f85d84d24d3f9159ff568fbbb --

[issue30444] Add ability to change "-- more --" text in pager module

2017-05-23 Thread Gautam krishna.R
Changes by Gautam krishna.R : -- pull_requests: +1857 ___ Python tracker ___ ___

[issue28707] add 'directory' option to the http.server module

2017-05-23 Thread Stéphane Wirtel
Changes by Stéphane Wirtel : -- pull_requests: +1856 ___ Python tracker ___ ___

[issue30445] test_traceback fails in coverage run

2017-05-23 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware stage: -> patch review title: test_traceback fails when run early -> test_traceback fails in coverage run ___ Python tracker

[issue30445] test_traceback fails when run early

2017-05-23 Thread Maria Mckinley
Changes by Maria Mckinley : -- pull_requests: +1855 ___ Python tracker ___ ___

[issue30445] test_traceback fails when run early

2017-05-23 Thread Maria Mckinley
Changes by Maria Mckinley : -- components: Tests nosy: maria priority: normal severity: normal status: open title: test_traceback fails when run early type: behavior versions: Python 3.7 ___ Python tracker

[issue30444] Add ability to change "-- more --" text in pager module

2017-05-23 Thread Gautam krishna.R
New submission from Gautam krishna.R: Need ability to change the text -- components: +Library (Lib) title: Add ability to change "-- more -- -> Add ability to change "-- more --" text in pager module type: -> enhancement ___ Python tracker

[issue30444] Add ability to change "-- more --

2017-05-23 Thread Gautam krishna.R
Changes by Gautam krishna.R : -- nosy: Gautam krishna.R priority: normal severity: normal status: open title: Add ability to change "-- more -- ___ Python tracker

[issue28567] Bus error / segmentation fault on macOS debug build when using ctypes OpenGL

2017-05-23 Thread Ned Deily
Ned Deily added the comment: Sorry that this issue has languished for so long. Unfortunately, since it is so easy to cause segfaults when using ctypes and there are so many variables in play here and that there haven't been other similar reports, it is highly unlikely that anyone is going to

[issue25612] nested try..excepts don't work correctly for generators

2017-05-23 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1854 ___ Python tracker ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1853 ___ Python tracker ___ ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: reverting the change to that test: https://github.com/python/cpython/pull/1770 -- ___ Python tracker ___

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1852 ___ Python tracker ___ ___

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2017-05-23 Thread Mark Shannon
Mark Shannon added the comment: This issue is rather old, so I will create a new GitHub PR for the code change. This issue can be closed. Note that https://bugs.python.org/issue25612 is a manifestation of the problem that this was intended to solve. -- nosy: +Mark Shannon

[issue30443] datetime.datetime.__add__ does not respect fold.

2017-05-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The current behavior is intentional. Please see PEP 495 for details. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue24896] It is undocumented that re.UNICODE and re.LOCALE affect re.IGNORECASE

2017-05-23 Thread Brian Ward
Changes by Brian Ward : -- nosy: +Brian Ward ___ Python tracker ___ ___ Python-bugs-list

[issue30443] datetime.datetime.__add__ does not respect fold.

2017-05-23 Thread Michael R. Shannon
New submission from Michael R. Shannon: datetime.datetime.__add__ is currently implemented by converting the date into a datetime.timedelta object (using toordinal) before adding it to the other (timedelta) object and reconstructing with datetime.combine. With this method, fold will always

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-23 Thread R. David Murray
R. David Murray added the comment: Duh. (Smacks self on forehead). Nevermind. I'll approve the patch as is, since I can't see any good way to test it. (I suppose that we could factor the __init__ method contents out into something we could test, but I'm not going to push for that kind of

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: Can someone please check if the job pass on all branches? If yes, please close the issue. -- ___ Python tracker ___

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-23 Thread Yury Selivanov
Yury Selivanov added the comment: > I'd be fine with replacing the sys.getrecursionlimit() call with a module > level constant like "_UNWRAP_LIMIT = 500". TBH I'm OK either way. `sys.getrecursionlimit()` is 1000 (at least on my machine), which might be a bit too much for this specific

[issue30436] importlib.find_spec raises AttributeError/ModuleNotFoundError when parent is not a package/module

2017-05-23 Thread tkhyn
tkhyn added the comment: Ok, thanks for the reply. Actually the thing that bothered me was the AttributeError exception. I would probably not have opened a ticket should find_spec have raised a ModuleNotFoundError (in line with import_module). Would you consider catching the AttributeError

[issue29334] ssl.SSLObject method getpeercert() is buggy, do_handshake() is strange

2017-05-23 Thread Christian Heimes
Changes by Christian Heimes : -- pull_requests: +1851 ___ Python tracker ___ ___

[issue30436] importlib.find_spec raises AttributeError/ModuleNotFoundError when parent is not a package/module

2017-05-23 Thread Brett Cannon
Brett Cannon added the comment: The key thing to think about is do you think find_spec("parent.module") is working with a single thing called "parent.module" or is it working with two separate things of "parent" and "module" which happens to be contained on "parent"? If you take the former

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: New changeset e0918ecf93a458d4e005650f816d64654e73fc2a by Eric Snow in branch 'master': bpo-22257: Fix CLI by using int instead of char (compares to EOF). (#1765) https://github.com/python/cpython/commit/e0918ecf93a458d4e005650f816d64654e73fc2a --

[issue30438] tarfile would fail to extract tarballs with files under R/O directories

2017-05-23 Thread Catherine Devlin
Catherine Devlin added the comment: I confirmed the error, and that doing the corresponding tar/untar cycle with the command-line `tar` utility succeeds. issue_30438_test.patch adds a unittest version of Yaroslav's demo file to test_tarfile.py. (It's irrelevant if the PR is merged.) This

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-23 Thread STINNER Victor
STINNER Victor added the comment: Ned Deily added the comment: > Unfortunately, with the tests reenabled, they still fail with the most recent > release of macOS 10.12 (10.12,5) Oh. In that case, I will update my patch to blacklist macOS versions with the bug (remove select.poll() depending on

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-05-23 Thread Stefano Rivera
Stefano Rivera added the comment: > whether this would confuse users since they will simply get an ImportError > instead of some other error and thus will they be able to realize why there's > a problem? It's the same behaviour we have for any other module on the import path, that doesn't

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change should be reverted. Lib/test/coding20731.py intentionally should have the CRLF lines separator. -- ___ Python tracker

[issue30442] Skip test_xml_etree under coverage

2017-05-23 Thread Kushal Das
Changes by Kushal Das : -- pull_requests: +1848 ___ Python tracker ___ ___

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-05-23 Thread Brett Cannon
Brett Cannon added the comment: So limited ABI modules can't be imported by a Py_DEBUG build. Stefano's patch just skips over them. That seems reasonable, but one question I do have is whether this would confuse users since they will simply get an ImportError instead of some other error and

[issue28401] Don't support the PEP384 stable ABI in pydebug builds

2017-05-23 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +1847 ___ Python tracker ___

[issue29988] (async) with blocks and try/finally are not as KeyboardInterrupt-safe as one might like

2017-05-23 Thread Mark Shannon
Mark Shannon added the comment: This is either a "won't fix" or an "impossible to fix" depending on your point of view. PATIENT: It hurts whenever I press ctrl-C DOCTOR: Then don't press ctrl-C The problem is that ctrl-C can provoke an interrupt at any point in the program, and

[issue30442] Skip test_xml_etree under coverage

2017-05-23 Thread Kushal Das
New submission from Kushal Das: test test_xml_etree failed -- Traceback (most recent call last): File "/home/travis/build/python/cpython/Lib/test/test_xml_etree.py", line 1553, in test_bug_xmltoolkit63 self.assertEqual(sys.getrefcount(None), count) AssertionError: 522146 != 522143 Under

[issue30273] The coverage job is broken: distutils build_ext fails on None

2017-05-23 Thread Brett Cannon
Brett Cannon added the comment: Can this be closed? -- nosy: +brett.cannon ___ Python tracker ___ ___

[issue28087] macOS 12 poll syscall returns prematurely

2017-05-23 Thread Ned Deily
Ned Deily added the comment: Unfortunately, with the tests reenabled, they still fail with the most recent release of macOS 10.12 (10.12,5) so perhaps the curl issue was a different problem? -- ___ Python tracker

[issue30376] Curses documentation refers to incorrect type

2017-05-23 Thread Kushal Das
Kushal Das added the comment: Thanks for filing the bug, fixed now. Thank you Berker for the quick patch. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30435] Documentation either unclear or incorrect on comparisons between bytes and strings in Python 3

2017-05-23 Thread Brian Ward
Brian Ward added the comment: The "should" recommendation seems like the right direction, but feels like it needs an explanation (in case someone's trying to run some 2.7 code and is wondering why their comparisons don't work anymore). Unfortunately, it's a little complicated to pile into a

[issue30440] document peephole optimizer effects

2017-05-23 Thread Emily Morehouse
Emily Morehouse added the comment: Raymond, I'm willing to take over this issue with your guidance if you're open to it. -- nosy: +emilyemorehouse, rhettinger ___ Python tracker

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Changes by Eric Snow : -- pull_requests: +1846 status: pending -> open ___ Python tracker ___

[issue30376] Curses documentation refers to incorrect type

2017-05-23 Thread Kushal Das
Kushal Das added the comment: New changeset 9bcf81da1436468c3c5e500ae36678a2ad675e32 by Kushal Das in branch '3.6': [3.6] bpo-30376: Update outdated WindowObject references (GH-1630) (#1746) https://github.com/python/cpython/commit/9bcf81da1436468c3c5e500ae36678a2ad675e32 --

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-23 Thread Danilo Shiga
Changes by Danilo Shiga : -- nosy: +Danilo Shiga ___ Python tracker ___ ___

[issue30376] Curses documentation refers to incorrect type

2017-05-23 Thread Kushal Das
Kushal Das added the comment: New changeset 8af0a214be7c0c921ba5ce5c11043dd5b5da9211 by Kushal Das in branch '3.5': [3.5] bpo-30376: Update outdated WindowObject references (GH-1630) (#1747) https://github.com/python/cpython/commit/8af0a214be7c0c921ba5ce5c11043dd5b5da9211 --

[issue30394] smtplib leaves open sockets around if SMTPConnectError is raised in __init__

2017-05-23 Thread Joel Hillacre
Joel Hillacre added the comment: r.david.murray, How would a test would have a reference to after an exception in the smtplib.SMTP.__init__()? -- ___ Python tracker

[issue30405] build.bat: register binaries for py launcher

2017-05-23 Thread Steve Dower
Steve Dower added the comment: > Steve, I gather you don't think it's a problem to use arbitrarily named tags > on the command line. The launcher shouldn't look for an "h" tag for `py -h` Sure, we can reserve some tags - the -x/y syntax would let you refer to a conflicting one. But other than

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-23 Thread Osvaldo Santana Neto
Osvaldo Santana Neto added the comment: I agree with Jelle about the fix's implementation. But I disagree of suggestion to implement lock at the application side. I disagree because some external libraries may want to access os.environ in a concurrent fashion without lock acquiring. That's

[issue22257] PEP 432: Redesign the interpreter startup sequence

2017-05-23 Thread Eric Snow
Eric Snow added the comment: The change in Lib/test/coding20731.py was the result of running PCbuild/fix_encoding.py. -- status: open -> pending ___ Python tracker

[issue21074] Too aggressive constant folding

2017-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "I apologize if you were offended", which I will take as being sincere, > happens to also be one of the most common examples of an insincere apology. > Bowing out when there is a reference to the CoC gives undue power to others, > and hinders the ability to

[issue21074] Too aggressive constant folding

2017-05-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue21074] Too aggressive constant folding

2017-05-23 Thread Andrew Dalke
Andrew Dalke added the comment: Again, I do not propose any changes to the existing optimizer. I do not need anything changed for my code to work. My goal is to counter-balance comments which suggest that perfectly normal code is somehow folly and arcane. These caused me some bewilderment and

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-23 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Even with the patch, I don't think it's safe to modify os.environ while it's being accessed concurrently in another thread. The other thread's modification could arrive while the dict() call in your patch is running (in CPython the GIL might protect you, but

[issue30395] deadlocked child process after forking on pystate.c's head_mutex

2017-05-23 Thread Louis Brandy
Louis Brandy added the comment: Thanks to everyone jumping in. I need no convincing that mixing forks and threads isn't just a problem but a problem factory. Given that the rest of this code seems to try to avoid similar deadlocks with similar mutexes, I figured we'd want to include this

[issue25532] infinite loop when running inspect.unwrap over unittest.mock.call

2017-05-23 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, sorry - I merged the PR before seeing the discussion about the limit over here. I'd be fine with replacing the sys.getrecursionlimit() call with a module level constant like "_UNWRAP_LIMIT = 500". If someone desperately needed a higher limit for some

[issue30407] ipaddress ver. 1.0.14 IPv4Network off by 1

2017-05-23 Thread kelly hirai
kelly hirai added the comment: i thought it was inconsistent that 192.168.1.0 was included, but 192.168.0.0 was not. -- ___ Python tracker ___

[issue25430] speed up ipaddress __contain__ method

2017-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hi Aleksandr, well, sorry for the detail. We now use GitHub for patch submission, would you like to submit a PR at https://github.com/python/cpython/ (see devguide at https://cpython-devguide.readthedocs.io/ for more information). If you don't want to do

[issue25430] speed up ipaddress __contain__ method

2017-05-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: s/sorry for the detail/sorry for the delay/ -- ___ Python tracker ___ ___

[issue29335] subprocess module does not check WIFSTOPPED on SIGCHLD

2017-05-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 56bc3b768c3cc3817031b56d5e7a279aa1296bc9 by Gregory P. Smith in branch 'master': bpo-29335 - apply suggested test_subprocess simplifications from haypo and Zach: (#1757)

[issue30441] os.environ raises RuntimeError: dictionary changed size during iteration

2017-05-23 Thread Osvaldo Santana Neto
New submission from Osvaldo Santana Neto: We're facing ocasional RuntimeError exceptions in a multithreaded application when one of the threads creates new entries to the environment (os.environ). I'm not so sure if the attached patch fixes this issue the right way, so, feel free to propose

  1   2   >