[issue7639] bdist_msi fails on files with long names

2010-07-23 Thread Craig McQueen
Changes by Craig McQueen : -- nosy: +cmcqueen1975 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7950] subprocess.Popen documentation should contain a good warning about the security implications when using shell=True

2010-07-23 Thread Chris Rebert
Chris Rebert added the comment: I found some extra time. Here's an initial suggested patch against py3k head. Disclaimer: I have no special expertise in computer security beyond having read "Secure Coding: Principles and Practices" a while back. -- keywords: +patch Added file: http://

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: I fail to see the bug in this report. '\xff' is a letter because the C library says it is. If you think the result is wrong, file a bug report with the OS vendor. -- nosy: +loewis ___ Python tracker

[issue9264] trace.py documentation is incomplete

2010-07-23 Thread Eli Bendersky
Eli Bendersky added the comment: Attaching a patch vs. the 2.6 maintenance branch for the Doc/library/trace.rst file * Fixed some formatting issues for command line options and class references * Documented all relevant user-accessible methods * Divided command-line options logically into sub-

[issue9193] Versioned .so files

2010-07-23 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'd love it if Windows was also supported, but right now I don't have the cycles to make and test the changes, or the expertise to understand any related Windows issues. I've mentioned this in PEP 3149, and I'd happily accept code and PEP updates for Window

[issue839159] iterators broken for weak dicts

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: It looks like this issue has been fixed in issue7105 already. Can we close this ticket? -- ___ Python tracker ___

[issue3526] Customized malloc implementation on SunOS and AIX

2010-07-23 Thread Sébastien Sablé
Sébastien Sablé added the comment: Well I am still interested in getting this patch officially integrated in Python. This patch is integrated in the version of Python that we deploy to our customers with our products (Sungard GP3). So it runs in production at various clients sites (some Euro

[issue839159] iterators broken for weak dicts

2010-07-23 Thread Mark Dickinson
Mark Dickinson added the comment: It's not yet fixed in 2.7 or 2.6. Updating versions. -- nosy: +mark.dickinson versions: +Python 2.6 -Python 3.1, Python 3.2 ___ Python tracker __

[issue839159] iterators broken for weak dicts

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: We might as well backport Antoine's patch rather than take this one (even if mine for 2.x already). It would be weird to have 2 wildly different patches to solve the same problem. Maybe close this ticket and flag issue7105 for backporting? -- ___

[issue839159] iterators broken for weak dicts

2010-07-23 Thread Mark Dickinson
Mark Dickinson added the comment: Agreed. -- resolution: -> duplicate status: open -> closed superseder: -> weak dict iterators are fragile because of unpredictable GC runs ___ Python tracker __

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2010-07-23 Thread Mark Dickinson
Mark Dickinson added the comment: The issue still exists in 2.6 and 2.7. Closing issue 839159 as a duplicate of this one. -- nosy: +mark.dickinson resolution: fixed -> stage: committed/rejected -> status: closed -> open versions: +Python 2.6, Python 2.7 -Python 3.1, Python 3.2 _

[issue7105] weak dict iterators are fragile because of unpredictable GC runs

2010-07-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +BreamoreBoy, ajaksu2, dcjim, elachuni, tseaver, vdupras ___ Python tracker ___ ___ Python-bugs-li

[issue4047] test_run_abort triggers CrashReporter on MacOS X

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Committed a fix in r83067 (py3k), will backport to other active branches shortly. -- versions: -Python 3.2 ___ Python tracker ___ ___

[issue2734] 2to3 converts long(itude) argument to int

2010-07-23 Thread Peter
Changes by Peter : -- nosy: +maubp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue9257] cElementTree iterparse requires events as bytes; ElementTree uses strings

2010-07-23 Thread Peter
Changes by Peter : -- nosy: +maubp ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailma

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: At Europython, we agreed that this functionality is too trivial to add to the standard library; for all practical purposes, os.listdir(".") will do the right thing. So rejecting this as won't fix. -- nosy: +loewis resolution: -> wont fix status: op

