[issue17505] email.header.Header.__unicode__ does not decode header

2013-03-22 Thread Hrvoje Nikšić
Hrvoje Nikšić added the comment: Thanks for pointing out the make_header(decode_header(...)) idiom, which I was indeed not aware of. It solves the problem perfectly. I agree that it is a doc bug. While make_header is documented on the same place as decode_header and Header itself, it is not

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-22 Thread Todd Rovito
Todd Rovito added the comment: I tested the patch on Linux CentOS 6.x and it seems to work. Now if we could only get somebody to test on Windows? -- ___ Python tracker ___ _

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-22 Thread Todd Rovito
Todd Rovito added the comment: Made minor modifications to Roger's Terminal.py to get the extension to work with Python 3.4. This is an excellent extension as a user can toggle it on/off from the Options menu. The up/down arrow keys now allow a user to scroll through history but the meta-n me

[issue17526] inspect.findsource raises undocumented error for code objects with empty filename

2013-03-22 Thread Nils Bruin
New submission from Nils Bruin: It would seem reasonable that an empty filename would be a legitimate way of indicating that a code object does not have a corresponding source file. However, if one does that then inspect.findsource raises an unexpected IndexError rather than the documented IOE

[issue15392] Create a unittest framework for IDLE

2013-03-22 Thread Nick Coghlan
Nick Coghlan added the comment: I'll start with a bit of philosophical guidance :) 1. As much as possible, push logic testing down into the non-GUI tests. Where unittest.mock can help here is when you have a piece of code to test that is *almost* independent of the GUI, but needs to call an AP

[issue504219] locale.resetlocale is broken

2013-03-22 Thread Mark Lawrence
Mark Lawrence added the comment: Can we simply document that getpreferredencoding should be used instead as stated in msg8781 ? Should getdefaultlocale be earmarked for deprecation? -- ___ Python tracker ___

[issue17519] unittest should not try to run abstract classes

2013-03-22 Thread Michael Foord
Michael Foord added the comment: As David says, the current workaround is to provide a mixin (base) class that inherits from object. Because this doesn't inherit from TestCase there is no confusion. We *may* add a class marker that allows you to provide TestCase subclasses that won't be run.

[issue14101] example function in tertools.count docstring is misindented

2013-03-22 Thread Mark Lawrence
Mark Lawrence added the comment: As this is a trivial patch could it be applied please? -- nosy: +BreamoreBoy ___ Python tracker ___ _

[issue16758] IDLE SubprocessStartupError

2013-03-22 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be closed as a duplicate of #10722 ? -- nosy: +BreamoreBoy title: SubprocessStartupError -> IDLE SubprocessStartupError ___ Python tracker _

[issue17521] fileConfig() disables any previously-used "named" loggers, even when getLogger() is called again.

2013-03-22 Thread Bob Igo
Bob Igo added the comment: Any configuration I tried still generates the bug, but here's a pared-down config file: [loggers] keys=root [handlers] keys=screen [formatters] keys= [logger_root] level=DEBUG handlers=screen [handler_screen] level=DEBUG class=StreamHandler args=(sys.stdout,) form

[issue12207] Document ast.PyCF_ONLY_AST

2013-03-22 Thread Mark Lawrence
Mark Lawrence added the comment: PyCF_ONLY_AST is defined in pythonrun.h and referenced in bltinmodule.c, Python-ast.c and pythonrun.c. Should it be documented or not? -- nosy: +BreamoreBoy ___ Python tracker ___

[issue17519] unittest should not try to run abstract classes

2013-03-22 Thread R. David Murray
R. David Murray added the comment: I leave it to Michael to decide if your suggestion is a good addition :) I personally don't see anything wrong with fake_abc.py...the stdlib test suite uses that idom extensively. Other developers insist it should be called a "mixin" instead of a base class,

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2013-03-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing

[issue10211] BufferObject doesn't support new buffer interface

