[issue11826] Leak in atexitmodule

2011-04-10 Thread Stefan Krah
New submission from Stefan Krah : 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 stage: patch review status:

[issue11825] faulthandler: failure without threads

2011-04-10 Thread Stefan Krah
New submission from Stefan Krah : 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, 04:52:32) [GCC 4.1.2 2006111

[issue775321] plistlib error handling

2011-04-10 Thread Ned Deily
Ned Deily added the comment: I agree. If it were important to make plistlib error handling more useful, using a different parser would be the way to go, I think. In any case, Apple has deprecated the use of XML plists and moved to a binary plist format that plistlib does not recognize or ha

[issue775321] plistlib error handling

2011-04-10 Thread Ezio Melotti
Ezio Melotti added the comment: Note that this behavior is documented[0]: """ The XML data is parsed using the Expat parser from xml.parsers.expat – see its documentation for possible exceptions on ill-formed XML. Unknown elements will simply be ignored by the plist parser. """ Since this is

[issue985064] plistlib crashes too easily on bad files

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

[issue11757] test_subprocess.test_communicate_timeout_large_ouput failure on select(): negative timeout?

2011-04-10 Thread Reid Kleckner
Reid Kleckner added the comment: I think the best behavior would be to go ahead and check one last time before raising the exception, so _remaining_time should turn a negative value into 0 (assuming that a timeout value of zero does the right thing for our use case). If people don't feel that

[issue5673] Add timeout option to subprocess.Popen

2011-04-10 Thread Reid Kleckner
Reid Kleckner added the comment: Thanks for fixing the negative timeout issue. I assumed incorrectly that a negative timeout would cause it to check and return immediately if it would otherwise block. As for the docs, the 3.2/3.3 issue was fixed in [[72e49cb7fcf5]]. I just added a Misc/NEWS

[issue11824] freeze.py broken due to ABI flags

2011-04-10 Thread Andreas Stührk
New submission from Andreas Stührk : The recent addition of ABI flags broke the freeze tool as it doesn't construct the paths to required files correctly any longer. The attached patch fixes the issue for me, but I'm not too sure that I used the right config values. -- components: Demo

[issue985064] plistlib crashes too easily on bad files

2011-04-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: jvr -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2011-04-10 Thread R. David Murray
R. David Murray added the comment: Nudge: report on the Ubuntu bug tracker that this is still an issue with 3.2: https://bugs.launchpad.net/bugs/517552 -- nosy: +r.david.murray versions: +Python 3.2, Python 3.3 ___ Python tracker

[issue11820] idle3 shell os.system swallows shell command output

2011-04-10 Thread kent
kent added the comment: When starting idle from a terminal the output from the command is sent to the terminal. When starting idle from the desktop, the output disappears except for the exit status. Same behavior with 2.65 -- ___ Python tracker

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-10 Thread Ezio Melotti
Ezio Melotti added the comment: This is now fixed in 2.7, I also removed the unnecessary call to PyErr_Clear in ba699cf9bdbb (2.7), 6b4467e71872 (3.2), and 2d1d9759d3a4 (3.3). -- assignee: -> ezio.melotti resolution: -> fixed stage: commit review -> committed/rejected status: open ->

[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28705a7987c5 by Ezio Melotti in branch '2.7': #4877: Fix a segfault in xml.parsers.expat while attempting to parse a closed file. http://hg.python.org/cpython/rev/28705a7987c5 -- nosy: +python-dev ___ P

[issue11747] unified_diff function product incorrect range information

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 36648097fcd4 by Raymond Hettinger in branch '3.2': Cleanup and modernize code prior to working on Issue 11747. http://hg.python.org/cpython/rev/36648097fcd4 New changeset 58a3bfcc70f7 by Raymond Hettinger in branch 'default': Cleanup and modernize

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

2011-04-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed. The _terminate() issue has been fixed separately in issue8428. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

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

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Should be fixed now, thank you Charles-François. As for the TestCondition failure, there's a separate issue11790 open. (Victor, please don't file many bugs in a single issue!) -- resolution: -> fixed stage: -> committed/rejected status: open -> closed

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

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset dfc61dc14f59 by Antoine Pitrou in branch '2.7': Issue #8428: Fix a race condition in multiprocessing.Pool when terminating http://hg.python.org/cpython/rev/dfc61dc14f59 -- ___ Python tracker

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c046b7e1087b by Antoine Pitrou in branch '3.2': Issue #11814: Fix likely typo in multiprocessing.Pool._terminate(). http://hg.python.org/cpython/rev/c046b7e1087b New changeset 76a3fc180ce0 by Antoine Pitrou in branch 'default': Merge from 3.2 (issu

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

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset d5e43afeede6 by Antoine Pitrou in branch '3.2': Issue #8428: Fix a race condition in multiprocessing.Pool when terminating http://hg.python.org/cpython/rev/d5e43afeede6 -- nosy: +python-dev ___ Python tr

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

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Nice! See also issue11814. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2011-04-10 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Attached is a patch fixing this race, and a similar one in Pool's terminate. -- keywords: +patch Added file: http://bugs.python.org/file21608/pool_shutdown_race.diff ___ Python tracker

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

2011-04-10 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9325] Add an option to pdb/trace/profile to run library module as a script

