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

2011-04-11 Thread Georg Brandl
Georg Brandl added the comment: I can't judge if the functionality is needed, but I don't think the option should be called "attach" if all it does is input() somewhere... -- nosy: +georg.brandl ___ Python tracker

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

2011-04-11 Thread Ezio Melotti
Ezio Melotti added the comment: If a _ is added to list2cmdline the old name should be kept and deprecated. The function is also on 2.x and it's not deprecated there (and it's probably too late to deprecate it now), so we might have to wait a few versions before it will be possible to remove l

[issue10838] subprocess __all__ is incomplete

2011-04-11 Thread Eli Bendersky
Eli Bendersky added the comment: Issue #11827 seems to be strongly related -- nosy: +eli.bendersky ___ Python tracker ___ ___ Python-

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

2011-04-11 Thread Eli Bendersky
Eli Bendersky 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). I will prepare

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

2011-04-11 Thread Ezio Melotti
Ezio Melotti 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 specified by sys.stdin

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

2011-04-11 Thread Alec Taylor
Alec Taylor added the comment: Python 2.7.1, Win7 64-bit -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2011-04-11 Thread Ross Lagerwall
Ross Lagerwall 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

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-11 Thread Ross Lagerwall
Ross Lagerwall 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 tracker

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

2011-04-11 Thread Ezio Melotti
Ezio Melotti 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? -- nosy: +ezio.melott

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

2011-04-11 Thread Alec Taylor
New submission from Alec Taylor : 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 numbering. Thanks, Al

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

2011-04-11 Thread Brian Curtin
New submission from Brian Curtin : 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 parsing - once yo

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

2011-04-11 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

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

2011-04-11 Thread Susam Pal
Susam Pal 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 main.html Diff:

[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 : 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 -w ../pydoc-subj

[issue11830] "import decimal" fails in Turkish locale

2011-04-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11830] "import decimal" fails in Turkish locale

2011-04-11 Thread Roundup Robot
Roundup Robot 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 ___ Python

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Roundup Robot
Roundup Robot 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. http://hg.python.org/cpython/rev/68ef2bf1aa99

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Roundup Robot
Roundup Robot 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

[issue11830] "import decimal" fails in Turkish locale

2011-04-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Brian Curtin
Brian Curtin added the comment: Thanks for the patch! -- assignee: jnoller -> brian.curtin resolution: -> fixed stage: patch review -> committed/rejected ___ Python tracker ___

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Roundup Robot
Roundup Robot 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. Allow child spaw

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

2011-04-11 Thread Torsten Becker
Torsten Becker 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() might have caused the erro

[issue11830] "import decimal" fails in Turkish locale

2011-04-11 Thread Dave Malcolm
New submission from Dave Malcolm : 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 "", line 1, in File "/usr/lib64/python2.7/decimal.py", line 3715, in val = globals()[g

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

2011-04-11 Thread Andreas Stührk
New submission from Andreas Stührk : 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. Attached is a patch with a te

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Graham Dumpleton
Graham Dumpleton 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 even shutdown the Python i

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

2011-04-11 Thread Torsten Becker
Torsten Becker 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 find() and friends. In issue

[issue11747] unified_diff function product incorrect range information

2011-04-11 Thread Raymond Hettinger
Raymond Hettinger 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 resolution: fixed -> status: clos

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Apr 11, 2011 at 5:21 PM, Antoine Pitrou wrote: .. Raymond>> If you disassemble a function, you typically want to see all the code Raymond>> [defined] in that function. +1 (with clarification in []) If the function calls a function defined elsewh

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Antoine Pitrou
Antoine Pitrou 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 disassembly of the ca

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Raymond Hettinger
Raymond Hettinger 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. -- ___ Pytho

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Antoine Pitrou
Antoine Pitrou 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 tracker

[issue11747] unified_diff function product incorrect range information

2011-04-11 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11747] unified_diff function product incorrect range information

2011-04-11 Thread Roundup Robot
Roundup Robot 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': Issue #11747: Fix

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

2011-04-11 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

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

2011-04-11 Thread Santoso Wijaya
Santoso Wijaya 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 adds support for 'MD5-ses

[issue11369] Add caching for the isEnabledFor() computation

2011-04-11 Thread William Hart
William Hart 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 wrote: > > Vinay Sajip added