2013-03-22 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-22 Thread Steve Dower
Steve Dower added the comment: I've dug deeper into VC10 and things are even worse there - without VS installed I don't think there's any way for distutils to work without completely replacing query_vcvarsall() (or msvc9compiler, for that matter). I'm willing to write such a replacement, assum

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: And how to find all such issues for Python 2 that people need to be aware of in this tracker? -- ___ Python tracker ___

[issue17525] os.getcwd() fails on cifs share

2013-03-22 Thread David Cuddihy
New submission from David Cuddihy: Calls to os.getcwd() can fail if issued from a cifs-mounted directory once any of the files or subdirectories have been changed remotely. To recreate this: on Linux, mount a windows share using the mount.cifs command. cd to the share and run python. Pyt

[issue17522] Add api PyGILState_Check

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: You probably want to add some docs to c-api/init.rst. -- nosy: +pitrou ___ Python tracker ___ ___ Py

[issue10359] ISO C cleanup

2013-03-22 Thread Éric Araujo
Éric Araujo added the comment: > I don't understand the point of the distutils test one Making the test not fail wrongly with some compilers. This was committed. -- stage: patch review -> committed/rejected ___ Python tracker

[issue17521] fileConfig() disables any previously-used "named" loggers, even when getLogger() is called again.

2013-03-22 Thread Vinay Sajip
Vinay Sajip added the comment: The logger obtained by logging.getLogger('root') is not the root logger, but a child of the root logger. Please post your configuration, ideally the smallest version which allows you to reproduce the failure. -- ___ P

[issue13733] Change required to sysconfig.py for Python 2.7.2 on OS/2

2013-03-22 Thread Mark Lawrence
Mark Lawrence added the comment: Given the comment in msg150839 "I think OS/2 portability fixes should probably target 3.3 instead." and seeing that OS/2 is no longer supported http://docs.python.org/3/whatsnew/3.3.html#unsupported-operating-systems can this be closed? -- nosy: +Bream

[issue17425] Update OpenSSL versions in Windows builds

2013-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue17425] Update OpenSSL versions in Windows builds

2013-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: 0.9.8y seems to work fine on 2.7; I'll do the other ones later. -- ___ Python tracker ___ ___ Pytho

[issue10359] ISO C cleanup

2013-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: I'm not inclined to apply the patch to ffi unless someone can demonstrate that it is an actual problem. given that nobody has applied it to *upstream* libffi (since we just pulled in v3.0.13 earlier this week) I doubt it matters to anyone. everything here

[issue17425] Update OpenSSL versions in Windows builds

2013-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d76d0cc by Martin v. Loewis in branch '2.7': Issue #17425: Build against openssl 0.9.8y on Windows. http://hg.python.org/cpython/rev/3d76d0cc -- nosy: +python-dev ___ Python tracker

[issue17344] checking size of size_t... configure: error:

2013-03-22 Thread Joe Hsiao
Joe Hsiao added the comment: Thanks, Ned. What you suggested is working. Apologize not seeing the Mac folder. -- ___ Python tracker ___ __

[issue10359] ISO C cleanup

2013-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: It looks like someone has already done the Python-ast cleanup and I don't understand the point of the distutils test one or the libffi one (ffi has been updated but it's trivial and would still apply). -- nosy: +gregory.p.smith _

[issue2704] IDLE: Patch to make PyShell behave more like a Terminal interface

2013-03-22 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue17389] Optimize Event.wait()

2013-03-22 Thread Charles-François Natali
Charles-François Natali added the comment: > Would that be erroneous? It can already happen because of thread switches: That's not really the same thing. wait() would return True, which is the right thing to do since the Event has been set at some point. Here, it would make it possible for wait(

[issue17522] Add api PyGILState_Check

2013-03-22 Thread Brett Cannon
Brett Cannon added the comment: Seems fine to me -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17524] Problem to run a method

2013-03-22 Thread Brett Cannon
Brett Cannon added the comment: It's probably opencv as Python never exits blindly like that without raising an exception or flat-out crashing. -- nosy: +brett.cannon resolution: -> invalid status: open -> closed ___ Python tracker