2011-04-10 Thread Greg Słodkowicz
Greg Słodkowicz added the comment: Following Nick's advice, I extended runpy.run_module to accept an extra parameter to be used as replacement __main__ namespace. Having this, I can make this temporary __main__ accessible in main() in modules like trace/profile/pdb even if module execution fa

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

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

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

2011-04-10 Thread Raymond Hettinger
New submission from Raymond Hettinger : The argument to CALL_FUNCTION is overloaded to show both the number of positional arguments and keyword arguments (shifted by 8-bits): >>> dis("foo(10, opt=True)") 1 0 LOAD_NAME0 (foo) 3 LOAD_CONST

[issue1602] windows console doesn't print or input Unicode

2011-04-10 Thread pyloz
Changes by pyloz : -- nosy: +smerlin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mail

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-10 Thread R. David Murray
R. David Murray added the comment: Note that this fix solves issue 11772, so I've closed that one as a duplicate. -- ___ Python tracker ___ _

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

2011-04-10 Thread Alex Gaynor
Alex Gaynor added the comment: FWIW in PyPy we have https://bitbucket.org/pypy/pypy/src/default/lib_pypy/disassembler.py which we use for some of our tools. -- nosy: +alex ___ Python tracker

[issue11822] Improve disassembly to show embedded code objects

