[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- keywords: +patch pull_requests: +5220 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue32687] wrong meaning of arg in Py_tracefunc doc

2018-01-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 854f0424de389f023b375dfd0b50c34dea29e8f8 by Xiang Zhang (Miss Islington (bot)) in branch '3.6': bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (GH-5361) (GH-5377) https://github.com/python/cpython/commit/854f0424de389f0

[issue32687] wrong meaning of arg in Py_tracefunc doc

2018-01-28 Thread Xiang Zhang
Xiang Zhang added the comment: New changeset 745e9de7dd9d237d54e92d6e4b469e916fb0352b by Xiang Zhang (Miss Islington (bot)) in branch '2.7': bpo-32687: Fix wrong meaning of args for PyTrace_LINE/CALL in documentation (GH-5361) (GH-5378) https://github.com/python/cpython/commit/745e9de7dd9d237

[issue32687] wrong meaning of arg in Py_tracefunc doc

2018-01-28 Thread Xiang Zhang
Change by Xiang Zhang : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Py

[issue32692] test_threading.test_set_and_clear fails in AppVeyor CI

2018-01-28 Thread Xiang Zhang
New submission from Xiang Zhang : test_threading.test_set_and_clear fails in AppVeyor CI. But seems it not stable since rerun succeeds. See https://ci.appveyor.com/project/python/cpython/build/3.6build11314/job/ussor83yaglx5whb. FAIL: test_set_and_clear (test.test_threading.EventTests) ---

[issue32649] complete C API doc debug and profile part with new PyTrace_OPCODE

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 255f7a26da47ca6b7bd1d375b8a04920f68c119c by Nick Coghlan (Xiang Zhang) in branch 'master': bpo-32649: Add C API docs for per-opcode tracing & profiling (GH-5360) https://github.com/python/cpython/commit/255f7a26da47ca6b7bd1d375b8a04920f68c119c --

[issue32649] complete C API doc debug and profile part with new PyTrace_OPCODE

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: Merged, thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> enhancement ___ Python tracker ___ ___

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread David Beazley
David Beazley added the comment: Some context: I noticed this while discussing (in a course) a programming trick involving instance initialization and locals() that I'd encountered in the past: def _init(locs): self = locs.pop('self') for name, val in locs.items():

[issue32685] Erroneous suggestion in print statement

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset 43c0f1ac5ed8bc9c3bd048d2ce4de4c98a83de99 by Nick Coghlan (Nitish Chandra) in branch 'master': bpo-32685: Improve suggestion for print statement (GH-5375) https://github.com/python/cpython/commit/43c0f1ac5ed8bc9c3bd048d2ce4de4c98a83de99 --

[issue32685] Erroneous suggestion in print statement

2018-01-28 Thread Nick Coghlan
Change by Nick Coghlan : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue32685] Erroneous suggestion in print statement

2018-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5221 stage: backport needed -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue29120] Move hash randomisation initialisation out of Python/random.c

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, but the reason they're here rather than in the os module where you might otherwise expect to find them is because the hash randomization bootstrapping needs them. -- ___ Python tracker

[issue32693] os.path.ismount does not accept bytes objects

2018-01-28 Thread Nikolay Aleksandrovich Pavlov
New submission from Nikolay Aleksandrovich Pavlov : According to the documentation it ought to accept any path-like object, but actually throws for bytes ones. The trace of logic is the following: 1. ismount() from Lib/ntpath.py is using `os.fpath` which may return either bytes or str: https:

[issue32685] Erroneous suggestion in print statement

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: New changeset b3b4b81d0147534151941105eba4af984acdc763 by Nick Coghlan (Miss Islington (bot)) in branch '3.6': bpo-32685: Improve suggestion for print statement (GH-5380) https://github.com/python/cpython/commit/b3b4b81d0147534151941105eba4af984acdc763 ---

[issue32685] Erroneous suggestion in print statement

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: Thanks for the patches, Sanyam & Nitish, and for the original bug report Mayank. Thanks also to Cheryl for nudging us to get it resolved :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2018-01-28 Thread Ofer
Ofer added the comment: Perhaps this is a problem for a different issue, but pickling custom exceptions fails when the exception gets more than one argument: import pickle class MultipleArgumentsError(Exception): def __init__(self, a, b): self.a = a self.b = b Excep

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2018-01-28 Thread Andreas Schwab
Andreas Schwab added the comment: > The technical issue here is that the libc has no "stateless" function to > process bytes and text with one specific locale. That's not true. There is a rich set of *_l functions that take a locale_t object and operate on that locale. -- nosy: +sch