[issue9073] Tkinter module missing from install on OS X 10.6.4

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: As Ned noted Tkinter is named tkinter in py3k. -- resolution: -> invalid stage: -> committed/rejected status: open -> closed type: -> behavior ___ Python tracker __

[issue8392] unit tests rather light on testing __import__(..., level)

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: If I understand the patch correctly, this patch basically add a test for relative imports. I'm pretty sure this is already testes in importlib.test. Brett, am I right? If yes, there's no point in applying this patch. -- nosy: +vdupras ___

[issue7895] Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER

2010-07-23 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4184] Remove use of private attributes in smtpd

2010-07-23 Thread Richard Jones
Richard Jones added the comment: After discussing with core devs at the EuroPython sprint I will implement a different approach: new attributes with the old, private attributes implemented as properties over the new attributes. The properties responsible for this will raise PendingDeprecation

[issue8392] unit tests rather light on testing __import__(..., level)

2010-07-23 Thread Brett Cannon
Brett Cannon added the comment: Yes, importlib has tests for relative import, but those are only run against importlib and not __import__. Adding Skip's tests and seeing how they differ from what importlib.test.import_.test_relative_imports would be good. -- _

[issue5120] Disabling test_ttk_guionly on mac

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is still an issue for the PPC Tiger buildbot: test_ttk_guionly make: *** [buildbottest] Segmentation fault (Direct link: http://www.python.org/dev/buildbot/builders/PPC%20Tiger%202.7/builds/39/steps/test/logs/stdio) --

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: what do you mean by 'too trivial' ? I don't understand why this is now suddenly rejected. Raymond, Guido, and other people have +1 this on python-ideas. http://mail.python.org/pipermail/python-ideas/2009-May/004871.html People have worked on a patch, so I think

[issue9337] Make float.__str__ behave identically to float.__repr__

2010-07-23 Thread Mark Dickinson
New submission from Mark Dickinson : Proposal: make the str of a float (or complex number) identical to the repr of a float (or complex number), in Python 3.2. This idea came up a couple of times at EuroPython, and generally met with approval. An open question: what should be done on platfor

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: ok, so reopening. Linking to the mailing list would have helped. -- resolution: wont fix -> status: closed -> open ___ Python tracker ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [From the old argparse tracker: http://code.google.com/p/argparse/issues/detail?id=20] You can't follow a nargs='+' optional argument with a positional argument: >>> import argparse >>> parser = argparse.ArgumentParser(prog='PROG') >>> parser.add_argument('

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-07-23 Thread Steve Holden
Steve Holden added the comment: With the 2.7 release now completed should we close this issue? There's nothing to be done about the 2.6 issue. -- nosy: +holdenweb ___ Python tracker ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> argparse does not accept options taking arguments beginning with dash (regression from optparse) ___ Python tracker

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: Yes, sorry. I should have added the link when I opened the bug. Thanks for reopening it -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- resolution: wont fix -> status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9173] logger statement not guarded in shutil._make_tarball

2010-07-23 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- nosy: -gvanrossum resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: reopening again sorry (roundup bug) -- resolution: wont fix -> status: closed -> open ___ Python tracker ___ _

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree, this issue can be closed as there's nothing useful we can do at this point in time. -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue9275] python 2.7 OS X installer no longer installs /usr/local/bin symlinks by default

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Fixed in r83070, NEWS update in r83071. -- resolution: -> fixed stage: -> committed/rejected type: -> behavior ___ Python tracker ___ __

[issue8392] unit tests rather light on testing __import__(..., level)

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: Because importlib is already well tested and that it already has the machinery to test __import__ instead of the importlib code, I suggest that we re-use importlib's relative tests instead. Attached is a patch that does this. I made sure that __import__ was ac

[issue8123] TypeError in urllib when trying to use HTTP authentication

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: Patch (with unittest) attached. -- keywords: +patch Added file: http://bugs.python.org/file18139/8123.patch ___ Python tracker ___ _

[issue9275] python 2.7 OS X installer no longer installs /usr/local/bin symlinks by default

2010-07-23 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9339] threading is_alive documnetation is unclear

