[issue6377] distutils compiler switch ignored

2009-07-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: I think a workable solution to the problem with the compiler option would be to remove the option from the build_ext, build_clib and config commands (plus any others, if there are more) and only allow it on the build command. The problem

[issue6438] cygwinccompiler regular expressions broken

2009-07-12 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - accepted title: cygwincompiler regular expressions broken - cygwinccompiler regular expressions broken ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6438

[issue1616979] cp720 encoding map

2009-07-12 Thread Abdulmonem
Abdulmonem dubais...@gmail.com added the comment: As a user I experienced this bug. With python 3.1, the interpreter terminate with fatal error: Py_Initialize: can't initialize sys standard streams LookupError: unknown encoding: cp720 I think, this can be replicated by changing the active

[issue6466] duplicate get_version() code between cygwinccompiler and emxccompiler

2009-07-12 Thread Tarek Ziadé
New submission from Tarek Ziadé ziade.ta...@gmail.com: Duplicate code, will create a single get_version() function in distutils.util and make both commands use it + deprecate cygwinccompiler.get_version and emxccompiler.get_version -- assignee: tarek components: Distutils messages:

[issue6438] cygwinccompiler regular expressions broken

2009-07-12 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: done in r73975, r73976 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6438 ___

[issue6467] raw_input() doesn't work as expected when it gets multiple ^D

2009-07-12 Thread Lucas Prado Melo
New submission from Lucas Prado Melo lucaspradom...@gmail.com: -- $ cat raw_input_test.py s = '' try: while True: c = raw_input() print c s += c except EOFError: pass $ python raw_input_test.py test^D^Dtes ^D $ python --version

[issue5870] subprocess.DEVNULL

2009-07-12 Thread Lucas Prado Melo
Lucas Prado Melo lucaspradom...@gmail.com added the comment: -1 on this one. It is not a portable decision (only *nix OSes do have /dev/null). Also, why would we want it as a default constant? The subprocess module would need to open /dev/null every time. Despite that, I can't see how would

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

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Once this patch is checked in, should we do an emergency 3.1.1 release? -- nosy: +benjamin.peterson, pitrou priority: - critical versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue5870] subprocess.DEVNULL

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Lucas, Windows has a /dev/null-like device. I think Jean's suggestion is reasonable, but it should be a special constant instead of creating a file descriptor unconditionnally (that is, the file should only be open if needed). Also, a patch should

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

2009-07-12 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I'm don't know whether this is really worth a 3.1.1, all by itself. There's an easy workaround, which is for affected users to set their locale properly. -- ___ Python tracker

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

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Tomas, your patch is breaking an existing API, which may break existing uses (I'm not sure which ones, but people are doing lots of things with Python). That's why I proposed a separate API, which has the additional benefit of making things

[issue6465] email.feedparser regular expression bug (NLCRE_crack)

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Can you include your unit test in your patch rather than as a separate script? Existing unit tests are in Lib/test. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue6468] __missing__ not completely implemented in dictobject.c

2009-07-12 Thread Bosko Vukov
New submission from Bosko Vukov bvu...@users.sourceforge.net: For some reason functions PyDict_GetItem ( and PyDict_GetItemString ) don't try to check for '__missing__' on subclass, but dict_subscript(dictobject *mp, register PyObject *key) does. Only in this function a failure to get a value

[issue6468] __missing__ not completely implemented in dictobject.c

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Yes, this is intended. PyDict_GetItem already bypasses user __getitem__ methods, so it's logical it would do the same for __missing__. -- nosy: +benjamin.peterson resolution: - wont fix status: open - closed

[issue6429] 2to3: fix_future conflicts with fix_print

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73981. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6429 ___

[issue2412] Check 2to3 for support of print function.

2009-07-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r73981. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2412 ___

[issue6465] email.feedparser regular expression bug (NLCRE_crack)

2009-07-12 Thread jkg
jkg pyt...@slashbot.com added the comment: Combined patch as requested by pitrou. (Sorry. This is my first submission.) -- Added file: http://bugs.python.org/file14486/nlcre_full.patch ___ Python tracker rep...@bugs.python.org

[issue1772794] Telnetlib dosn't accept u'only ascii'

2009-07-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1772794 ___ ___

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
New submission from Chris Perkins chrisperkin...@gmail.com: Proposed feature - function definition expressions, superficially similar to Ruby blocks. To be proposed on Python-ideas list. -- files: blocks.patch keywords: patch messages: 90455 nosy: grammati severity: normal status: open

