[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-09 Thread Jan Lieskovsky
Jan Lieskovsky ian...@seznam.cz added the comment: Hello guys, what's the current state of this issue? The proposed patch hasn't still been projected into upstream Python code, so wondering: 1, when and if it will be? 2, if you have found another solution / patch? Thanks Regards, Jan. --

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Hello, what's the current state of this issue? The proposed patch hasn't still been projected into upstream Python code, so wondering: 1, when and if it will be? I was hoping for more feedback before committing it. While it has been labeled

[issue6447] PATCH: typo (English) in subprocess module

2009-07-09 Thread Yinon Ehrlich
Changes by Yinon Ehrlich yino...@users.sourceforge.net: -- components: Library (Lib) files: subprocess.patch keywords: patch nosy: Yinon severity: normal status: open title: PATCH: typo (English) in subprocess module versions: Python 2.7 Added file:

[issue816059] popen2 work, fixes bugs 768649 and 761888

2009-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: OTOH, the test code runs fine with python 2.4.4, so what is the purpose of this patch? -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org

[issue5191] Partial function application 'from the right'

2009-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Closing as requested. -- nosy: +amaury.forgeotdarc resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5191

[issue6448] imp.find_module() -- be explicity that 'path' must be a list

2009-07-09 Thread Jordan Bettis
New submission from Jordan Bettis jord...@hafdconsulting.com: Hi. I just spent a while fighting with imp.find_module because I was trying to pass the path as a string, rather than a string embedded in a list: result = find_module('mod', '/path') rather than result = find_module('mod',

[issue6414] struct module : processor endianness descriptions misleading

2009-07-09 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: georg.brandl - rhettinger nosy: +rhettinger versions: +Python 3.2 -Python 2.5, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6414

[issue6377] distutils compiler switch ignored

2009-07-09 Thread Nicolas Dumazet
Nicolas Dumazet nicd...@gmail.com added the comment: It seems that the fix is still not perfect. At the moment ( r73906 ), if you try to build trunk using Python 2.6, you get: python setup.py build running build running build_ext Traceback (most recent call last): File setup.py, line 1901,

[issue6416] Failed to compile selectmodule.c on windows (trunk)

2009-07-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This constant was introduced in r73818 by Gregory, so I'm assigning this ticket to him. Note that the trunk Windows buildbot is also failing to compile because of this bug. -- assignee: - gregory.p.smith components: +Library

[issue5753] CVE-2008-5983 python: untrusted python modules search path

2009-07-09 Thread Tomas Hoger
Tomas Hoger tho...@redhat.com added the comment: Have you considered something like this? (patch against 3.1) --- Python/sysmodule.c.orig +++ Python/sysmodule.c @@ -1643,6 +1643,7 @@ PySys_SetArgv(int argc, wchar_t **argv) #endif /* Unix */ } #endif /* All others */ +

[issue6416] Failed to compile selectmodule.c on windows (trunk)

2009-07-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I found this article that might be of interest with regards to PIPE_BUF (or rather lack thereof) on Windows: http://cygwin.com/ml/cygwin-patches/2004-q3/msg00084.html It doesn't look like doing the right thing in Windows where in Posix

[issue2504] Add gettext.pgettext() and variants support

2009-07-09 Thread David Schnur
David Schnur david.sch...@dartware.com added the comment: I came across this ticket while looking for alternatives to Python's gettext, since I need msgctx support. It seems a patch was supplied for this a while back. I have never contributed to Python, and am not familiar with your release

[issue2504] Add gettext.pgettext() and variants support

2009-07-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Only my lack of time prevents inclusion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2504 ___

[issue6449] Improve/update python.org/dev/

2009-07-09 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: Reading python.org/dev/ I noticed a few things that could be improved/updated: 1) in http://www.python.org/dev/implementations/ Unladen Swallow is missing; 2) in http://www.python.org/dev/contributing/ there's an any and any that should

[issue6450] normpath() sometimes maps unicode to str

2009-07-09 Thread Erik Sandberg
New submission from Erik Sandberg sandb...@virtutech.com: On Linux, I get the following: import os os.path.normpath(u'/') '/' I would expect unicode to be mapped to unicode. os.path.abspath() has the same problem, see also issue 3426. This causes problems in my project, where a function

[issue6449] Improve/update python.org/dev/

2009-07-09 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Technically pydot...@python.org is the proper place to report this stuff, but it's not a big deal as I unofficially in charge of /dev so I will take care of it. -- assignee: georg.brandl - brett.cannon nosy: +brett.cannon

[issue6450] normpath() sometimes maps unicode to str

2009-07-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Unicode nosy: +ezio.melotti priority: - normal stage: - test needed versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6450

[issue6450] normpath() sometimes maps unicode to str

2009-07-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Do the standard Python library functions that operate on strings guarantee anything in general with respect to conserving unicode? Can I make any assumption as to which codec was used to encode the str returned from normpath? The bug

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-09 Thread holger krekel
holger krekel holger.kre...@gmail.com added the comment: To recap the use case: stdout is redirected during a test function run which might trigger arbitrary usage of logging-functionality. Not closing the temporary file would mean that there could be as many open files as there are test

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-09 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: On Thu, 09 Jul 2009 06:48:28 -0700, Vinay Sajip rep...@bugs.python.org wrote: It should be understood that if a stream is passed to a StreamHandler, the ownership of that stream is passed as well, so closing the handler rather

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-09 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: See my comments about your ConsoleHandler recipe(s) on issue6345 Correction: issue6435 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6333

[issue6435] logging: cache the traceback text on formatter, instead of record

2009-07-09 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: But the cache needs to be invalidated when `exc_info` is changed - as in set to None when it was a traceback object. When does the exc_info change for a record? AFAIK it's

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-09 Thread Andrew Ziem
Andrew Ziem ahz...@gmail.com added the comment: Attached screenshot shows regedit handles \x00\x00 by showing all the invalid values (each \x00 becomes a line break). More importantly, Windows apparently reads all the invalid value when processing FileRenameOperations, so my Python program must

[issue6451] Additional brackets to print

2009-07-09 Thread Vasiliy
New submission from Vasiliy bazo...@megabox.ru: from __future__ import print_function print('Foo','Bar') print('FooBar') 2to3 translates it to print(('Foo','Bar')) print('FooBar') is it right? -- components: 2to3 (2.x to 3.0 conversion tool) files: test.py messages:

[issue6451] 2to3 adds additional brackets to print

2009-07-09 Thread Vasiliy
Changes by Vasiliy bazo...@megabox.ru: -- title: Additional brackets to print - 2to3 adds additional brackets to print ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6451 ___

[issue6451] 2to3 adds spare brackets to print

2009-07-09 Thread Vasiliy
Changes by Vasiliy bazo...@megabox.ru: -- title: 2to3 adds additional brackets to print - 2to3 adds spare brackets to print ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6451 ___

[issue6451] 2to3 adds spare brackets to print

2009-07-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is a duplicate of Issue6429. -- nosy: +r.david.murray priority: - normal resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - 2to3: fix_future conflicts with fix_print

[issue6452] urllib2.Request() will not work with long authorization headers

2009-07-09 Thread Jamal Fanaian
New submission from Jamal Fanaian jfana...@gmail.com: While testing this bug report in Gwibber https://bugs.launchpad.net/gwibber/+bug/397297 I found that using urllib2.Request() with a long authorization would cause it to error and not authenticate. I'm not sure if it is because the header

[issue6429] 2to3: fix_future conflicts with fix_print

2009-07-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue 2412, which might or might not have a relevant patch. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6429

[issue4506] 3.0 make test failures on Solaris 10

2009-07-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: NB: I fixed the test_posix failure on trunk/2.6/py3k/3.1 in r73908, r73914, r73913, and r73915. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue6348] solaris/aix: Py_Initialize: can't initialize sys standard streams