[issue17389] Optimize Event.wait()

2013-03-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 22/03/2013 3:31pm, Charles-François Natali wrote: >> I was under the impression that dict access (and therefore attribute >> access for "simple" objects) was guaranteed to be atomic even in >> alternative implementations like Jython and IronPython. >> >> Is t

[issue17521] fileConfig() disables any previously-used "named" loggers, even when getLogger() is called again.

2013-03-22 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - subprocess uses /proc to get a list of open fd's in the child process before exec when possible. search for FD_DIR in http://hg.python.org/cpython/file/d674bbbed333/Modules/_posixsubprocess.c -- ___ Python

[issue17524] Problem to run a method

2013-03-22 Thread Ali Massah Kiani
New submission from Ali Massah Kiani: when i run attached code python.exe exit with code: when i trace this code problem was the this method : mat = cv.GetMat(AviFile) and problem is, not error or exeption rises this problem is for python or opencv? thanks. -- components: Library (Lib)

[issue17516] Dead code should be removed

2013-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue15392] Create a unittest framework for IDLE

2013-03-22 Thread Francisco Martín Brugué
Changes by Francisco Martín Brugué : -- nosy: +francismb ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue17514] Add the license to argparse.py

2013-03-22 Thread Tshepang Lekhonkhobe
Tshepang Lekhonkhobe added the comment: @Antoine OP is interesting in only that file. Why not just add that single line at the top (at least for 2.7, and 3.3+)? -- nosy: +tshepang ___ Python tracker __

[issue17473] -m is not universally applicable

2013-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17462] argparse FAQ: how it is different from optparse

2013-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17438] json.load docs should mention that it always return unicode

2013-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17389] Optimize Event.wait()

2013-03-22 Thread Mark Dickinson
Mark Dickinson added the comment: Charles-François: would your objections also apply to the current implementation of 'is_set'? -- ___ Python tracker ___ ___

[issue16123] IDLE - deprecate running without a subprocess

2013-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > The issue is usually with firewalls, security software, socket issues, etc Surely nowadays there are better ways than sockets to communicate between processes? Pipes? -- nosy: +amaury.forgeotdarc ___ Python

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-22 Thread jan matejek
jan matejek added the comment: Not just yet, please. I can now reproduce the test_subprocess failures outside autobuild too. Interestingly, it's the reverse here: test_subprocess passes when /proc is not present, but fails when it is. I'm pretty sure that we hijacked a completely different bug

[issue17523] Additional tests for the os module.

2013-03-22 Thread Will Weaver
New submission from Will Weaver: I've reorganized and added some os module tests. I split the makedirs tests into additional test methods that test one thing instead of a lot of different things. I added additional test coverage for a trailing '/'. I've also added the same test for removedirs

[issue15917] hg hook to detect unmerged changesets

2013-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: hg log -r 'head()-parents(merge())-closed()' --template '{branch}\n' works for me. Alternatively, hg log -r 'head()-parents(merge())-closed()-branch(2.7)-branch(default)' should come out empty. -- ___ Python track

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-22 Thread Ismail Donmez
Ismail Donmez added the comment: Jan, thanks for the excellent explanation. We can close this bug I guess then? -- ___ Python tracker ___

[issue9090] Error code 10035 calling socket.recv() on a socket with a timeout (WSAEWOULDBLOCK - A non-blocking socket operation could not be completed immediately)

2013-03-22 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: fixed for 2.7 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pyth

[issue10211] BufferObject doesn't support new buffer interface

2013-03-22 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue12466] sporadic failures of test_close_fds and test_pass_fds in test_subprocess

2013-03-22 Thread jan matejek
jan matejek added the comment: Ismail, the sem_open thing is because in autobuild you don't get /proc or somesuch - it's a problem of our buildsystem, otherwise the test passes. I can reproduce the failure in autobuild, but not separately yet. Will keep you posted, signs point to yet another m

[issue12098] Child process running as debug on Windows