[issue6469] Function definition expressions feature

2009-07-12 Thread Chris Perkins
Chris Perkins chrisperkin...@gmail.com added the comment: Forgot to mention - the patch is very much incomplete. It breaks tests, contains none of the work that would need to be done in the ast package, etc. This is just a proof-of-concept. -- ___

[issue6470] Tkinter import fails when running Python.exe from a network share

2009-07-12 Thread Christoph Gohlke
New submission from Christoph Gohlke cgoh...@uci.edu: On Windows Vista 64-bit, when running Python 2.6.2 (32 or 64 bit) from a network share, e.g. \\Server\Share\python26\python.exe, importing Tkinter fails with WindowsError: [Error 3] The system cannot find the path specified. See session

[issue6471] errno and strerror attributes incorrectly set on socket.error

2009-07-12 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: In Python 2.6, socket.error was changed to be a child class of IOError [1]. IOError derives from EnvironmentError [2], and EnvironmentError accepts a 2-tuple used to set the values of the errno and strerror attributes respectively [3].

[issue1616979] cp720 encoding map

2009-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Instead of using another source of third-party files, I suggest to use the Windows functions to generate the mapping. The attached patch contains a script, genwincodec.py, which uses MultiByteToWideChar and generates a codec file. I

[issue1616979] cp720 encoding map

2009-07-12 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file14490/genwincodec-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1616979

[issue6267] Cumulative patcc:h to http and xmlrpc

2009-07-12 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Added more regression tests in revision 73986 and revision 73987 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6267 ___

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2009-07-12 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: In Py3.x, this fails: %s.%s.%s-%s-%s % sys.version_info The reason is that PyUnicode_Format() expects a real tuple, not a tuple lookalike. The fix is to either have structseq inherit from tuple or to modify

[issue6471] errno and strerror attributes incorrectly set on socket.error

2009-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: No, it seems that 2.5 has the same problem. The 'socket error' message is raised in urllib.py. The socket module is innocent to me... It appears that this file routinely raises IOErrors, passing various arguments, which are not stored

[issue6465] email.feedparser regular expression bug (NLCRE_crack)

2009-07-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry for giving you a slightly wrong indication. The email tests are called from Lib/test/test_email.py, but it redirects to Lib/email/test/*. In any case, there's no point in creating a separate test script for such a detail, you should add your

[issue6470] Tkinter import fails when running Python.exe from a network share

2009-07-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Confirmed here. Added a unit test. -- assignee: - loewis keywords: +needs review nosy: +amaury.forgeotdarc, loewis stage: - patch review Added file: http://bugs.python.org/file14491/tk-unc.patch

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Mitchell Model
New submission from Mitchell Model m...@acm.org: I can't quite sort this out, because it's difficult to see what is intended. The documentation of xml.etree.ElementTree (19.11 in the Library doc) uses terms like iterator, tree iterator, iterable, list in vague and perhaps not quite accurate

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Jerry Chen
Changes by Jerry Chen je...@3rdengine.com: -- nosy: +effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___ ___ Python-bugs-list mailing

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-07-12 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: georg.brandl - effbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6472 ___ ___

[issue6471] errno and strerror attributes incorrectly set on socket.error

2009-07-12 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, it looks to me like urllib is intentionally putting the 'socket error' or 'url error' into the errno position in the IOError arguments. Now that socket.error is an IOError, that at least seems wrong. -- nosy: +r.david.murray

[issue6471] errno and strerror attributes incorrectly set on socket errors wrapped by urllib

2009-07-12 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: errno and strerror attributes incorrectly set on socket.error - errno and strerror attributes incorrectly set on socket errors wrapped by urllib ___ Python tracker rep...@bugs.python.org

[issue6473] hmac sha384/sha512 fails test vectors

2009-07-12 Thread Iain Wade
New submission from Iain Wade iw...@optusnet.com.au: Test vectors are in the following draft rfc: http://tools.ietf.org/html/draft-nystrom-smime-hmac-sha The problem is that hmac.py has a hard-coded block size of 64, while SHA-384 and SHA-512 have a 128-byte block size. Suggested fix is

[issue1616979] cp720 encoding map

2009-07-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Amaury: your approach sounds fine to me, please apply. -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1616979

[issue1616979] cp720 encoding map

2009-07-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Reconsidering, I'd like to ask for two changes: - please record the command(s) used to generate tables on Windows somewhere, in either Tools/unicode/Makefile, or a separate batch file. - please arrange for the doc string of the generated file