2010-07-23 Thread Brian Brazil
New submission from Brian Brazil : http://docs.python.org/py3k/library/threading.html "Roughly, a thread is alive from the moment the start() method returns until its run() method terminates." Using "Roughly" in relation to threading is a bit unspecific. I've had a look through _bootstrap_inn

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2010-07-23 Thread Steven Bethard
Steven Bethard added the comment: Note that the negative number heuristic you're complaining about doesn't actually affect your code below. The negative number heuristic is only used when you have some options that look like negative numbers. See the docs for more information: http://docs.py

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Steven Bethard
Steven Bethard added the comment: This is definitely a different bug from the one you just marked it as a duplicate of. -- resolution: duplicate -> stage: committed/rejected -> needs patch status: closed -> open superseder: argparse does not accept options taking arguments beginning w

[issue9339] threading is_alive documnetation is unclear

2010-07-23 Thread Brian Brazil
Changes by Brian Brazil : Removed file: http://bugs.python.org/file18140/threading-roughly-doc-fix.patch ___ Python tracker ___ ___ Python-bugs

[issue9339] threading is_alive documnetation is unclear

2010-07-23 Thread Brian Brazil
Brian Brazil added the comment: Here's a slightly cleaner version. -- Added file: http://bugs.python.org/file18141/threading-roughly-doc-fix.patch ___ Python tracker ___

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-07-23 Thread Éric Araujo
Éric Araujo added the comment: I read too fast, I’m sorry for that. -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list maili

[issue6878] changed return type from tkinter.Canvas.coords

2010-07-23 Thread Petras Zdanavičius
Petras Zdanavičius added the comment: I have added tests. -- nosy: +Petras.Zdanavičius Added file: http://bugs.python.org/file18142/fix-6878-with-tests.patch ___ Python tracker _

[issue6878] changed return type from tkinter.Canvas.coords

2010-07-23 Thread Éric Araujo
Éric Araujo added the comment: Looks good to me. Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue9340] argparse parse_known_args does not work with subparsers

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [Moved from http://code.google.com/p/argparse/issues/detail?id=45] If you try to use parse_known_args and you have a subparser, the subparser will still complain if it sees extra arguments: >>> parser = argparse.ArgumentParser() >>> subparsers = parser.add_

[issue9255] document that the 'test' package is for core developers only

2010-07-23 Thread Brett Cannon
Brett Cannon added the comment: 3.2: 83072 3.1: 83076 2.7: 83077 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue7830] Flatten nested functools.partial

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: Applies cleanly on the py3k branch at r83069, the tests work correctly (fail before applying the patch, success afterwards), and, to the best of my C-API knowledge, the C code is alright. Oh, and it behaves as described... Python 3.2a0 (py3k:83069M, Jul 23 20

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: Patch (suggested fix and unittest) attached. -- keywords: +patch Added file: http://bugs.python.org/file18143/9291.patch ___ Python tracker ___

[issue7830] Flatten nested functools.partial

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: Oops, used it wrong (but it still works correctly). >>> p2 = partial(p1, 2) >>> p2.func, p2.args (, (1, 2)) -- ___ Python tracker ___ _

[issue9341] allow argparse subcommands to be grouped

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [Moved from http://code.google.com/p/argparse/issues/detail?id=53] It's currently not possible to have subcommands formatted in groups, e.g. instead of: subcommands: {a,b,c,d,e} a a subcommand help b b subcommand help c

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-23 Thread Dmitry Jemerov
Dmitry Jemerov added the comment: And by the way I've verified that the problem doesn't happen in py3k trunk. -- ___ Python tracker ___ __

[issue9342] Tests for monthrange in calendar.py module

2010-07-23 Thread John Chandler
New submission from John Chandler : Hi, Attaching a patch for the test_calendar.py file. Adds six tests to provide test coverage of the monthrange function. John -- components: Tests files: test_calendar.patch keywords: patch messages: 111292 nosy: John.Chandler priority: normal seve

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch. Committed (with modifications) as r83078. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue4640] optparse doesn’t disallow adding one-da sh long options (“-option”)

2010-07-23 Thread Steven Bethard
Steven Bethard added the comment: In argparse, "-debug" is a perfectly valid flag (you're not required to have "--debug", and you can even have "+debug" if you want and you specify it correctly), so unless I misunderstand what the bug is, this doesn't apply to argparse. -- _

[issue6095] os.curdir as the default argument for os.listdir

2010-07-23 Thread Tarek Ziadé
Tarek Ziadé added the comment: Thanks for looking into this ! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9339] threading is_alive documnetation is unclear

2010-07-23 Thread Brett Cannon
Brett Cannon added the comment: 3.2: 83080 3.1: 83081 2.7: 83082 -- nosy: +brett.cannon resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue4047] test_run_abort triggers CrashReporter on MacOS X

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Backported to 3.1 in r83069, 2.7 in r83079, 2.6 in r83083 -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue9255] document that the 'test' package is for core developers only

