[issue10694] zipfile.py end of central directory detection not robust

2010-12-21 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Hi KevinH, sorry if I gave the wrong impression that you must submit a patch before anyone will look at the bug. I thought you wanted to provide a patch for this. If you only want to report a bug that is ok, thanks for that. I have confirmed your

[issue10694] zipfile.py end of central directory detection not robust

2010-12-21 Thread Xuanji Li
Xuanji Li xua...@gmail.com added the comment: Sorry, forgot to add: README.zip should have a \r\n at the end. Actually I just zipped up README, ran echo \r\n README.zip and put it in Lib/test. -- ___ Python tracker rep...@bugs.python.org

[issue10715] uninformative error message

2010-12-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: Removed file: http://bugs.python.org/file20126/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715 ___

[issue10715] uninformative error message

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Because you're sending email as HTML, the message shows up both as plain text and as an attachment. It's the attachments that are being removed. If you could, please stop sending HTML email. -- ___

[issue10715] uninformative error message

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Here's a code snippet that shows the problem: import subprocess subprocess.Popen(['foo']) Traceback (most recent call last): File stdin, line 1, in module File /usr/lib/python2.5/subprocess.py, line 593, in __init__ errread, errwrite)

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- title: uninformative error message - Command name missing from exception in subprocess.Popen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10715 ___ ___ Python-bugs-list

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Changes by Mathieu Bridon boche...@fedoraproject.org: Removed file: http://bugs.python.org/file19451/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584 ___

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Same patch, but rebased to the current trunk so it still applies. -- Added file: http://bugs.python.org/file20128/0001-Curly-brace-expansion-in-glob.patch.old ___ Python tracker

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: This is the right patch, sorry for all the mail spam. :-/ -- Added file: http://bugs.python.org/file20129/0001-Curly-brace-expansion-in-glob.patch ___ Python tracker rep...@bugs.python.org

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
sean216 taoyuan-...@163.com added the comment: Note that in your sample capture, I don't see any invalid sequence/ack number. please check telnet_unnormal RST.pcap in No. 1600-1602,the 1602 RST meseage is the invalid sequence/ack number 172. -- status: closed - open

