[issue31030] sys.executable can be not normalized

2017-07-28 Thread Eryk Sun
Eryk Sun added the comment: Terry, the Windows implementation calls GetModuleFileNameW to get the executable's fully-qualified path from the loader. However, depending on how Python is started, this could be a \\?\ path, which leads to a bug in the startup code that determines the prefix path

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 8364feff6730f54063116b607605167d9027ce85 by Terry Jan Reedy in branch '3.6': [3.6] bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (GH-2938) (#2944) https://github.com/python/cpython/commit/8364feff6730f54063116b607605167d9027ce85 --

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 'this' in 'this is a usability bug' refers to the fact that up and down move the blue selection highlight but not the selection, so that delete does not necessarily delete what appears to be selected. -- ___

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2993 ___ Python tracker ___ ___

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset b331f80b4765c3201674a7ca8b35c9d4a65efe79 by Terry Jan Reedy in branch 'master': bpo-30781: IDLE - Use ttk Notebook in ConfigDialog (#2938) https://github.com/python/cpython/commit/b331f80b4765c3201674a7ca8b35c9d4a65efe79 --

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-28 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2992 ___ Python tracker ___

[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will push Notebook when CI passes. We can then do Step 2 for class FontPage(Frame). Consider the font code frozen for now. Pass 'note', not the dialog, as the parent. This makes tab switching work better. Create the highlight frame first and pass it as

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I did not try to match the height in that commit. I wanted to see what would happen if we enlarge the dialog to accommodate more widgets. It is now about 10% larger. The highlight sample looks better with a bit more room. The font sample works better in

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Steve Dower
Steve Dower added the comment: The embeddable ZIP is not an "install" - it's a tool for including in your own application. Run the actual installer and try again, or use the package on nuget.org if you need to achieve zero system impact (which it sounds like you don't if you're modifying

[issue31054] Python 2.7.8 Release does not update the system Path variable

2017-07-28 Thread Steve Dower
Steve Dower added the comment: Correct. This is already in newer installers. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue31054] Python 2.7.8 Release does not update the system Path variable

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: We are guessing that you are using Windows. The 2.7.8 installer is years old and will not be changed. The same is true for any released installer. I believe that the 2.7 installers already give one the *option* to change the path. If so, this issue should

[issue31045] Add a language switch to the Python documentation

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: I left out 2.7 because I don't know if the 2.7 docs have been or will be included. I am looking forward to this because I know someone who programs in Python and is also looking to learn 'professional' Japanese, including CS. I myself might try the

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

2017-07-28 Thread Matheus Vieira Portela
Matheus Vieira Portela added the comment: Agreed that we should attain to ISO 8601, as it solves two questions that occurred in this thread: - According to the specification, it is clear that a week must start on Monday and end on Sunday. Hence datetime.strptime('201726', '%Y%U') could be

[issue31042] Inconsistency in documentation of operator.index

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: To me, 'roughly' is wrong. Either the equivalence is exact, or it is completely absent . There is no 'nearly' or 'roughly' about this situation. This is difference from iterator_class_x(args) being mathematically equivalent to generator_function_y(args) in

[issue31027] test_listcomps fails when run directly

2017-07-28 Thread Zackery Spytz
Changes by Zackery Spytz : -- pull_requests: +2991 ___ Python tracker ___ ___

[issue31030] sys.executable can be not normalized

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, sys.executable is normalized before or during startup. C:\Programs\Python36>Lib\..\python -m test test_sys prints test_executable (__main__.SysModuleTest) ... ok C:\Programs\Python36>Lib\..\python -c "import sys; print(sys.executable)"

[issue31027] test_listcomps fails when run directly

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, fresh 3.7, python -m test.test_listcomps fails same way. python -m test test_listcomps is okay. -- nosy: +terry.reedy ___ Python tracker

[issue31026] test_dbm fails when run directly

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: OK on Windows, skipping test_whichdb_ndbm (neither _dbm nor _gdbm are present.) -- nosy: +terry.reedy ___ Python tracker

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: Looks good under Ubuntu. The height of the window is longer, so everything is a bit stretched out. That helps on the Keys tab, but not so much on Highlights or Extensions. It's not awful, but there's unneeded (for now?) empty space. One thing that's

[issue28734] argparse: successive parsing wipes out nargs=? values

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New PR replaces the custom TabbedPageSet with ttk.Notebook. On Windows, with default settings, the look is nearly identical, but the selected tab is more obvious. A method call (note.enable_traversal) will enable navigation between tabs with cntl-tab and

[issue30781] IDLE: configdialog -- switch to ttk widgets.

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2990 ___ Python tracker ___ ___

[issue30853] IDLE: configdialog -- factor out VarTrace class

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: IDLE: configdialog -- factor out Tracer subclass -> IDLE: configdialog -- factor out VarTrace class ___ Python tracker

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

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

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

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset ecc80b3f1b56f1e4df9e592f8527e622a6b45e01 by Terry Jan Reedy in branch '3.6': [3.6] bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (GH-2936) (#2937) https://github.com/python/cpython/commit/ecc80b3f1b56f1e4df9e592f8527e622a6b45e01

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

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2989 ___ Python tracker ___ ___

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

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5d0f30aae5fccc99690923fc5c7cb58de8ad7eec by Terry Jan Reedy in branch 'master': bpo-30853: IDLE - touch-up configdialog.VarTrace and tests. (#2936) https://github.com/python/cpython/commit/5d0f30aae5fccc99690923fc5c7cb58de8ad7eec --

[issue30788] email.policy.SMTP.fold() issue for long filenames with spaces

2017-07-28 Thread Joel Hillacre
Joel Hillacre added the comment: Just wanted to ping this and see if there was someone available to review my PR associated with this issue. -- ___ Python tracker

[issue31073] Change metadata handling in check command

2017-07-28 Thread Andrew Pinkham
New submission from Andrew Pinkham: The new warehouse uses the author_email field to create a mailto link. Donald Stufft recommended leaving out the author_email field while still specifying the author field should a maintainer wish to have their name associated without their email.

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I understand your comments. I will be at computer that has not ever had Python installed in about an hour and will try it there to see if I can produce an example showing the issue. I just found it weird that Python 3.5.2 worked just fine in the same

[issue28053] parameterize what serialization is used in multiprocessing

2017-07-28 Thread Will S
Will S added the comment: Just to follow up in case anyone comes across my last message later: I just had to change the last line from multiprocessing.reducer = pickle2reducer.Pickle2Reducer() to multiprocessing.context._default_context.reducer = pickle2reducer.Pickle2Reducer() --

[issue31006] typing.NamedTuple should add annotations to its constructor (__new__) parameters.

2017-07-28 Thread Antony Lee
Antony Lee added the comment: I'll just repost the issue there for now (https://github.com/python/typing/issues/454). May work on a patch at some point (looks relatively simple) but no guarantees, so if someone else wants to take over feel free to do so. --

[issue30992] Invalid PGP Key Prevents Archive Validation

2017-07-28 Thread Ned Deily
Ned Deily added the comment: P.S., the pubkeys.txt file on python.org and the "OpenPGP Public Keys" section of https://www.python.org/downloads/ have now been updated. -- ___ Python tracker

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

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: IDLE *will* fail if idleConf.SetOption is called with a wrong config-type (KeyError) or the wrong number of other arguments (TypeError). I did not add the check because it does not cover the non-default callbacks (the majority), let alone all the other

[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: When replying by email, snip the quote. -- ___ Python tracker ___ ___

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Paul Moore
Paul Moore added the comment: OK, so the problem is that no-one here (or as far as I can see on the SO discussion, either) can reproduce your issue. So we have to assume that it's something wrong with your environment, and not a Python issue. If you can produce an example that allows us to

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

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 02f88d2a411a6a789b33be281adfc3570c49efd5 by Terry Jan Reedy in branch '3.6': [3.6] bpo-30853: IDLE: Convert font and general vars to use VarTrace (GH-2914) (#2935) https://github.com/python/cpython/commit/02f88d2a411a6a789b33be281adfc3570c49efd5

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

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2988 ___ Python tracker ___ ___

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-07-28 Thread Yury Selivanov
Yury Selivanov added the comment: Thank you for trying to get to the bottom of this! -- ___ Python tracker ___

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-07-28 Thread Alexander Mohr
Alexander Mohr added the comment: the problem with this crash is that it only happens periodically in our prod environment :( If I try running the exact same docker container with the same inputs locally it doesn't reproduce, so frustrating. I've created a whole workflow now for deploying

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Joey DiGiorgio
Joey DiGiorgio added the comment: I will mark the question appropriately as python3. I don't fully understand your comment about venv. If you mean virtual environment or something, that is not the case. I am running an a standard Windows 7 install with Python3 as the only Python install on

[issue26732] multiprocessing sentinel resource leak

2017-07-28 Thread Steve Holden
Steve Holden added the comment: IIRC sockets can be marked as inheritable or not. It seems to me it would be a useful enhancement to allow the same determination for the pipes. -- nosy: +holdenweb ___ Python tracker

[issue31072] add filter to zipapp

2017-07-28 Thread Paul Moore
Paul Moore added the comment: Yes, they can be. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-07-28 Thread Yury Selivanov
Yury Selivanov added the comment: > so looks like disabling the _asyncio module just caused the crash to happen > less often, closing and will continue investigating after a get a core file Interesting. So it crashes even with pure Python Future/Task implementations? Another idea to debug

[issue31061] asyncio segfault when using threadpool and "_asyncio" native module

2017-07-28 Thread Alexander Mohr
Alexander Mohr added the comment: so looks like disabling the _asyncio module just caused the crash to happen less often, closing and will continue investigating after a get a core file -- stage: -> resolved status: open -> closed ___ Python

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

2017-07-28 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- pull_requests: +2987 ___ Python tracker ___ ___

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

2017-07-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: New changeset 5b59154c0d3d91c0766b9177f6b737b1abcbf3f6 by Terry Jan Reedy (csabella) in branch 'master': bpo-30853: IDLE: Convert font and general vars to use VarTrace (#2914) https://github.com/python/cpython/commit/5b59154c0d3d91c0766b9177f6b737b1abcbf3f6

[issue26732] multiprocessing sentinel resource leak

2017-07-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Kevin: > Regarding your comment regarding the behavior being expected with the "fork" > method, I would suggest a documentation modification in the description of > the fork method to add something to the effect of "All resources of the > parent are

[issue26732] multiprocessing sentinel resource leak

2017-07-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Victor, you can try to backport the fix, it should be interesting, though I suspect you will run into conflicts :-) -- ___ Python tracker

[issue31072] add filter to zipapp

2017-07-28 Thread Irmen de Jong
Irmen de Jong added the comment: That sounds fine to me. I guess the paths passed to the function should be relative to the root folder being zipped? -- ___ Python tracker

[issue1222585] C++ compilation support for distutils

2017-07-28 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman : -- nosy: -djc ___ Python tracker ___ ___ Python-bugs-list

[issue31056] Import Module Not Working According To Documentation Python 3.6.2

2017-07-28 Thread Brett Cannon
Brett Cannon added the comment: I also can't reproduce on Python 3.6 on Windows 10, so I'm closing this. Looking at your SO question I noticed you didn't specify `python3` but `python` which suggests a venv, so I'm wondering if that's mucking with things? You also don't need to add

[issue30992] Invalid PGP Key Prevents Archive Validation

2017-07-28 Thread Ned Deily
Ned Deily added the comment: Thanks for the report. I have opened https://github.com/python/pythondotorg/pull/1109 to remove the obsolete MD5 key from the pubkeys file. Until the updated file is deployed and the website page updated, another workaround may be to use the

[issue31004] IDLE, configdialog: Factor out FontTab class from ConfigDialog

2017-07-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: OK, once 30853 is merged, I'll recopy the font code into the class. On Fri, Jul 28, 2017 at 2:06 AM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > For steps 2 and 3, setUpClass will have to create or retrieve a

[issue31006] typing.NamedTuple should add annotations to its constructor (__new__) parameters.

2017-07-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: This looks like a reasonable idea, if it is possible to implement this without complications. Would you like to submit a PR at https://github.com/python/typing ? (We have a separate upstream repo for typing while it is provisional.) -- nosy:

[issue31024] typing.Tuple is class but is defined as data inside https://docs.python.org/3.6/objects.inv

2017-07-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: The fact that it is a class is an implementation detail and may change before Python 3.7 beta (situation is the same for Callable). Guido explicitly doesn't like to "advertise" it as a class yet. Unless he changed his mind, I would propose to close the

[issue31071] *args unpacking can mask TypeErrors

2017-07-28 Thread R. David Murray
R. David Murray added the comment: Thanks for the report. Retitling because this has nothing to do with map: >>> def foo(*args): ... raise TypeError('fake') ... yield 1 ... >>> foo(1, *foo()) Traceback (most recent call last): File "", line 1, in TypeError: foo() argument after *

[issue31072] add filter to zipapp

2017-07-28 Thread Paul Moore
Paul Moore added the comment: I'd propose an extra argument to zipapp.create_archive, include_file=None (feel free to bikeshed on the name). If the argument is not None, then it should be a callable which will be called with a pathlib.Path object for each file that's selected for inclusion in

[issue31072] add filter to zipapp

2017-07-28 Thread Irmen de Jong
New submission from Irmen de Jong: As briefly discussed on comp.lang.python, I propose to add an optional filter callback function to zipapp.create_archive. The function could perhaps work like the os.walk generator or maybe just lets you to return a simple boolean for every folder/file that

[issue31065] Documentation for Popen.poll is unclear

2017-07-28 Thread R. David Murray
R. David Murray added the comment: Agreed. Explicit is good. -- ___ Python tracker ___ ___ Python-bugs-list

[issue30581] os.cpu_count() returns wrong number of processors on system with > 64 logical processors

2017-07-28 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2986 ___ Python tracker ___

[issue31058] FileFinder fails to find modules for import if modules are created at runtime and don't result in a directory mtime update

2017-07-28 Thread Paul Goins
Paul Goins added the comment: Ack; missed that. Thanks, and sorry for the noise. -- ___ Python tracker ___

[issue31022] ERROR: testRegularFile (test.test_socket.SendfileUsingSendTest) random failure on AppVeyor

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: I tried to reproduce the bug on my Windows 8.1 VM. I ran the test more than 1,000 times. In parallel, I ran "python -m test -j0 -rW" to increase the system load, but it wasn't enough to reproduce the bug. -- ___

[issue29654] SimpleHTTPRequestHandler should support browser cache

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: FYI there was a race condition, impacting Windows. I just fixed it: bpo-31066, commit 28ce07ae9e34c70eea6b52515c7e1cefd41e. -- nosy: +haypo ___ Python tracker

[issue31066] FAIL: test_last_modified (test.test_httpservers.SimpleHTTPServerTestCase), on AMD64 Windows8.1 Non-Debug 3.x

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

[issue31066] FAIL: test_last_modified (test.test_httpservers.SimpleHTTPServerTestCase), on AMD64 Windows8.1 Non-Debug 3.x

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 28ce07ae9e34c70eea6b52515c7e1cefd41e by Victor Stinner in branch 'master': bpo-31066: Fix test_httpservers.test_last_modified() (#2933) https://github.com/python/cpython/commit/28ce07ae9e34c70eea6b52515c7e1cefd41e --

[issue31071] Bad error message about maps not iterable

2017-07-28 Thread Stefan Pochmann
New submission from Stefan Pochmann: Python 3.6 makes it sound like maps aren't iterable: >>> map(str, *map(int, [[]])) Traceback (most recent call last): File "", line 1, in map(str, *map(int, [[]])) TypeError: type object argument after * must be an iterable, not map More,

[issue1222585] C++ compilation support for distutils

2017-07-28 Thread Josef Kemetmüller
Josef Kemetmüller added the comment: python-3.4-distutils-C++.patch with Erik Hvatum's suggestions applied. -- Added file: http://bugs.python.org/file47046/python-3.x-distutils-C++.patch ___ Python tracker

[issue31067] test_subprocess.test_leak_fast_process_del_killed() fails randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset cc42c121eb5346f673247f95dac575aadb77d66c by Victor Stinner in branch 'master': bpo-31067: test_subprocess calls reap_children() (#2931) https://github.com/python/cpython/commit/cc42c121eb5346f673247f95dac575aadb77d66c --

[issue31066] FAIL: test_last_modified (test.test_httpservers.SimpleHTTPServerTestCase), on AMD64 Windows8.1 Non-Debug 3.x

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: I can reproduce the failure if I insert time.sleep(1) after os.fstat(). Attached PR should fix the race condition. -- ___ Python tracker

[issue31066] FAIL: test_last_modified (test.test_httpservers.SimpleHTTPServerTestCase), on AMD64 Windows8.1 Non-Debug 3.x

2017-07-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2985 ___ Python tracker ___ ___

[issue31041] test_handle_called_with_mp_queue() of test_logging: threading_cleanup() failed to cleanup, on AMD64 FreeBSD 10.x Shared 3.x

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: I ran "./python -m test -v test_logging --fail-env-changed -F" in 3 terminals on the FreeBSD 10 buildbot, and I failed to reproduce the bug. I ran my test for 5 minutes. Maybe threading_cleanup() should call support.gc_collect(). --

[issue29070] Integration tests for pty.spawn on Linux and all other platforms

2017-07-28 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2983 ___ Python tracker ___

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x

2017-07-28 Thread Roundup Robot
Changes by Roundup Robot : -- pull_requests: +2984 ___ Python tracker ___

[issue31065] Documentation for Popen.poll is unclear

2017-07-28 Thread Mark Dickinson
Mark Dickinson added the comment: > I don't there's I don't *think* there's ... Stupid fingers. -- ___ Python tracker ___

[issue31065] Documentation for Popen.poll is unclear

2017-07-28 Thread Mark Dickinson
Mark Dickinson added the comment: Right, after following the source, I realise that `poll` is indeed returning `self.returncode` in all cases, and if the process hasn't terminated yet then `self.returncode` is still at its initial value of `None`. I can think of other ways that the result

[issue1222585] C++ compilation support for distutils

2017-07-28 Thread Josef Kemetmüller
Josef Kemetmüller added the comment: python-3.4-distutils-C++.patch with changes of Erik Hvatum applied. -- nosy: +Josef Kemetmüller Added file: http://bugs.python.org/file47045/python-3.x-distutils-C++.patch ___ Python tracker

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > My concern is that it makes timestamp parsing more complex To the contrary. The timezone field can now be parsed the same way as the time field plus the sign. -- ___ Python tracker

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: > I did add a few lines of code to support subsecond formatting, but at some > point we should be able to unify timedelta and timezone formatting. My concern is that it makes timestamp parsing more complex because we would have to handle the theorical case of

[issue31070] test_threaded_import: KeyError ignored in _get_module_lock..cb on AMD64 Windows8.1 Refleaks 3.x

2017-07-28 Thread STINNER Victor
New submission from STINNER Victor: See bpo-bpo-30891 and bpo-30876 for recent changes in importlib. http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.x/builds/57/steps/test/logs/stdio 1:33:30 [312/406/2] test_threaded_import passed (30 sec) -- running: test_decimal

[issue31069] test_multiprocessing_spawn leaked a process on AMD64 Windows8.1 Refleaks 3.x

2017-07-28 Thread STINNER Victor
New submission from STINNER Victor: It's just a warning, but later I would like to make a buildbot fail on such warnings, so I would like to first fix all these warnings. http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.x/builds/59/steps/test/logs/stdio 0:46:17

[issue31068] test_ttk_guionly hangs on AMD64 Windows8.1 Refleaks 2.7

2017-07-28 Thread STINNER Victor
New submission from STINNER Victor: Builds: * 52: build interrupted after 132 hours * 53: test_ttk_guionly passed * 54: test_ttk_guionly passed * 55: build interrupted after 14 hours Example:

[issue31067] test_subprocess.test_leak_fast_process_del_killed() fails randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-07-28 Thread STINNER Victor
Changes by STINNER Victor : -- pull_requests: +2982 ___ Python tracker ___ ___

[issue31067] test_subprocess.test_leak_fast_process_del_killed() fails randomly on AMD64 FreeBSD 10.x Shared 3.6

2017-07-28 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%2010.x%20Shared%203.6/builds/355/steps/test/logs/stdio == FAIL: test_leak_fast_process_del_killed

[issue5288] tzinfo objects with sub-minute offsets are not supported (e.g. UTC+05:53:28)

2017-07-28 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Victor, Tim called for removal of all restrictions on the offsets. See msg248468. I left the range restriction intact because we have some algorithms that rely on that, but in general I agree with Tim. There is nothing to be gained from restricting

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

2017-07-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: "Either *add* or *make_callback* could check len = 3 and callback[0] in idleConf.config_types, with a test added." I didn't add this because I wasn't sure what you wanted to happen if it wasn't right. I suspect it should fail gracefully (not break IDLE), but

[issue31065] Documentation for Popen.poll is unclear

2017-07-28 Thread R. David Murray
R. David Murray added the comment: Yes we can add "otherwise return None". However it is pretty clear as is, since "poll" implies an immediate return, and if there's no return code to return, the logical value in Python to get back is None :) -- nosy: +r.david.murray

[issue31057] pydoc for tempfile.TemporaryDirectory should say it returns the name

2017-07-28 Thread R. David Murray
R. David Murray added the comment: Boy, I wasn't thinking very clearly when I wrote that. As pointed out on the PR, tempfile.TemporaryDirectory of course returns a TemporaryDirectory object. That's in the nature of Python. I was reading so poorly that I didn't even notice it was the

[issue31066] FAIL: test_last_modified (test.test_httpservers.SimpleHTTPServerTestCase), on AMD64 Windows8.1 Non-Debug 3.x

2017-07-28 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Non-Debug%203.x/builds/985/steps/test/logs/stdio == FAIL: test_last_modified (test.test_httpservers.SimpleHTTPServerTestCase)

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8e45318b0d8df9340ac41b1d0447ffc83c7f5102 by Victor Stinner (Utkarsh Upadhyay) in branch 'master': bpo-30302: Update WhatsNew and documentation. (#2929) https://github.com/python/cpython/commit/8e45318b0d8df9340ac41b1d0447ffc83c7f5102 --

[issue29585] site.py imports relatively large `sysconfig` module.

2017-07-28 Thread INADA Naoki
Changes by INADA Naoki : -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-07-28 Thread INADA Naoki
INADA Naoki added the comment: New changeset ba9ddb7eea39a651ba7f1ab3eb012e4129c03620 by INADA Naoki in branch 'master': bpo-29585: fix test fail on macOS Framework build (GH-2928) https://github.com/python/cpython/commit/ba9ddb7eea39a651ba7f1ab3eb012e4129c03620 --

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

2017-07-28 Thread Cheryl Sabella
Cheryl Sabella added the comment: Instead 'hackish', maybe I should have used 'magic'. The overloading just wasn't obvious to me, meaning I have: self.font_bold = tracers.add(BooleanVar(parent), self.var_changed_font) self.space_num = tracers.add(IntVar(parent), ('main', 'Indent',

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-28 Thread Utkarsh Upadhyay
Utkarsh Upadhyay added the comment: Thanks for the merge haypo! \o/ I've also created a PR for adding an entry to 'Porting to Python 3.7' in the documentation; I see no harm in including it in the documentation just-in-case. -- ___ Python tracker

[issue30302] Improve .__repr__ implementation for datetime.timedelta

2017-07-28 Thread Utkarsh Upadhyay
Changes by Utkarsh Upadhyay : -- pull_requests: +2981 ___ Python tracker ___ ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-07-28 Thread INADA Naoki
Changes by INADA Naoki : -- pull_requests: +2980 ___ Python tracker ___ ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-07-28 Thread INADA Naoki
INADA Naoki added the comment: https://github.com/python/cpython/pull/136/files -if sys.platform == 'darwin': -from sysconfig import get_config_var -if get_config_var('PYTHONFRAMEWORK'): -USER_SITE = get_path('purelib', 'osx_framework_user') -

[issue29585] site.py imports relatively large `sysconfig` module.

2017-07-28 Thread INADA Naoki
INADA Naoki added the comment: https://docs.python.org/3.6/library/site.html#site.USER_SITE > ~/Library/Python/X.Y/lib/python/site-packages for Mac framework builds So it seems I broke sysconfig.get_path('purelib', 'posix_user'). -- ___ Python

[issue31065] Documentation for Popen.poll is unclear

2017-07-28 Thread Mark Dickinson
Changes by Mark Dickinson : -- keywords: +easy ___ Python tracker ___ ___

[issue31065] Documentation for Popen.poll is unclear

2017-07-28 Thread Mark Dickinson
New submission from Mark Dickinson: The documentation for Popen.poll says: > Check if child process has terminated. Set and return returncode attribute. This requires the reader to guess that if the child process has not terminated, the call returns immediately, with a return value of

  1   2   >