[issue30854] Compile error on Python/ceval.c without threads

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Thanks Masayuki Yamamoto for your fixes! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30854] Compile error on Python/ceval.c

2017-07-05 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review ___ Python tracker ___ ___

[issue10141] SocketCan support

2017-07-05 Thread Riccardo Magliocchetti
Riccardo Magliocchetti added the comment: I have an issue related to this while trying to compile statically Python 3.6.1 against a static musl. The problem is that i have AF_CAN defined because it's defined in linux/socket.h but by not having HAVE_LINUX_CAN_H defined in pyconfig.h the

[issue30854] Compile error on Python/ceval.c without threads

2017-07-05 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : -- pull_requests: +2654 ___ Python tracker ___ ___

[issue30855] test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Windows8%203.5/builds/323/steps/test/logs/stdio == ERROR: test_use (tkinter.test.test_tkinter.test_widgets.ToplevelTest)

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: In the selectors issue, we discussed how an application should prioritize "urgent" events: http://bugs.python.org/issue30844#msg297707 While I now agree that it's not the role of selectors to decide, I would like to discuss the plan for asyncio. Let's say

[issue30854] Compile error on Python/ceval.c without threads

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset e3a0ff0d76b9e7a994afa7f2c54b19a63f1bb57d by Victor Stinner (Masayuki Yamamoto) in branch '3.6': [3.6] bpo-30854: Fix compile error when --without-threads (GH-2581) (#2583)

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: This bug looks similar to issue25263. -- title: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5 -> [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Ok, this one is now fixed ;-) -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue30854] Compile error on Python/ceval.c without threads