2013-03-22 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2013-03-22 Thread Kristján Valur Jónsson
Changes by Kristján Valur Jónsson : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-22 Thread R. David Murray
R. David Murray added the comment: Claudiu: that's the entire process. Now we just wait a day or two until the confirmation arrives from the PSF that they have accepted it (you'll get an '*' next to your name here in the tracker when that happens). --

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

2013-03-22 Thread paul j3
paul j3 added the comment: This patch makes two changes to argparse.py ArgumentParser._parse_optional() - accept negative scientific and complex numbers - add the args_default_to_positional parser option _negative_number_matcher only matches integers and simple floats. This is fine for detect

[issue17515] Add sys.setasthook() to allow to use a custom AST optimizer

2013-03-22 Thread Brett Cannon
Brett Cannon added the comment: And that's fine as it allows for more explicit control over what gets optimized. Basically if there is a global hook directly into the compiler there needs to be more control over detecting it's being optimized, what to do about .pyo files, etc. At least at the

[issue17522] Add api PyGILState_Check

2013-03-22 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson: Here is a function that is used by specialized part of our code. Often it is useful for e.g. IO callbacks or memory hooks to know if the GIL is in place in order to know if certain things can be done or not. Putting this here to see if anyone has str

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-22 Thread Steve Dower
Steve Dower added the comment: ('ignore extra arguments' meaning they could be returned from find_vcvarsall() and nobody will notice. Though it doesn't bother me if the fallback is handled at a higher level.) -- ___ Python tracker

[issue7511] msvc9compiler.py: ValueError when trying to compile with VC Express

2013-03-22 Thread Steve Dower
Steve Dower added the comment: This becomes more of an issue since VC++ 2008 Express is no longer available for download (unless you're an MSDN subscriber), though the compiler itself is still available as part of http://www.microsoft.com/en-us/download/details.aspx?id=3138 (for VC9) I'll adm

[issue17521] fileConfig() disables any previously-used "named" loggers, even when getLogger() is called again.

2013-03-22 Thread Bob Igo
New submission from Bob Igo: I am aware of the described behavior of fileConfig() when disable_existing_loggers is True, but what I am seeing happens whether disable_existing_loggers is True or False, and it also affects loggers obtained via future, fresh calls to getLogger(name). Here's an e

[issue17520] Except(ValueError) on Integer returns the input value as 1

2013-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Hi, The Python bug tracker is not designed to get help. Please ask your questions on the python-list mailing list, or the comp.lang.python newsgroup. A hint though: when there is an exception the "num = " part is not even executed, so num contains its pr

[issue15917] hg hook to detect unmerged changesets

2013-03-22 Thread Ezio Melotti
Ezio Melotti added the comment: > Wouldn't it be simpler to find all topological heads in the new csets > (a topological head is a cset without any child), and check that none > of them is on a 3.* branch? Indeed -- I was looking at this again and it occurred to me that checking that the only t

[issue17520] Except(ValueError) on Integer returns the input value as 1

2013-03-22 Thread Rabcor
New submission from Rabcor: I'm an amateur at best, but the issue is that if i do this. --- try: num = int(input('Write a number-->')) except(ValueError) as noint: print('You did not write an integer') --- num will become 1 if i write an invalid value (like a) on the input line. In that

[issue17515] Add sys.setasthook() to allow to use a custom AST optimizer

2013-03-22 Thread STINNER Victor
STINNER Victor added the comment: > This is unnecessary. Your change only concerns imports. eval() and compile() cannot be hooked using your method. 2013/3/22 Brett Cannon : > > Brett Cannon added the comment: > > This is unnecessary. I added the source_to_code() method > (http://docs.python.o

[issue17389] Optimize Event.wait()

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > So in short, if wait() is called by a thread shortly after another > thread clear()ed it, the former thread might very well read _flag == > True (while the later just set it to False) and return erroneously. Would that be erroneous? It can already happen becau

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-22 Thread Éric Araujo
Éric Araujo added the comment: Thank you for taking the time to report this. Fixing the docs to discourage using the broken requires seems even more important now. -- stage: -> committed/rejected ___ Python tracker

[issue17389] Optimize Event.wait()

2013-03-22 Thread Charles-François Natali
Charles-François Natali added the comment: > I was under the impression that dict access (and therefore attribute > access for "simple" objects) was guaranteed to be atomic even in > alternative implementations like Jython and IronPython. > > Is this not a language guarantee? AFAICT there's no s

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8ae1c28445f8 by Vinay Sajip in branch '2.7': Issue #17508: Handled out-of-order handler configuration correctly. http://hg.python.org/cpython/rev/8ae1c28445f8 New changeset ea00ae184d60 by Vinay Sajip in branch '3.2': Issue #17508: Handled out-of-or

[issue17389] Optimize Event.wait()

2013-03-22 Thread Richard Oudkerk
Richard Oudkerk added the comment: On 22/03/2013 3:19pm, Charles-François Natali wrote: > The _flag is checked without any lock held: although it won't be a > problem with CPython, a standard memory model (e.g. Java's one) > doesn't guarantee that reading _flag outside of the lock will return > t

[issue17389] Optimize Event.wait()

2013-03-22 Thread Charles-François Natali
Charles-François Natali added the comment: Something bothers me: """ def wait(self, timeout=None): if self._flag: return True self._cond.acquire() """ The _flag is checked without any lock held: although it won't be a problem with CPython, a standard memory model (e.g. Java's on

[issue17515] Add sys.setasthook() to allow to use a custom AST optimizer

2013-03-22 Thread Brett Cannon
Brett Cannon added the comment: This is unnecessary. I added the source_to_code() method (http://docs.python.org/3.4/library/importlib.html#importlib.abc.SourceLoader.source_to_code) to loaders to explicitly handle this case. -- ___ Python tracker

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I backed it out until it can be done without breaking OSX. d174cb3f5b9e -- ___ Python tracker ___ ___

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: Wrong issue, sorry. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I backed it out until it can be done without breaking OSX. d174cb3f5b9e -- nosy: +benjamin.peterson ___ Python tracker ___ __

[issue13150] Most of Python's startup time is sysconfig

2013-03-22 Thread Roundup Robot
Roundup Robot added the comment: New changeset d174cb3f5b9e by Benjamin Peterson in branch '2.7': backout 66e30c4870bb for breaking OSX (#13150) http://hg.python.org/cpython/rev/d174cb3f5b9e -- ___ Python tracker _

[issue17425] Update OpenSSL versions in Windows builds

2013-03-22 Thread Martin v . Löwis
Martin v. Löwis added the comment: Indeed. I hope to get to it later this evening. -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: So the issue can be closed: - subprocess was rewritten in C on Python3 for good reasons: it's wrong (and dangerous) to run Python code between fork() and exec(); this bug report is another example. - This change is too large to be merged to 2.7. - Ther

[issue17509] Incorrect package version predicate parsing by distutils

2013-03-22 Thread ILja Orlovs
ILja Orlovs added the comment: Whoops. Sorry. My bad than. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: Python 3 is not affected. Python 2.7, Linux only. -- ___ Python tracker ___ ___ Python-bugs-list

[issue14979] pdb doc: Explain how to extend debugger instead of sending readers to the source

2013-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: A minimal example of debugger is needed, with the explanation how frame.f_trace is used by debuggers. -- versions: +Python 3.4, Python 3.5 ___ Python tracker __

[issue1747670] Limiting data copy in xmlrpclib

2013-03-22 Thread Gael Le Mignot
Gael Le Mignot added the comment: Great that join does the optimisation by itself now, but the last issue of the patch (cleaning the _data array before calling f() so the memory of _data can be collected earlier) still seems meaningful today. -- ___

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: I can not repeat this neither on Python 2.7 nor on Python 3 on Windows Vista. Need to run this on a Linux system to confirm. -- ___ Python tracker _

[issue17519] unittest should not try to run abstract classes

2013-03-22 Thread Éric Piel
Changes by Éric Piel : Added file: http://bugs.python.org/file29545/fake_abc.py ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue17519] unittest should not try to run abstract classes

2013-03-22 Thread Éric Piel
New submission from Éric Piel: Since Python 2.6 there is the notion if abstract class (ABC). It could be useful to use it for test cases, but unittest doesn't support it. Typically, I'd like to test a bunch of classes which all should behave similarly (at least for some cases). So I'd like to

[issue17518] urllib2 cannnot handle https and BasicAuth via Proxy.

2013-03-22 Thread masato
New submission from masato: When urllib2 module is used, https connections to servers that BasicAuth is required, via proxies, can not be established properly. Sample code: import urllib2 def main(): url = "https://example.com/aplication/rpc"; proxy_support = urllib2.ProxyHandler(

[issue15797] bdist_msi does not pass -install/remove flags to install_script

2013-03-22 Thread Pierre Raybaut
Pierre Raybaut added the comment: The submitted patch actually works (tested with Python 2.7.3 on Windows XP) and also fixes another bug: the installation script is executed when uninstalling (that feature is not implemented in current Python stable versions despite the mention in docstrings t

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: So, does this page report an issue with Python2, or Python3? -- ___ Python tracker ___ ___ Pyt

[issue17514] Add the license to argparse.py

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: That said if it's a simple one-liner I'm ok. You'll just have to wait for a core developer who's motivated enough to make such changes :-) -- ___ Python tracker __

[issue17514] Add the license to argparse.py

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: The whole Python distribution is licensed under the PSF license unless stated otherwise, so I'm not sure what you're complaining about? Just update your script so that it understand this simple matter. Besides I don't understand why you're complaining specific

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: I can't repeat this on Windows. Looks like it is a Linux issue, because of forks. -- ___ Python tracker ___

[issue15005] corrupted contents of stdout result from subprocess call under a trace

2013-03-22 Thread anatoly techtonik
Changes by anatoly techtonik : -- title: corrupted output from subprocess call under a trace -> corrupted contents of stdout result from subprocess call under a trace ___ Python tracker ___

[issue15005] corrupted output from subprocess call under a trace

2013-03-22 Thread anatoly techtonik
anatoly techtonik added the comment: This use case is actual for various kind of asynchronous operations. -- title: trace corrupts return result on chained execution -> corrupted output from subprocess call under a trace ___ Python tracker

[issue17517] StringIO() does not behave like cStringIO() when given an array object

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, this is probably too late to fix, since it only affects 2.7. Calling StringIO / cStringIO with a non-str argument should probably have raised TypeError, for the sake of sanity. -- nosy: +pitrou resolution: -> wont fix status: open -> closed _

[issue1747670] Limiting data copy in xmlrpclib

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would close this as out of date, unless you have other suggestions to improve memory consumption. -- ___ Python tracker ___ ___

[issue1747670] Limiting data copy in xmlrpclib

2013-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, str.join() already optimizes this case to avoid copies: >>> s = "x" * 50 >>> id(s) 139712615414000 >>> id(''.join([s])) 139712615414000 -- nosy: +pitrou ___ Python tracker

[issue15392] Create a unittest framework for IDLE

2013-03-22 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue17508] logging.config.ConvertingDict issue with MemoryHandler

2013-03-22 Thread Pierre Le Marre
Pierre Le Marre added the comment: Thank you for the tip! I just try it, it works. This behavior is not documented, so it is quite confusing. I try also to use ``collections.OrderedDict``, as a quick fix, but it does not work. It seems we need here a simple resolution order. -- __

[issue17487] wave.Wave_read.getparams should be more user friendly

2013-03-22 Thread Claudiu.Popa
Claudiu.Popa added the comment: Hello, I signed the electronic contributor agreement (I received a mail with the final copy afterwards). Is there something else that I should do or that is the entire process? -- ___ Python tracker

[issue17512] backport of the _sysconfigdata.py module (issue 13150) breaks the build on darwin

2013-03-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Guess what, I hadn't read the thread on this python-dev yet :-( -- ___ Python tracker ___ ___ Pytho