2011-04-10 Thread Raymond Hettinger
New submission from Raymond Hettinger : Now that list comprehensions mask run their internals in code objects (the same way that genexps do), it is getting harder to use dis() to see what code is generated. For example, the pow() call isn't shown in the following disassembly: >>> dis('[x**2

[issue11492] email.header.Header doesn't fold headers correctly

2011-04-10 Thread R. David Murray
R. David Murray added the comment: This was quite the adventure. The more I worked on fixing the tests, the more if/else cases the existing splitting algorithm grew. When I reached the point where fixing one test broke two others, I thought maybe it was time to try a different approach. Ba

[issue11700] mailbox.py proxy updates

2011-04-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: I reviewed this. And moved a _PartialFile-only _read() case to _PartialFile where it belongs (*this* _ProxyFile will never be extended to stand alone so i shouldn't have moved that the other direction at all). -- Added file: http://bugs.python.o

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

2011-04-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: On Sat, Apr 09, 2011 at 02:18:01PM +, STINNER Victor wrote: > I noticied a strange behaviour: Still fun, but this one could even make it except for termios flags, multibyte and the real problem, signal handling. Hm. -- Added file: http://bu

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is anybody working on this issue? If not, I think it looks like it > might be a nice one for me to tackle. I'll go ahead unless there are > any objections. Nobody is working on it AFAIK. Feel free to give it a try :) -- _

[issue11772] email header wrapping edge case failure

2011-04-10 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: needs patch -> committed/rejected status: open -> closed superseder: -> email.header.Header doesn't fold headers correctly ___ Python tracker __

[issue11610] Improving property to accept abstract methods

2011-04-10 Thread Darren Dale
Darren Dale added the comment: So, are there objections to this patch, or can it be merged? -- ___ Python tracker ___ ___ Python-bugs

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-10 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: Here is a patch for this. I am not much of technical writer, so please be patient with me. I tried to provide all the information about parameters, that can be inferred from the code and experimenting. I have left out one parameter - action - because I do

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

2011-04-10 Thread Nick Coghlan
Nick Coghlan added the comment: If we decide our long term goal is the use of the opcode stream for programmatic access, then yes. -- ___ Python tracker ___ ___

[issue11802] filecmp.cmp needs a documented way to clear cache

2011-04-10 Thread Nadeem Vawda
Nadeem Vawda added the comment: Georg? Benjamin? Do you think this fix should be backported? -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker ___ ___

[issue11817] berkeley db 5.1 support

2011-04-10 Thread R. David Murray
R. David Murray added the comment: Python 2.7 is closed for new features, I afraid. And Berkeley DB is not included in the Python3 stdlib. It has reverted to being maintained entirely as a third party package. -- nosy: +r.david.murray resolution: -> rejected stage: -> committed/re

[issue8094] Multiprocessing infinite loop

2011-04-10 Thread Rodrigue Alcazar
Rodrigue Alcazar added the comment: I have tried to clearly state that the main module is imported by a newly created process. I have also added a comment explaining that an infinite loop like the one Benjamin describes could be created. -- keywords: +patch nosy: +Rodrigue.Alcazar Add

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

2011-04-10 Thread Eugene Toder
Eugene Toder added the comment: So in the near term, dis-based tests should continue to copy/paste sys.stdout redirection code? -- ___ Python tracker ___ __

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

2011-04-10 Thread Nick Coghlan
Nick Coghlan added the comment: Oops, I forgot to edit my comment to match the OpInfo definition I used in the proof-of-concept: OpInfo = collections.namedtuple("OpInfo", "opindex opcode opname oparg details starts_line is_jump_target") --

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

2011-04-10 Thread Nick Coghlan
Nick Coghlan added the comment: Changed issue title to cover ideas like get_opinfo(). -- title: Add functions to return disassembly as string -> Refactor the dis module to provide better building blocks for bytecode analysis ___ Python tracker

[issue11816] Add functions to return disassembly as string

2011-04-10 Thread Nick Coghlan
Nick Coghlan added the comment: I really like the idea of adding some lower level infrastructure to dis to make it generator based, making the disassembly more amenable to programmatic manipulation. Consider if, for each line disassemble() currently prints, we had an underlying iterator that

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Thomas Scrace
Thomas Scrace added the comment: Is anybody working on this issue? If not, I think it looks like it might be a nice one for me to tackle. I'll go ahead unless there are any objections. -- nosy: +thomas.scrace ___ Python tracker

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

2011-04-10 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: I think those lockups are due to a race in the Pool shutdown code. In Lib/multiprocessing/pool.py: def close(self): debug('closing pool') if self._state == RUN: self._state = CLOSE self._worker_handler._state

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread david
Changes by david : -- nosy: +db ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/o

[issue2650] re.escape should not escape underscore

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue2650] re.escape should not escape underscore

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset dda33191f7f5 by Ezio Melotti in branch 'default': #2650: re.escape() no longer escapes the "_". http://hg.python.org/cpython/rev/dda33191f7f5 -- ___ Python tracker ___

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread Georg Brandl
Georg Brandl added the comment: Yes, this is a duplicate. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed superseder: -> "python -m unittest " does not run any tests ___ Python tracker ___

[issue6514] "python -m unittest " does not run any tests

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

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, I meant issue8809. -- superseder: smtplib should provide a means to validate a remote server ssl certificate(s) -> smtplib should support SSL contexts ___ Python tracker __

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Duplicate of issue11821. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> smtplib should provide a means to validate a remote server ssl certificate(s) ___ Python tracker

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: smptlib should support SSL contexts -> smtplib should support SSL contexts ___ Python tracker ___ __

[issue11821] smtplib should provide a means to validate a remote server ssl certificate(s)

2011-04-10 Thread david
New submission from david : (This is similar to http://bugs.python.org/issue10274) The smtplib module should provide a means to validate a remote server ssl certificate(s). It would be 'nice' if smtplib.SMTP_SSL & smtplib.starttls took in arguments to validate the remote SMTP's ssl certificat

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Isn't this an exact duplicate of issue6514? Or do you suggest something else? -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Carl Brewer
Carl Brewer added the comment: Plone ships with a "universal installer" which expects particular versions of python (and PIL etc etc) which makes it easy to build on, for example, many Linux distros, but it's just not working on Open[Solaris|Indiana] and also NetBSD (pkgsrc's python2.6 is bro

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I know this is closed etc... but Plone (the CMS I use) is tied to > various versions of Python, in particular 2.6 at this time. Having it > not build on Open[Solaris/Indiana] means I can't install current > versions of Plone/Zope on this platform. Any chance

[issue11820] idle3 shell os.system swallows shell command output

2011-04-10 Thread kent
kent added the comment: running it as a file from idle gives the same result. import os print (os.system('pwd')) 0 -- ___ Python tracker ___ ___

[issue11820] idle3 shell os.system swallows shell command output

2011-04-10 Thread kent
New submission from kent : attempting to run an os.system command under the idle 3 shell swallows the out put. Idle 3 is running on a 32 bit kde mandriva linux. >>> import os >>> os.system('ls') 0 >>> os.system('pwd') 0 as you can see it returns a 0 indicating successful completion, but no ou

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Ross Lagerwall
Ross Lagerwall added the comment: Fixed the examples for Python 3. It writes and reads bytes now. Also fixed the old Python 2 print statement. -- assignee: docs@python -> rosslagerwall nosy: +rosslagerwall resolution: -> fixed status: open -> closed versions: +Python 3.3

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 87d89f767b23 by Ross Lagerwall in branch '3.2': Issue #11818: Fix tempfile examples for Python 3. http://hg.python.org/cpython/rev/87d89f767b23 -- nosy: +python-dev ___ Python tracker

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, michael.foord ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11819] 'unittest -m' should not pretend it works on Python 2.5/2.6

2011-04-10 Thread anatoly techtonik
New submission from anatoly techtonik : The following command is broken on Python 2.5/2.6 python -m unittest test_file It outputs -- Ran 0 tests in 0.000s OK But in Python 2.7 the same command works

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Carl Brewer
Carl Brewer added the comment: I know this is closed etc... but Plone (the CMS I use) is tied to various versions of Python, in particular 2.6 at this time. Having it not build on Open[Solaris/Indiana] means I can't install current versions of Plone/Zope on this platform. Any chance it coul

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread eduardo
New submission from eduardo : >From the example: http://docs.python.org/py3k/library/tempfile.html#examples The error message is weird... but I guess the problem is the default mode 'w+b'. Python 3.3a0 (default:78a66c98288d, Apr 9 2011, 16:13:31) [GCC 4.4.5] on linux2 Type "help", "copyrigh