[issue11825] faulthandler: failure without threads

2011-04-11 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Hi, the tests fail on Debian if the option --without-threads is used: ./configure --with-pydebug --without-threads make make test ./python -Wd -E -bb ./Lib/test/regrtest.py -l == CPython 3.3a0 (default:9140f2363623+, Jan 30 2011,

[issue11826] Leak in atexitmodule

2011-04-11 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: Valgrind reports a leak (definitely lost) in atexitmodule.c. The patch fixes the problem. -- components: Extension Modules files: atexit-leak.patch keywords: patch messages: 133501 nosy: skrah priority: normal severity: normal

[issue10156] Initialization of globals in unicodeobject.c

2011-04-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: [Merging with issue 11402] Daniel's patch is much simpler, but I think that unicode_empty and unicode_latin1 would need to be protected before _PyUnicode_Init is called. Is the module initialization procedure documented somewhere? I get

[issue11402] _PyUnicode_Init leaks a little memory once

2011-04-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This should be a duplicate of issue 10156. -- nosy: +skrah resolution: - duplicate stage: patch review - committed/rejected status: open - closed superseder: - Initialization of globals in unicodeobject.c

[issue10156] Initialization of globals in unicodeobject.c

2011-04-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Stefan Krah rep...@bugs.python.org wrote: Is the module initialization procedure documented somewhere? I get the impression that unicodeobject.c depends on dict.c and dict.c depends on unicodeobject.c. s/dict.c/dictobject.c/

[issue11593] Add encoding parameter to logging.basicConfig

2011-04-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: handlers parameter now added to logging.basicConfig(), which covers this use case: logging.basicConfig(handlers=[logging.FileHandler('test.log', 'w', 'utf-8')]) Ref: changeset c9e9142d82d6 -- status: open - closed

[issue11369] Add caching for the isEnabledFor() computation

2011-04-11 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I'll regretfully have to mark this as wontfix, since adding threading interlocks for correct operation in multi-threaded environments will negate the performance benefit. -- resolution: - wont fix status: open - closed

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-11 Thread Eli Bendersky
New submission from Eli Bendersky eli...@gmail.com: The documentation of subprocess.Popen mentions a function named list2cmdline(): On Windows: the Popen class uses CreateProcess() to execute the child program, which operates on strings. If args is a sequence, it will be converted to a

[issue11782] email.generator.Generator.flatten() fails

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: So here is a patch which steps forward the not-yet-fully-completed transition to the mixed bytes/str EMail stuff. Test coverage is available if you patch in http://bugs.python.org/file21549/11684.1.diff from #11684. (Because i

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Sat, Apr 09, 2011 at 03:58:11PM +, Ned Deily wrote: By the way, since you've asked about it before, MACOSX_DEPLOYMENT_TARGET is a standard feature of the Apple gcc tool chain and is used to support builds for multiple

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I vote for (2) (I presume 'it' in that sentence is 'subprocess'). list2cmdline shouldn't be a real public method, at least not without the issues surrounding being given careful design attention. -- nosy: +r.david.murray

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-11 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: I also prefer (2) since I see no reason for the user to use list2cmdline() directly, let alone from subprocess (had there been rationale for such a public function it should probably be in another module). As for 'it', I guess you can say it

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Patch mostly looks good to me, modulo some English wording that I'll fix up when I commit it. The issue with the '@' is that it might not be there. So you do need to check for that case (it means the domain part defaults to the 'local'

[issue11650] Faulty RESTART/EINTR handling in Parser/myreadline.c

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: I've opened it and it's fixed, so i'll close it now. If someone finds the single bug in 11650.termios-1.diff in termios_resume() and also has an idea of how to call termios_suspend() in case Python crashes or gives back the

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, right. I guess I was advocating that the docs be written from the perspective that list2cmdline doesn't exist as an identifiable entity. From the POV of the updated docs, it is just subprocess's behavior, and list2cmdline is an

[issue11825] faulthandler: failure without threads

2011-04-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Attached patch disables regrtest.py timeout if faulthandler.dump_tracebacks_later() is missing. It prints a warning at startup, and an error if --timeout option is used. -- keywords: +patch Added file:

[issue11817] berkeley db 5.1 support

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: The 3rd party package is activelly maintained (by me :) in http://www.jcea.es/programacion/pybsddb.htm. BDB 5.1 support is there. -- ___ Python tracker rep...@bugs.python.org

[issue8428] buildbot: test_multiprocessing timeout (test_notify_all? test_pool_worker_lifetime?)

2011-04-11 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: (Victor, please don't file many bugs in a single issue!) I thought that these issues were the same. Victor -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8428

[issue4606] Passing 'None' if argtype is set to POINTER(...) doesn't always result in NULL

2011-04-11 Thread olt
olt o...@bogosoft.com added the comment: For anyone that has to use a Python version where this bug is present, it is possible to manually create a NULL pointer. For the example: POINTER(c_double)() This works, at least in my case. -- nosy: +olt

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: modulo some English wording that I'll fix up when I commit it. Yeah, sorry for that, I seem to have trouble with writing good documentation. :) I'll have a look at the documents referenced by [1] to improve my writing. The issue

[issue11810] _socket fails to build on OpenIndiana

2011-04-11 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/issue11810 ___ ___ Python-bugs-list mailing list

[issue11825] faulthandler: failure without threads

2011-04-11 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The patch works. Is it expected that dump_tracebacks_later is missing when building --without-threads? If so, the warning is probably confusing for the uninitiated. -- ___ Python tracker

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-11 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/issue11816 ___ ___ Python-bugs-list mailing list

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Do not forget to update docs too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Hmm. You are correct. I thought the RFC's covered this case, but apparently they don't. The email package gets used in MUA contexts, where the domain part of the address may be omitted and the MUA must fill it in before transmitting

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: +Windows nosy: +brian.curtin, tim.golden versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5162 ___

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5162 ___ ___

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: This looks reasonable to me. If no one beats me to it, I'll check it in tonight. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5162 ___

[issue11816] Refactor the dis module to provide better building blocks for bytecode analysis

2011-04-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816 ___ ___

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11822 ___ ___

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Would you like to display lambdas as well? dis('lambda x: x**2') 1 0 LOAD_CONST 0 (code object lambda at 0x1005c9ad0, file dis, line 1) 3 MAKE_FUNCTION0

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Swapnil Talekar
Swapnil Talekar swapnil...@gmail.com added the comment: Sorry about the previous report. I should have tested it thoroughly. Yes, it does not seem to rise but eventually it does. This time, I'v added garbage collection right after the subinterpreter is shutdown. The memory consumption does

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Swapnil Talekar
Changes by Swapnil Talekar swapnil...@gmail.com: -- resolution: invalid - status: closed - open versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11803 ___

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-11 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: May I ask why 3.1 was not fixed too? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11818 ___

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Marijn Schouten
New submission from Marijn Schouten hk...@gentoo.org: startswith and endswith don't accept None as slice index, as shown by below interaction. Same behavior for python-3.1.3(with print()) and python-2.7.1. If instead this is intended behavior then the error message is wrong. $ python -c print

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Marijn Schouten
Marijn Schouten hk...@gentoo.org added the comment: I remark that `find' and `index' do accept None: $ python3 -c print('abc'.find('c',None,None)) 2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: a) Python 2.6 is open only for security fixes. Could you possibly try in 2.7, 3.1 and 3.2? b) Could you run the test a bit longer and confirm that the leak is slowly growing? c) I assume your mod_python is running under Apache. Apache restarts

[issue11813] inspect.getattr_static doesn't get module attributes

2011-04-11 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11813 ___ ___ Python-bugs-list

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828 ___

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Since this is not a regression, this would be solved in 3.3 only. I guess. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Well, if it is judged a bug (and it seems to me that it is), then it can get fixed in 2.7 and 3.2 (and yes I did confirm that the same bug is present in 2.7). It appears to be the result of startswith/endswith applying naive parsing to

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Letting None be used as an index has always been treated as a feature request; however, in this case, it can be deemed a bug because the error message is making a promise that isn't kept. It would be nice if once and for all

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-11 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: One possible cause for those intermittent failures is the preemtion of a thread while waiting on the condition: def wait(self, timeout=None): 233 assert self._lock._semlock._is_mine(), \ 234'must

[issue11823] disassembly needs to argument counts on calls with keyword args

2011-04-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am posting an unfinished patch (needs additional tests and possibly documentation) to get feedback on whether it would make sense to wait for issue11816 refactoring before implementing this. Note the code duplication

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-04-11 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Is this moving anywhere? I was asked to apply this patch locally and am curious as to whether it is moving into the stdlib. -- nosy: +krisvale ___ Python tracker rep...@bugs.python.org

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-11 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Sorry, wrong copy-paste, the failing assertion will of course be this one: 773 self.assertReturnsIfImplemented(6, get_value, woken) since woken.get_value() == 5 -- ___ Python

[issue11354] argparse: nargs could accept range of options count

2011-04-11 Thread Wojciech Muła
Wojciech Muła wojciech_m...@poczta.onet.pl added the comment: Steven, thank you for links, I prepared patch against trunk. All tests passed. -- Added file: http://bugs.python.org/file21617/issue11354.patch ___ Python tracker rep...@bugs.python.org

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Anybody taking care of this, should check also byte and bytearray. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828 ___

[issue11369] Add caching for the isEnabledFor() computation

2011-04-11 Thread William Hart
William Hart whart...@gmail.com added the comment: Understood! FYI, we worked around this caching issue explicitly in our code. This wound up being simpler than supporting a hacked version of the logger. Thanks for looking into this! On Mon, Apr 11, 2011 at 1:54 AM, Vinay Sajip

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2011-04-11 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: Adding some minor fixes to the original patch to apply cleanly to current 2.7 tip. Also, add a conditional branch in the case that the server returns none of the supported algorithm strings, to raise a ValueError (the previous patch

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828 ___ ___

[issue11747] unified_diff function product incorrect range information

2011-04-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a2ee967de44f by Raymond Hettinger in branch '3.2': Issue #11747: Fix range formatting in context and unified diffs. http://hg.python.org/cpython/rev/a2ee967de44f New changeset 1e5e3bb3e1f1 by Raymond Hettinger in branch 'default':

[issue11747] unified_diff function product incorrect range information

2011-04-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11747 ___

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think it should be enabled with an optional argument. Otherwise in some cases you'll get lots of additional output while you're only interested in the top-level code. -- nosy: +pitrou ___ Python

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: If you disassemble a function, you typically want to see all the code in that function. This isn't like pdb where you're choosing to step over or into another function outside the one being viewed. --

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If you disassemble a function, you typically want to see all the code in that function. That depends on the function. If you do event-driven programming (say, Twisted deferreds with addCallback()), you don't necessarily want to see the

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Apr 11, 2011 at 5:21 PM, Antoine Pitrou rep...@bugs.python.org wrote: .. Raymond If you disassemble a function, you typically want to see all the code Raymond [defined] in that function. +1 (with clarification in

[issue11747] unified_diff function product incorrect range information

2011-04-11 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Re-opening. There are some problems with the fix. Context diff ranges need to show the ending line number, not the length. Also for unified diffs, GNU diff is showing (x,0) as just (x). -- priority: low - high

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: Hi, I started working on a first patch for this. A function _ParseTupleFinds() exists which does the proper parsing for this kind of arguments in unicodeobject.c, I adapted it to be usable for startswith() and endswith() besides

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Graham Dumpleton
Graham Dumpleton graham.dumple...@gmail.com added the comment: I wouldn't use mod_python as any guide for how to use sub interpreters as its usage of sub interpreters and threading in conjunction with them is technically broken, not following properly the Python C API requirements. It doesn't

[issue11829] inspect.getattr_static code execution with meta-metaclasses

2011-04-11 Thread Andreas Stührk
New submission from Andreas Stührk andy-pyt...@hammerhartes.de: The commit for issue #11133 omitted a part of the patch that checked whether the __dict__ attribute of metaclasses are shadowed. That makes it possible to trigger code execution in the case of metaclasses that have metaclasses.

[issue11830] import decimal fails in Turkish locale

2011-04-11 Thread Dave Malcolm
New submission from Dave Malcolm dmalc...@redhat.com: For Python 2 (here with 2.7.1): $ python -c 'import locale; locale.setlocale(locale.LC_ALL, tr_TR.UTF-8); import decimal' Traceback (most recent call last): File string, line 1, in module File /usr/lib64/python2.7/decimal.py, line 3715,

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Torsten Becker
Torsten Becker torsten.bec...@gmail.com added the comment: While working on this, I discovered anther problem. find(), etc. all use the same parsing function (_ParseTupleFinds()). So when an error occurs, the exception message will always start with find() even though index() or rfind()

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1f41b1ab8924 by brian.curtin in branch '3.1': Fix #5162. Allow child spawning from Windows services (via pywin32). http://hg.python.org/cpython/rev/1f41b1ab8924 New changeset 184ae02e3221 by brian.curtin in branch '3.2': Fix #5162.

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: Thanks for the patch! -- assignee: jnoller - brian.curtin resolution: - fixed stage: patch review - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5162

[issue11830] import decimal fails in Turkish locale

2011-04-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11830 ___

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a280672d3d8d by brian.curtin in branch '2.7': Add NEWS item for #5162. http://hg.python.org/cpython/rev/a280672d3d8d -- ___ Python tracker rep...@bugs.python.org

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c26474c6504a by brian.curtin in branch '3.1': Add NEWS item for #5162. http://hg.python.org/cpython/rev/c26474c6504a New changeset 68ef2bf1aa99 by brian.curtin in branch '3.2': Add NEWS item for #5162.

[issue11830] import decimal fails in Turkish locale

2011-04-11 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b4b1f557d563 by Raymond Hettinger in branch '2.7': Issue #11830: Remove unnecessary introspection code in the decimal module. http://hg.python.org/cpython/rev/b4b1f557d563 -- nosy: +python-dev

[issue11830] import decimal fails in Turkish locale

2011-04-11 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11830 ___

[issue11831] python -w causes no Python documentation found error when the path is not current directory

2011-04-11 Thread Susam Pal
New submission from Susam Pal su...@susam.in: Steps to reproduce: susam@nifty:~/pydoc-test$ tree ../pydoc-subject/ ../pydoc-subject/ |-- calc | |-- formulae.py | `-- __init__.py |-- config.py |-- default.conf |-- main.py `-- spal.conf 1 directory, 6 files susam@nifty:~/pydoc-test$ pydoc

[issue11831] python -w causes no Python documentation found error when the path is not current directory

2011-04-11 Thread Susam Pal
Susam Pal su...@susam.in added the comment: Attached a one line fix that fixes this issue. susam@nifty:~/pydoc-test$ pydoc -w ../pydoc-subject/ wrote calc.html wrote calc.formulae.html wrote config.html wrote main.html susam@nifty:~/pydoc-test$ ls calc.formulae.html calc.html config.html

[issue11828] startswith and endswith don't accept None as slice index

2011-04-11 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11828 ___ ___

[issue11832] Add option to pause regrtest to attach a debugger

2011-04-11 Thread Brian Curtin
New submission from Brian Curtin br...@python.org: Patch to add -a/--attach option to Lib/test/regrtest.py to pause before beginning test runs. This would allow a user to attach Visual Studio or some other debugger. Very simply, this option just blocks waiting for a keystroke during argument

[issue11833] ord() doesn't show complete UNICODE

2011-04-11 Thread Alec Taylor
New submission from Alec Taylor alec.tayl...@gmail.com: Unfortunately ord() doesn't show complete UNICODE. This can cause incorrectness problems. ord('—') 151 ord('¥') 165 Proof: Type Alt+0151, then type Alt+151. They should give you — and ù respectively. Please correct the UNICODE

[issue11833] ord() doesn't show complete UNICODE

2011-04-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: For the chars you pasted, on Python 3 I get: ord('—') # U+2014 EM DASH 8212 ord('¥') # U+00A5 YEN SIGN 165 If I type alt+8212 I get '—' and if I type alt+0165 I get '¥'. What version of Python are you using and on what OS? --

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-11 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: http://docs.python.org/release/3.1.3/library/tempfile.html doesn't to have an Examples section like 3.2 and 3.3. It appears to have been introduced in b172d7537b99 with #5178. -- ___ Python

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-11 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: #10838 has a bit of discussion about list2cmdline and being part of the public api (generally agreeing that it should be made private, I think). -- nosy: +rosslagerwall ___ Python tracker

[issue11833] ord() doesn't show complete UNICODE

2011-04-11 Thread Alec Taylor
Alec Taylor alec.tayl...@gmail.com added the comment: Python 2.7.1, Win7 64-bit -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11833 ___ ___

[issue11833] ord() doesn't show complete UNICODE

2011-04-11 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The problem is not with ord() but with the stdin encoding used by the windows terminal. If you write a non-ASCII character (e.g. '¥') in the windows terminal with Python 2 without using the u'' prefix, it will be encoded with the encoding

[issue11827] mention of list2cmdline() in docs of subprocess.Popen

2011-04-11 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Thanks for the pointer, Ross. So I propose to remove the mention of list2cmdline from the documentation of subprocess, explaining instead what it does to the path (since I think this should be publicly known, otherwise it's just black magic).

[issue10838] subprocess __all__ is incomplete

2011-04-11 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: Issue #11827 seems to be strongly related -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10838 ___