[issue16878] argparse: positional args with nargs='*' defaults to []

2013-04-17 Thread paul j3
paul j3 added the comment: In this example: p.add_argument('--foo', nargs='*', default=None) p.parse_args([]) Namespace(foo=None) p.parse_args(['--foo']) Namespace(foo=[]) 'p.parse_args([])' just assigns the default to 'foo' in the Namespace. p.parse_args(['--foo'])

[issue17532] IDLE: Always include Options menu on MacOSX

2013-04-17 Thread Guilherme Simões
Guilherme Simões added the comment: I actually removed something I shouldn't have in the first patch so I'm attaching a new one. -- Added file: http://bugs.python.org/file29899/17532MenuOptions-1.patch ___ Python tracker rep...@bugs.python.org

[issue16694] Add pure Python operator module

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: length_hint() looks ok as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16694 ___ ___ Python-bugs-list

[issue17758] test_site fails when the user does not have a home directory

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: As a sidenote, I find it a bit scary that test_site even *tries* to create USER_SITE. The test suite shouldn't touch anything outside of test-specific temp files. -- nosy: +christian.heimes, pitrou type: enhancement - behavior versions: +Python 2.7

[issue17758] test_site fails when the user does not have a home directory

2013-04-17 Thread Christian Heimes
Christian Heimes added the comment: Don't be scared ... :) I'll think about a solution. -- assignee: - christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17758 ___

[issue17772] test_gdb doesn't detect a gdb built with python3.3 (or higher)

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: test_gdb skipped -- gdb not built with embedded python support $ gdb --version GNU gdb (GDB) 7.5.91.20130408 $ ldd /usr/bin/gdb|grep python libpython3.3m.so.1.0 = /usr/lib/libpython3.3m.so.1.0 -- messages: 187151 nosy: dmalcolm, doko

[issue17773] test_pydoc fails with the installed testsuite (2.7)

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: these are failures not seen with 3.x, running with -S doesn't help. test_pydoc test test_pydoc failed -- multiple errors occurred; run in verbose mode for details 1 test failed: test_pydoc Re-running failed tests in verbose mode Re-running test

[issue17750] allow the testsuite to run in the installed location

2013-04-17 Thread Matthias Klose
Changes by Matthias Klose d...@debian.org: -- dependencies: +test_pydoc fails with the installed testsuite (2.7) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17750 ___

[issue17353] Plistlib outputs empty data tags when deeply nested

2013-04-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: The tests look good, thanks for writing them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17353 ___ ___

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 65623d7dc76e by Giampaolo Rodola' in branch '3.3': Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. http://hg.python.org/cpython/rev/65623d7dc76e -- nosy: +python-dev

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87882c96d138 by Giampaolo Rodola' in branch 'default': Fix issue #17707: multiprocessing.Queue's get() method does not block for short timeouts. http://hg.python.org/cpython/rev/87882c96d138 -- ___

[issue17707] Multiprocessing queue get method does not block for short timeouts

2013-04-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- keywords: +3.2regression, 3.3regression resolution: - fixed status: open - closed versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17707

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Tim Golden
Tim Golden added the comment: Attached is a qd script to produce the list of extension - mimetype maps for a version of the mimetypes module. -- Added file: http://bugs.python.org/file29900/mt.py ___ Python tracker rep...@bugs.python.org

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Tim Golden
Tim Golden added the comment: Three outputs produced by mt.py: tip as-is; tip without registry; tip with new approach to registry. The results for 2.7 are near-enough identical. Likewise the results for an elevated prompt. -- Added file: http://bugs.python.org/file29901/mt-tip.txt Added

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Tim Golden
Tim Golden added the comment: There seems to be a consensus that the current behaviour is undesirable, indeed broken for any meaningful use. The critical argument against the current Registry approach is that it returns unexpected (or outright incorrect) mimetypes for very standard extensions.

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think it's important to stick to established standards for MIME types and to make sure that Python returns the same values on all platforms using the default settings. Apache comes with a mime.types file which includes both the official IANA types and

[issue17774] unable to disable -r in run_tests.py

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: it is not possible to disable -r in run_tests.py. Other options like -u or -j can be overwritten, but not removing -r. -- components: Tests messages: 187160 nosy: doko priority: normal severity: normal stage: needs patch status: open title: unable to