[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 added the comment: Anybody taking care of this, should check also "byte" and "bytearray". -- ___ Python tracker ___ _

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

2011-04-11 Thread Wojciech Muła
Wojciech Muła 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 _

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-11 Thread Charles-Francois Natali
Charles-Francois Natali 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 tracker

[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 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

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

2011-04-11 Thread Alexander Belopolsky
Alexander Belopolsky 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 between disassemble and _disassem

[issue11790] transient failure in test_multiprocessing.WithProcessesTestCondition

2011-04-11 Thread Charles-Francois Natali
Charles-Francois Natali 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 acquire() condition befo

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

2011-04-11 Thread Raymond Hettinger
Raymond Hettinger 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 this got solved by making argum

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

2011-04-11 Thread R. David Murray
R. David Murray 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 their arguments rathe

[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 added the comment: Since this is not a regression, this would be solved in 3.3 only. I guess. -- nosy: +jcea ___ Python tracker ___ _

[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 : -- versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-04-11 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión 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 processes af

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

2011-04-11 Thread Marijn Schouten
Marijn Schouten added the comment: I remark that `find' and `index' do accept None: $ python3 -c "print('abc'.find('c',None,None))" 2 -- ___ Python tracker ___

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

2011-04-11 Thread Marijn Schouten
New submission from Marijn Schouten : 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 'abc'[-1:None]"

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-11 Thread Éric Araujo
Éric Araujo added the comment: May I ask why 3.1 was not fixed too? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Swapnil Talekar
Changes by Swapnil Talekar : -- resolution: invalid -> status: closed -> open versions: +Python 2.6 ___ Python tracker ___ ___ Python

[issue11803] Memory leak in sub-interpreters

2011-04-11 Thread Swapnil Talekar
Swapnil Talekar 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 not seem to rise above

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Would you like to display lambdas as well? >>> dis('lambda x: x**2') 1 0 LOAD_CONST 0 ( at 0x1005c9ad0, file "", line 1>) 3 MAKE_FUNCTION0 6 RETURN_VALUE at 0x1005cb140, file

[issue11822] Improve disassembly to show embedded code objects

2011-04-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

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

2011-04-11 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Brian Curtin
Brian Curtin added the comment: This looks reasonable to me. If no one beats me to it, I'll check it in tonight. -- ___ Python tracker ___ ___

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-04-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Windows nosy: +brian.curtin, tim.golden versions: +Python 3.3 ___ Python tracker ___ ___ Py

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread R. David Murray
R. David Murray 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 the message to the MTA

[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 added the comment: Do not forget to update docs too. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[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 : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11825] faulthandler: failure without threads

2011-04-11 Thread Stefan Krah
Stefan Krah 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

[issue11810] _socket fails to build on OpenIndiana

2011-04-11 Thread Jesús Cea Avión
Changes by Jesús Cea Avión : -- nosy: +jcea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread Torsten Becker
Torsten Becker 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 with the '@' is that it m

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

2011-04-11 Thread olt
olt 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 ___ Python tracker

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

2011-04-11 Thread STINNER Victor
STINNER Victor 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 ___ ___

[issue11817] berkeley db 5.1 support

2011-04-11 Thread Jesús Cea Avión
Jesús Cea Avión 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 _

[issue11825] faulthandler: failure without threads

2011-04-11 Thread STINNER Victor
STINNER Victor 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: http://bugs.python.org/file21613/timeout.patch _

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

2011-04-11 Thread R. David Murray
R. David Murray 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 implementation detail.

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

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 terminal in any other way i w

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-11 Thread R. David Murray
R. David Murray 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' domain). I should d

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

2011-04-11 Thread Eli Bendersky
Eli Bendersky 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 means 'subprocess'

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

2011-04-11 Thread R. David Murray
R. David Murray 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 _

[issue11808] $MACOSX_DEPLOYMENT_TARGET mismatch ... during configure

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 versions. > See -mm

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

2011-04-11 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso 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 leak the great picture o

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

2011-04-11 Thread Eli Bendersky
New submission from Eli Bendersky : 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 string using the

[issue11369] Add caching for the isEnabledFor() computation

2011-04-11 Thread Vinay Sajip
Vinay Sajip 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 ___

[issue11593] Add encoding parameter to logging.basicConfig

2011-04-11 Thread Vinay Sajip
Vinay Sajip 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 ___

[issue10156] Initialization of globals in unicodeobject.c

2011-04-11 Thread Stefan Krah
Stefan Krah added the comment: Stefan Krah 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/ -- ___ Py

[issue11402] _PyUnicode_Init leaks a little memory once

2011-04-11 Thread Stefan Krah
Stefan Krah 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 ___ Pyth

[issue10156] Initialization of globals in unicodeobject.c

2011-04-11 Thread Stefan Krah
Stefan Krah 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 the impression that unicod