2010-07-23 Thread Éric Araujo
Éric Araujo added the comment: Brett, could you add “r” or “rev ” before revision numbers in the future? It’s Roundup implicit markup to make a link to a revision. (Evil but handy.) Thanks in advance :) -- nosy: +merwok stage: needs patch -> committed/rejected ___

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: @Peter again the py3k patch is fine and the 2.7 fails. Is this worth all your effort? -- ___ Python tracker ___ ___

[issue2979] use_datetime in SimpleXMLRPCServer

2010-07-23 Thread Martin v . Löwis
Martin v. Löwis added the comment: At EuroPython, Virgil remarked that there was some discussion of this patch somewhere. -- nosy: +loewis ___ Python tracker ___ ___

[issue4297] Add error_log attribute to optparse.OptionParser

2010-07-23 Thread Steven Bethard
Steven Bethard added the comment: Not sure, but I think _print_message in argparse isn't exactly what the OP is looking for if they really only care about errors. If you want to override how errors are printed, then it's absolutely correct to override the error method (in argparse at least),

[issue4297] Add error_log attribute to optparse.OptionParser

2010-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue9341] allow argparse subcommands to be grouped

2010-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok resolution: -> accepted versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list ma

[issue4640] optparse doesn’t disallow adding one-da sh long options (“-option”)

2010-07-23 Thread R. David Murray
R. David Murray added the comment: In that case you are correct, it does not apply to argparse. -- ___ Python tracker ___ ___ Python-b

[issue8273] move generally useful test_support functions into the unittest package

2010-07-23 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7895] Mac 10.6 mac_ver() crashes with USING_FORK_WITHOUT_EXEC_IS _NOT_SUPPORTED_BY_FILE_MANAGER

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Fixed in r83075 (3.2), r83084 (3.1), r83085 (2.7), r83086 (2.6) -- stage: patch review -> committed/rejected status: open -> closed ___ Python tracker

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-23 Thread Peter Donis
Peter Donis added the comment: @Mark, I'm probably stubborn, yes. :-) Could you post verbose output from your testing on Windows? I'd at least like to be able to duplicate your findings; it's possible there's something simple I'm missing. -- ___ Pyth

[issue2001] Pydoc interactive browsing enhancement

2010-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: The patch seems clean to me. Applied patch to unit test and ran it, tests failed, then applied patch to module, tests passed. Also tried import pydoc;pydoc.gui() from the command line, the output looked fine to me. Tested on Windows Vista with Firefox. Cou

