[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: In my additional comment, I explored the idea of running without saving, not even to a temp file. -- ___ Python tracker

[issue19042] Idle: add option to autosave 'Untitled' edit window

2016-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: Duplicate #28581 has a autosave patch in the initial post, which points out that "We are often required to copy code from various sites say some tutorial or code samples which are good for one time usage." It prompted me to think more about the idea to 'add a

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread perilbrain
perilbrain added the comment: Thanks Terry, I tried searching for a similar issue but failed. Feels like signing contributor form will take a while. Meantime please feel free to tweak/improve and implement code in your way (Mine is a bit rough solution not even abiding by naming convention),

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that this is a problem that needs a solution. Your post gives the justification very well. I already opened #19042 for this issue, so as is our usual policy, I am merging this duplicate into that one. Thank you for submitting a patch. To apply it,

[issue27779] Sync-up docstrings in C version of the the decimal module

2016-11-01 Thread Lisa Roach
Lisa Roach added the comment: Thanks for taking a look Stefan! I agree, it is definitely not as easy as it sounds. Your review and comments are helpful, I will make adjustments to the docstrings. If you want, I can continue to try to sync-up the docstrings and submit them for you and

[issue28584] ICC compiler check is too permissive

2016-11-01 Thread Zachary Ware
Changes by Zachary Ware : -- nosy: +zach.ware stage: -> patch review versions: -Python 3.3, Python 3.4 ___ Python tracker ___

[issue28582] Invalid backslash syntax errors are not always accurate as to the location on the line where the error occurs

2016-11-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is known issue. See issue25677. -- nosy: +serhiy.storchaka resolution: -> duplicate superseder: -> Syntax error caret confused by indentation ___ Python tracker

[issue25677] Syntax error caret confused by indentation

2016-11-01 Thread Chi Hsuan Yen
Changes by Chi Hsuan Yen : -- nosy: +Chi Hsuan Yen ___ Python tracker ___ ___

[issue28584] ICC compiler check is too permissive

2016-11-01 Thread Carmelo Piccione
Changes by Carmelo Piccione : -- versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker ___

[issue28584] ICC compiler check is too permissive

2016-11-01 Thread Carmelo Piccione
New submission from Carmelo Piccione: if the ${CC} variable has an encoded path which contains "icc" anywhere in the string, it will be interpreted by the configure script as an icc compiler rather than gcc. This is due to matching on *icc* in various places. Example:

[issue28499] Logging module documentation needs a rework.

2016-11-01 Thread Vinay Sajip
Vinay Sajip added the comment: I'm not sure this issue tracker is the best place to have an extended discussion about documentation - perhaps we should move this to a mailing list such as python-list. I'm not sure what you read first, but the logging documentation main page has a box marked

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
Amit Ghadge added the comment: SilentGhost, Thanks for your response. -- ___ Python tracker ___ ___

[issue28199] Compact dict resizing is doing too much work

2016-11-01 Thread Xiang Zhang
Xiang Zhang added the comment: Open #28583 and #28580 to tackle this. -- dependencies: +Optimize _PyDict_Next for split table, PyDict_SetDefault doesn't combine split table when needed ___ Python tracker

[issue28583] PyDict_SetDefault doesn't combine split table when needed

2016-11-01 Thread Xiang Zhang
New submission from Xiang Zhang: PyDict_SetDefault doesn't combine split table when needed. This could lead to loss of order or crash. This is a follow up of #28199. -- components: Interpreter Core messages: 279889 nosy: inada.naoki, serhiy.storchaka, xiang.zhang priority: normal

[issue28582] Invalid backslash syntax errors are not always accurate as to the location on the line where the error occurs

2016-11-01 Thread Eric V. Smith
New submission from Eric V. Smith: See msg279799 from issue28128, repeated here: Seems the ^ pointer is not always correct. For example, in the function scope it's correct: $ cat test.py def foo(): s = 'C:\Program Files\Microsoft' $ python3.7 -W error test.py File "test.py", line 2

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-11-01 Thread Eric Appelt
Eric Appelt added the comment: Here are my test results - I'll re-describe the issue and test so people don't have to read through all the previous text and for completeness. - The basic test case ("letter test"): Consider the set of the first seven

[issue26163] FAIL: test_hash_effectiveness (test.test_set.TestFrozenSet)

2016-11-01 Thread Eric Appelt
Eric Appelt added the comment: I made a copy/paste error on the second to last paragraph of the previous comment, it should be: Rehashing with the configured algorithm to shuffle the XORed result of the entry and size hashes to finish computing the frozenset hash resulted in an ideal

[issue28581] Allow running code without explicitly saving the file.

2016-11-01 Thread perilbrain
New submission from perilbrain: Current Flow:- - If you create a new file in idle and try to run it, the editor asks to save the file. However if user presses cancel button the code is not executed. Problem:- I have been using idle for over 5 years and this behavior is quite annoying(along

[issue28580] Optimize _PyDict_Next for split table

2016-11-01 Thread Xiang Zhang
Changes by Xiang Zhang : -- components: +Interpreter Core title: Optimise _PyDict_Next for split table -> Optimize _PyDict_Next for split table versions: +Python 3.6, Python 3.7 ___ Python tracker

[issue28580] Optimise _PyDict_Next for split table

2016-11-01 Thread Xiang Zhang
New submission from Xiang Zhang: Since values of split table is always dense, we can optimise the current implementation of _PyDict_Next. I think this could hardly bring much performance enhancement. More importantly, this emphasizes the invariant and make bugs easy to find and test.

[issue28499] Logging module documentation needs a rework.

2016-11-01 Thread Florian Strzelecki
Florian Strzelecki added the comment: Hi! Sorry for the delay. I published my slides on speaker deck: https://speakerdeck.com/exirel/read-and-write-the-doc It contains only my main ideas and key concepts, since I prefer to talk more than just read slides to the public. I hope Pycon FR's

[issue28199] Compact dict resizing is doing too much work

2016-11-01 Thread Xiang Zhang
Xiang Zhang added the comment: I use gdb to run setuptools test suite and find the assumption, split tables are always dense is broken for both dictresize3 and dictresize4. #0 0x771171c7 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55 #1 0x77118e2a

[issue28576] Uninstalling Py352 x86 with /uninstall option does not remove prepended paths

2016-11-01 Thread jcrmatos
jcrmatos added the comment: Hello, The GUI uninstall removes the prepended paths w/o requiring a reboot, so I see no reason why the /uninstall method shouldn't do it too. I did try to reboot afterwards, but the paths remain. I also tested on another PC, with Windows 8.1 x64, with the same

[issue28579] nan != nan

2016-11-01 Thread Tim Peters
Tim Peters added the comment: Yes, it's both intended and annoying ;-) The standard specifies that, by default, comparisons involving NANs are "unordered": a NAN is _none_ of "less than", "equal to", or "greater than" any other float, including any other NaN, and including itself.

[issue28579] nan != nan

2016-11-01 Thread SilentGhost
SilentGhost added the comment: That's how IEEE 754's NaN is defined. Seem to be behaving according to the standard. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue28579] nan != nan

2016-11-01 Thread Liam Marsh
New submission from Liam Marsh: I found a really weird comportment with NANs: >>> from math import nan, isnan, inf >>> nan==nan False >>> nan!=nan True >>> a=nan # maybe get another instance would fix it (or so I thought) >>> a==nan False >>> a==a False >>> a is a True >>> # because `is`

[issue28576] Uninstalling Py352 x86 with /uninstall option does not remove prepended paths

2016-11-01 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___

[issue28576] Uninstalling Py352 x86 with /uninstall option does not remove prepended paths

2016-11-01 Thread Steve Dower
Steve Dower added the comment: Does it go away after restarting? It's not easy to remove a setting like that from programs that are already running. Also, can you post your log files? They'll be in %TEMP% and you can zip them up first to make it easier. --

[issue28575] Error 0x80070643 While installing in Win 10 32 Bit

2016-11-01 Thread Steve Dower
Changes by Steve Dower : -- assignee: -> steve.dower ___ Python tracker ___ ___

[issue28575] Error 0x80070643 While installing in Win 10 32 Bit

2016-11-01 Thread Steve Dower
Steve Dower added the comment: If you look in your TEMP directory there should be a few more log files alongside the one you attached. Could you post those too? You can put them in a zip file to make it easier if you like. -- ___ Python tracker

[issue28573] Python 3.6.0b3 64-bit has no sys._mercurial info

2016-11-01 Thread Steve Dower
Steve Dower added the comment: We're not responsible for the builds released by Linux distros. There's a good chance they didn't build from mercurial, but used the source release plus patches. -- ___ Python tracker

[issue28573] Python 3.6.0b3 64-bit has no sys._mercurial info

2016-11-01 Thread SilentGhost
SilentGhost added the comment: The same is on 3.5.2 on ubuntu 16.10 -- nosy: +SilentGhost, larry versions: +Python 3.5 ___ Python tracker ___

[issue28513] Document zipfile CLI

2016-11-01 Thread SilentGhost
Changes by SilentGhost : -- components: -XML ___ Python tracker ___ ___

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-11-01 Thread Big Stone
Big Stone added the comment: it looks ok with 3.6.0b3 ... sorry for the false alarm -- ___ Python tracker ___

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-11-01 Thread Big Stone
Big Stone added the comment: oups! I may have test the old one... -- ___ Python tracker ___ ___

[issue28522] can't make IDLEX work with python._pth and python-3.6.0b2

2016-11-01 Thread Big Stone
Big Stone added the comment: the suggested python._pth change makes python unhappy: python36.zip DLLs Lib . import site Récipient d’erreurs 116251549737, type 5 Nom d’événement : BEX64 Réponse : Non disponible ID de CAB : 0 Signature du problème : P1 : python.exe P2 :

[issue28513] Document zipfile CLI

2016-11-01 Thread armando mendoza
Changes by armando mendoza : -- components: +XML ___ Python tracker ___ ___

[issue28574] Update bundled pip

2016-11-01 Thread Donald Stufft
Donald Stufft added the comment: Yea. I worked on trying to get this done over the weekend and I was l left with one issue left. Hoping to get that done in the next day or two. Sent from my iPhone > On Nov 1, 2016, at 1:08 AM, Steve Dower wrote: > > > Steve Dower

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread SilentGhost
SilentGhost added the comment: sys.version is a string, it's intended to be printed and it needs \n to be able to output two lines. I'm not sure what exactly problem you're having, but if you want special characters like \n not to show in output, you should use >>> print(sys.version) I'm

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
Amit Ghadge added the comment: Actually, I run this in Python terminal, >>> import sys >>> import sys.version I also have attached patch, Please let me that is correct or not? -- keywords: +patch Added file: http://bugs.python.org/file45302/getcompiler.c.patch

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread Nick Coghlan
Nick Coghlan added the comment: I think this is an area where ipaddress just inherited ipaddr's behaviour without challenging it. As Peter isn't currently particularly active, and I stepped back from ipaddress maintenance some time ago (since I don't work heavily enough with raw IP addresses

[issue27683] ipaddress subnet slicing iterator malfunction

2016-11-01 Thread era
era added the comment: #28577 requests a similar special case for /32 -- nosy: +era ___ Python tracker ___

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread Xiang Zhang
Xiang Zhang added the comment: Sorry, it's #27683. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread SilentGhost
SilentGhost added the comment: And how exactly are you "hitting sys.version command"? -- nosy: +SilentGhost versions: -Python 3.4 ___ Python tracker ___

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2016-11-01 Thread Sam Ferencik
Sam Ferencik added the comment: Michael, Thanks for reopening this. You say you're using "64-bit hardware", but what bitness is your OS and the Python interpreter? If you read my original issue description, I only had this issue with 32-bit Python on a 64-bit Linux system (on 64-bit

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread era
era added the comment: Quick googling did not turn up anything like a credible authoritative reference for this, but in actual practice, I have seen /32 used to designate a single individual IP address in CIDR notation quite a lot. I can see roughly three options: 1. Status quo. Silently

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
New submission from Amit Ghadge: When I hit sys.version command on Linux shell the Py_GetCompiler version print '\n' character like; '3.7.0a0 (default:7aa001a48120, Nov 1 2016, 13:53:25) \n[GCC 5.3.1 20160406 (Red Hat 5.3.1-6)]' And When I launch python, Py_GetCompiler line print to the

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread Xiang Zhang
Xiang Zhang added the comment: I am not sure. Actually there is a special case for mask 31, you can see #27863. Its result includes both the network and broadcast address. Add Nick to see his opinion. FYI, ipaddress (ipaddr in Py2) always return empty for 32. But there is other library

[issue28578] '\n' escape character print before the Py_GetCompiler version

2016-11-01 Thread Amit Ghadge
Changes by Amit Ghadge : -- nosy: amitgb14 priority: normal severity: normal status: open title: '\n' escape character print before the Py_GetCompiler version type: enhancement versions: Python 3.7 ___ Python tracker

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread era
era added the comment: @xiang.zhang thanks for the quick reply. I find this behavior surprising. If I process a list of addresses, like ips = ( '10.9.8.7/32' '10.11.12.8/28' ) for test in ['10.9.8.7', '10.11.12.10']: if test in [str(y) for x in ips for y in

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread Xiang Zhang
Xiang Zhang added the comment: hosts() won't return the network address itself and the network broadcast address. So for 10.9.8.7/32, it should return []. -- nosy: +xiang.zhang resolution: -> not a bug stage: -> resolved status: open -> closed ___

[issue28513] Document zipfile CLI

2016-11-01 Thread SilentGhost
SilentGhost added the comment: > Apparently (haven’t tried myself) if you put “.. program:: zipfile” before > the :option: invocations, it changes the default context and you don’t need > the bit. Yes, moving program directive just after "Command Line Interface" heading works fine.

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread era
era added the comment: (Meh, silly typo, of course the expected output is ['10.9.8.7'], sorry about that!) -- ___ Python tracker ___

[issue28577] ipaddress.ip_network(...).hosts() returns nothing for an IPv4 /32

2016-11-01 Thread era
New submission from era: I would expect the following code to return ['10.9.8.8'] but it returns an empty list. yosemite-osx$ python3 Python 3.5.1 (default, Dec 26 2015, 18:08:53) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright",

[issue28568] Build files in PC/VS9.0 contain an outdated sqlite version number

2016-11-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8f9c54a75c3d by Zachary Ware in branch '2.7': Closes #28568: Fix VS9.0 build files to use sqlite 3.8.11.0 https://hg.python.org/cpython/rev/8f9c54a75c3d -- nosy: +python-dev resolution: -> fixed stage: -> resolved status: open -> closed

[issue28568] Build files in PC/VS9.0 contain an outdated sqlite version number

2016-11-01 Thread Zachary Ware
Zachary Ware added the comment: Thanks for the report and patch! -- ___ Python tracker ___ ___

[issue28576] Uninstalling Py352 x86 with /uninstall option does not remove prepended paths

2016-11-01 Thread jcrmatos
New submission from jcrmatos: Hello, When uninstalling Py352 x86 with the /uninstall option, it doesn't remove the prepended paths that were added on installation (unlike the GUI uninstall which removes them). My system is a Win7ProSP1 x64. Best regards, JM -- components:

[issue28575] Error 0x80070643 While installing in Win 10 32 Bit

2016-11-01 Thread Nixon
New submission from Nixon: While trying to install Python Error 0x80070643 is showing. -- components: Windows files: Python 3.6.0b3 (32-bit)_20161101112524.log messages: 279851 nosy: nixonvarghese, paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: