[issue29908] Inconsistent crashing with an access violation

2017-03-26 Thread Cameron Mckain
Cameron Mckain added the comment: The problem was fixed after updating to Django 1.11; apparently, Django 1.10 is not fully compatible with Python 3.6. Thanks for your time. -- resolution: -> out of date stage: -> resolved status: open -> closed

[issue19824] string.Template: Rewrite docs to emphasize i18n use case

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In that case issue20314 looks related. -- stage: -> needs patch type: -> enhancement ___ Python tracker ___

[issue29763] test_site failing on AppVeyor

2017-03-26 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +738 ___ Python tracker ___ ___

[issue27425] Tests fail because of git's newline preferences on Windows

2017-03-26 Thread Zachary Ware
Changes by Zachary Ware : -- pull_requests: +737 ___ Python tracker ___ ___

[issue29908] Inconsistent crashing with an access violation

2017-03-26 Thread Eryk Sun
Eryk Sun added the comment: Steve, I added 3.5 because the crash involved ucrtbase.dll. I'll remove it for now since the problem is only confirmed in 3.6. Offset 0x3bd9e in 32-bit ucrtbase.dll is in wdupenv_s [1]. It's probably from calling new_spawnve in pydev_monkey.py, as shown in the

[issue20774] collections.deque should ship with a stdlib json serializer

2017-03-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks Lisa. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20552] Use specific asserts in bytes tests

2017-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Raymond, Am I correct in thinking that your comment is not specific to bytes but applies to all patches like this? If so, I think I agree because any future changes that break tests will almost certain happen in 3.7+, so that the extra work of backporting

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Changes by Ned Deily : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Ned Deily added the comment: New changeset 6f95b37f290e0225aed5f8f7733ad0730601201b by Ned Deily (cocoatomo) in branch '2.7': bpo-29888: Fix the link referring to "Python download page" (GH-823) https://github.com/python/cpython/commit/6f95b37f290e0225aed5f8f7733ad0730601201b --

[issue29911] Uninstall command line in Windows registry does not uninstall

2017-03-26 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: -zach.ware ___ Python tracker ___ ___

[issue29911] Uninstall command line in Windows registry does not uninstall

2017-03-26 Thread Christian Ullrich
Christian Ullrich added the comment: Thank you. As for the pointing out: It worked for Cato, didn't it? He may not have lived to see it, but his perseverance in the face of rejection eventually brought about the years-long bloody war he had dreamed about. (Any historical inaccuracies in the

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-26 Thread Mariatta Wijaya
Changes by Mariatta Wijaya : -- pull_requests: +736 ___ Python tracker ___ ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-26 Thread Jelle Zijlstra
Changes by Jelle Zijlstra : -- pull_requests: +735 ___ Python tracker ___ ___

[issue29162] pyshell.py: name 'sys' is not defined

2017-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Reopening because I missed file=sys.__stderr__ in the print() above sys.exit ;-(. Reported by JelleZijlstra in PR. I wonder if there is any way to force an import to fail when testing. I could at least partly test by moving the code for import failure and

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Kinebuchi Tomohiko
Kinebuchi Tomohiko added the comment: @ned.deily Thank you for the commend. I updated the 2.7 PR. -- ___ Python tracker ___

[issue20774] collections.deque should ship with a stdlib json serializer

2017-03-26 Thread Lisa Roach
Lisa Roach added the comment: I made PR 830 for this issue, it seems to be a nice feature to have in my opinion. Let me know if I should add some unit tests :) -- nosy: +lisroach pull_requests: +734 ___ Python tracker

[issue29911] Uninstall command line in Windows registry does not uninstall

2017-03-26 Thread Steve Dower
Steve Dower added the comment: I'll take a look at having separate commands set, but the component responsible is external and this may be an issue for them. Also, for future reference, continuing to point out that you would have preferred an MSI does not help you get faster assistance, and

[issue29908] Inconsistent crashing with an access violation

2017-03-26 Thread Steve Dower
Steve Dower added the comment: Have you confirmed this occurring with 3.5? PyCharm has a very invasive debugger that is almost certainly responsible, but there's a significant difference between the 3.5 and 3.6 implementations that is probably relevant. --

[issue19824] string.Template: Rewrite docs to emphasize i18n use case

2017-03-26 Thread R. David Murray
R. David Murray added the comment: Let's retitle this, then. -- nosy: +r.david.murray title: string.Template: Add PHP-style variable expansion example -> string.Template: Rewrite docs to emphasize i18n use case ___ Python tracker

