[issue16933] argparse: remove magic from examples

2013-01-11 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- stage: -> needs patch versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___

[issue16937] -u (unbuffered I/O) command line option documentation mismatch for sys.stdin

2013-01-11 Thread Martijn Pieters
New submission from Martijn Pieters: Run `python3.3 -h` and the `-u` option is documented as: > -u : unbuffered binary stdout and stderr; also PYTHONUNBUFFERED=x > see man page for details on internal buffering relating to '-u' Note that only `stdout` and `stderr` are menti

[issue4350] Remove dead code from Tkinter.py

2013-01-11 Thread Georg Brandl
Georg Brandl added the comment: This kind of change is very similar to other "cleanup" changes, so the classification of "not a bug fix" seems valid. -- ___ Python tracker ___ __

[issue11844] Update json to upstream simplejson latest release

2013-01-11 Thread Bob Ippolito
Bob Ippolito added the comment: To try and make this as painless as possible I have done both things. simplejson is now explicitly dual-licensed MIT or AFL v2.1 and there is also an explicit sentence in LICENSE.txt that states "This code is also licensed to the Python Software Foundation (PSF)

[issue16930] mention limitations and/or alternatives to hg graft

2013-01-11 Thread Ned Deily
Ned Deily added the comment: Keep in mind that the issue isn't which operating system is used; it's whether the file system(s) on which the hg repo resides is (are) case-insensitive or case-sensitive. Most modern operating systems (including OS X) support both file system types and on Unix-y

[issue16937] -u (unbuffered I/O) command line option documentation mismatch for sys.stdin

2013-01-11 Thread Georg Brandl
Changes by Georg Brandl : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue16879] distutils.command.config uses fragile constant temporary file name

2013-01-11 Thread Michał Górny
Michał Górny added the comment: While using. We run parallel merges with out-of-source builds in Gentoo, and I found this to result in a failure when building the 'egenix-mx-base' package [1] which uses the 'config' command. [1]:http://pypi.python.org/pypi/egenix-mx-base -- _

[issue16936] Documentation for stat.S_IFMT inconsistent

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d7a8a4d6f30 by Georg Brandl in branch '2.7': Closes #16936: fix duplicate/ambiguous description of stat.S_IFMT in the docs. http://hg.python.org/cpython/rev/0d7a8a4d6f30 New changeset 3555391a9909 by Georg Brandl in branch '3.3': Closes #16936: fix

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: I'd love to work through the commit process myself once I get through all of the comments. My intention is to become much more active here as Jython3 starts to ramp up over the next year. It would be great if I could eventually get all of Jython's .py files

[issue15539] Fixing Tools/scripts/pindent.py

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d0c5f97af48 by Serhiy Storchaka in branch '2.7': Issue #15539: Fix backup file creation in pindent.py on Windows http://hg.python.org/cpython/rev/2d0c5f97af48 New changeset a9990104f728 by Serhiy Storchaka in branch '3.2': Issue #15539: Fix a backu

[issue15539] Fixing Tools/scripts/pindent.py

2013-01-11 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I hope it will help buidbots. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue16933] argparse: remove magic from examples

2013-01-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Patch attached. -- assignee: -> docs@python components: +Documentation keywords: +easy, patch nosy: +docs@python stage: needs patch -> patch review Added file: http://bugs.python.org/file28698/issue-16933-1.patch ___

[issue16613] ChainMap.new_child could use improvement

2013-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Put a *versionchanged* tag in the doc entry and this is ready to apply. -- ___ Python tracker ___ ___

[issue16613] ChainMap.new_child could use improvement

2013-01-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: rhettinger -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 159967aa24a5 by Brett Cannon in branch '3.3': Issue #16730: Don't raise an exception in http://hg.python.org/cpython/rev/159967aa24a5 New changeset b94f308e9b47 by Brett Cannon in branch 'default': Merge from 3.3 for fix for issue #16730 http://hg.p

[issue16730] _fill_cache in _bootstrap.py crashes without directory execute permissions

2013-01-11 Thread Brett Cannon
Brett Cannon added the comment: Tests added for both the file and unreadable cases and the appropriate exceptions now caught. Thanks to everyone for helping with this! -- resolution: -> fixed stage: test needed -> committed/rejected status: open -> closed versions: +Python 3.4 ___

[issue4350] Remove dead code from Tkinter.py

2013-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: patch review -> commit review type: behavior -> enhancement versions: -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker ___ _