2009-07-09 Thread nestor
nestor nestornis...@gmail.com added the comment: Maybe make test will help troubleshoot this (BTW how do I enable verbose mode?): test test_ascii_formatd failed -- errors occurred; run in verbose mode for details test_cmath test test_cmath failed -- Traceback (most recent call last): File

[issue6453] Improve bool TypeError message

2009-07-09 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: cc=c() bool(cc) Traceback (most recent call last): File pyshell#5, line 1, in module bool(cc) TypeError: __bool__ should return bool or int, returned int This is slightly jarring. Adding ' 0 or 1' after 'or int' would be nice (and

[issue6453] Improve bool TypeError message

2009-07-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The error message is in error. Int is not allowed in 3.x, only bool. This is thus superseded by issue 6428, which has already been fixed. -- nosy: +r.david.murray priority: - normal resolution: - duplicate stage: -

[issue6323] Py3.1 pdb doesn't deal well with syntax errors

2009-07-09 Thread Vladislav
Vladislav kurto...@list.ru added the comment: lambda: pass SyntaxError: invalid syntax (pyshell#0, line 1) lambda: pas function lambda at 0x00F5C858 func_1=lambda: pas func_1() Traceback (most recent call last): File pyshell#3, line 1, in module func_1() File pyshell#2, line 1, in

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2009-07-09 Thread Casey McGinty
Casey McGinty casey.mcgi...@gmail.com added the comment: I would like to open this ticket back up. Python 2.6.2 docs still reference unimplemented 'from_address' method. http://docs.python.org/library/multiprocessing.html#multiprocessing.managers.BaseManager.from_address

[issue6323] Py3.1 pdb doesn't deal well with syntax errors

2009-07-09 Thread Andreas Kloeckner
Andreas Kloeckner inf...@tiker.net added the comment: Vladislav: The behavior you find funny is actually correct. pass is a statement and as such not allowed in a lambda. (only expressions are) Your posting is unrelated to this bug report. If you're still confused, please ask on

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Yes, but did you try to press OK? Regedit displays a warning that empty lines are not allowed, and *removes* them. -- ___ Python tracker rep...@bugs.python.org

[issue5862] multiprocessing 'using a remote manager' example errors and possible 'from_address' code leftover

2009-07-09 Thread Casey McGinty
Changes by Casey McGinty casey.mcgi...@gmail.com: -- nosy: +cmcginty ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5862 ___ ___ Python-bugs-list

[issue6416] Failed to compile selectmodule.c on windows (trunk)

2009-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: PIPE_BUF was introduced for the subprocess module to use it... on posix platforms only. r73916 (trunk) and r73917 (py3k) add the suggested #ifdef, and also fix test_subprocess. -- nosy: +amaury.forgeotdarc resolution: - fixed

[issue3518] multiprocessing: BaseManager.from_address documented but doesn't exist

2009-07-09 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- resolution: fixed - accepted status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3518 ___

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-09 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6333 ___ ___ Python-bugs-list mailing list

[issue6323] Py3.1 pdb doesn't deal well with syntax errors

2009-07-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Fixed in r73918 (py3k) and r73920 (release31-maint). Thanks for the report! -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6333] logging: ValueError: I/O operation on closed file

