[issue21982] Idle: Regression introduced in configDialog by rev 91509

2014-07-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset af1351800c7a by Terry Jan Reedy in branch '2.7': Issue #21982: Add minimal unittest for configDialog with 46% coverage. http://hg.python.org/cpython/rev/af1351800c7a New changeset 681979c6e6b2 by Terry Jan Reedy in branch '3.4': Issue #21982: Add mi

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The following code demonstrates that we can pack year through second fields in 40 bits: #include struct dt { unsigned year :14; /* 1- of 0-16,383 */ unsigned month :4; /* 1-12 of 0-16 */ unsigned day :5; /* 1-31 of 0-31 */ unsigned ho

[issue21982] Idle configDialog: fix regression and add minimal unittest

2014-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Thanks for catching this. Either I misread pyflakes output or it has a bug. In either case, I should have searched this one like I did some others. The htest caught this. I added a minimal unittest that initially failed, covers half the module, and now passes

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > I suppose another possibility is to get rid of microseconds > internally, and work with a single 4-byte nanosecond member. Yes, that is what I think we should do. I would also split it from the packed fields to give it a 32-bit alignment which should i

[issue15443] datetime module has no support for nanoseconds

2014-07-14 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: If alignment is not required (as is the case in pickle), we can pack year through second + nanosecond fields in 9 bytes. For backwards compatibility we should continue accepting 10-byte pickles, but we can write in a new 9-byte format. --

[issue21984] list(itertools.repeat(1)) causes the system to hang

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Python has no mechanism for identifying the difference > between an infinitely long generator and a long but finite generator. > Eventually, if you left the code running, it should eventually > exhaust physical memory and the page file, then die with a Memo

[issue21978] Support index access on OrderedDict views (e.g. o.keys()[7])

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: Closing this. The premise is flawed. Guido designed mapping views to be a pass-through to the underlying mapping. As such, they would only have sequence behavior if the underlying mapping had sequence behavior. The implementation of both regular dicts

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2014-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I tried v2 and it works, subject to the following comments. 1. (The biggest issue) For me, the 'obvious' implementation would be a narrow text window using the same font and size as the main window. The canvas introduces the problem of having to calculate the

[issue21588] Idle: make editor title bar user configurable

2014-07-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided that it would be better to try to quickly solve Raymond's issue with editor windows in a simpler fashion and not rush this. Once we add a new configuration option, the cross-version nature of user config files means we are more or less stuck with the

[issue21793] httplib client/server status refactor

2014-07-14 Thread Demian Brecht
Demian Brecht added the comment: Bump for a follow-up review or merge -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue20451] os.exec* mangles argv on windows (splits on spaces, etc)

2014-07-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: > My vote is for leaving this alone and letting the higher level > functions be more clever. Changing this function is certain to > break existing code in unpredictable ways. That is sensible. Marking this as closed. -- resolution: -> wont fix sta

[issue19776] Provide expanduser() on Path objects

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: Since all the comments have been addressed, it would be nice if this gets committed. -- stage: patch review -> commit review ___ Python tracker _

[issue18615] sndhdr.whathdr could return a namedtuple

2014-07-14 Thread Claudiu Popa
Claudiu Popa added the comment: Serhiy, if there's no actual gain in changing this, should we close the issue? -- ___ Python tracker ___ _

<    1   2