[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-12-21 Thread Steven Bethard
Changes by Steven Bethard steven.beth...@gmail.com: -- stage: needs patch - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9355 ___

[issue10680] argparse: titles and add_mutually_exclusive_group don't mix (even with workaround)

2010-12-21 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Yep, I believe that fix should work. Now to find the time to write some tests... -- nosy: +bethard stage: - unit test needed versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread OBATA Akio
OBATA Akio ob...@lins.jp added the comment: This patch is also required for DragonFly, or libpython will not linked against libpthread and broken library. -- nosy: +obache ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10475

[issue10747] Include version info in Windows shortcuts

2010-12-21 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: This issue is to propose specific wording to Martin for inclusion of version details in the Windows shortcuts. This is to make the shortcuts easier to use when the hierarchical menu information is lost for any reason (e.g frequently used

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This has already been fixed in 3.2: Python 3.2b2 (py3k:87413, Dec 21 2010, 07:09:13) [GCC 4.1.2 20070626 (Red Hat 4.1.2-13)] on linux2 Type help, copyright, credits or license for more information. import subprocess subprocess.Popen(['foo'])

[issue10715] Command name missing from exception in subprocess.Popen

2010-12-21 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: That change was just a tweak. The real change was in r86593. It references issue 4925, of which this is a duplicate. I'm closing this, if you want to follow the issue add yourself to 4925. -- resolution: - duplicate stage: needs patch

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-12-21 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This is committed to 2.7 and 3.2 (using the old name assertItemsEqual in 2.7). As we're well into the beta cycle I don't think we can change the name in 3.2. The current failure output is very nice for comparing sequences like [1, 2, 3]

[issue5879] multiprocessing - example pool of http servers fails on windows socket has no attribute fromfd

2010-12-21 Thread Mher Movsisyan
Mher Movsisyan mher.movsis...@gmail.com added the comment: py3k does support socket.fromfd on Windows (#1378) -- nosy: +mher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5879 ___

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is a patch that adds: faccessat, fchmodat, fchownat, fstatat, futimesat, linkat, mkdirat, mknodat, openat, readlinkat, renameat, symlinkat, unlinkat, utimensat and mkfifoat. Each function has documentation and a unit test and

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
New submission from Ian Stevens iancstev...@gmail.com: The zipfile documentation (http://docs.python.org/library/zipfile.html) states: If the file is created with mode 'a' or 'w' and then close()d without adding any files to the archive, the appropriate ZIP structures for an empty archive

[issue10724] socket.close close telnet with RST

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Regardless, Python doesn't generate the tcp/ip sequence numbers, the OS socket library does, so this is not a bug in Python. If you follow the code link I posted you will see that, other than Python internal bookkeeping, the only thing

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This has been fixed in Python 2.7.1 (which the online docs refer to). I assume that you're using 2.6 or an earlier version. As for the code in SVN, the trunk is currently not in use; development happens in the release27-maint, release31-maint

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Ian Stevens
Ian Stevens iancstev...@gmail.com added the comment: Yes, I'm using 2.6. If this is not the expected behaviour in 2.6, the doc should reflect that with a New in version 2.7 note. -- ___ Python tracker rep...@bugs.python.org

[issue10733] plistlib rejects strings containing control characters

2010-12-21 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree with Martin that this is a tricky one. The file is problematic because it is invalid XML[1], however Apple's tools are perfectly happy to proces the file and as Mitchell notes plistlib exists to interoperate with Apple's plist

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Does it work properly if CC and CXX are not defined by the user? (probably a naïve question, sorry) -- nosy: +pitrou stage: - patch review type: - behavior versions: +Python 3.1, Python 3.2 ___

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed it should probably be a release blocker. I guess it has to do with (not) following symlinks, right? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- stage: unit test needed - patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4761 ___

[issue10742] memoryview.readonly attribute is not documented

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10742 ___ ___

[issue10748] zipfile does not write empty ZIP structure if close() called after __init__() as doc suggests

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: We usually don't do this for bugfixes, but here it makes sense I guess. r87414. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10748 ___

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: OK, let's make this one. Tarek to the rescue! -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743

[issue10743] 3.2's sysconfig doesn't work with virtualenv

2010-12-21 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: Will do tonight -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10743 ___ ___

[issue1243654] Faster output if message already has a boundary

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed test and fix in r87415, r87416, r87417. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1243654 ___

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks for the patch. A couple of comments: - the C code is misindented in some places (using 8 spaces rather than 4) - you should use support.unlink consistently in the tests (rather than sometimes os.unlink or posix.unlink) - when cleaning up

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Adding a warning sounds like a good idea. Is it reasonable to include a recommended cross-platform approach in the platform doc, like either the sys.maxsize test or the struct.calsize(P) test (which is used as a default fallback in

[issue10749] lots of warnings when generating logging docs

2010-12-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: make html in the Doc directory and then: [...] /home/antoine/py3k/__svn__/Doc/howto/logging.rst:507: WARNING: duplicate object description of logging.logging.Formatter.__init__, other instance in

[issue10749] lots of warnings when generating logging docs

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10749 ___ ___ Python-bugs-list

[issue10749] lots of warnings when generating logging docs

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Will vanish after a full rebuild; the duplicate detection is a bit buggy in Sphinx when the documents are read in the wrong order. -- nosy: +georg.brandl resolution: - wont fix status: open - closed

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2010-12-21 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___ Python-bugs-list mailing

[issue10735] platform.architecture() gives misleading results for OS X multi-architecture executables

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I'm committing a doc update in r87421 with a suggestion to use sys.maxsize. I'll let Marc-André decide how to deal with the rest of the patch. -- ___ Python tracker rep...@bugs.python.org

[issue10694] zipfile.py end of central directory detection not robust

2010-12-21 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: High is not near high enough to get noticed before the release :) -- nosy: +georg.brandl priority: high - deferred blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10694

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-21 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746 ___ ___ Python-bugs-list mailing

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: In the new patch, issue10254b.diff, I've added a test that would crash unpatched code: unicodedata.normalize('NFC', 'C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸C̸Ç') Segmentation fault Martin, I still feel uneasy about the

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746 ___ ___ Python-bugs-list

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This really looks backwards: f = open(LICENSE, rb) f.name = bar Traceback (most recent call last): File stdin, line 1, in module AttributeError: attribute 'name' of '_io.BufferedReader' objects is not writable f.raw = None __main__:1:

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file20132/io_roattrs.patch ___ Python tracker rep...@bugs.python.org

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Attached is an updated patch which: - fixes badly indented C code - uses support.unlink consistently - cleans up tests better using finally -- Added file: http://bugs.python.org/file20133/i4761_v2.patch

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2010/12/21 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Here is a patch. I assume you can put test_readonly_attributes in CommonBufferTests? --

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Le mardi 21 décembre 2010 à 20:36 +, Benjamin Peterson a écrit : Benjamin Peterson benja...@python.org added the comment: 2010/12/21 Antoine Pitrou rep...@bugs.python.org: Antoine Pitrou pit...@free.fr added the comment: Here is a

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Ah, I see. LGTM then. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10750 ___ ___

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The docs shouldn't use [ to denote optional args. Rather, optional arguments can just be shown by their defaults. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org

[issue10750] raw attribute of buffered IO objects is assignable

2010-12-21 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thank you, committed in r87427 (3.2), r87428 (3.1) and r87429 (2.7). -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9584] Allow curly brace expansion

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the research and the updated patch. Unfortunately as a feature request this is going to have to wait for 3.3 since we missed the pre-beta window. -- versions: +Python 3.3 -Python 3.2

[issue4871] zipfile can't decrypt

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thinking about this some more, it seems like the chance that someone is using bytearray to pass a password to zipfile is vanishingly small, especially since in non-optimized mode setpassword would have rejected it. So I think that this

[issue9584] Allow curly brace expansion

2010-12-21 Thread Mathieu Bridon
Mathieu Bridon boche...@fedoraproject.org added the comment: Thanks for the research and the updated patch. Unfortunately as a feature request this is going to have to wait for 3.3 since we missed the pre-beta window. Ok. This is my first patch to Python, so I'm not sure what I should do

[issue9584] Allow curly brace expansion

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Nope, you've got it. After the final release of Python 3.2, please post to the issue to remind us about it, and someone will commit the patch. (For future Python releases we expect that the delays in our ability to commit feature

[issue4871] zipfile can't decrypt

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed in r87430 (with message word order change), backported to 3.1 in r87431. Making the parallel change to 2.7 would be likely to break working code, IMO. -- resolution: - fixed stage: commit review - committed/rejected

[issue9285] A decorator for cProfile and profile modules

2010-12-21 Thread Lukas Lueg
Lukas Lueg lukas.l...@gmail.com added the comment: +1 -- nosy: +ebfe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9285 ___ ___ Python-bugs-list

[issue10694] zipfile.py end of central directory detection not robust

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Xuanji: thanks for taking a crack at the test. Rather than adding another data file to the test directory, how about creating a zipfile using the zipfile module in the test, closing it, opening it as a file, writing the /r/n to it, and

[issue10751] WSGIREF - REMOTE_USER and REMOTE-USER collision

2010-12-21 Thread Alex Raitz
New submission from Alex Raitz alex.ra...@gmail.com: Clients can overwrite 'REMOTE_USER' header variable value with an arbitrary 'Remote-User' value by specifying the later after the former. This has tricky implications when a proxy server is being used, namely that if the proxy passes a

[issue10751] WSGIREF - REMOTE_USER and REMOTE-USER collision

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10751 ___ ___ Python-bugs-list

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2010-12-21 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar sridh...@activestate.com: I noticed that despite ActivePerl being installed, `os.popen(...).close()` returned 1 (see find_working_perl in build_ssl.py), while in actuality that command executed successfully with return code 0; I verified this by using the

[issue10752] build_ssl.py is relying on unreliable behaviour of os.popen

2010-12-21 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - ocean-city nosy: +loewis, ocean-city ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10752 ___

[issue10747] Include version info in Windows shortcuts

2010-12-21 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar sridh...@activestate.com: -- nosy: +srid ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10747 ___ ___

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-21 Thread Timothy Gates
New submission from Timothy Gates tim.ga...@gmail.com: Consider the URL making use of the RFC1808 param syntax... http://www/path;cookie=1234 The entire section '/path;cookie=1234' is passed in as PATH_INFO and so under the request_uri implementation it will be quoted import wsgiref

[issue10753] request_uri method of wsgiref module does not support RFC1808 params.

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Presumably all that is needed is to add ';' to 'safe' in the call that encodes PATH_INFO? -- nosy: +orsenthil, pje, r.david.murray versions: -Python 3.3 ___ Python tracker

[issue8754] ImportError: quote bad module name in message

2010-12-21 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I set LANG and LC_ALL to C and tried to import a module with a non-ASCII name: $ ./python -m échec™♥ python: No module named '\udcc3\udca9chec\udce2\udc84\udca2\udce2\udc99\udca5' Is that a good enough test? I guess the “__main__

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread Nicolas Joly
Nicolas Joly nj...@pasteur.fr added the comment: I do not tested it extensively, but seems so. nj...@petaure [temp/python27] ./python Python 2.7.1+ (release27-maint:87432M, Dec 22 2010, 01:10:26) [GCC 4.1.3 20080704 prerelease (NetBSD nb2 20081120)] on netbsd5 Type help, copyright, credits or

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
Changes by sean216 taoyuan-...@163.com: Removed file: http://bugs.python.org/file20091/normal RST and fin.pcap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10724 ___

[issue10724] socket.close close telnet with RST

2010-12-21 Thread sean216
Changes by sean216 taoyuan-...@163.com: Removed file: http://bugs.python.org/file20090/telnet_unnormal RST.pcap ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10724 ___

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2010-12-21 Thread K Richard Pixley
K Richard Pixley r...@noir.com added the comment: How does rm -rf address this issue? Or does it? shutils.rmtree should probably do the same thing. -- nosy: +teamnoir ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4489

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread Wang Yanjin
New submission from Wang Yanjin wyj1...@gmail.com: There is a file named µTorrent.lnk in the folder. Here is the code: #encoding=utf-8 import os for i in os.listdir('.'): print os.path.isfile(i), '\t', i a = input() and the output: True3.py False aμ汉字.txt TrueuTorrent.lnk

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2010-12-21 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: Attaching a patch for the configuration changes mentioned in msg102544 -- keywords: +patch nosy: +srid Added file: http://bugs.python.org/file20134/issue8275_win64_ctypes_no_optimization.patch

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I am unable to reproduce this on any python from py3k trunk down to 2.6.6. Can you provide a complete test program that demonstrates the failure? (That is, it creates the file and then fails to detect it as a file with isfile.)

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Oh, yes, and it is likely to be important to know what OS you are on. I tested on linux. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10754

[issue3405] Add support for the new data option supported by event generate (Tk 8.5)

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - patch review type: - feature request versions: +Python 3.3 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3405

[issue3500] unbound methods of different classes compare equal

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Since 2.7 has been released and this behaviour could not be changed in a point release even if agreement that it was a good change was reached, and since it is meaningless in 3.x, I'm closing this issue. -- nosy: +r.david.murray

[issue4078] asyncore fixes are not backwards compatible

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Looks like Josiah just forgot to close this bug, so I'm closing it. -- nosy: +r.david.murray stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue10475] hardcoded compilers for LDSHARED/LDCXXSHARED on NetBSD

2010-12-21 Thread OBATA Akio
OBATA Akio ob...@lins.jp added the comment: CC and CXX will be set in configure script if not set. -- versions: +Python 2.5, Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10475

[issue2275] urllib2 header capitalization

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: No idea if this is even still valid (I skimmed the issue, I did not try to understand it in detail), but I agree that a change like this is more feature than bug fix, so I'm updating the issue settings accordingly. -- nosy:

[issue4264] Patch: optimize code to use LIST_APPEND instead of calling list.append

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- type: - feature request versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4264 ___

[issue2494] Can't round-trip datetimes-timestamps prior to 1970 on Windows

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Indeed, the time module is documented as not handling timestamps before the epoch. -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed ___ Python

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread Wang Yanjin
Wang Yanjin wyj1...@gmail.com added the comment: I encoutered this problem on Winxp sp3. I have retested it on the win7, and it could return the correct value as it did on linux. -- ___ Python tracker rep...@bugs.python.org

[issue4322] function with modified __name__ uses original name when there's an arg error

2010-12-21 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - invalid stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4322 ___

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Since the os functions tend to be small wrappers around system functions, this sounds like it is probably a platform issue and not a Python issue. I'm adding our windows experts as nosy, they can reopen the issue if they disagree.

[issue4369] Error building to a nonstandard prefix (with patch)

2010-12-21 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm not sure what compiling using a user prefix means. I've certainly specified a prefix containing my home directory and had things work just fine. There isn't enough information here to know what is actually going wrong. Since this

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Just a random thought (no, I don't know anything about Windows): there are two mu characters: GREEK SMALL LETTER MU (μ) and MICRO SIGN (µ). Normalization turns one into the other: from unicodedata import *

[issue2275] urllib2 header capitalization

2010-12-21 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I think, we need to move forward with this. It is one of the earliest i worked on. I shall look at John's patch and look through it's inclusion in the code. -- assignee: facundobatista - orsenthil

[issue4761] create Python wrappers for openat() and others

2010-12-21 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Ok, attached is a patch with the documentation updated as per recommendation. -- Added file: http://bugs.python.org/file20135/i4761_v3.patch ___ Python tracker rep...@bugs.python.org

[issue10754] os.path.isfile doesn't work with some greek characters

2010-12-21 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: On Windows, using the bytes APIs for filenames is unreliable and fails for characters that are not in the ANSI code page. So you should use import os for i in os.listdir(u'.'): print os.path.isfile(i), '\t', i instead. --

[issue10755] Add posix.fdlistdir

2010-12-21 Thread Ross Lagerwall
New submission from Ross Lagerwall rosslagerw...@gmail.com: Along with #4761, the *at wrappers, it would be nice to have a patch adding the use of fdopendir. This patch adds a function fdlistdir, a unittest and documentation. -- components: Extension Modules files: i_fdlistdir.patch

[issue8732] Should urrllib2.urlopen send an Accept-Encoding header?

2010-12-21 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8732 ___ ___

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2010-12-21 Thread kai zhu
New submission from kai zhu kaizhu...@gmail.com: pub...@colinux 3 ~: python3.2 Python 3.2b2 (py3k, Dec 22 2010, 02:38:55) [GCC 4.4.5] on linux2 Type help, copyright, credits or license for more information. import atexit; atexit.register(lambda:1/0) function lambda at 0xb7c7e12c exit() Error