[issue30597] Show expected input in custom "print" error message

2017-07-03 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset bfdc6fdc0e76204caf2261f9cfa9d232fc23906a by Nick Coghlan in branch '3.6': [3.6] bpo-30597: Show expected input in custom 'print' error message. (GH-2531) https://github.com/python/cpython/commit/bfdc6fdc0e76204caf2261f9cfa9d232fc23906a --

[issue30597] Show expected input in custom "print" error message

2017-07-03 Thread Nick Coghlan
Nick Coghlan added the comment: And merged. Thanks all! -- stage: backport needed -> resolved status: open -> closed ___ Python tracker ___ __

[issue30829] 'Cannot serialize socket object' after ssl.wrap_socket

2017-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: It is simply not possible to serialize the state of a SSL socket. (theoretically it should be possible, but AFAIK OpenSSL offers no API for it). -- nosy: +pitrou ___ Python tracker

[issue30829] 'Cannot serialize socket object' after ssl.wrap_socket

2017-07-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-b

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please, let's not use the "dependencies" field for issues which are not actual dependencies. -- ___ Python tracker ___

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 2. Ignore ECONNRESET in “socket.close” (backwards compatible, could use > “os.close” if you really want to check for ECONNRESET) +1 from me. -- nosy: +pitrou ___ Python tracker

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-07-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: None of "27784,30106,30315,30328,30391,30652,30543" are dependencies of this issue. -- ___ Python tracker ___ _

[issue30830] HTTPHandlerTest of test_logging leaks a "dangling" thread

2017-07-03 Thread STINNER Victor
New submission from STINNER Victor: test_output (test.test_logging.HTTPHandlerTest) ... ok Warning -- threading_cleanup() failed to cleanup -1 threads after 3 sec (count: 0, dangling: 1) See also the previous test_logging threads issue, bpo-30131. -- components: Tests keywords: buildbo

[issue30830] HTTPHandlerTest of test_logging leaks a "dangling" thread on FreeBSD CURRENT

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- title: HTTPHandlerTest of test_logging leaks a "dangling" thread -> HTTPHandlerTest of test_logging leaks a "dangling" thread on FreeBSD CURRENT ___ Python tracker __

[issue30830] HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- title: HTTPHandlerTest of test_logging leaks a "dangling" thread on FreeBSD CURRENT -> HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x ___ Python tracker

[issue30831] Inconsistent or wrong documentation around Asynchronous Context Manager

2017-07-03 Thread Daisuke Miyakawa
New submission from Daisuke Miyakawa: I was reading the following doc and got confused. https://docs.python.org/3.7/reference/datamodel.html#object.__aenter__ According to the API doc itself (and original PEP 492), __aenter__() "is semantically similar to the __enter__(), with only difference

[issue30830] HTTPHandlerTest of test_logging leaks a "dangling" thread

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%20CURRENT%20Non-Debug%203.x/builds/541 -- ___ Python tracker ___ ___

[issue30832] Remove own implementation for thread-local storage

2017-07-03 Thread Masayuki Yamamoto
New submission from Masayuki Yamamoto: CPython has provided the own implementation for thread-local storage (TLS) on Python/thread.c, it's used in the case which a platform has not supplied native TLS. However, currently all supported platforms (NT and pthreads) have provided native TLS and d

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: tl; dr I agree to ignore ECONNRESET-like errors on socket.shutdown() and sock.close(). I'm not sure that I understand *exactly* the problem here. In which case closing a socket fails with ECONNRESET? Can it mean that the last write() was buffered and failed?

[issue30319] ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: About versions, socket.close() was modified in Python 3.6 (bpo-26685) to raise an OSError on error. So only Python 3.6 and 3.7 are impacted here. -- title: ConnectionResetError: [Errno 54] Connection reset by peer in socket.close on FreeBSD, Py 3.6 ->

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: Hmm, I see; I did not know that. I had just assumed that `./python -m test test_*` was the standard command for running tests. However, if one does run tests using standalone `datetimetester` (which only imports the _Fast C extension module), then I'll have

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2603 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30832] Remove own implementation for thread-local storage