[issue32545] Unable to install Python 3.7.0a4 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2018-01-28 Thread Steve Dower
Steve Dower added the comment: >From the log file, all I can tell is that it failed to open the file >containing information about ongoing installs. At a guess, another install was >running (maybe failed?) and didn't clean up properly. Rebooting should generally resolve that. If it doesn't, y

[issue32611] Tkinter taskbar icon (Windows)

2018-01-28 Thread Steve Dower
Steve Dower added the comment: To fix this, we need to make Idle its own .exe file with an AppId and properly registered icon. Right now, it's just a .pyw file running in Python, and so things like pinning icons or file associations won't work cleanly. -- type: behavior -> enhancement

[issue17305] IDNA2008 encoding missing

2018-01-28 Thread Christian Heimes
Christian Heimes added the comment: A fix will land in 3.7 and maybe get backported to 3.6. Stay tuned! -- ___ Python tracker ___ __

[issue32686] python3.6.4 build with --enable-optimzations hangs on macOS 10.13

2018-01-28 Thread 7stud
7stud <7s...@excite.com> added the comment: Hi Ned Deily, Thanks for the suggestion. I ran ./configure again, but this time make errored out: ... ... ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [pyt

[issue32659] Solaris "stat" should support "st_fstype"

2018-01-28 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset 6c51d518800cdda7ba16ae163be0d211d2c4fa12 by jcea in branch 'master': bpo-32659: Solaris "stat" should support "st_fstype" (#5307) https://github.com/python/cpython/commit/6c51d518800cdda7ba16ae163be0d211d2c4fa12 -- ___

[issue32660] Solaris should support constants like termios' FIONREAD

2018-01-28 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: New changeset f0a95f27c043e847a23940534fdfc53e1b3e31a1 by jcea in branch 'master': bpo-32660: Solaris should support constants like termios' FIONREAD (#5328) https://github.com/python/cpython/commit/f0a95f27c043e847a23940534fdfc53e1b3e31a1 -- _

[issue29571] test_re is failing when local is set for `en_IN`

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, even though we reverted the original test_re based change, and the initial attempted fix for bpo-20087 was also reverted, I'm still not currently seeing the failure for: LANG=en_IN.utf8 ./python -m test -v test_re I do have the locale installed, so it

[issue29571] test_re is failing when local is set for `en_IN`

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, this actually works for me on Fedora 27 even if I go back to 1b3d88eb33085e90af729c4c2f78b5ba1b942b1e, the commit just before the initially merged (and subsequently reverted) test change above. Unassigning, since I can't readily reproduce it myself. -

[issue31687] test_semaphore_tracker() of test_multiprocessing_spawn fails randomly (race condition?)

2018-01-28 Thread Nick Coghlan
Nick Coghlan added the comment: A warning I'm sometimes seeing currently on successful test runs is as follows: -- /home/ncoghlan/devel/cpython/Lib/multiprocessing/semaphore_tracker.py:55: UserWarning: semaphore_tracker: process died unexpectedly, relaunching. Some semaphores might leak.

[issue32688] weird comment out line of code

2018-01-28 Thread Xiang Zhang
Xiang Zhang added the comment: Ahh, I figure out that the line is useless and can't affect any logic then. So the analyzer is right! Sorry for the bother Brett. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python track

[issue21417] Compression level for zipfile

2018-01-28 Thread bbayles
Change by bbayles : -- nosy: +bbayles ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/

[issue21417] Compression level for zipfile

2018-01-28 Thread bbayles
Change by bbayles : -- keywords: +patch pull_requests: +5222 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bug

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2018-01-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: @slallum, That does seem to be a problem, though I do observe that the issue reported by bdb with CalledProcessError is no longer an issue: >>> import subprocess, pickle >>> try: ... subprocess.check_call(['python', '-c', 'raise SystemExit(1)']) ... except

[issue32654] Fixes Python for Android API 19

2018-01-28 Thread Chih-Hsuan Yen
Chih-Hsuan Yen added the comment: Here are some ideas after testing: * Testing environment: - My building scripts at https://github.com/yan12125/python3-android/ - Android NDK r16b - Google's emulator image 'system-images;android-19;default;x86' * Ideas/findings: - Locale emulation for set

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Yury Selivanov
Change by Yury Selivanov : -- components: Cross-Build nosy: Alex.Willmer, christian.heimes, ned.deily, yselivanov priority: normal severity: normal status: open title: macos/configure: Discover OpenSSL when installed with MacPorts type: enhancement versions: Python 3.7 _

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Yury Selivanov
New submission from Yury Selivanov : Not sure if we should do it or not: 1. MacPorts maintainers will create a port file for Python 3.7 and they will just configure it with `configure --with-openssl=$PREFIX", where PREFIX is /opt/local by default. 2. This, however, would certainly improve the

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Yury Selivanov
Change by Yury Selivanov : -- keywords: +patch pull_requests: +5223 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-li

[issue32695] tarfile.open() raises TypeError when using compresslevel parameter with LZMA

2018-01-28 Thread bbayles
New submission from bbayles : tarfile.open() allows for specifying both a compression type and a compression level. However, the compresslevel parameter doesn't work when using the xz modes. import tarfile good_archive = tarfile.open('/tmp/dummy.tar.gz', 'w:gz', compresslevel=9) ba

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Christian Heimes
Change by Christian Heimes : -- assignee: -> christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2018-01-28 Thread Ofer
Ofer added the comment: @jason.coombs as far as I can tell, this only works in python3, but not in python2, where it still produces the same error. -- versions: +Python 2.7 -Python 3.3 ___ Python tracker _

[issue26219] implement per-opcode cache in ceval

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: > With the 3.7 beta deadline just around the corner, 3.8 will be the next > opportunity to reconsider this idea. Nick, Ned, Guido, Would it be OK if we add this to 3.7beta2? I feel kind of bad about this one... few thoughts: 1. The speedup is about 5-10%

[issue32611] Tkinter taskbar icon (Windows)

2018-01-28 Thread Minion Jim
Minion Jim added the comment: This isn't just IDLE. On the GIF, I also demonstrate other Tkinter windows which is why have been led to believe it is an underlying Tkinter problem rather than IDLE. -- ___ Python tracker

[issue1692335] Fix exception pickling: Move initial args assignment to BaseException.__new__

2018-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: Please don't discuss on closed issues. Open a new issue. -- ___ Python tracker ___ ___ Python-

[issue32654] Fixes Python for Android API 19

2018-01-28 Thread pmpp
pmpp added the comment: @yan12125 Hi, I ran some tests too and here are my findings: https://github.com/pmp-p/droid-pydk/tree/master/sources.32/build_logs * I used some dirty patchset to cover more tests https://github.com/pmp-p/droid-pydk/tree/master/sources.32/cpython-bpo-30386.patchset i

[issue26219] implement per-opcode cache in ceval

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: > It's up to the release manager, but personally it feels like you're pushing too hard. Since you've done that frequently in the past I think we should help you by declining your request. NP, I totally understand. > Now maybe we'll need to come up with a diffe

[issue26219] implement per-opcode cache in ceval

2018-01-28 Thread Guido van Rossum
Guido van Rossum added the comment: It's up to the release manager, but personally it feels like you're pushing too hard. Since you've done that frequently in the past I think we should help you by declining your request. 3.8 is right around the corner (on a Python release timescale) and this wi

[issue32228] truncate() changes current stream position

2018-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 059f58ce938d9c3f0286412a4efb1b9131339421 by Antoine Pitrou (Nitish Chandra) in branch 'master': bpo-32228: Reset raw_pos after unwinding the raw stream (#4858) https://github.com/python/cpython/commit/059f58ce938d9c3f0286412a4efb1b9131339421 --

[issue28414] SSL match_hostname fails for internationalized domain names

2018-01-28 Thread Greg Lindahl
Change by Greg Lindahl : -- nosy: +wumpus ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue32696] Fix pickling exceptions with multiple arguments

2018-01-28 Thread Ofer
New submission from Ofer : Pickling exceptions fails when a custom exception class requires multiple arguments. import pickle class MultipleArgumentsError(Exception): def __init__(self, a, b): self.a = a self.b = b pickle.loads(pickle.dumps(MultipleArgumentsError('a', 'b'))

[issue32691] "pdb -m " sets __main__.__package__ incorrectly

2018-01-28 Thread Jason R. Coombs
Jason R. Coombs added the comment: In the backport, I found that `mod_spec.parent` seemed to be the right thing (in at least a few cases). Might that be preferable to `module_name.rpartition('.')[0]`? -- ___ Python tracker

[issue26219] implement per-opcode cache in ceval

2018-01-28 Thread Ned Deily
Ned Deily added the comment: I concur with Guido and Nick; let's target this for 3.8. -- ___ Python tracker ___ ___ Python-bugs-list

[issue32654] Fixes Python for Android API 19

2018-01-28 Thread Ned Deily
Ned Deily added the comment: Since we won't officially support Android in 3.7, these changes should wait for 3.8 and until there is a PEP for Android support. -- versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue32228] truncate() changes current stream position

2018-01-28 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +5224 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Ned Deily
Ned Deily added the comment: The good news is that, since Christian's recent enhancements in Issue32598 to have autoconf use pkg-config to detect OpenSSL header and lib files, configure will now automatically find the MacPorts OpenSSL as long as the MacPorts bin directory (typically /opt/loca

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: > The good news is that, since Christian's recent enhancements in Issue32598 to > have autoconf use pkg-config to detect OpenSSL header and lib files, > configure will now automatically find the MacPorts OpenSSL as long as the > MacPorts bin directory (typica

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: OK, so the trick is to first install pkg-config: sudo port install pkgconfig ./configure make python -m ssl # works I'll close the PR then, but we need to document this trick with pkg-config somewhere. -- ___

[issue32686] python3.6.4 build with --enable-optimzations hangs on macOS 10.13

2018-01-28 Thread Ned Deily
Ned Deily added the comment: Sorry, I wasn't clear but, yes, you will run into the same problem if you try to run the test suite with test_asyncio. There are various ways to exclude specific tests (not particularly well-documented), one way is: make test EXTRATESTOPTS='-x test_asyncio' But,

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Ned Deily
Ned Deily added the comment: Good! Yes, that should go into the devguide. Unfortunately, it only works with 3.7+, so the CFLAGS/LDFLAGS stuff is still needed for 3.6- and 2.7. -- ___ Python tracker ___

[issue32694] macos/configure: Discover OpenSSL when installed with MacPorts

2018-01-28 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset a4d00012565d716db6e6abe1b8f33eaaa4de416e by Raymond Hettinger in branch 'master': bpo-32690: Preserve order of locals() (#5379) https://github.com/python/cpython/commit/a4d00012565d716db6e6abe1b8f33eaaa4de416e -- nosy: +rhettinger _

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +5225 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32228] truncate() changes current stream position

2018-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 1d896ed2cddada4455f40782e4120249defbfa70 by Antoine Pitrou in branch '3.6': [3.6] bpo-32228: Reset raw_pos after unwinding the raw stream (GH-4858) (#5389) https://github.com/python/cpython/commit/1d896ed2cddada4455f40782e4120249defbfa70 --

[issue32228] truncate() changes current stream position

2018-01-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've now pushed Nitish's fix to 3.7 and 3.6. I have no interest in backporting to 2.7 at this point. Closing! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7 -Python 2.7, Python 3.4, Python 3.5 _

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
New submission from Larry Hastings : Following on from the "Can Python guarantee the order of keyword-only parameters?", here's a patch to enforce that guarantee. It adds documentation that makes the guarantee, and adds tests that make at least a passable attempt at testing that it's true. I

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
Change by Larry Hastings : -- keywords: +patch pull_requests: +5226 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Eric V. Smith
Change by Eric V. Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9105879bfd7133ecbac67f3e9c0bacf6e477de5a by Raymond Hettinger (Miss Islington (bot)) in branch '3.6': bpo-32690: Preserve order of locals() (GH-5379) (#5390) https://github.com/python/cpython/commit/9105879bfd7133ecbac67f3e9c0bacf6e477de5a -

[issue32327] Make asyncio methods documented as coroutines - coroutines.

2018-01-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +5227 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker ___ __

[issue32621] Problem of consistency in collection.abc documentation

2018-01-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: docs@python -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Why did this fix go to 3.6? -- nosy: +yselivanov ___ Python tracker ___ ___ Python-bugs-list maili

[issue32698] Improper gzip compression if output file extension is not "gz"

2018-01-28 Thread Adrien
New submission from Adrien : Hello. The following code produces a improper compressed "test.txt.gzip" file: import gzip import shutil input_path = "test.txt" output_path = input_path + ".gzip" with open(input_path, 'w') as file: file.write("abc" * 10)

[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Kirill Balunov
Kirill Balunov added the comment: What is the current status of this issue and will it go into Python 3.7? -- nosy: +godaygo ___ Python tracker ___

[issue32699] pythonXY._pth : unclear how .pth files are handled

2018-01-28 Thread Thomas Kluyver
New submission from Thomas Kluyver : Nicholas Tollervey has been getting Pynsist to use the new pythonXY._pth file to assemble sys.path. However, I'm not clear on how this behaves with .pth files. The docs on this (https://docs.python.org/3/using/windows.html#finding-modules ) appear to contr

[issue32327] Make asyncio methods documented as coroutines - coroutines.

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset bec2372b7e1da5dfdbadaf242aa8e994b164cace by Yury Selivanov in branch 'master': bpo-32327: Revert loop.run_in_executor behaviour: return a Future. (#5392) https://github.com/python/cpython/commit/bec2372b7e1da5dfdbadaf242aa8e994b164cace

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
Larry Hastings added the comment: New changeset f36ba12809d5db1b76464d8f1f04dad8d685ec78 by larryhastings in branch 'master': bpo-32697: Definition order of kwonly params is now guaranteed preserved. (#5391) https://github.com/python/cpython/commit/f36ba12809d5db1b76464d8f1f04dad8d685ec78 -

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2018-01-28 Thread Emily Morehouse
Change by Emily Morehouse : -- keywords: +patch pull_requests: +5228 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2018-01-28 Thread Emily Morehouse
Emily Morehouse added the comment: Thanks for the bug report! shutil.move should certainly accept a path object, as shutil.copy does, though it should be noted that in your example, 'path' could become out of date as it does not refresh the path information. For example, with shutil.move fixe

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Larry Hastings
Larry Hastings added the comment: Thanks for the quick turnaround reviews! Today we've all collectively made Python a better programming language. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <

[issue32697] Guarantee that Python preserves the order of kwonly parameters

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Today we've all collectively made Python a better programming language. Literally can't stop doing that for some reason... :) -- ___ Python tracker ___

[issue32689] shutil.move raises AttributeError if first argument is a pathlib.Path object and destination is a directory

2018-01-28 Thread Craig Holmquist
Craig Holmquist added the comment: In my test, the second call to path.absolute() is just returning the same result as the first call, which is what I would expect (as you say, the path object doesn't update automatically). However, your output shows it returning '/Users/e/Development/OSS/cp

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-01-28 Thread Yury Selivanov
Change by Yury Selivanov : -- pull_requests: +5229 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue28414] SSL match_hostname fails for internationalized domain names

2018-01-28 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5230 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue31399] Let OpenSSL verify hostname and IP address

2018-01-28 Thread Christian Heimes
Change by Christian Heimes : -- pull_requests: +5231 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: Mark, Two tests fail on MacOS X now (newly added tests). I'm reverting the change for now. If you figure this out, please re-submit a PR for a quick approval. == ERROR: test_getaddrinfo_ip

[issue17305] IDNA2008 encoding missing

2018-01-28 Thread Christian Heimes
Christian Heimes added the comment: bpo-31399 has fixed hostname matching for IDNA 2003 compatible domain names. IDNA 2008 domain names with German ß are still broken, for example: UnicodeError: ('IDNA does not round-trip', b'xn--knigsgchen-b4a3dun', b'xn--knigsgsschen-lcb0w') -- __

[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: It would be really nice to have this into 3.7 -- nosy: +rhettinger priority: normal -> high ___ Python tracker ___

[issue32688] weird comment out line of code

2018-01-28 Thread Brett Cannon
Brett Cannon added the comment: We should probably delete the line regardless so no one else gets thrown by this (or at least leave a comment). -- ___ Python tracker ___ _

[issue18369] X509 cert class for ssl module

2018-01-28 Thread Ned Deily
Ned Deily added the comment: At Christian's request and considering the importance of the ssl module, I'm going to allow an extension for landing of this feature until 3.7.0b2, currently scheduled for 2018-02-26. If anyone else can help Christian get this in before b2, that would be great.

[issue28414] SSL match_hostname fails for internationalized domain names

2018-01-28 Thread Ned Deily
Ned Deily added the comment: At Christian's request and considering the importance of the ssl module, I'm going to allow an extension for landing of this feature until 3.7.0b2, currently scheduled for 2018-02-26. If anyone else can help Christian get this in before b2, that would be great.

[issue32221] Converting ipv6 address to string representation using getnameinfo() is wrong.

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 0ceb717689b04c0540d78c1ba93c0572c66c0994 by Yury Selivanov in branch 'master': Revert "bpo-32221: makeipaddr(): remove interface part + speedup (GH-4724)" (#5394) https://github.com/python/cpython/commit/0ceb717689b04c0540d78c1ba93c0572c66c0994

[issue32611] Tkinter taskbar icon (Windows)

2018-01-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Looking at the animated .gif, Jim's problem has nothing to do with IDLE in particular, and is as least partly specific to his system, as I do not have the same problem on my system. (That does not mean that improvements are not possible, so that reboots are

[issue32700] The replys additional (Re.) is ok.

2018-01-28 Thread Allen
New submission from Allen : .. -- messages: 310995 nosy: BIGAL priority: normal severity: normal status: open title: The replys additional (Re.) is ok. ___ Python tracker ___ __

[issue31453] Debian Sid/Buster: Cannot enable TLS 1.0/1.1 with PROTOCOL_TLS

2018-01-28 Thread Ned Deily
Ned Deily added the comment: I'm not clear if this is still needed, i.e. has Debian backed off on their change across the board? If it is still needed, I'm going to allow an extension for landing of it until 3.7.0b2, currently scheduled for 2018-02-26. If anyone else can help Christian get

[issue32693] os.path.ismount does not accept bytes objects

2018-01-28 Thread Eryk Sun
Change by Eryk Sun : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> support bytes paths in nt _getdiskusage, _getvolumepathname, and _getfinalpathname ___ Python tracker _

[issue28685] Optimizing list.sort() by performing safety checks in advance

2018-01-28 Thread Tim Peters
Tim Peters added the comment: I agree it would be nice (very!) to get this in. Indeed, I'm surprised to see that this is still open :-( But who can drive it? I cannot. -- ___ Python tracker __

[issue31333] Implement ABCMeta in C

2018-01-28 Thread Ned Deily
Ned Deily added the comment: There has been a lot of work by a number of people on this feature leading up to the 3.7.0b1. Thank you! On PR 5273, Yury says that he believes the feature is ready to merge but would prefer an extension until 3.7.0b2 and that Guido has agreed. I'll defer to Yu

[issue31333] Implement ABCMeta in C

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: > Let's try to get it in as soon as we can, please! Thank you, Ned! We'll get it merged in the next few days. -- ___ Python tracker ___

[issue32251] Add asyncio.BufferedProtocol

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 631fd38dbf04dbf0127881f3977982e401a849e4 by Yury Selivanov in branch 'master': bpo-32251: Implement asyncio.BufferedProtocol. (#4755) https://github.com/python/cpython/commit/631fd38dbf04dbf0127881f3977982e401a849e4 --

[issue17048] calendar should understand full- vs. half-width characters

2018-01-28 Thread Robert Booth
Robert Booth added the comment: There is similar misaligned output in Japanese and Korean: Korean: 1월2월3월 월 화 수 목 금 토 일 월 화 수 목 금 토 일 월 화 수 목 금 토 일 1 2 3 4 5 6 71 2 3 4

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Why did this fix go to 3.6? The patch is trivially small and fixes an odd an unnecessary implementation quirk. Backporting will help avoid confusing dissimilarity between 3.6 and 3.7. It also makes maintenance easier by keeping the versions in-sync (th

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Yury Selivanov
Yury Selivanov added the comment: I don't have a strong opinion on this, but I worry a bit that while the change is trivial, it still might break something (doctests? some obscure code?) in the next 3.6 point release. -- ___ Python tracker

[issue32690] Return function locals() in order of creation?

2018-01-28 Thread Ned Deily
Ned Deily added the comment: While I appreciate the desirability of changing the behavior, it does introduce a behavior change in a 3.6.x maintenance release. I don't have a good feel for the probability that current users or 3-party libraries are depending on the old behavior. Anyone want

  1   2   3   >