[issue17724] urllib -- add_handler method refactoring for clarity

2013-04-17 Thread Max Mautner
Changes by Max Mautner max.maut...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17724 ___

[issue17775] Error with Hello, World in 3.3.1

2013-04-17 Thread David Walker
New submission from David Walker: I'm brand new to Python (and programming in general) and I'm reading Python for Dummies while trying to learn this. I downloaded 3.3.1 and when I entered the command print Hello, World! it would give the following error: SyntaxError: invalid syntax File

[issue17618] base85 encoding

2013-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After a more careful look of the b85encode code I say that it's implementation is not optimal. For the sake of simplicity the entire volume of data is copied several times. This can affect the processing of a large volume of data. On other hand, this dumb

[issue17775] Error with Hello, World in 3.3.1

2013-04-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Python 3 and Python 2 have different syntax (same code won't work with both versions). You would have to run print(Hello, World) Please close this bug as invalid. -- nosy: +Ramchandra Apte type: compile error - behavior

[issue17775] Error with Hello, World in 3.3.1

2013-04-17 Thread David Walker
Changes by David Walker walka...@gmail.com: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17775 ___

[issue17768] _decimal: allow NUL fill character

2013-04-17 Thread Ramchandra Apte
Ramchandra Apte added the comment: Yes. -- nosy: +Ramchandra Apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17768 ___ ___ Python-bugs-list

[issue17776] IDLE Internationalization

2013-04-17 Thread Damien Marié
New submission from Damien Marié: Following the issue 17760 Internationalization should be implemented. I propose to implement it as an optionnal settings first. And with the gettext library. I'm not experienced with the idlelib module but here is a first patch, don't hesitate to comment it.

[issue9849] Argparse needs better error handling for nargs

2013-04-17 Thread Mark Lawrence
Mark Lawrence added the comment: The first error raised is TypeError: 'str' object cannot be interpreted as an integer, followed by ValueError: length of metavar tuple does not match nargs. Therefore the code has already been changed to reflect the title of this issue. If other code changes

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Dave Chambers
Dave Chambers added the comment: Enough with the bikeshedding... it's been 10 months... fix the bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15207 ___

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Brian Curtin
Brian Curtin added the comment: Just an FYI, but if it takes 10 more months to get it right, we'll do that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15207 ___

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread R. David Murray
R. David Murray added the comment: Personally I prefer having the test create the needed test file, rather than adding a new file to the repository, for small files. That's just my opinion, though; as you found what you did is common practice currently. Your patch doesn't include the file,

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread Kyle Roberts
Kyle Roberts added the comment: Thanks for the quick response. The test file is sandwiched in between the two patch files, so it's easy to miss. You made a great point about not cluttering up the repo with any unnecessary files. I'll change the test methods to create a new copy_from file

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread R. David Murray
R. David Murray added the comment: I did miss it. Not that it matters if you are going to rewrite the test, but FYI you can include new files in a patch by adding them ('hg add') before doing the 'hg diff' to generate the patch. -- ___ Python

[issue17618] base85 encoding

2013-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After searching a lot of other implementations of this encoding I conclude that there are at least three different variants. 1. The original btoa/atob encoding. 4 zeros are packaged as 'z', last incomplete 4 bytes are padded by zeros, an output is wrapped

[issue17777] Unrecognized string literal escape sequences give SyntaxErrors

2013-04-17 Thread Reynir Reynisson
New submission from Reynir Reynisson: Strings like \u trigger a SyntaxError. According to the language reference all unrecognized escape sequences are left in the string unchanged[0]. The string \u clearly doesn't match any of the escape sequences (in particular \u). This may be

[issue17618] base85 encoding

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: After searching a lot of other implementations of this encoding I conclude that there are at least three different variants. Yes. The current proposal is to include both the Adobe version (ascii85) and the Mercurial/Git version (base85). btoa/atob seems

[issue17777] Unrecognized string literal escape sequences give SyntaxErrors

2013-04-17 Thread R. David Murray
R. David Murray added the comment: It is a recognized escape sequence, but the syntax of the escape sequence is wrong, thus the syntax error. An escape sequence is a backslash character followed by a letter. Perhaps that is the bit that needs to be clarified in the docs? -- nosy:

[issue17776] IDLE Internationalization

2013-04-17 Thread Olivier Berger
Olivier Berger added the comment: Excellent. I've started playing with pygettext and msgfmt and it looks like this works, from the initial tests I've made -- nosy: +olberger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17776

[issue17776] IDLE Internationalization

2013-04-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, roger.serwy, terry.reedy stage: - patch review versions: +Python 2.7, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17776

[issue14315] zipfile.ZipFile() unable to open zip File

2013-04-17 Thread Void
Void added the comment: FWIW, I think it will OK to just ignore extra fields that we can't interpret as according to the standard. The only one we currently care about is the Zip64 extended information extra field. Also, other programs (including the Info-Zip tools) seem to mostly ignore

[issue17050] argparse.REMAINDER doesn't work as first argument

2013-04-17 Thread paul j3
paul j3 added the comment: The problem isn't with REMAINDER, but with the distinction between optionals and arguments. If you change '--def' to 'def', the parse should work: p = ArgumentParser(prog='test.py') p.add_argument('remainder', nargs=argparse.REMAINDER) p.parse_args(['def'])

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread Kyle Roberts
Kyle Roberts added the comment: Very cool, I didn't think it'd be included in the patch for some reason. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17673 ___

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-04-17 Thread Ger Luijten
Ger Luijten added the comment: Hello Roger, To you and others that worked on this bug a big thanks for the extra deep dig into the chain of events to find this old bug and fix it. Impressive! Because I'm not familiar with the inner workings that cause this bug I was wondering if the kill

[issue17778] Fix test discovery for test_multiprocessing.py

2013-04-17 Thread Zachary Ware
New submission from Zachary Ware: I think this one only didn't work with discovery by accident: the only change necessary to make discovery pass was to make _TestPoll match all other _Test* classes by inheriting from BaseTestCase instead of unittest.TestCase. The remainder of the changes are

[issue17050] argparse.REMAINDER doesn't work as first argument

2013-04-17 Thread paul j3
paul j3 added the comment: Here's a way of passing an optional-like argument to a subparser: parser = argparse.ArgumentParser() subparsers = parser.add_subparsers(dest='cmd') sub1 = subparsers.add_parser('cmd') sub1.add_argument('foo',nargs='*') args = parser.parse_args('cmd

[issue17555] ForkAwareThreadLock leak after fork

2013-04-17 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- title: Creating new processes after importing multiprocessing.managers consumes more and more memory - ForkAwareThreadLock leak after fork versions: +Python 3.3, Python 3.4 ___ Python tracker

[issue17772] test_gdb doesn't detect a gdb built with python3.3 (or higher)

2013-04-17 Thread Dave Malcolm
Dave Malcolm added the comment: I didn't know that gdb supported embedding Python 3. Is this a set of patches you're applying downstream, or an official gdb feature? If so, it means everyone coding to the gdb API needs to somehow make their FOO-gdb.py files be Python 3-compatible.

[issue17772] test_gdb doesn't detect a gdb built with python3.3 (or higher)

2013-04-17 Thread Matthias Klose
Matthias Klose added the comment: yes, this from the FSF 7.6 branch -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17772 ___ ___

[issue17772] test_gdb doesn't detect a gdb built with python3.3 (or higher)

2013-04-17 Thread Dave Malcolm
Dave Malcolm added the comment: Thanks. Does upstream gdb have a plan dcoumented somewhere for how to deal with all of the FOO-gdb.py files. Are they expected to be coded to the common Python 2/3 subset? -- ___ Python tracker

[issue17618] base85 encoding

2013-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: btoa/atob seems extinct. At least half of ascii85 encoders in wild implement this variant. I think we can provide a universal solution compatible (with some pre/postprocessing) with both variants. Enclose encoded data in ~ and ~ or not, and at which

[issue17618] base85 encoding

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 17 avril 2013 à 18:14 +, Serhiy Storchaka a écrit : I think we can provide a universal solution compatible (with some pre/postprocessing) with both variants. Enclose encoded data in ~ and ~ or not, and at which column wrap an encoded data.

[issue17673] add `copy_from` argument to temporaryfile

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some comments about the patch: - unless I'm missing something, I think you should re-use the fd instead of reopening the file by name - it would be nice if copy_from accepted an open file-like object, e.g. a BytesIO instance - I don't think you need a specific

[issue17779] Fix test discovery for test_osx_env.py

2013-04-17 Thread Zachary Ware
New submission from Zachary Ware: This patch converts test_osx_env.py to use a skip decorator instead of just not running the test at all. -- components: Tests files: test_osx_env_discovery.diff keywords: patch messages: 187189 nosy: brett.cannon, ezio.melotti, zach.ware priority:

[issue17780] the test suite should use a TEMPDIR in the build directory, not the source directory

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: the test suite should use a TEMPDIR in the build directory, not the source directory, e.g. the source directory might not be writeable. looks like regrtest._make_temp_dir_for_build() needs just to use abs_builddir instead of srcdir. -- components:

[issue17781] optimize compilation options

2013-04-17 Thread Antoine Pitrou
New submission from Antoine Pitrou: Ubuntu's system Python 3.3 shows consistently better performance than a vanilla Python 3.3: around 10-15% faster in general (see attached benchmark numbers). If this can be attributed to different compilation options, it would be nice to backport those

[issue17618] base85 encoding

2013-04-17 Thread Martin Morrison
Martin Morrison added the comment: Using a trick with struct.unpack() has very unpleasant side effect. It might be a few speed up encoding, but creates the Struct object with the size is many times larger than the size of the processed data. Worse, this object is cached and continues to

[issue17781] optimize compilation options

2013-04-17 Thread Matthias Klose
Matthias Klose added the comment: most of that can be attributed to the pgo build, which is upstream for a long time. the second thing to do is to build with lto, and see what speedups you get in addition. and it certainly helps to build the interpreter statically (without --enable-shared).

[issue17761] platform._parse_release_file doesn't close the /etc/lsb-release file, doesn't know about 'Ubuntu'

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can't you use a with statement instead of calling close() explicitly? -- nosy: +lemburg, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17761 ___

[issue17618] base85 encoding

2013-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Can you elaborate on this? What leakage is there? I assume this is some implementation quirk of the struct module that I'm not aware of. issue14596. -- ___ Python tracker rep...@bugs.python.org

[issue17618] base85 encoding

2013-04-17 Thread Martin Morrison
Martin Morrison added the comment: Can you elaborate on this? What leakage is there? I assume this is some implementation quirk of the struct module that I'm not aware of. issue14596. Thanks for the pointer. I will rework the patch for the encoder/decoders to use an explicit Struct so that

[issue17782] Fix test_signal failure on x32

2013-04-17 Thread Antoine Pitrou
New submission from Antoine Pitrou: x32 is a special Linux ABI on x86-64 CPUs. When compiling for x32, there's a failure in test_sigtimedwait. The failure is due to the fact that on x32, long is 32 bits but timespec.tv_nsec is 64 bits. Therefore we can't pass the pointer to tv_nsec directly

[issue17782] Fix test_signal failure on x32

2013-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- type: crash - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17782 ___ ___ Python-bugs-list

[issue17618] base85 encoding

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Serhiy, Martin, perhaps one of you could report the potential memory leak on the Mercurial bug tracker: http://bz.selenic.com/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17618

[issue17783] run the testsuite in batched mode

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: running all the tests in one batch sometimes can go wrong. there is of course the --single mode, but starting the testsuite for each single test seems to be a bit of overhead. So extend the --single API to something like --next=n which runs the next n

[issue13831] get method of multiprocessing.pool.Async should return full traceback

2013-04-17 Thread Paul Winkler
Changes by Paul Winkler pw_li...@slinkp.com: -- nosy: +slinkp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13831 ___ ___ Python-bugs-list mailing

[issue13831] get method of multiprocessing.pool.Async should return full traceback

2013-04-17 Thread Paul Winkler
Changes by Paul Winkler pw_li...@slinkp.com: -- versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13831 ___ ___ Python-bugs-list

[issue17782] Fix test_signal failure on x32

2013-04-17 Thread STINNER Victor
STINNER Victor added the comment: The patch looks good to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17782 ___ ___ Python-bugs-list

[issue17777] Unrecognized string literal escape sequences give SyntaxErrors

2013-04-17 Thread Reynir Reynisson
Reynir Reynisson added the comment: Thank you for the quick reply. Yes, something along those lines would help. Maybe adding The escape sequence \x expects exactly two hex digits would make it even clearer. -- ___ Python tracker

[issue17782] Fix test_signal failure on x32

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7a0fb0f59cf6 by Antoine Pitrou in branch '3.3': - Issue #17782: Fix undefined behaviour on platforms where ``struct timespec``'s tv_nsec member is not a C long. http://hg.python.org/cpython/rev/7a0fb0f59cf6 New changeset f9e0eacb6b13 by Antoine

[issue17782] Fix test_signal failure on x32

2013-04-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17782 ___

[issue14174] argparse.REMAINDER fails to parse remainder correctly

2013-04-17 Thread paul j3
paul j3 added the comment: An alternative to Jason's example: parser = argparse.ArgumentParser() parser.add_argument('app') parser.add_argument('--config') parser.add_argument('app_args', nargs=argparse.REMAINDER) args = parser.parse_args(['--config', 'bar', 'app']) print vars(args) # as

[issue17555] ForkAwareThreadLock leak after fork

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 66731a1b1aa4 by Richard Oudkerk in branch '2.7': Issue #17555: Fix ForkAwareThreadLock so that size of after fork http://hg.python.org/cpython/rev/66731a1b1aa4 New changeset 21314f27a40c by Richard Oudkerk in branch '3.3': Issue #17555: Fix

[issue14174] argparse.REMAINDER fails to parse remainder correctly

2013-04-17 Thread paul j3
paul j3 added the comment: By the way, parser.parse_args() uses parse_known_arg(). parse_known_args returns a Namespace and a list of unknown arguments. If that list is empty, parse_args returns the Namespace. If the list is not empty, parse_args raises an error. So parse_known_args does

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset edf029fc9591 by Victor Stinner in branch 'default': Close #17694: Add minimum length to _PyUnicodeWriter http://hg.python.org/cpython/rev/edf029fc9591 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open -

[issue17784] the test suite should honor an http_proxy for running the test suite

2013-04-17 Thread Matthias Klose
New submission from Matthias Klose: the test suite should honor an http_proxy for running the test suite, at least for all the tests using the urlfetch resource. maybe for some tests using the network resource too. this would allow running tests in somehow constrained environments.

[issue17760] No i18n of IDLE's interface in french

2013-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Oliver opened thread I18n of IDLE's interface ? on idle-dev list. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17760 ___

[issue17760] No i18n of IDLE's interface in french

2013-04-17 Thread Ezio Melotti
Ezio Melotti added the comment: FTR, here is a link to thread: http://mail.python.org/pipermail/idle-dev/2013-April/003254.html. There's also a follow-up issue with a patch: #17776. http://mail.python.org/pipermail/idle-dev/2013-April/003258.html also has a list of reasons to avoid

[issue17694] Enhance _PyUnicodeWriter API to control minimum buffer length without overallocation

2013-04-17 Thread STINNER Victor
STINNER Victor added the comment: The commit changes the default value of min_length when overallocation is enabled: it does not use at least 100 characters anymore. It did not directly introduce a bug, but the regression comes from 7ed9993d53b4 (use _PyUnicodeWriter for Unicode decoders).

[issue16142] ArgumentParser inconsistent with parse_known_args

2013-04-17 Thread paul j3
paul j3 added the comment: parser = argparse.ArgumentParser() parser.add_argument('-k','--known',action='store_true') print(parser.parse_known_args(['-k','-u'])) print(parser.parse_known_args(['-ku'])) print(parser.parse_known_args(['-uk'])) I think you want these 3 cases to

[issue17618] base85 encoding

2013-04-17 Thread Martin Morrison
Martin Morrison added the comment: New diff. Changes from the last one: - change in struct handling to avoid issue14596 - Addition of btoa85 and atob85 functions that do legacy 'btoa' encoding/decoding. These are just wrappers around a85(en|de)code, which now have additional keyword args to

[issue17135] imp doc should direct to importlib

2013-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset f22c463ce73c by R David Murray in branch 'default': #17135: mark imp as deprecated as of 3.4. http://hg.python.org/cpython/rev/f22c463ce73c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue17555] ForkAwareThreadLock leak after fork

2013-04-17 Thread Richard Oudkerk
Changes by Richard Oudkerk shibt...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17555 ___

[issue17785] Use faster URL shortener for perf.py

2013-04-17 Thread Alexandre Vassalotti
New submission from Alexandre Vassalotti: As noted previously, TinyURL URL shortening API is rather slow and not always available. Each requests takes between 0.5 and 1.5 seconds. We should change it to use Google URL Shortener which returns a response within 10 milliseconds and is much more

[issue15207] mimetypes.read_windows_registry() uses the wrong regkey, creates wrong mappings

2013-04-17 Thread Ben Hoyt
Ben Hoyt added the comment: Okay, I'm looking at the diff between mt-tip-noregistry.txt and mt-tip-newregistry.txt, and I've attached a file showing the lines that are *different* between the two, as well as the Apache mime.types value for that file extension. In most cases, noregistry gives

[issue17742] Add _PyBytesWriter API

2013-04-17 Thread STINNER Victor
STINNER Victor added the comment: Here is a benchmark. It looks like the overallocation is not configured correctly for charmap and UTF-8 encoders: it is always enabled for UTF-8 encoder (whereas it should only be enabled on the first call to an error handler), and never enabled for charmap

[issue17530] pprint could use line continuation for long bytes literals

2013-04-17 Thread Pam McA'Nulty
Pam McA'Nulty added the comment: Here's a new version. It looks more like the str_parts patch and uses parentheses instead of continuation as suggested. Sample output: pprint.pprint(b\n\na\x00, width=1) (b'\n' b'\n' b'a' b'\x00') -- Added file:

[issue17776] IDLE Internationalization

2013-04-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Whether and how much to internationalize Idle is being discussed on idle-dev thread I18n of IDLE's interface ?. I was going to suggest there that the menu system would be the first place to start. A prime concern for me is that we not break anything (hence

[issue17721] Help button on preference window doesn't work

2013-04-17 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17721 ___ ___ Python-bugs-list

[issue17532] IDLE: Always include Options menu on MacOSX

2013-04-17 Thread Todd Rovito
Todd Rovito added the comment: I tested the patch on OS X 10.8 and it works perfect!!! Thanks Guilherme. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17532 ___

[issue17776] IDLE Internationalization

2013-04-17 Thread Todd Rovito
Changes by Todd Rovito rovit...@gmail.com: -- nosy: +Todd.Rovito ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17776 ___ ___ Python-bugs-list

[issue4140] urllib2: request with digest auth through proxy fail

2013-04-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, RFC specifically states that The absoluteURI form is REQUIRED when the request is being made to a proxy. Thanks Jessica for making a note of that. Closing this issue as Invalid. -- dependencies: -urllib2 fails against IIS 6.0 (No support for

[issue17532] IDLE: Always include Options menu on MacOSX

2013-04-17 Thread Roger Serwy
Roger Serwy added the comment: Hi Guilherme, Have you signed the contributor agreement? It can be found at: http://www.python.org/psf/contrib/contrib-form/ Your patch looks good to me, but I don't have a Mac to test against. I trust Todd's test that it works on the latest MacOSX version.

[issue17721] Help button on preference window doesn't work

2013-04-17 Thread Roger Serwy
Roger Serwy added the comment: This falls under annoyance #11 from issue13504. I'll cross-reference it there. -- nosy: +roger.serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17721 ___

[issue13504] Meta-issue for Invent with Python IDLE feedback

2013-04-17 Thread Roger Serwy
Roger Serwy added the comment: Issue17721 addresses part of point 11) And am I the only person who noticed that the Help button doesn’t actually do anything? -- dependencies: +Help button on preference window doesn't work ___ Python tracker

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-04-17 Thread Roger Serwy
Roger Serwy added the comment: Hello Ger, Sure, I can explain. IDLE is driven by the Tk event loop. Calls to .update() flushes all pending events and expired .after callbacks. When close() gets called in PyShell, it places the finalization of the close (using close2()) into the Tk event