[issue9343] Document that argparse "parents" must be fully declared before children

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [From http://code.google.com/p/argparse/issues/detail?id=61] It should be documented clearly that only the arguments present on the parent parser at the time ArgumentParser is called will be included in the parser. >>> parent = argparse.ArgumentParser(add_h

[issue9343] Document that argparse "parents" must be fully declared before children

2010-07-23 Thread Éric Araujo
Éric Araujo added the comment: I removed 3.3, since it currently means “won’t be done for 3.2, so note for later.” I don’t know if the report applies to 3.1 (doc fixes go into stable releases too), so I’m not adding it. -- nosy: +merwok versions: -Python 3.3

[issue9343] Document that argparse "parents" must be fully declared before children

2010-07-23 Thread Steven Bethard
Steven Bethard added the comment: Ah, thanks for the fix. No it doesn't need to go in 3.1 - argparse is only in 2.7 and 3.2. -- ___ Python tracker ___ __

[issue9344] please add posix.getgrouplist()

2010-07-23 Thread Ronald Oussoren
New submission from Ronald Oussoren : A number of unix systems expose a getgroupslist function to fetch the groups that a user is a member of. It would be nice if that function were exposed to python. See issue7900 for more information on why that would be useful. -- keywords: easy me

[issue9344] please add posix.getgrouplist()

2010-07-23 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7900] posix.getgroups() failure on Mac OS X

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've added issue9344 for adding os.getgroupslist. I'd prefer to keep adding that function separate from this issue. Btw. I'm +1 on adding such a function. I will shortly commit a port of os-getgroups-v3.patch to 3.2, but without the tests in "PosixGroupsTest

[issue9345] argparse wrap tests are sensitive to terminal size

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [From http://code.google.com/p/argparse/issues/detail?id=63] What steps will reproduce the problem? 1. PYTHONPATH=. python test/test_argparse.py 2. do the above in an 80x24 terminal window and it passes 3. do the same in an 80 wide emacs shell buffer and you

[issue8792] xmlrpclib compatibility issues with Apache XML-RPC library

2010-07-23 Thread Bhargav
Bhargav added the comment: I am seeing the same exception when the server returns ex:nil, even when I enable allow_none. The library only accepts 'nil' not 'ex:nil' As a workaround, I have added dispatch["ex:nil"] to my local library (which is obviously not a solution) -- nosy: +bha

[issue9346] Improve threading tests

2010-07-23 Thread Brian Brazil
New submission from Brian Brazil : The attached patch: Remove unused "self-test" from threading.py that doesn't really test much. Add better testing for Thread.__repr__. This brings coverage as measured by regrtest from 40% to 45%. -- components: Interpreter Core files: threading_test_

[issue1812] doctest _load_testfile function -- newline handling seems incorrect

2010-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: @Peter apologies hereby offered, the 2.7 patch is fine, I'd screwed up doctest_testfile.txt. As the patch is ok and has been very thoroughly tested please can this be committed. -- stage: -> commit review ___ Pyth

[issue9336] string.letters should display locale based equivalent of a-Z

2010-07-23 Thread R. David Murray
R. David Murray added the comment: This would involve too much of a behavior change to be introduced in a point release. string.letters does not exist in py3k. Closing as out of date. -- nosy: +r.david.murray resolution: -> out of date stage: -> committed/rejected status: open -> c

[issue9347] Calling argparse add_argument with a sequence as 'type' causes spurious error message

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : What steps will reproduce the problem? parser = argparse.ArgumentParser() parser.add_argument('--foo', type=(int, float)) What is the expected output? ValueError: (, ) is not callable What do you see instead? TypeError: not all arguments converted during

[issue9348] Calling argparse's add_argument with the wrong number of metavars causes delayed error message

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : What steps will reproduce the problem? parser = argparse.ArgumentParser() parser.add_argument('--foo', nargs=2, metavar=('X','Y','Z')) parser.parse_args(['-h']) The error dosn't show up until help is formatted. Giving any incorrect length of metavar w

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-23 Thread R. David Murray
R. David Murray added the comment: And just for clarity: py3k trunk does contain the _winreg code path. -- stage: unit test needed -> patch review ___ Python tracker ___

[issue9291] mimetypes initialization fails on Windows because of non-Latin characters in registry

2010-07-23 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: +brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue7830] Flatten nested functools.partial

2010-07-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Since I am the OP of this patch, I would like a +1 from another developer before checking this in. (Or a couple of -1s before rejecting:-) Antoine, Does the latest patch address your concerns? Virgil, If you care enough about this feature, please po

