[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread eduardo
New submission from eduardo schettin...@gmail.com: 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

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Carl Brewer
Carl Brewer c...@bl.echidna.id.au 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

[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 techto...@gmail.com: 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

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

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11819 ___ ___

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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

[issue11818] tempfile.TemporaryFile example in docs doesnt work

2011-04-10 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com 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:

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

2011-04-10 Thread kent
New submission from kent fuzzba...@comcast.net: 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

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

2011-04-10 Thread kent
kent fuzzba...@comcast.net added the comment: running it as a file from idle gives the same result. import os print (os.system('pwd')) 0 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11820

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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.

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Carl Brewer
Carl Brewer c...@bl.echidna.id.au 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

[issue11810] _socket fails to build on OpenIndiana

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11810 ___ ___ Python-bugs-list mailing

[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 amaur...@gmail.com added the comment: Isn't this an exact duplicate of issue6514? Or do you suggest something else? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11819

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

2011-04-10 Thread david
New submission from david db.pub.m...@gmail.com: (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

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- title: smptlib should support SSL contexts - smtplib should support SSL contexts ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___

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

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

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

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

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

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

[issue2650] re.escape should not escape underscore

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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 rep...@bugs.python.org

[issue2650] re.escape should not escape underscore

2011-04-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2650 ___

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread david
Changes by david db.pub.m...@gmail.com: -- nosy: +db ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ 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 neolo...@free.fr 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

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Thomas Scrace
Thomas Scrace t...@scrace.org 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

[issue11816] Add functions to return disassembly as string

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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

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

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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 ___

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

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com 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 Eugene Toder
Eugene Toder elto...@gmail.com added the comment: So in the near term, dis-based tests should continue to copy/paste sys.stdout redirection code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816

[issue11817] berkeley db 5.1 support

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2011-04-10 Thread Nadeem Vawda
Nadeem Vawda nadeem.va...@gmail.com added the comment: Georg? Benjamin? Do you think this fix should be backported? -- nosy: +benjamin.peterson, georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11802

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

2011-04-10 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If we decide our long term goal is the use of the opcode stream for programmatic access, then yes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11816

[issue11807] Documentation of add_subparsers lacks information about parametres

2011-04-10 Thread Filip Gruszczyński
Filip Gruszczyński grusz...@gmail.com 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 -

[issue11610] Improving property to accept abstract methods

2011-04-10 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: So, are there objections to this patch, or can it be merged? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610 ___

[issue11772] email header wrapping edge case failure

2011-04-10 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - email.header.Header doesn't fold headers correctly ___ Python tracker rep...@bugs.python.org

[issue8809] smtplib should support SSL contexts

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 :) --

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

2011-04-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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. --

[issue11700] mailbox.py proxy updates

2011-04-10 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com 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

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

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue11822] Improve disassembly to show embedded code objects

2011-04-10 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: 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

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

2011-04-10 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com 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 rep...@bugs.python.org

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

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Note that this fix solves issue 11772, so I've closed that one as a duplicate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11492

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

2011-04-10 Thread pyloz
Changes by pyloz merlinschindlb...@googlemail.com: -- nosy: +smerlin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___ Python-bugs-list

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

2011-04-10 Thread Raymond Hettinger
New submission from Raymond Hettinger raymond.hettin...@gmail.com: 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

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

2011-04-10 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11823 ___ ___

[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 jerg...@gmail.com 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

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

2011-04-10 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11823 ___ ___ Python-bugs-list

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

2011-04-10 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr 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

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

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice! See also issue11814. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8428 ___

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

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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':

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

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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

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

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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:

[issue11814] possible typo in multiprocessing.Pool._terminate

2011-04-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Fixed. The _terminate() issue has been fixed separately in issue8428. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

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

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

[issue11747] unified_diff function product incorrect range information

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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':

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

2011-04-10 Thread Roundup Robot
Roundup Robot devnull@devnull 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

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

2011-04-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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 -

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

2011-04-10 Thread kent
kent fuzzba...@comcast.net 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 --

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

2011-04-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue985064] plistlib crashes too easily on bad files

2011-04-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: jvr - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue985064 ___ ___ Python-bugs-list

[issue11824] freeze.py broken due to ABI flags

2011-04-10 Thread Andreas Stührk
New submission from Andreas Stührk andy-pyt...@hammerhartes.de: 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.

[issue5673] Add timeout option to subprocess.Popen

2011-04-10 Thread Reid Kleckner
Reid Kleckner r...@mit.edu 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

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

2011-04-10 Thread Reid Kleckner
Reid Kleckner r...@mit.edu 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

[issue985064] plistlib crashes too easily on bad files

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

[issue775321] plistlib error handling

2011-04-10 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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.

[issue775321] plistlib error handling

2011-04-10 Thread Ned Deily
Ned Deily n...@acm.org 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