2009-07-09 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: However, sys.stdout|err can be assigned to some thing else (eg: py.test assigning it to an open file object) .. in which case it is legitimate to handle (close) such objects (handles) by who created it (py.test). @Sridhar: I disagree.

[issue6454] Add example keyword argument to optparse constructor

2009-07-09 Thread Daniel Waylonis
New submission from Daniel Waylonis d...@nekotech.com: It's useful to see and example or two detailing how a program should be invoked and the expected results. I'd like to add the example keyword which will be printed below the options: when the usage is displayed. It would not be formatted

[issue6454] Add example keyword argument to optparse constructor

2009-07-09 Thread Daniel Waylonis
Daniel Waylonis d...@nekotech.com added the comment: Looking at the source, there's the undocumented epilog keyword, but it, unfortunately is automatically pushed through the formatter, which would not be desirable for the output. -- ___ Python

[issue6423] The cgi docs should advertize using in instead of has_key

2009-07-09 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- priority: - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6423 ___ ___ Python-bugs-list

[issue6447] PATCH: typo (English) in subprocess module

2009-07-09 Thread Lucas Prado Melo
New submission from Lucas Prado Melo lucaspradom...@gmail.com: I am pretty sure this patch is alright. -- nosy: +lucaspmelo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6447 ___

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-09 Thread Andrew Ziem
Andrew Ziem ahz...@gmail.com added the comment: Yes, regedit does remove the blanks, but this bug report is about QueryValueEx---not about SetValueEx :). There must be a way to read all the values compatible with Windows -- ___ Python tracker

[issue2751] Regression for executing packages

2009-07-09 Thread Rene Dudfield
Rene Dudfield ill...@users.sourceforge.net added the comment: Hi, note -m on packages still works with python3.0 and python3.1. It works by allowing a __main__.py file that gets called by -m. This is a really annoying regression for python2.6. It's a fairly wide spread feature too. I can't

[issue2751] Regression for executing packages

2009-07-09 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: It doesn't work in 2.6 or 3.0 because, as stated above, it was only due to a bug that it even appeared to work at all in 2.5 (it was always meant to be disallowed because it puts dodgy data in the import machinery's internal records if you do

[issue6393] OS X: python3 from python-3.1.dmg crashes at startup

2009-07-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Looks good and the patched patch also works in a py3k installer build. BTW, Mark, I was curious as to why you were unable to reproduce the problem with your own build. I should have mentioned that my testing was with complete installer (framework)

[issue6453] Improve bool TypeError message

2009-07-09 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Phooey. I searched for 'bool TypeError' but it failed to return 6428. I will ask on py-dev why not. -- priority: normal - resolution: duplicate - stage: committed/rejected - status: closed - open

[issue6443] _winreg.QueryValueEx confused on double null terminated strings

2009-07-09 Thread Andrew Ziem
Andrew Ziem ahz...@gmail.com added the comment: Well, I no longer need QueryValueEx because I found out win32file.MoveFileEx() does more easily what I need, but MoveFileEx (see attachment for working example) shows that the Microsoft Window API itself creates these invalid values --

[issue2931] optparse: various problems with unicode and gettext

2009-07-09 Thread Alexey Shamrin
Changes by Alexey Shamrin sham...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2931 ___ ___ Python-bugs-list

[issue2751] Regression for executing packages

2009-07-09 Thread Rene Dudfield
Rene Dudfield ill...@users.sourceforge.net added the comment: hello, thanks for the explanation of why it's that way. Any ideas of a work around? python2.5 has been out for ages now. Even if it was an accident, it's the behavior people expect, and it's still a regression. Also, why should

<    1   2   3