[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-26 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Thank you for the tweaks. I tested the patch and it is all working fine. Without failure count the PGO run is even more transparent to the user. I tested your final version of the patch on several Linux server and regular desktop distributions and

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a9418ed0d0c by Victor Stinner in branch 'default': Issue #25220: Move most regrtest.py code to libregrtest https://hg.python.org/cpython/rev/4a9418ed0d0c -- ___ Python tracker

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 40667f456c6f by Victor Stinner in branch 'default': Issue #25220: Create Lib/test/libregrtest/ https://hg.python.org/cpython/rev/40667f456c6f -- ___ Python tracker

[issue25238] Version added of context parameter for xmlrpc.client.ServerProxy incorrect

2015-09-26 Thread desbma
New submission from desbma: Doc of 3.4 branch says the context parameter for xmlrpc.client.ServerProxy was added at version 3.4.3: https://docs.python.org/3.4/library/xmlrpc.client.html?highlight=xmlrpc.client#module-xmlrpc.client Although doc of 3.5 branch says the context parameter for

[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-26 Thread Steve Dower
Steve Dower added the comment: Ah, I misread that part. Will have to look deeper, but I'm not actually sure that shortcuts are supposed to support the same operations (though if it shows up, I guess it should work). -- ___ Python tracker

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-26 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed type: -> behavior versions: +Python 2.7, Python 3.5 ___ Python tracker

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset fc6d62db8d42 by Raymond Hettinger in branch '2.7': Issue #25135: Avoid possible reentrancy issues in deque_clear. https://hg.python.org/cpython/rev/fc6d62db8d42 -- ___ Python tracker

[issue24820] IDLE themes for light on dark

2015-09-26 Thread Anand Krishnakumar
Anand Krishnakumar added the comment: Hi! I'm a 14 year old who wants to start developing for Python. I absolutely adore this enhancement and I would love to contribute towards this. So please let me know if I can help, and if yes, how? -- nosy: +Anand Krishnakumar

[issue25234] test_eintr.test_os_open hangs under Xcode 7

2015-09-26 Thread Brett Cannon
Brett Cannon added the comment: It is 10.10, but apparently a reboot fixed it (software, am I right? =/ ). -- resolution: -> not a bug status: open -> closed ___ Python tracker

[issue747320] rfc2822 formatdate functionality duplication

2015-09-26 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch (including tests and documentation updates). -- components: -email nosy: +berker.peksag stage: needs patch -> patch review type: performance -> enhancement versions: +Python 3.6 -Python 3.5 Added file:

[issue25234] test_eintr.test_os_open hangs under Xcode 7

2015-09-26 Thread Ned Deily
Ned Deily added the comment: Brett, was this on OS X 10.10.x or a 10.11 pre-release? test_eintr does not fail fail for me on either using the most recent Xcode 7. -- title: test_einter.test_os_open hangs under Xcode 7 -> test_eintr.test_os_open hangs under Xcode 7

[issue25233] AssertionError from asyncio Queue get

2015-09-26 Thread Guido van Rossum
Guido van Rossum added the comment: I have a fix pending here: https://github.com/python/asyncio/pull/269 -- ___ Python tracker ___

[issue19884] Importing readline produces erroneous output

2015-09-26 Thread Berker Peksag
Berker Peksag added the comment: The version check doesn't work because 0ed1801bf4bd added #ifndef __APPLE__ to guard the code, so if you're using readline on OS X, that rl_variable_bind workaround won't work. There are two alternatives: 1) convert ifndef to ifdef and add a check for the

[issue25239] HTMLParser handle_starttag replaces entity references in attribute value even without semicolon

2015-09-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +ezio.melotti ___ Python tracker ___ ___

[issue25241] ctypes: access violation reading

2015-09-26 Thread Dum Dum
New submission from Dum Dum: On Windows 8.1 64-bit, using a fresh installation of Python 3.5.150.0 64-bit, `error_script.py` crashes, while Python 3.4.3150 and 2.7.10150 (both 64-bit) run the script properly. Here is a traceback: https://bpaste.net/show/3ecfbf93b96e -- files:

[issue25135] Deques to adopt the standard clearing procedure for mutable objects

2015-09-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 005590a4a005 by Raymond Hettinger in branch '3.5': Issue #25135: Avoid possible reentrancy issues in deque_clear. https://hg.python.org/cpython/rev/005590a4a005 -- nosy: +python-dev ___ Python tracker

[issue25220] Enhance and refactor test.regrtest (convert regrtest.py to a package)

2015-09-26 Thread STINNER Victor
STINNER Victor added the comment: Ok, I started simply by *moving* code, without additionnal changes. I will watch for buildbots to ensure that no regression was added. The Lib/test/regrtest.py is kept to not break any existing tool. It looks like Lib/test/regrtest.py is very important in

[issue24820] IDLE themes for light on dark

2015-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: My only question right now is whether I should apply as is or with minor adjustments. Thanks for the encouragements either way. -- ___ Python tracker

[issue25240] Stack overflow in reprlib causes a core dump

2015-09-26 Thread Ceridwen
New submission from Ceridwen: I have a linked list implementation made of nested tuples with a custom repr: def __repr__(self): return 'LinkedList(' + ', '.join(repr(v) for v in self) + ')' (Iterating over a LinkedList returns just its contents.) When using Raymond Hettinger's

[issue25243] decouple string-to-boolean logic from ConfigParser.getboolean and offer as separate function

2015-09-26 Thread Joshua Bronson
New submission from Joshua Bronson: ConfigParser.getboolean[1] has logic to convert strings like '0' and 'False' to False. This logic is generally useful in other contexts and need not be coupled to ConfigParser. Would you consider accepting a patch that factored this string-to-boolean logic

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Opened #25244 to consider changing exact right-click behavior. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25241] ctypes: access violation reading

2015-09-26 Thread Dum Dum
Dum Dum added the comment: I rewrote the code following your suggestions and it appears the error was indeed on my side. I somewhat expected that, but found it weird that it only seemed to occur on 3.5. Thank you! -- ___ Python tracker

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset bf11034f0291 by Terry Jan Reedy in branch '2.7': Issue #24988: Idle ScrolledList context menus (used in debugger) https://hg.python.org/cpython/rev/bf11034f0291 New changeset 85a4c95ad02f by Terry Jan Reedy in branch '3.4': Issue #24988: Idle

[issue25244] Idle: refine right-click behavior

2015-09-26 Thread Terry J. Reedy
New submission from Terry J. Reedy: Spinoff from #24988, where I noted "The standard on Windows is to bring up a context menu on right-button-release, not on r-b-press." and asked "What about linux and mac?" The question is relevant for 'Go to File/Line'. Look at text where pressed or where

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am afraid you misunderstand how fromutc() method works. Note that you rarely need to call it directly: use astimezone() method to convert between timezones. -- nosy: +tim.peters ___ Python tracker

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5bc7e9dab77 by Terry Jan Reedy in branch '2.7': Issue #24570: Idle: make calltip and completion boxes appear on Macs https://hg.python.org/cpython/rev/b5bc7e9dab77 New changeset 6687630e201a by Terry Jan Reedy in branch '3.4': Issue #24570: Idle:

[issue25243] decouple string-to-boolean logic from ConfigParser.getboolean and offer as separate function

2015-09-26 Thread Joshua Bronson
Joshua Bronson added the comment: One way this could be offered is as a new static method on bool (something like bool.parse_str?), but I of course defer to the better judgment of the Python core developers. I'd be happy to take a crack at a patch adding it wherever you like, if you like.

[issue9051] Improve pickle format for timezone aware datetime instances

2015-09-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > For stability it is better to use public name 'timezone.utc' instead of > '_utc'. Can you elaborate on the "stability" consideration? I would like to revisit this issue since we will have some changes made to datetime pickles in the context of PEP

[issue24988] IDLE: debugger context menus not working on Mac

2015-09-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy ___ Python tracker ___ ___

[issue18967] Find a less conflict prone approach to Misc/NEWS

2015-09-26 Thread Nick Coghlan
Nick Coghlan added the comment: Just noting a potential practical benefit of the "NEWS entry first" approach that David suggests: I believe it will help encourage the creation of a succinct answer to "Why are we making this change?" as part of the patch review process. That's then useful

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-26 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-26 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.5, Python 3.6 ___ Python tracker ___ ___

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Added equivalent completion window patch. Would have preferred confirmation that Idle versions work, but 3.4.4rc1 is only a week away and I think having bug confirmed and fixed in tcl is enough to go with. -- assignee: -> terry.reedy resolution: ->

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-09-26 Thread Cyd Haselton
Cyd Haselton added the comment: UPDATE: Before downloading/building Google gdb source I ran test_gdb.py, which failed completely. Details of those tests are attached. -- Added file: http://bugs.python.org/file40586/test_gdb.log ___ Python tracker

[issue25188] regrtest.py improvement for Profile Guided Optimization builds

2015-09-26 Thread Brett Cannon
Brett Cannon added the comment: I fixed my test_eintr problem, but now https://hg.python.org/cpython/rev/4a9418ed0d0c landed in 3.6/default and broke the patch. Since missing getting this in before the aforementioned change was my fault, I'll personally handle making the patch apply cleanly

[issue25239] HTMLParser handle_starttag replaces entity references in attribute value even without semicolon

2015-09-26 Thread Sean Liu
New submission from Sean Liu: In the document of HTMLParser.handle_starttag, it states "All entity references from html.entities are replaced in the attribute values." However it will replace the string if it matches ampersand followed by the entity name without the semicolon. For example

[issue25240] Stack overflow in reprlib causes a core dump

2015-09-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___

[issue25239] HTMLParser handle_starttag replaces entity references in attribute value even without semicolon

2015-09-26 Thread Ezio Melotti
Ezio Melotti added the comment: This seems indeed to be a bug. The relevant bit seems to be at http://www.w3.org/TR/html5/syntax.html#consume-a-character-reference : """ If the character reference is being consumed as part of an attribute, and the last character matched is not a ";" (U+003B)

[issue25241] ctypes: access violation reading

2015-09-26 Thread eryksun
eryksun added the comment: The default function pointer restype is c_int, and the default integer argument conversion is also c_int. However, the handle returned by FindFirstVolume is a pointer to a private structure that it uses for the volume enumeration, so you must set restype to a

[issue25242] Failed tests for Python 3.5.0 on shared virtual host

2015-09-26 Thread R. David Murray
R. David Murray added the comment: I've only scanned the first couple of test failures in your attachment, but they don't seem to have anything to do with spawn or /tmp. -- nosy: +r.david.murray ___ Python tracker

[issue25241] ctypes: access violation reading

2015-09-26 Thread eryksun
eryksun added the comment: Here's a rewrite with a cleaner while loop, at least to me: def list_volumes(): vname = ctypes.create_unicode_buffer(wintypes.MAX_PATH) vhandle = kernel32.FindFirstVolumeW(vname, len(vname)) if vhandle == INVALID_HANDLE_VALUE:

[issue25125] "Edit with IDLE" does not work for shortcuts

2015-09-26 Thread eryksun
eryksun added the comment: > Ah, I misread that part. Will have to look deeper, but I'm not > actually sure that shortcuts are supposed to support the same > operations (though if it shows up, I guess it should work). A LNK shortcut should support the same commands (e.g. open, edit) as its

[issue23600] tizinfo.fromutc changed for tzinfo wih StdOffset=0, DstOffset=1

2015-09-26 Thread Tim Peters
Tim Peters added the comment: I expect Peter is correct: the C fromutc() doesn't match the logic of the Python fromutc(), and there are no comments explaining why the C version changed the logic. The last 4 lines of his `time_issues.py` show the difference. The simplified UKSummerTime

[issue9051] Improve pickle format for timezone aware datetime instances

2015-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For now "_utc" is not a part of API. When use it in pickling, you implicitly make it a part of API, and should support it forever (and force other Python implementations to support it). As far as it looks as implementation detail, there is a risk that the

[issue24972] IDLE: revisit text highlighting for inactive windows on win32

2015-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I verified that inactiveselectbackground exists and starts as ''. Since it should match the active selectbackground on all systems, as set by the current theme. I will try adding a line where selection colors are set: EditorWindow.ResetColorizer:

[issue25245] Compile warnings in _pickle.c

2015-09-26 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Changeset 88d98f6c2d7d causes compile warnings in Modules/_pickle.c. /home/serhiy/py/cpython/Modules/_pickle.c: In function ‘load_counted_long’: /home/serhiy/py/cpython/Modules/_pickle.c:4752:15: warning: ‘pdata’ may be used uninitialized in this function

[issue18814] Add utilities to "clean" surrogate code points from strings

2015-09-26 Thread Martin Panter
Martin Panter added the comment: [padding] I think my suggested colours for the bikeshed would be handle_surrogates() and handle_surrogateescape(). “Rehandle” seems awkward and too assuming to me. And I agree with Serhiy that surrogates are a Unicode thing, not just related to the

[issue25194] Register of Financial Interests for core contributors

2015-09-26 Thread Nick Coghlan
Nick Coghlan added the comment: Posting an alternate draft that takes the approach MAL suggested, emphasising the personal motivation side of things. This one doesn't attempt to pre-categories the list of contributors - instead, I'd expect us to do that based on analysis of the raw text. The

[issue25242] Failed tests for Python 3.5.0 on shared virtual host

2015-09-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be /tmp is mounted on a filesystem that forbids setting the execution bit. -- nosy: +serhiy.storchaka ___ Python tracker

[issue23329] _ssl cannot be compiled with LibreSSL anymore (on OpenBSD 5.5) because of ALPN

2015-09-26 Thread Remi Pointel
Remi Pointel added the comment: Good, I think we should test on a machine with a version of openssl that does not support ALPN to be sure. -- ___ Python tracker

[issue25242] Failed tests for Python 3.5.0 on shared virtual host

2015-09-26 Thread Open Genomes
New submission from Open Genomes: Several tests for Python 3.5.0 failed. The install is a local one on a shared virtual server from bluehost.com This is a local user install, with a prefix in $HOME/python directory. Output of uname -a: Linux box874.bluehost.com 3.12.35.1418868052 #1 SMP Wed