[issue16418] argparse with many choices can generate absurdly long usage message

2012-11-14 Thread Chris Jerdonek
Chris Jerdonek added the comment: For maintenance releases, I think I would favor abbreviating the list only if it is lossless (e.g. for xrange objects). I think I would also be okay with abbreviating for arbitrary xranges -- in particular for arbitrary steps. For example, for xrange(0, 50,

[issue16400] update default PyPI behavior in docs re: listing versions

2012-11-14 Thread Martin v . Löwis
Martin v. Löwis added the comment: +1, that's all correct. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16400 ___ ___ Python-bugs-list mailing

[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-14 Thread Case Van Horsen
Case Van Horsen added the comment: Do we also want to change int(infinity) to return ValueError? I think consistent behavior between int() and Fraction() is valuable. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16469

[issue16465] dict creation performance regression

2012-11-14 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465 ___ ___ Python-bugs-list mailing list

[issue16468] argparse only supports iterable choices

2012-11-14 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +bethard ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16468 ___ ___ Python-bugs-list mailing

[issue12907] Update test coverage devguide page

2012-11-14 Thread Brett Cannon
Brett Cannon added the comment: Committed in dac396a730e4 -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12907

[issue16418] argparse with many choices can generate absurdly long usage message

2012-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that my extreme, strawman-ish, proposal, was, well, too extreme. Here is a more realistic proposal similar to David's. if isinstance(choices, range) and len(choices) 50: choice_txt = range_rep(choices) # details to be determined try: choice_txt =

[issue16465] dict creation performance regression

2012-11-14 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Antoine, I would consider this a performance regression to solve for 3.3.1. Small dictionary creation is everywhere in CPython. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16465

[issue16468] argparse only supports iterable choices

2012-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: If the assumption of iterability is in more than just the help and error messages, then I can see the point of calling this an enhancement. I suspect that now, if a custom subset of ints or strings is the actual domain, people just skip choices and add custom

[issue16418] argparse with many choices can generate absurdly long usage message

2012-11-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see that in #16468, Chris proposes that existing versions should let the TypeError propagate, possibly with an improved error message, and call the use of repr for non-iterables a new feature (partly on the basis that more fixes than this are needed to use

[issue16465] dict creation performance regression

2012-11-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Antoine, I would consider this a performance regression to solve for 3.3.1. Small dictionary creation is everywhere in CPython. Again, feel free to provide real-world benchmark numbers proving the regression. I've already posted some figures. --

[issue16458] subprocess.py throw The handle is invalid error on duplicating the STD_INPUT_HANDLE

2012-11-14 Thread Gregory P. Smith
Gregory P. Smith added the comment: Sorry I can't help on the windows side of things. I don't have access to any windows systems. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16458 ___

[issue16400] update default PyPI behavior in docs re: listing versions

2012-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2d266ce80712 by Chris Jerdonek in branch '3.2': Update the description of which package versions PyPI displays (issue #16400). http://hg.python.org/cpython/rev/2d266ce80712 New changeset ec037316a445 by Chris Jerdonek in branch '3.3': Merge from

[issue16400] update default PyPI behavior in docs re: listing versions

2012-11-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7db2a27c07be by Chris Jerdonek in branch '2.7': Backport from 3.2: update PyPI docs regarding listing versions (issue #16400). http://hg.python.org/cpython/rev/7db2a27c07be -- ___ Python tracker

[issue16400] update default PyPI behavior in docs re: listing versions

2012-11-14 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16400 ___

[issue16312] New command line option supported by unittest.main() for running initialization code before tests

2012-11-14 Thread Piotr Dobrogost
Piotr Dobrogost added the comment: But I think Piotr's use case is when you download some new library (...) Yes, indeed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16312 ___

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-11-14 Thread Brett Cannon
Brett Cannon added the comment: Here is a new patch which removes the expected skips stuff and adds a required_on argument to test.support.import_module() for those cases where missing a module is an error (in the patch it's _winreg on Windows). If people are fine with this cleanup then the

[issue992389] attribute error due to circular import

2012-11-14 Thread Richard Oudkerk
Richard Oudkerk added the comment: In Torsten's example from . import moduleX can be replaced with moduleX = importlib.import_module('.moduleX', __package__) (*) or moduleX = importlib.import_module('package.moduleX') If that is not pretty enough then perhaps the new

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Alejandro Javier Peralta Frías
New submission from Alejandro Javier Peralta Frías: New to python-dev; I grab a beginner tasks increase test coverage and I decided to add coverage to this bit of code in the quopri module: # quopri.py L138while n 0 and line[n-1:n] in b \t\r: L139n = n-1 As far

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Alejandro Javier Peralta Frías
Changes by Alejandro Javier Peralta Frías apera...@machinalis.com: -- nosy: +brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16473 ___

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread R. David Murray
R. David Murray added the comment: I think I can answer your last question. There are two quopri algorithms, one where spaces are allowed (message body) and one where they aren't (email headers). For the rest, I'd have to take a closer look than I have time for right now. --

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Alejandro Javier Peralta Frías
Alejandro Javier Peralta Frías added the comment: I think I can answer your last question. There are two quopri algorithms, one where spaces are allowed (message body) and one where they aren't (email headers). OK, thank you. Good to know. --

[issue16473] Minor difference in decoding quoted-printable text

2012-11-14 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16473 ___ ___ Python-bugs-list mailing list

[issue7083] locals() behaviour differs when tracing is in effect

2012-11-14 Thread Ned Batchelder
Ned Batchelder added the comment: I wrote about this here: http://nedbatchelder.com/blog/201211/tricky_locals.html A reader suggested this addition to the docs, which I like: Multiple invocations within the scope update and return the same dictionary instance. When a trace function is in

[issue16474] More code coverage for imp module

2012-11-14 Thread alejandro david weil
New submission from alejandro david weil: Add some 5% more code-coverage for imp module in tests. -- components: Tests files: imp_test_patch.diff keywords: patch messages: 175597 nosy: brett.cannon, tenuki priority: normal severity: normal status: open title: More code coverage for imp

[issue16474] More code coverage for imp module

2012-11-14 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Not sure increasing test coverage would be tolerated in 3.3.1. I would be +1 to it. -- nosy: +jcea versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16474

[issue16472] Distutils+mingw links agains msvcr90, while python27.dll is linked agains msvcrt

2012-11-14 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +brian.curtin, loewis, mhammond, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16472 ___

[issue16470] Backport set and dictionary comprehensions in tutorial to 2.7

2012-11-14 Thread Éric Araujo
Éric Araujo added the comment: Good idea. Could you add a note that this is new in 2.7? (Either using versionadded Sphinx directives or just remarks in plain English, not sure which one would be best.) -- nosy: +eric.araujo ___ Python tracker

[issue16470] Backport set and dictionary comprehensions in tutorial to 2.7

2012-11-14 Thread Georg Brandl
Georg Brandl added the comment: We don't use versionadded/changed directives in the tutorial. (There was only one until 2 minutes ago, which was misplaced in any case.) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org

[issue16474] More code coverage for imp module

2012-11-14 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16474 ___ ___ Python-bugs-list

<    1   2