[issue10965] dev task of documenting undocumented APIs

2013-01-11 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: brett.cannon -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue11844] Update json to upstream simplejson latest release

2013-01-11 Thread Brett Cannon
Brett Cannon added the comment: Short of doing an actual merge I don't think so, Bob. Thanks for the changes! Sandro, feel free to do any merge you were planning to do. -- ___ Python tracker __

[issue4350] Remove dead code from Tkinter.py

2013-01-11 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- components: +Tkinter ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Jason Huntley added the comment: Finally! I was able to get all building on mingw64, gcc 4.7.2, and python 3.3. I had to take everybody's work here a little further, and I have produced a new patch which will build python33 using the latest minw64 compiler in an msys environment. I cloned the

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Jason Huntley added the comment: Hey Guys, I've furthered the progress of the patch I've been working on. THis patch builds Python3.3 in mingw64 & msys using gcc 4.7.2 compiler. This patch can also enable and build the following modules: ctypes bz2 multiprocessing sqlite3 ssl pyexpat zlib Of

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Changes by Jason Huntley : Removed file: http://bugs.python.org/file28699/py3k-20121227-MINGW.patch ___ Python tracker ___ ___ Python-bugs-list

[issue3871] cross and native build of python for mingw* hosts

2013-01-11 Thread Jason Huntley
Jason Huntley added the comment: Hey Guys, I've furthered the progress of the patch I've been working on. THis patch builds Python3.3 in mingw64 & msys using gcc 4.7.2 compiler. This patch can also enable and build the following modules: ctypes bz2 multiprocessing sqlite3 ssl pyexpat zlib Of

[issue16931] mention work-around to create diffs in default/non-git mode

2013-01-11 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue12004] PyZipFile.writepy gives internal error on syntax errors

2013-01-11 Thread Ben Morgan
Ben Morgan added the comment: I've sent it again. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue16613] ChainMap.new_child could use improvement

2013-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: Also, please change the variable name from *amap* to either *m* or *mapping*. -- ___ Python tracker ___ _

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-11 Thread Sven Brauch
Sven Brauch added the comment: Not an issue, having this thing resolved upstream would save a huge lot of pain elsewhere. ;) So, to make sure... I'll go to the asdl file, make arguments have two arg attributes which store the data for the var and kwarg which they can contain, then I adjust as

[issue16938] pydoc confused by __dir__

2013-01-11 Thread Ronald Oussoren
New submission from Ronald Oussoren: If a class implements __dir__ to also return a number of attributes that aren't present in the class __dict__ inspect.classify_class_attrs gets confused and assumes the home class is None. This in turn confused pydoc, docclass in pydoc assumes that the 'cla

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: > Well, we generally prefer to go through the review process always, except for > relatively small commits (which some of yours may be). Good to know, in that case I'll plan to go through the review process always. > 2.7 is separate from 3.x. So to commit t

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: The easiest change would essentially involve inlining the code for append/appendleft and then removing unneeded steps (the state update, the INCREF/DECREF of item, and the TRIM() test). Of these, the INCREF/DECREF is likely to be a nice win because we can

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg179666 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16937] -u (unbuffered I/O) command line option documentation mismatch for sys.stdin

2013-01-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, stdin is always buffered, simply because it doesn't make a difference (except if you're trying to read raw data from fd 0). -- ___ Python tracker _

[issue15031] Split .pyc parsing from module loading

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset a4292889e942 by Brett Cannon in branch 'default': Issue #15031: Refactor some code in importlib pertaining to validating http://hg.python.org/cpython/rev/a4292889e942 -- nosy: +python-dev ___ Python track

[issue15031] Split .pyc parsing from module loading

2013-01-11 Thread Brett Cannon
Brett Cannon added the comment: OK, so I took Nick's suggestion of doing header verification separately from the actual compilation, but I ended up just writing the patch from scratch to see how a possible API might play out. ATM the API is as functions and private, but if I find the need/desi

[issue16473] Minor difference in decoding quoted-printable text

2013-01-11 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Ping. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16613] ChainMap.new_child could use improvement

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset c0ddae67f4df by Vinay Sajip in branch 'default': Closes #16613: Added optional mapping argument to ChainMap.new_child. http://hg.python.org/cpython/rev/c0ddae67f4df -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread John O'Connor
John O'Connor added the comment: Looking at the implementation (rather quickly)[1]. I'm wondering if there is a reason why the appendleft(pop()) loop is required. It would seem the best way would be to determine the new head link, make the previous link the new end link and concatenate the two