[issue9349] document argparse's help=SUPPRESS

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : Argparse supports silencing help for certain options using SUPPRESS. >>> parser = argparse.ArgumentParser() >>> parser.add_argument('--foo', help=argparse.SUPPRESS) >>> parser.print_help() usage: [-h] optional arguments: -h, --help show this help message

[issue9350] add remove_argument_group to argparse

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [From http://code.google.com/p/argparse/issues/detail?id=71] There is a method ArgumentParser.add_argument_group() to create and add an argument group to the parser. I would like the ability to remove an argument group via a method like remove_argument_gro

[issue9342] Tests for monthrange in calendar.py module

2010-07-23 Thread Brett Cannon
Brett Cannon added the comment: 3.2 in r83089 -- nosy: +brett.cannon resolution: -> accepted status: open -> closed ___ Python tracker ___ __

[issue8392] unit tests rather light on testing __import__(..., level)

2010-07-23 Thread Brett Cannon
Brett Cannon added the comment: Committed in r83090. Tweaked the patch from Virgil slightly so that it sets the flag used by importlib to delineate whether to use __import__ back to its original setting after running the tests. -- resolution: -> accepted status: open -> closed _

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : If you use set_defaults on a subparser, but a default exists on the top level parser, the subparser defaults are ignored: >>> parser = argparse.ArgumentParser() >>> xparser = parser.add_subparsers().add_parser('X') >>> parser.set_defaults(foo=1) >>> xparser.

[issue8392] unit tests rather light on testing __import__(..., level)

2010-07-23 Thread Virgil Dupras
Virgil Dupras added the comment: Brett, I think there's a problem with the tweak you made to the patch. There was already a testcase called RelativeImportTests and you've hidden it (that I why I called it ImportlibRelativeImportTests initially). -- ___

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Fri, Jul 23, 2010 at 4:03 AM, Martin v. Löwis wrote: .. > I fail to see the bug in this report. '\xff' is a letter because the C > library says it is. This does not explain the difference between 2.6 and 2.7. With attached issue9335-test.py, $ ca

[issue9167] argv double encoding on OSX

2010-07-23 Thread Ronald Oussoren
Ronald Oussoren added the comment: Daniele: which version of OSX do you use? And if you use OSX 10.5 or 10.6: which is your system language according to system preferences (the topmost entry in the list of the "Language and Text" preference pane, whose icon looks a little like a UN flag. I

[issue9352] argparse eats characters when parsing multiple merged short options

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [Moved from http://code.google.com/p/argparse/issues/detail?id=73] What steps will reproduce the problem? parser = ArgumentParser(prefix_chars="-+") parser.add_argument("-a",action="store_true") parser.add_argument("+b",action="store_true") parser.add_argumen

[issue9335] LC_CTYPE system setting not respected by setlocale()

2010-07-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Another issue that may be worth revisiting is whether or not it is OK for _tkinter to set the locale. """ 21.2.2. For extension writers and programs that embed Python Extension modules should never call setlocale(), except to find out what the current

[issue4485] fast swap of "default" Windows python versions

2010-07-23 Thread Mark Lawrence
Mark Lawrence added the comment: Right now this would suit me down to the ground, as I'm running four maintenance versions, 2.6/7 and 3.1/2 in parallel. But as this is a feature request it will not happen until 3.2 at the earliest. -- nosy: +BreamoreBoy versions: +Python 3.2 -Python

[issue7989] Add pure Python implementation of datetime module to CPython

2010-07-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file18148/datetimetester.py ___ Python tracker ___ ___ Python-bugs-list ma

[issue9353] argparse __all__ is incomplete

2010-07-23 Thread Steven Bethard
New submission from Steven Bethard : [Moved from http://code.google.com/p/argparse/issues/detail?id=75] What steps will reproduce the problem? 1. import argparse 2. print dir(argparse) 3. print argparse.__all__ Compare the output for public methods and attributes from #2 that aren't in #3. I s

  1   2   3   >