2017-07-05 Thread STINNER Victor
Changes by STINNER Victor : -- title: Compile error on Python/ceval.c -> Compile error on Python/ceval.c without threads ___ Python tracker

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Can you please propose a PR for that Serhiy, please? Will do. -- ___ Python tracker ___

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2655 ___ Python tracker ___ ___

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread Pim Klanke
Pim Klanke added the comment: > "The selectors API returns a list of (key, events) tuples. So an application > has to iterate on this list twice?" No. "urgent data" means 'urgent' towards other events for thís key (key being the file object), not towards events for other file objects. AFAIK

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Pim Klanke: "(...) IMO there is no need to handle urgent data events of all file objects, before handling other events." Hum, ok. So no need to extend the selectors API for that. I also understand that it's better to let applications decide how to prioritize

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2b92cd3b16ba83aaaf11a91a19845ca6804663d9 by Victor Stinner (Serhiy Storchaka) in branch '2.7': bpo-30850: Use specialized assert methods in bsddb tests. (#2584) https://github.com/python/cpython/commit/2b92cd3b16ba83aaaf11a91a19845ca6804663d9

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: The compile step mentions Tk version 8.6.4.2: "tk-8.6.4.2 already exists, skipping." http://buildbot.python.org/all/builders/AMD64%20Windows8%203.5/builds/323/steps/compile/logs/stdio -- ___ Python tracker

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Steve Dower: "The approach used to suppress this warning will also suppress other warnings that might be fixable. Hard to say it's definitely a good thing in this case, though in general I agree that selectively suppressing warnings that cannot be fixed is a

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-05 Thread Pim Klanke
Changes by Pim Klanke : -- title: asyncio: selector_events: add_excepter(), 3rd argument of select.select() -> asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select() ___ Python tracker

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: > "urgent data", "High-priority data" How is an application supposed to handle these data? Read them before any other data? The selectors API returns a list of (key, events) tuples. So an application has to iterate on this list twice? A first time to look

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 668489a6d5a5b124aea35820ca90cb5e3b2b3ecd by Victor Stinner in branch '2.7': bpo-30759: Copy test_robotparser from master (#2546) https://github.com/python/cpython/commit/668489a6d5a5b124aea35820ca90cb5e3b2b3ecd --

[issue30703] Non-reentrant signal handler (test_multiprocessing_forkserver hangs)

2017-07-05 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : -- pull_requests: +2652 ___ Python tracker ___ ___

[issue30853] IDLE: configdialog -- factor out Variable subclass

2017-07-05 Thread Terry J. Reedy
New submission from Terry J. Reedy: configdialog.ConfigDialog creates about 20 tk Variables corresponding to configuration options. It defines a var_changed_xyz callback for each xyz variable. 6 have a common template. ConfigDialog turns tracing on in attach_var_callbacks and off in

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2650 ___ Python tracker ___ ___

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Antoine: FYI I abandonned my idea of ignoring errors on socket.shutdown(), since I agree with your rationale. An application may rely on shutdown() exception to trigger some events, and a socket can still be used after a shutdown(). --

[issue30843] [2.7] Lib/test/bisect.py conflicts with Lib/bisect.py when running tests

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: With the help of Nick Coghlan, I fixed regrtest.py to remove '' and Lib/test/ from sys.path, so multiprocessing should now pick Lib/bisect.py, and I was able to rename again Lib/test/bisectcmd.py to Lib/test/bisect.py. --

[issue30850] [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: "First at all replace self.assertTrue(time.time()

[issue30854] Compile error on Python/ceval.c

2017-07-05 Thread Masayuki Yamamoto
Changes by Masayuki Yamamoto : -- pull_requests: +2651 ___ Python tracker ___ ___

[issue30802] datetime.datetime.strptime('200722', '%Y%U')

2017-07-05 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: This case is explicitly mentioned in the documentation: https://docs.python.org/3/library/datetime.html#strftime-and-strptime-behavior > 7. When used with the strptime() method, %U and %W are only used in > calculations when the day of the week and the

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8767de2f776e0c8c7404680cdacad83e5d902955 by Victor Stinner in branch '2.7': bpo-30759: regrtest: list_cases() now unload modules (#2582) https://github.com/python/cpython/commit/8767de2f776e0c8c7404680cdacad83e5d902955 --

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

2017-07-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Victor :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing

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

2017-07-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___

[issue30854] Compile error on Python/ceval.c

2017-07-05 Thread Masayuki Yamamoto
New submission from Masayuki Yamamoto: I found a syntax error when compiling without threads. In that place, the colon has been used instead of semicolon at end of statement. build commands and error log: $ uname -a Linux masayuki-P35-DS3 4.4.0-83-generic #106-Ubuntu SMP Mon Jun 26 17:54:25 UTC

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

2017-07-05 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2653 ___ Python tracker ___ ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have came to the same conclusion. PR 2580 adds a double check in _bootstrap._find_and_load() (and also moves the locking into it). It also simplifies the C code by removing the fast path for the case sys.module[name] is None. -- stage: -> patch

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread Pim Klanke
Changes by Pim Klanke : -- title: selectors: Add exceptional conditions event -> selectors: Add urgent data to read event ___ Python tracker

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Hum, it still doesn't work. With my latest PR, "./python -m test --list-cases" now work on all tests of Python 2.7: https://github.com/python/cpython/pull/2582 -- ___ Python tracker

[issue30843] [2.7] Lib/test/bisect.py conflicts with Lib/bisect.py when running tests

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 3050987d85d7cf8cdd4b3c053e673d13cd8dfb12 by Victor Stinner in branch '2.7': bpo-30843: regrtest fixes sys.path, restore test.bisect (#2567) https://github.com/python/cpython/commit/3050987d85d7cf8cdd4b3c053e673d13cd8dfb12 --

[issue30854] Compile error on Python/ceval.c

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 0c3116309307ad2c7f8e2d2096612f4ab33cbb62 by Victor Stinner (Masayuki Yamamoto) in branch 'master': bpo-30854: Fix compile error when --without-threads (#2581) https://github.com/python/cpython/commit/0c3116309307ad2c7f8e2d2096612f4ab33cbb62

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: Comments on difficulties and questions. D1. I will look at test changes where there is a PR to run. I wrote what you changed, but might not have considered what you did. D2. Moot for the moment. D3. Ditto. D4. If not needed, skip for now. D5. I will be more

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2017-07-05 Thread Sergey Fedoseev
Changes by Sergey Fedoseev : -- components: +Library (Lib) ___ Python tracker ___

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 03b0e8374b2ea93adf8fb6a48db2916f3b0388cc by Serhiy Storchaka in branch '3.6': [3.6] bpo-30814: Fixed a race condition when import a submodule from a package. (GH-2580). (#2598)

[issue20042] Python Launcher, Windows, fails on scripts w/ non-latin names

2017-07-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> out of date stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset b4baacee1adc06edbe30ac7574d17a8cd168e2e0 by Serhiy Storchaka in branch 'master': bpo-30814: Fixed a race condition when import a submodule from a package. (#2580)

[issue30858] Keyword can't be an expression?

2017-07-05 Thread Vedran Čačić
Vedran Čačić added the comment: I agree it's more _correct_. But it's also more confusing. As far as I can tell, when writing error messages, we tend to minimize confusion, not maximize correctness. Of course, it would be great to have both. Your "keyword argument name" seems pretty good.

[issue30779] IDLE: configdialog -- factor out Changes class

2017-07-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: To get moving and unblock other issues, I decided to start with the simplest not-bad change that will work. The factored out code belongs in config.py. This will separate integration with ConfigDialog into 2 steps. 1. Add code and tests to config and

[issue30814] Import dotted name as alias breaks with concurrency

2017-07-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +2666 ___ Python tracker ___ ___

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: I reverted the change to repair buildbots and get more time to find a proper fix: https://github.com/python/cpython/pull/2588#issuecomment-313092304 -- ___ Python tracker

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

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Another solution -- disable "cpu" and "tzdata" resources on slow buildbots (see issue30417). -- ___ Python tracker

[issue30772] Normalise non-ASCII variable names in __all__

2017-07-05 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > I think that the names in __all__ should have the same NFKC normalisation > applied as the identifiers. Does it make sens to add to this issue : Ensure that all elements of __all__ are str ? (At least emit a warning ?) I have encounter a small number

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: > Another solution -- disable "cpu" and "tzdata" resources on slow buildbots > (see issue30417). I didn't read test_datetime. How test_datetime can spend 20 minutes to test timestamps? Does it spawn subprocesses? Why is it so slow? --

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset c48a000c74b48586742c4b7eb42bba93f15953a9 by Victor Stinner in branch '3.5': [3.5] bpo-30855: Trying to fix test_use on Windows. (#2585) https://github.com/python/cpython/commit/c48a000c74b48586742c4b7eb42bba93f15953a9 --

[issue29759] Deadlock in multiprocessing.pool.Pool on terminate

2017-07-05 Thread Michael
Michael added the comment: I found a couple of other cases when deadlock still occurs. 1. _help_stuff_finish may remove sentinels from the queue. Some of the workers will then never get a signal to terminate. 2. worker handler thread may be terminated too late, so it may spawn new workers

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: It seems like the test never fails on 3.6, while 3.6 contains the fix b9d672491d5082c541bf267eb7bb99fdc6529324. Let's try to backport this change to 3.5 and 2.7 branches. -- ___ Python tracker

[issue30849] test_stress_delivery_dependent() of test_signal randomly fails on AMD64 Debian root 3.6

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Another fail. The test pass when run again later. http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.6/builds/538/steps/test/logs/stdio == FAIL: test_stress_delivery_dependent

[issue30844] selectors: Add urgent data to read event

2017-07-05 Thread Pim Klanke
Pim Klanke added the comment: I'm confused about the wrapper method around winsock select and curious to why this is necessary. I have send an email to neologix to share some light on the subject. -- ___ Python tracker

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for backporting the fix. Seems I just forgot about this. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue6691] Support for nested classes and function for pyclbr

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 -- nosy: +haypo

[issue29293] Missing parameter "n" on multiprocessing.Condition.notify()

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 -- nosy: +haypo

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

[issue30553] Add HTTP Response code 421

2017-07-05 Thread Vitor Pereira
Changes by Vitor Pereira : -- pull_requests: +2659 ___ Python tracker ___ ___

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > Thank you for backporting the fix. Seems I just forgot about this. The bug wasn't notice before since test_tk fails once, but then pass when run again... It fails randomly. But I noticed a warning on a build, and so saw the

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

2017-07-05 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Why is it so slow? The tests enabled by "-utzdata" check UTC to local and back conversions at several points around *every* time transition in *every* timezone. On systems with a complete installation of IANA tzdata, this is a lot of test points.

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: How is this related to datetime module? I hope you didn't reverted too much? -- ___ Python tracker ___

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2656 ___ Python tracker ___ ___

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-16840. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue29759] Deadlock in multiprocessing.pool.Pool on terminate

2017-07-05 Thread Michael
Michael added the comment: If `task_handler._state = TERMINATE` is done before call to _help_stuff_finish(), then the following loop `while task_handler.is_alive() and inqueue._reader.poll()` in that function won't work as `is_alive()` will obviously return False. --

[issue30856] unittest.TestResult.addSubTest should be called immediately after subtest finishes

2017-07-05 Thread Sergey Fedoseev
New submission from Sergey Fedoseev: Currently TestResult.addSubTest() is called just before TestResult.stopTest(), but docs says that addSubTest is "Called when a subtest finishes". IMO that means that it will be called immediately after subtest finishes, but not after indefinite time. Test

[issue30553] Add HTTP Response code 421

2017-07-05 Thread Vitor Pereira
Vitor Pereira added the comment: I just submitted a PR, feel free to take a look. -- nosy: +vmsp ___ Python tracker ___

[issue30857] test_bsddb3 hangs longer than 37 minutes on x86 Tiger 2.7

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-30850 " [2.7] bsddb3: test01_basic_replication() of test_bsddb3 fails randomly on AMD64 Windows8.1 Refleaks 2.7 " and bpo-30778 " test_bsddb3 crash on x86 Windows XP 2.7 ". -- ___ Python tracker

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

2017-07-05 Thread Steve Dower
Steve Dower added the comment: I hope you notice I'm not against this particular change. I'm just voicing a general belief that suppressing an entire category of warnings for a whole project is not necessarily an improvement. In future, and when applied to our own project files, expect me to

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

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Two timezones (America/New_York and Asia/Tehran) are picked for testing independently from the -utzdata flag. -- ___ Python tracker

[issue30847] asyncio: selector_events: add_urgent() for urgent data to read, 3rd argument of select.select()

2017-07-05 Thread Guido van Rossum
Guido van Rossum added the comment: How do you define "urgent data"? Is this just the third category of select(), Read, Write, Exceptional? I don't know if that should be considered urgent, it's just "out of band" IIRC. -- ___ Python tracker

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

2017-07-05 Thread David Lord
David Lord added the comment: After thinking about it more, I guess I misunderstood what \w was doing compared to isidentifier. Since Python just relies on the Unicode database, there's not much to be done anyway. Closing this. For anyone interested, we ended up with a hybrid approach for

[issue30857] test_bsddb3 hangs longer than 37 minutes on x86 Tiger 2.7

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: On http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%202.7/builds/41/steps/test/logs/stdio test_bsddb3 is passed but takes more than 2 hours. It is the slowest test. -- nosy: +serhiy.storchaka

[issue12920] inspect.getsource only works for objects loaded from files, not interactive session

2017-07-05 Thread Vitor Pereira
Vitor Pereira added the comment: So, what would be the right approach here? Store the interactive session's input text in memory? -- nosy: +vmsp ___ Python tracker

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: I'm sorry for the spam. It was the first time that I really used the [Revert] button: even if the revert change is correct, the *commit message* is completely wrong :-/ https://mail.python.org/pipermail/python-committers/2017-July/004674.html --

[issue30789] Redesign PyCodeObject.co_extras to use a single memory block, instead of two

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: > How is this related to datetime module? I hope you didn't reverted too much? I'm sorry for the spam. It was the first time that I really used the [Revert] button: even if the revert change is correct, the *commit message* is completely wrong :-/

[issue30855] [3.5] test_tk: test_use() of test_tkinter.test_widgets randomly fails with "integer value too large to represent" on with AMD64 Windows8 3.5

2017-07-05 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2657 ___ Python tracker ___ ___

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

[issue30777] IDLE: configdialog -- add docstrings and improve comments

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 -- nosy: +haypo

[issue21624] Idle: Improve htests

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 -- nosy: +haypo

[issue30845] [3.5] test_first_completed_some_already_completed() of test_concurrent_futures.ProcessPoolWaitTests: time.sleep() fails with "sleep length must be non-negative" in setUp() on x86 Tiger 3.

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

[issue30832] Remove own implementation for thread-local storage

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

[issue30854] Compile error on Python/ceval.c without threads

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

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

2017-07-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 by Victor Stinner in branch 'master': Revert "bpo-30822: Fix testing of datetime module." (#2588) https://github.com/python/cpython/commit/8207c17486baece8ed0ac42d9f8d69ecec4ba7e4 --

[issue30857] test_bsddb3 hangs longer than 37 minutes on x86 Tiger 2.7

2017-07-05 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/x86%20Tiger%202.7/builds/227/steps/test/logs/stdio ... running: test_bsddb3 (2204 sec), test_itertools (30 sec) 0:50:54 [394/403] test_itertools passed (42 sec) -- running: test_bsddb3 (2217 sec) 0:51:00 [395/403]

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

2017-07-05 Thread R. David Murray
R. David Murray added the comment: There's a deeper problem here involving how Header is used in compat32 that I've been aware of for a while but haven't had time to try to think through a fix for (there may not be one, given the history of the compat32 code). In the meantime, the proposed

[issue30858] Keyword can't be an expression?

2017-07-05 Thread Vedran Čačić
New submission from Vedran Čačić: Look at this (from https://www.quora.com/Is-end1-a-keyword-in-Python-3-6-1): print(end1 + end2 + end3 + end4 + end5 + end6 + end=' ') ^ SyntaxError: keyword can't be an expression Wouldn't it be better if the message said "keyword for an argument must

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

2017-07-05 Thread Matthew Barnett
Matthew Barnett added the comment: Python identifiers match the regex: [_\p{XID_Start}]\p{XID_Continue}* The standard re module doesn't support \p{...}, but the third-party "regex" module does. -- ___ Python tracker

[issue30828] Out of bounds write in _asyncio_Future_remove_done_callback

2017-07-05 Thread Yury Selivanov
Changes by Yury Selivanov : -- pull_requests: +2660 ___ Python tracker ___ ___

[issue30828] Out of bounds write in _asyncio_Future_remove_done_callback

2017-07-05 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 833a3b0d3707200daeaccdd218e8f18a190284aa by Yury Selivanov in branch 'master': bpo-30828: Fix out of bounds write in `asyncio.CFuture.remove_done_callback() (#2569)

[issue30828] Out of bounds write in _asyncio_Future_remove_done_callback

2017-07-05 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset aaa4f991518611d101fba1ef3ecb18d7b385ad5b by Yury Selivanov in branch '3.6': [3.6] bpo-30828: Fix out of bounds write in `asyncio.CFuture.remove_done_callback() (GH-2569) (#2590)

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

2017-07-05 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> docs@python components: +Documentation nosy: +brett.cannon, docs@python, eric.snow, ncoghlan versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue30860] Consolidate stateful C globals under a single struct.

2017-07-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue29881. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue23835] configparser does not convert defaults to strings

2017-07-05 Thread R. David Murray
R. David Murray added the comment: I'm guessing we can only do something here in 3.7, for backward compatibility reasons, but maybe I'm wrong. Hopefully Lukasz will notice the activity on the issue and have time to take a look. -- nosy: +r.david.murray versions: +Python 3.6, Python

[issue10141] SocketCan support

2017-07-05 Thread R. David Murray
R. David Murray added the comment: This issue is closed. Please open a new issue for your problem and proposal. -- nosy: +r.david.murray ___ Python tracker

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

2017-07-05 Thread Martin Panter
Martin Panter added the comment: Thanks for handling this Victor. To answer some of your earlier questions, this is my understanding of the Free BSD behaviour (although I don't have Free BSD to experiment with): When writing to TCP sockets, I believe the data is buffered by the local OS (as

[issue30861] StreamReader does not return reamaing and ready data buffer before raise the Exeption

2017-07-05 Thread pfreixes
pfreixes added the comment: One of the disadvantages with the Exception is that you are relying on how the events are being succeeded, and this is something that you can't predict. With just a different delay between the data and the RST packet and you might get the data in two different ways,

  1   2   >