[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread Eric Hopper
Eric Hopper added the comment: Here's an update to types.coroutine that fixes the problem for me. -- Added file: http://bugs.python.org/file46756/types.coroutine.py ___ Python tracker

[issue29912] Overlapping tests between list_tests and seq_tests

2017-03-26 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Seems the CommonTests class defined in list_tests duplicates the testing performed by seq_tests.CommonTests in the following functions: test_index, test_count Additionally, a part of test_imul from list_tests.CommonTests can be moved to

[issue29910] Ctrl-D eats a character on IDLE

2017-03-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Checking, I see that the default ^D binding to DEL is documented in IDLE Help, section 2, Editing and Navigation, along with other Text defaults. (I need to determine if the list is complete. Is it the same on all systems?) I question whether IDLE should

[issue19824] string.Template: Add PHP-style variable expansion example

2017-03-26 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: We should really restructure string.Template documentation to emphasize i18n. That's always been its prime use case, and f-strings don't change that (because f-strings are not really appropriate for translations). Before f-strings, string.Template had

[issue19824] string.Template: Add PHP-style variable expansion example

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Formatting with locals() and globals() should be used with careful. This is not the most idiomatic way of formatting. I think that the post in specialised blog would be better place for describing it than Python stdlib documentation. Peoples coming from PHP

[issue12414] getsizeof() on code objects is wrong

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See gettotalsizeof.py attached to issue19048. It contains two functions that calculates the total size of the object with subobjects recursively. The problem is that virtually all objects are linked, two functions use slightly different criteria for

[issue29908] Inconsistent crashing with an access violation

2017-03-26 Thread Cameron Mckain
Cameron Mckain added the comment: C:\Users\cmcka\PycharmProjects\test>wevtutil qe application /rd:true /c:1 /format:text /q:"*[System[Provider[@Name='Application Error']]][EventData[Data='python.exe'][Data='ucrtbase.dll']]" Event[0]: Log Name: Application Source: Application Error Date:

[issue29911] Uninstall command line in Windows registry does not uninstall

2017-03-26 Thread Christian Ullrich
New submission from Christian Ullrich: The Windows installation package registers a command line for uninstalling the package. Running this command line does not uninstall the package. The command line ends with "/modify". For uninstallation, it should be "/passive /uninstall". Windows

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Ned Deily added the comment: Thanks for the pull requests! I've merged to master, 3.6, and 3.5 and I left a comment for the 2.7 PR. By the way, next time you make a PR, please feel free to add your name to Misc/ACKS. -- stage: -> commit review versions: +Python 3.7

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Ned Deily added the comment: New changeset 8ce3085bf167b702989a9db466078b5676e825e3 by Ned Deily in branch '3.5': bpo-29888: Fix the link referring to the "Python download page" (GH-824) (GH-827) https://github.com/python/cpython/commit/8ce3085bf167b702989a9db466078b5676e825e3 --

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Ned Deily added the comment: New changeset ceff32fb833e7be42508ffa73344e2e56865e54b by Ned Deily in branch '3.6': bpo-29888: Fix the link referring to the "Python download page" (GH-824) (GH-826) https://github.com/python/cpython/commit/ceff32fb833e7be42508ffa73344e2e56865e54b --

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Changes by Ned Deily : -- pull_requests: +733 ___ Python tracker ___ ___ Python-bugs-list

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Changes by Ned Deily : -- pull_requests: +732 ___ Python tracker ___ ___ Python-bugs-list

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Ned Deily
Ned Deily added the comment: New changeset f8beb9831acd5cf80b9c56aea5864e16118c5400 by Ned Deily (cocoatomo) in branch 'master': bpo-29888: Fix the link referring to the "Python download page" (GH-824) https://github.com/python/cpython/commit/f8beb9831acd5cf80b9c56aea5864e16118c5400

[issue29910] Ctrl-D eats a character on IDLE

2017-03-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- pull_requests: +731 ___ Python tracker ___ ___

[issue29910] Ctrl-D eats a character on IDLE

2017-03-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Ctrl-D is binded to commenting out a block in IDLE. But additionally it deletes the first character of the line after the block. The default binding of Ctrl-D in Text widget is deleting a character under cursor. IDLE first comment out selected block, and

[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread Yury Selivanov
Yury Selivanov added the comment: Yeah, we can fix this. However, I don't want to push the fix to 3.6, too much code uses this function now. So it's going to be 3.7 only. -- assignee: -> yselivanov versions: +Python 3.7 -Python 3.6 ___ Python

[issue21301] pathlib missing Path.expandvars(env=os.environ)

2017-03-26 Thread Alain Mellan
Alain Mellan added the comment: Yes, you can close it. — alain. On Mar 25, 2017, at 23:51 , Serhiy Storchaka wrote: http://bugs.python.org/issue21301 -- ___ Python tracker

[issue29908] Inconsistent crashing with an access violation

2017-03-26 Thread Eryk Sun
Eryk Sun added the comment: The offset in ucrtbase.dll where it's crashing may hint at the culprit. The following command should print the full event log for the most recent crash: wevtutil qe application /rd:true /c:1 /format:text /q:"*[System[Provider[@Name='Application

[issue12414] getsizeof() on code objects is wrong

2017-03-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Not including the Python accessible referred-to objects is consistent with how sys.getsizeof() works elsewhere (i.e. for object instances, the size of __dict__ is not included). >>> import sys >>> class A: pass >>> a = A() >>>

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thus currently the table of discrepancies looks as: quoprimime binascii quopri b'=' '' b'' b'=' b'= ' '' b'= ' b'= ' b'= \n' '' b'= \n' b'' b'=\r''' b'' b'=\r' b'==41'

[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread R. David Murray
R. David Murray added the comment: Oops, I didn't meant to close this. -- resolution: not a bug -> stage: resolved -> status: closed -> open ___ Python tracker

[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread R. David Murray
R. David Murray added the comment: Yes, that looks wrong to me. IMO it should be returning a new function object, not updating the __code__ of the existing object. I couldn't figure when that is actually triggered, though. There are also some other oddnesses, given the definition of

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Kinebuchi Tomohiko
Kinebuchi Tomohiko added the comment: I just created two pull requests. + PR for 2.7 -> https://github.com/python/cpython/pull/823 + PR for 3.5 or newer -> https://github.com/python/cpython/pull/824 -- ___ Python tracker

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Kinebuchi Tomohiko
Changes by Kinebuchi Tomohiko : -- pull_requests: +730 ___ Python tracker ___ ___

[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks for the estimation Eryk. Can you create a pull request for your patch? -- ___ Python tracker ___

[issue19791] test_pathlib should use can_symlink or skip_unless_symlink from test.support

2017-03-26 Thread ppperry
Changes by ppperry : -- pull_requests: +729 ___ Python tracker ___ ___ Python-bugs-list

[issue12414] getsizeof() on code objects is wrong

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I concur with Martin. sys.getsizeof() should only count the memory that is not exposed as separate Python objects. In case of a code object this is the memory of the PyCodeObject structure and the memory of dynamic array co_cellvars (issue15456). Other

[issue29907] Unicode encoding failure

2017-03-26 Thread Eryk Sun
Eryk Sun added the comment: I'm closing this issue since Python's encodings in this case -- 852 (OEM) and 1250 (ANSI) -- both correctly map U+0159: >>> u'\u0159'.encode('852') '\xfd' >>> u'\u0159'.encode('1250') '\xf8' You must be using an encoding that doesn't map U+0159. If

[issue8488] Docstrings of non-data descriptors "ignored"

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since the descriptor is classified as a routine (inspect.isroutine() returns True because inspect.ismethoddescriptor() returns True), pydoc outputs it in the "Methods defined here" section and uses the docroutine(). But docroutine() requires the __name__

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Kinebuchi Tomohiko
Changes by Kinebuchi Tomohiko : -- pull_requests: +728 ___ Python tracker ___ ___

[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2017-03-26 Thread Eryk Sun
Eryk Sun added the comment: For COM[n] and LPT[n], only ASCII 1-9 and superscript 1-3 (U+00b9, U+00b2, and U+00b3) are handled as decimal digits. For example: >>> print(*(ascii(chr(c)) for c in range(1, 65536) ... if _getfullpathname('COM%s' % chr(c))[0] == '\\'), sep=', ')

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2017-03-26 Thread Martin Panter
Martin Panter added the comment: The double equals "==" case for the “quopri” implementation in Python is now consistent with the others thanks to the fix in Issue 23681 (see also Issue 21511). According to Issue 20121, the quopri (Python) implementation only supports LF (\n) characters as

[issue1697943] msgfmt cannot cope with BOM

2017-03-26 Thread Christoph Zwerschke
Christoph Zwerschke added the comment: > Corresponding GNU gettext issue [1] was closed as "Not a Bug". Though I think the rationale given there pointing to RFC3629 section 6 is wrong, since that section explicitly refers to Internet protocols, but PO files are not an Internet protocol.

[issue19791] test_pathlib should use can_symlink or skip_unless_symlink from test.support

2017-03-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, this is the pull request: https://github.com/python/cpython/pull/822 -- ___ Python tracker ___

[issue11989] deprecate shutil.copy2

2017-03-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue22962] ipaddress: Add optional prefixlen argument to ip_interface and ip_network

2017-03-26 Thread Gary van der Merwe
Gary van der Merwe added the comment: Indeed. Thanks to whoever fixed this. -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker

[issue7913] Enhance Cmd support for docstrings and document it.

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you create a pull request David? -- nosy: +serhiy.storchaka versions: +Python 3.7 -Python 3.3 ___ Python tracker

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- versions: +Python 3.5, Python 3.6, Python 3.7 -Python 3.3, Python 3.4 ___ Python tracker ___

[issue1697943] msgfmt cannot cope with BOM

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Corresponding GNU gettext issue [1] was closed as "Not a Bug". [1] https://savannah.gnu.org/bugs/?18345 -- nosy: +serhiy.storchaka resolution: -> not a bug status: open -> pending ___ Python tracker

[issue29909] types.coroutine monkey patches original function

2017-03-26 Thread Eric Hopper
New submission from Eric Hopper: The types.coroutine decorator for Python 3.6 (and I suspect for Python 3.6.1 as well) simply monkey patches the function it's passed and then returns it. This results in behavior that I found somewhat surprising. def bar(): yield 5 foo =

[issue29907] Unicode encoding failure

2017-03-26 Thread STINNER Victor
STINNER Victor added the comment: For Python 2, there is https://pypi.python.org/pypi/win_unicode_console -- ___ Python tracker ___

[issue27200] make doctest in CPython has failures

2017-03-26 Thread Marco Buttu
Changes by Marco Buttu : -- pull_requests: +727 ___ Python tracker ___ ___

[issue29899] zlib missing when --enable--optimizations option appended

2017-03-26 Thread kyren
kyren added the comment: There's no build errors. The compiling and installing process is error-free. Take 3.5.3 as example, it's all good until you enter 3.5.3 python shell and type `import zlib`, it gives `No module name zlib`. I solved by make a `libz.so` link in my `/lib` dir to the

[issue27827] pathlib is_reserved fails for some reserved paths on Windows

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Are 'COM\u0661' or 'COM\u2074' reserved names? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue19791] test_pathlib should use can_symlink or skip_unless_symlink from test.support

2017-03-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, Serhiy. I'll create a pull request. -- ___ Python tracker ___ ___

[issue29888] The link referring to "Python download page" is broken

2017-03-26 Thread Kinebuchi Tomohiko
Changes by Kinebuchi Tomohiko : -- pull_requests: +726 ___ Python tracker ___ ___

[issue29907] Unicode encoding failure

2017-03-26 Thread Paul Moore
Paul Moore added the comment: Also, you need to: 1. Ensure you are using characters that are available in the encoding that sys.stdout uses - in Python prior to 3.6, this would be your Windows *console* code page, and in 3.6+ would be UTF-8. 2. Declare the encoding of your source code if you

[issue19791] test_pathlib should use can_symlink or skip_unless_symlink from test.support

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you create a pull request on GitHub Vajrasky? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue22062] Fix pathlib.Path.(r)glob doc glitches.

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you create a pull request on GitHub Mike? -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue21301] pathlib missing Path.expandvars(env=os.environ)

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: expanduser() is path handling function, but not expandvars(). expandvars() is defined in posixpath and ntpath because different OSes use different syntax for interpolated strings, and we sometimes need to use a foreign syntax. It doesn't have any special

[issue24154] pathlib.Path.rename moves file to Path.cwd() when argument is a string

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This would contradict to all other functions and commands. The current behavior is correct. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue23241] shutil should accept pathlib types

2017-03-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Is this issue outdated since implementing a file system path protocol (PEP 519) in 3.6? -- nosy: +serhiy.storchaka status: open -> pending ___ Python tracker

[issue23901] Force console stdout to use UTF8 on Windows

2017-03-26 Thread Martin Panter
Martin Panter added the comment: This seems to be discussing the same sort of stuff that ended up with the Issue 1602 implementation. -- nosy: +martin.panter resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> windows console doesn't print or input

[issue21322] Pathlib .owner() and .group() methods fail on broken links

2017-03-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___

[issue29907] Unicode encoding failure

2017-03-26 Thread Martin Panter
Martin Panter added the comment: I presume you are trying to print to the normal Windows console. I understand the console was not well supported until Python 3.6 (see Issue 1602). Have you tried that version? I’ll leave this open for someone more experienced to confirm, but I suspect what