2017-07-03 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : -- pull_requests: +2604 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30832] Remove own implementation for thread-local storage

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: This change is related to the PEP 539: the new Thread-Local Storage (TLS) API. -- ___ Python tracker ___ ___

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Good point! But datetimetester uses the implementation depending on the availability of the _datetime extension module. If it is not available, the pure Python implementation is used, and other tests are failed. I think it would be better to fix first the i

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5e87592fd12e0b7c41edc11d4885ed7298d5063b by Victor Stinner in branch 'master': bpo-30764: Fix regrtest --fail-env-changed --forever (#2536) https://github.com/python/cpython/commit/5e87592fd12e0b7c41edc11d4885ed7298d5063b -- ___

[issue30833] UnloadUserprofile displays the error "The handle is invalid"

2017-07-03 Thread d doe
New submission from d doe: UnloadUserprofile displays the error "The handle is invalid" the second time it is called. The script in attachment gives reproduction steps. The issue have been found on Windows 2008r2, windows 2012r2. It exists with python 2.7 and python 3.7. (script done for 2.7)

[issue30833] UnloadUserprofile displays the error "The handle is invalid"

2017-07-03 Thread d doe
Changes by d doe : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.or

[issue30319] Change socket.close() to ignore ECONNRESET

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Another buildbot failure which may be related: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.6/builds/154/steps/test/logs/stdio test_write (test.test_socketserver.SocketWriterTest) ... Exception in thread serving: Traceback (most recent ca

[issue30834] Warning -- files was modified by test_import, After: ['@test_4852_tmp.pyc']

2017-07-03 Thread STINNER Victor
New submission from STINNER Victor: Python 3.5 on Windows emits the following warning when running test_import, but I'm unable to reproduce it :-/ Warning -- files was modified by test_import Before: [] After: ['@test_4852_tmp.pyc'] -- components: Tests, Windows messages: 297552 n

[issue30834] Warning -- files was modified by test_import, After: ['@test_4852_tmp.pyc']

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Example of warning: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.5/builds/39/steps/test/logs/stdio -- ___ Python tracker __

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2605 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Regression: http://buildbot.python.org/all/builders/PPC64%20Fedora%203.x/builds/1000/steps/test/logs/stdio test_system_transitions (test.datetimetester.ZoneInfoTest[America/Juneau]_Pure_Pure_Pure) ... Timeout (0:15:00)! Thread 0x3fffa9aa5a20 (most recent

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: http://buildbot.python.org/all/builders/ARMv7%20Ubuntu%203.x/builds/1013/steps/test/logs/stdio test_gaps (test.datetimetester.ZoneInfoTest[Europe/Riga]_Pure_Pure_Pure) ... ok test_system_transitions (test.datetimetester.ZoneInfoTest[Europe/Riga]_Pure_Pure_Pure

[issue30826] More details in reference 'Looping through a list in Python and modifying it'

2017-07-03 Thread Anmol Gupta
Anmol Gupta added the comment: And also a small explanation for why there would be an infinite loop without creating a copy. -- ___ Python tracker ___ __

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4132adb4b8f90893d8f19ff46edff56f189faca0 by Victor Stinner in branch '3.6': bpo-30764: Fix regrtest --fail-env-changed --forever (#2536) (#2539) https://github.com/python/cpython/commit/4132adb4b8f90893d8f19ff46edff56f189faca0 -- __

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't read the issue. In fact, it seems like the commit 34b54873b51a1ebee2a3c57b7205537b4f33128d already repaired buildbots (x86 Tiger 3.x at least). But... test_datetime became the *slowest* test of x86 Tiger 3.x: 10 slowest tests: - test_datetime: 19

[issue29512] regrtest refleak: implement bisection feature

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2606 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2607 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks references

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2608 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: Previously, test_datetime was running only `_Fast` tests (i.e. testing the C module). Then (because of an erring commit from me), testing for `_Pure` implementation started but all tests per time-zone started running thrice instead of once. Hence, the timeou

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: > Furthermore, "seconds=28747" is not that user-friendly. A friendlier > representation would be "hours=7, minutes=59, seconds=7" and similar > information is displayed when you print a timedelta: (...) I agree that seconds=28747 is not that user-friendly, *bu

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Alexander: "Sorry for being late to the discussion, but please allow me to add a -1 vote." While I agree that seconds=28747 is not perfect, IMHO "datetime.timedelta(seconds=28747)" is an enhancement over "datetime.timedelta(0, 28747)". Can't we make small en

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: > Running the tests take ~ 10 minutes on my system with -utzdata enabled; 19 > minutes does sound like a bit much but I'm not aware of the specs of the > buildbot machines. I don't consider that 10 minutes to test the small datetime module is a reasonable dur

[issue24665] CJK support for textwrap

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I remove the dependency to bpo-12568 since the current PR uses unicodedata.east_asian_width(), not the C function wcswidth(). -- dependencies: -Add functions to get the width in columns of a character ___ Python tra

[issue12568] Add functions to get the width in columns of a character

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: > At least two other issues depend on this: issue17048 and issue24665. I removed the dependency from bpo-24665 (CJK support for textwrap) to this issue, since its current PR uses unicodedata.east_asian_width(), not the C function wcswidth(). -- _

[issue30776] regrtest: change -R/--huntrleaks rule to decide if a test leaks references

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b1210739d12c26e4a161ffd494bd572d49b2483 by Victor Stinner in branch '3.5': [3.5] bpo-29512, bpo-30764, bpo-30776: Backport regrtest enhancements from 3.6 to 3.5 (#2540) https://github.com/python/cpython/commit/0b1210739d12c26e4a161ffd494bd572d49

[issue29512] regrtest refleak: implement bisection feature

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b1210739d12c26e4a161ffd494bd572d49b2483 by Victor Stinner in branch '3.5': [3.5] bpo-29512, bpo-30764, bpo-30776: Backport regrtest enhancements from 3.6 to 3.5 (#2540) https://github.com/python/cpython/commit/0b1210739d12c26e4a161ffd494bd572d49

[issue24665] CJK support for textwrap

2017-07-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0b1210739d12c26e4a161ffd494bd572d49b2483 by Victor Stinner in branch '3.5': [3.5] bpo-29512, bpo-30764, bpo-30776: Backport regrtest enhancements from 3.6 to 3.5 (#2540) https://github.com/python/cpython/commit/0b1210739d12c26e4a161ffd494bd572d49

[issue27584] New addition of vSockets to the python socket module

2017-07-03 Thread Cathy Avery
Cathy Avery added the comment: Fedora 25 has the proper headers. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue12568] Add functions to get the width in columns of a character

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: You need users who use CJK and understand locale issues especially the width of characters. Ask maybe Xiang Zhang and Naoki INADA? -- ___ Python tracker __

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-03 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: > [...] the extra information may be helpful the first time you see it, but if > you deal with timedeltas a lot, it would quickly become annoying. It seems from the discussion on the issue that there are two kinds of developers: - One group which uses ti

[issue29512] regrtest refleak: implement bisection feature

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2609 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2610 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: Hmm, I don't know if testing every zone is necessary. However, I would not be comfortable picking out the zones one ought to test, considering: if ('Riyadh8' in self.zonename or # From tzdata NEWS file: # The files solar87, so

[issue30832] Remove own implementation for thread-local storage

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset aa0aa0492c5fffe750a26d2ab13737a1a6d7d63c by Victor Stinner (Masayuki Yamamoto) in branch 'master': bpo-30832: Remove own implementation for thread-local storage (#2537) https://github.com/python/cpython/commit/aa0aa0492c5fffe750a26d2ab13737a1a6d7d

[issue30822] Python implementation of datetime module is not being tested correctly.

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Let discuss too long time of testing datetime time zones in separate issue. -- ___ Python tracker ___

[issue30830] HTTPHandlerTest of test_logging leaks a "dangling" thread on AMD64 FreeBSD CURRENT Non-Debug 3.x

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I failed to reproduce the issue by running test_logging in a loop on Koobs's FreeBSD CURRENT. -- ___ Python tracker ___ ___

[issue29812] test for token.py, and consistency tests for tokenize.py

2017-07-03 Thread R. David Murray
R. David Murray added the comment: I have no opinion on that issue. I opened this issue to fix a hole in our validation, but if that hole no longer exists after that (subsequently opened :) issue is resolved, then this isn't needed (sorry, Ammar, and thank you for your work!) -- ___

[issue29512] regrtest refleak: implement bisection feature

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset d7955b8196578306e9d86f6c61c9cb3ee72edab0 by Victor Stinner in branch '2.7': [2.7] bpo-29512, bpo-30764: Backport regrtest enhancements from 3.5 to 2.7 (#2541) https://github.com/python/cpython/commit/d7955b8196578306e9d86f6c61c9cb3ee72edab0 ---

[issue30764] regrtest: Add --fail-env-changed option

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: New changeset d7955b8196578306e9d86f6c61c9cb3ee72edab0 by Victor Stinner in branch '2.7': [2.7] bpo-29512, bpo-30764: Backport regrtest enhancements from 3.5 to 2.7 (#2541) https://github.com/python/cpython/commit/d7955b8196578306e9d86f6c61c9cb3ee72edab0 ---

[issue30834] Warning -- files was modified by test_import, After: ['@test_4852_tmp.pyc']

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce this bug on my Python 3.5 compiled in debug mode on Windows. I tried "./python -m test -v test_import", "./python -m test -R 3:3 test_import", and with more flags from the buildbot. I also tried to remove __pycache__ directories, it doe

[issue30804] bolen-dmg-3.x build-installer.py failed

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs

[issue30651] test_poplib.test_stls_context() access violation on x86 Windows7 3.6 buildbot

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Sadly, I only saw this crash once. I don't know how to reproduce it. I close the bug since I don't expect to see it next weeks... -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python t

[issue30649] test_utime_current_old() of test_os fails randomy on x86 Windows7 3.6

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed stage: -> resolved status: open -> closed versions: +Python 3.7 ___ Python tracker ___ _

[issue30371] test_long_lines() fails randomly on AMD64 Windows7 SP1 3.x

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Jeremy Kloth changed a memory stick on his physical server. I didn't see this bug recently, so I consider that the bug is fixed. Thank you Jeremy! -- resolution: -> fixed stage: -> resolved status: open -> closed

[issue30351] [2.7] regrtest hangs on Python 2.7 (test_threading?)

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: The main bug was fixed by the commit 7709b4d57b433ef027a2e7e63b4cab3fc9ad910d, so I now close this issue. I will open a new issue if I see new failures after the fix, like msg297037 (which only occurred once). -- resolution: -> fixed stage: -> resol

[issue30330] test_socket.test_idna(): socket.gaierror: [Errno 11001] getaddrinfo failed on AMD64 Windows10 3.6

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this failure recently, so I consider that it was a DNS failure which only occurred once :-/ -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2611 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2612 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/2543 confirms that the "make regen-all" test works, the CI fails with: Generated files not up to date M Include/Python-ast.h -- ___ Python tracker

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2017-07-03 Thread Andrew Donnellan
New submission from Andrew Donnellan: Parsing an email containing a multipart Content-Type, along with a Content-Transfer-Encoding containing an invalid (non-ASCII-decodable) byte will fail. email.feedparser.FeedParser._parsegen() calls "self._cur.get('content-transfer-encoding', '8bit')" to

[issue30259] Test somehow that generated files are up to date: run make regen-all

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: https://github.com/python/cpython/pull/2542 confirms that the "make clinic" test works, the CI fails with: Generated files not up to date M Modules/clinic/posixmodule.c.h M Modules/posixmodule.c -- I close the issue, thanks Zach for the automated tests!

[issue30835] AttributeError when parsing multipart email with invalid non-decodable Content-Transfer-Encoding

2017-07-03 Thread Andrew Donnellan
Changes by Andrew Donnellan : -- pull_requests: +2613 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue29512] regrtest refleak: implement bisection feature

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Ok! "python -m test.bisect" is now available in 2.7, 3.5, 3.6 and master branches ;-) -- ___ Python tracker ___ ___

[issue30836] test_c_locale_coercion fails on AIX

2017-07-03 Thread STINNER Victor
New submission from STINNER Victor: One example: http://buildbot.python.org/all/builders/PPC64%20AIX%203.x/builds/957/steps/test/logs/stdio 0:08:55 [ 91/406/2] test_c_locale_coercion failed -- running: test_importlib (41 sec) skipped 'No C-with-UTF-8 locale available' test_LC_ALL_set_to_C (tes

[issue30832] Remove own implementation for thread-local storage

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Well done, I didn't see any major outdage (compilation error) on 3.x buildbots ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker _

[issue30183] [HPUX] compilation error in pytime.c with cc compiler

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: @David Haney: Can you please give the list of tests which fail on HP-UX? I would like to have an idea of the status of the HP-UX support. -- ___ Python tracker ___

[issue30818] Warning -- asyncore.socket_map was modified by test_ftplib on AMD64 FreeBSD 10.x Shared 3.x

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Ok, let's say that it's now fixed ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue30726] [Windows] Warnings in elementtree due to new expat

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Segev Finer: Would you mind to backport PR 2375 to 3.6 and 3.5 branches? Maybe also to 2.7, at least in PCbuild, maybe also PC/VS9.0/. -- ___ Python tracker __

[issue30836] test_c_locale_coercion fails on AIX

2017-07-03 Thread Nick Coghlan
Nick Coghlan added the comment: This should be a fairly straightforward test-only fix: updating the start of https://github.com/python/cpython/blob/master/Lib/test/test_c_locale_coercion.py to set C_LOCALE_STREAM_ENCODING to 'iso8859-1' when "sys.platform.startswith('aix')". -- keywor

[issue30836] test_c_locale_coercion fails on AIX

2017-07-03 Thread Nick Coghlan
Nick Coghlan added the comment: I also belatedly checked your list at https://unicodebook.readthedocs.io/operating_systems.html#locale-encoding, and confirmed that AIX is the only anomalous case you'd previously identified (aside from the odd nominally-ASCII-but-not-really behaviour on FreeBSD

[issue26251] Use "Low-fragmentation Heap" memory allocator on Windows

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Steve: "We tried it at one point, but it made very little difference (...)" Ok. Can I close the issue? -- ___ Python tracker ___ __

[issue19325] _osx_support imports many modules

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> out of date ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue19325] _osx_support imports many modules

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: > FYI, issue29585 removes _osx_support dependency from site.py Done: Lib/site.py doesn't import _osx_support anymore. So I close this issue. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed

[issue29469] AST-level Constant folding

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In general the patch LGTM. I haven't found bugs. I think that at this stage we can asdl_ct.py and ast_opt.ct and use just their result, ast_opt.c (maybe rename to optimize.c?) The grammar is not often changed, and in that case it would be not hard to modify

[issue20669] OpenBSD: socket.recvmsg tests fail with OSError: [Errno 40] Message too long

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I'm sorry but I don't have OpenBSD, and there is no more OpenBSD buildbot, so I close this issue as out of date :-( We failed to find anyone to review the patch since 2 years. -- resolution: -> out of date stage: -> resolved status: open -> closed _

[issue29469] AST-level Constant folding

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Naoki: Can you please create a PR for your patch? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue30837] Mac OS High Sierra Beta - Python Crash

2017-07-03 Thread Joshua
New submission from Joshua: Process: Python [13106] Path: /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python Identifier:Python Version: 2.7.10 (2.7.10) Code Type: X86-64 (Native)

[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?)

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: Maybe the commit cdee3f14f7f4c995e7eedb0bf6a67e260c739f7d fixed test_subprocess on the x86 Windows7 3.x buildbot. -- ___ Python tracker ___ ___

[issue30758] regrtest hangs sometimes on the master branch (test_pydoc? test_subprocess?)

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: I have no idea for the test_pydoc bug, but it was only seen once. I close the issue, but I may reopen it if I see again these bugs. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python track

[issue30759] [2.7] Fix python2 -m test --list-cases test_multibytecodec_support test_robotparser

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2614 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30759] [2.7] Fix python2 -m test --list-cases test_multibytecodec_support test_robotparser

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2615 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue30759] [2.7] Fix python2 -m test --list-cases test_multibytecodec_support test_robotparser

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: For Lib/test/test_robotparser.py: with the current design of the test file, it's not easy to fix. I tried a different approach: copy the file from the match branch and adapt it for Python 2.7. See https://github.com/python/cpython/pull/2546 -- __

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread David Lord
New submission from David Lord: This came up while writing a regex to match characters that are valid in Python identifiers for Jinja. https://github.com/pallets/jinja/pull/731 `\w` matches all valid identifier characters except for 4 special cases: import unicodedata import re import sys cre

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread ThiefMaster
Changes by ThiefMaster : -- nosy: +ThiefMaster ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue30838] re \w does not match some valid Unicode characters

2017-07-03 Thread David Lord
David Lord added the comment: Adding `or ('a' + s).isidentifer()`, to catch valid id_continue characters, to the test in the previous script reveals many more characters that seem like valid word characters but aren't matched by `\w`. -- ___ Python

[issue30759] [2.7] Fix python2 -m test --list-cases test_multibytecodec_support test_robotparser

2017-07-03 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2616 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue30839] Larger and/or configurable _MAX_LENGTH for unittest messages