[issue16715] Get rid of IOError. Use OSError instead

2013-01-11 Thread py.user
py.user added the comment: Zen: Explicit is better than implicit. In the face of ambiguity, refuse the temptation to guess. I assume that someone changes the LoadError class and goes into the revert function. How he can figure out that the cookies should return to the previous state if LoadErr

[issue16795] Patch: some changes to AST to make it more useful for static language analysis

2013-01-11 Thread Benjamin Peterson
Benjamin Peterson added the comment: Yes. Feel free to do that in separate patches as needed. -- ___ Python tracker ___ ___ Python-bug

[issue10544] yield expression inside generator expression does nothing

2013-01-11 Thread Ed Campbell
Changes by Ed Campbell : -- nosy: +esc24 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue16880] Importing "imp" will fail if dynamic loading not supported

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given the current (3.3) imp.py docstring """This module provides the components needed to build your own __import__ function. Undocumented functions are obsolete. In most cases it is preferred you consider using the importlib module's functionality over this mo

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Yes, export patch from 3.2 or 3.3 (which you need to do anyway to upload here), import patch into 2.7. Feel free to ask questions on the Core-mentorship list. The devguide is still a work-in-progress, but has had several recent patches. Great to hear that Jyth

[issue16880] Importing "imp" will fail if dynamic loading not supported

2013-01-11 Thread Jeffrey Armstrong
Jeffrey Armstrong added the comment: Terry: If I'm understanding this correctly, C_EXTENSION implies a dynamically loaded module authored in C. The issue on FreeMiNT, the operating system in question, is that there is no support for true shared objects. Any C modules must be statically link

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue16899] Add support for C99 complex type (_Complex) as ctypes.c_complex

2013-01-11 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread R. David Murray
R. David Murray added the comment: I'm not positive what Terry means by export patch and import patch...I think hg actually has commands like that, but I don't use them myself. I just use hg diff to generate the diff/patch file, and then use the regular patch command to apply it to 2.7. (I'm

[issue15574] IDLE crashes using clipboard copy command on OS X with ActiveTcl 8.5.12

2013-01-11 Thread Leon Maurer
Leon Maurer added the comment: Thanks for the update. IDLE does indeed work for me now. Unfortunately, the program I was trying to get working under OS X still has lots of problems. At least it doesn't crash due to copy and paste anymore. -- ___ Pyt

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: I'm getting an error when I try to upload patches via Reitveld: TypeError at /review/16886/add int() argument must be a string or a number, not 'AddForm' so I'm attaching my updated patch here. Is this a known issue? If not, where should I report it? --

[issue16901] In http.cookiejar.FileCookieJar() the .load() and .revert() methods don't work

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: First, a minor issue about class signatures: doc: FileCookieJar(filename, delayload=None, policy=None) code: def __init__(self, filename=None, delayload=False, policy=None) Pretty clearly, doc should be changed to match code, as later code allow for possibility

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Frank Wierzbicki
Frank Wierzbicki added the comment: On Fri, Jan 11, 2013 at 6:34 PM, Frank Wierzbicki wrote: > Reitveld *Rietveld I see just uploading a new patch to bugs.python does the right thing so I'll just move along :) -- nosy: +Frank.Wierzbicki ___ Python t

[issue16930] mention limitations and/or alternatives to hg graft

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: Windows preserves case when writing a filename but ignores it when searching and opening filenames. IE, if I have tem.py and try to save TEM.py (from IDLE), it says 'tem.py exists, overwrite?'. So will or will not that be a problem for graft with 2.7/3.x modul

[issue16939] Broken link in 14. Cryptographic Service

2013-01-11 Thread Jason Alvarado
New submission from Jason Alvarado: http://docs.python.org/3.1/library/crypto.html The link to A.M, Kuchling URL is broken http://www.amk.ca/python/code/crypto.html -- assignee: docs@python components: Documentation messages: 179758 nosy: Jason.Alvarado, docs@python priority: normal se

[issue16930] mention limitations and/or alternatives to hg graft

2013-01-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: To clarify my original comment, I got an error about ConfigParser.py/configparser.py even when that file was not part of the change. -- ___ Python tracker ___

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- keywords: +patch Added file: http://bugs.python.org/file28703/rotate.diff ___ Python tracker ___ ___

[issue16933] argparse: remove magic from examples

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The new examples are much better and to me the patch looks ready to apply. -- nosy: +terry.reedy stage: patch review -> commit review ___ Python tracker ___

[issue16933] argparse: remove magic from examples

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset b2bb3219d36d by Chris Jerdonek in branch '2.7': Issue #16933: Improve choices examples in argparse documentation. http://hg.python.org/cpython/rev/b2bb3219d36d New changeset eaa2a6074741 by Chris Jerdonek in branch '3.2': Issue #16933 (2.7 forward-p

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like this idea, including the function subdivisions. I once suggested moving the classes into the later builtins chapter, but it was pointed out to me that a) they once *were* functions (no longer relevant); b) they are callables (very relevant); and hence p

[issue16933] argparse: remove magic from examples

2013-01-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for reporting the suggestion, Thomas. And thanks for looking over the patch, Terry. -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker

[issue11176] give more meaningful argument names in argparse documentation

2013-01-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: Issue 16933 improved the "choices" examples. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16927] Separate built-in types from functions and group similar functions in functions.rst

2013-01-11 Thread Chris Jerdonek
Chris Jerdonek added the comment: I admit that I'm used to the alphabetical listing, but I like the idea for this organization. In fact, it's similar to how the Built-in Types page is organized: grouped by similarity rather than listed alphabetically. Also just a note: strictly speaking there

[issue16940] argparse 15.4.5.1. Sub-commands documentation missing indentation

2013-01-11 Thread paul j3
New submission from paul j3: Argparse 15.4.5.1. Sub-commands In the example: >>> parser.parse_args(['--help']) usage: PROG [-h] [--foo] {a,b} ... positional arguments: {a,b} sub-command help a a help b b help optional arguments: -h, --help show this help message and exit --fo

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: > The devguide is still a work-in-progress I would say it's already quite mature, however I'm rewriting the part about commiting: see #14468 and https://bitbucket.org/ezio_melotti/devguide/src/default/committing.rst?at=default (in particular the "working with m

[issue14468] Update cloning guidelines in devguide

2013-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: FTR I created a bitbucket clone of the devguide to make reviews easier: Here you can find the rendered output: https://bitbucket.org/ezio_melotti/devguide/src/default/committing.rst?at=default Here you can find the patches I applied and comment on them: https://

[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-11 Thread Leon Maurer
New submission from Leon Maurer: I'm running in to a problem where TkInter won't update the display on OS X. I've attached a simple piece of code that has this problem, and I've also made a short screen-cast of the problem: https://mywebspace.wisc.edu/lnmaurer/web/updatebug/updatebug.mov The

[issue16935] unittest should understand SkipTest at import time during test discovery

2013-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW the difference between support.import_module and the try/except/skip is that usually the former is used when *all* the tests require the imported module, whereas the latter is used when only some of the tests requires it. -- nosy: +ezio.melotti ___

[issue16885] SQLite3 iterdump ordering

2013-01-11 Thread Ezio Melotti
Ezio Melotti added the comment: Can you provide a minimal script to reproduce the issue? If you can then turn the script in a unittest, you can try to patch the code and order the sqlite_master table and see if that fixes the problem. -- nosy: +ezio.melotti, ghaering, r.david.murray sta

[issue16941] TkInter won't update display on OS X if delay is too small

2013-01-11 Thread Ned Deily
Ned Deily added the comment: Thanks for the thorough documentation. If you haven't already, I would ask about the problem over on the Tkinter mailing list where people with heavy-duty Tkinter experience hang out. http://mail.python.org/mailman/listinfo/tkinter-discuss -- nosy: +ned.d

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9fb793b60e79 by Raymond Hettinger in branch 'default': Issue #16398: Optimize deque.rotate() http://hg.python.org/cpython/rev/9fb793b60e79 -- nosy: +python-dev ___ Python tracker

[issue16398] deque.rotate() could be much faster

2013-01-11 Thread Raymond Hettinger
Raymond Hettinger added the comment: John, that wouldn't work because the blocks are fixed length and the endmost blocks are typically only partially filled, so all the data elements have to shift positions within their blocks. -- resolution: -> fixed status: open -> closed _

[issue16886] Doctests in test_dictcomp depend on dict order

2013-01-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: The hg workbench gui of tortoisehg, which I use, has make/apply patch selections that get translated to hg commands. So same thing ;-). -- ___ Python tracker _

<    1   2