2017-07-03 Thread Maarten ter Huurne
New submission from Maarten ter Huurne: In a unit test for one of my projects I am comparing tree-structured objects using assertEqual(). Because there can be a few nested levels, the repr() string can exceed the _MAX_LENGTH which is just 80 characters. Not by much, but enough to get shortened

[issue29464] Specialize FASTCALL for functions with positional-only parameters

2017-07-03 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 6969eaf4682beb01bc95eeb14f5ce6c01312e297 by Serhiy Storchaka in branch 'master': bpo-29464: Rename METH_FASTCALL to METH_FASTCALL|METH_KEYWORDS and make (#1955) https://github.com/python/cpython/commit/6969eaf4682beb01bc95eeb14f5ce6c01312e297

[issue30837] Mac OS High Sierra Beta - Python Crash

2017-07-03 Thread Ned Deily
Ned Deily added the comment: Sorry, without more information, there is not much we can do about this. Can you supply a reproducible test case? In any case, the crash is from use of the Apple-supplied system Python 2.7.10 which is a few releases behind the most recent released upstream (2.7.1

[issue30840] Contrary to documentation, relative imports cannot pass through the top level

2017-07-03 Thread Malcolm Smith
New submission from Malcolm Smith: https://docs.python.org/3/reference/simple_stmts.html#the-import-statement defers the full specification of relative imports to PEP 328. PEP 328 gives the example "from ...sys import path" in a second-level package, and notes "while that last case is legal, i

  1   2   >