[issue3959] Add Google's ipaddr.py to the stdlib

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: r72210 pep8-ified the test names. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3959 ___

[issue5902] Stricter codec names

2009-05-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Actually I'd like to have some kind of convention mainly when the user writes the encoding as a string, e.g. s.encode('utf-8'). Indeed, if the encoding comes from a webpage or somewhere else it makes sense to have some flexibility. I think

[issue5559] IDLE Output Window 's goto fails when path has spaces

2009-05-03 Thread Claudio Canepa
Claudio Canepa ccanep...@gmail.com added the comment: On Sat, May 2, 2009 at 11:31 PM, Kurt B. Kaiser rep...@bugs.python.orgwrote: Kurt B. Kaiser k...@shore.net added the comment: r72227. How's your test code coming? A relative Win filename with leading spaces should be found even when

[issue5908] I need to import the module in the same thread

2009-05-03 Thread tyoc
Changes by tyoc z...@alum.com: -- title: I need to import the module in the same thread? - I need to import the module in the same thread ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5908

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Interestingly, my setlocale(3p) man page says: ERRORS No errors are defined. So isn't it debatable if returning the NULL pointer really is an error? -- nosy: +georg.brandl ___ Python tracker

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: On the subject whether or not returning a null pointer should be considered he said: - On the subject whether or not returning a null pointer should be considered an error he said: --

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven asmo...@in-nomine.org: Removed file: http://bugs.python.org/file13843/locale.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1443504 ___

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Changes by Jeroen Ruigrok van der Werven asmo...@in-nomine.org: Removed file: http://bugs.python.org/file13849/locale.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1443504 ___

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: Really correct this time. -- Added file: http://bugs.python.org/file13850/locale.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1443504

[issue5909] Segfault in typeobject.c

2009-05-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This doesn't look like a Python issue to me; it also looks like it's nothing to do with ctypes, so I've unselected that from the components. The bug may well be in gobjectmodule.c, which isn't part of core Python AFAIK. Any chance you

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: Georg pointed out a mistake I introduced in my patch, updated now. -- Added file: http://bugs.python.org/file13849/locale.diff ___ Python tracker rep...@bugs.python.org

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven asmo...@in-nomine.org added the comment: I asked that as well on the POSIX/SUS list and Don Cragun responded with: If you make the last argument to setlocale() be a pointer to unallocated memory, implementations would be allowed to set errno to EFAULT and terminate

[issue5907] repr of time.struct_time type does not eval

2009-05-03 Thread John Morton
John Morton j...@angrymonkey.net.nz added the comment: While it's true that repr() methods cannot generally be expected to eval back into an object of the same type, the old repr behaviour of the struct_time object did effectively do so. Admittedly it was a kludge due to the time module

[issue5909] Segfault in typeobject.c

2009-05-03 Thread Gerald Britton
Gerald Britton gerald.brit...@gmail.com added the comment: This bug reports corresponds to one opened on Gnome: http://bugzilla.gnome.org/show_bug.cgi?id=578419 According to the devs there: As far as I can tell this is a Python/C bug. PyGObject is doing everything by the book, and it is

[issue5912] import deadlocks when using fork

2009-05-03 Thread ayal baron
New submission from ayal baron ayal.ba...@rocketier.com: While running 2 or more threads, if one thread is importing anything (i.e. has the import lock) and the other thread runs fork and then the child process runs import then the child and parent will hang forever (the child waits on the

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread Ezio Melotti
New submission from Ezio Melotti ezio.melo...@gmail.com: On Windows, with Python2/Python3, os.listdir('')/os.listdir(b'') list the content of the current working directory and os.listdir(u'')/os.listdir('') the content of C:\. On Linux the error OSError: [Errno 2] No such file or directory: ''

[issue4305] ctypes fails to build on mipsel-linux-gnu (detects mips instead of mipsel)

2009-05-03 Thread Thomas Heller
Thomas Heller thel...@ctypes.org added the comment: Tested myself, on a mipsel debian qemu instance. -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4305

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Philipp Hagemeister
Philipp Hagemeister phi...@phihag.de added the comment: Updated patch to use the new ipaddr module instead of the platform-specific socket.inet_pton (unavailable on some platforms, including Windows XP) Updated formatting -- Added file:

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Philipp Hagemeister
Changes by Philipp Hagemeister phi...@phihag.de: Removed file: http://bugs.python.org/file13198/mcast-example.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5379 ___

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: Here's a patch that adds a PyOS_string_to_double function to complement the recently added PyOS_double_to_string function. This is supposed to be a more Pythonic version of PyOS_ascii_strtod. It raises Python exceptions to correspond to

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This looks okay to me (although since it's not hooked up I haven't tested it). I particularly like that it doesn't allow leading whitespace, and that the caller no longer has to remember errno (forgetting to set and/or test it have both caused me

[issue3286] IDLE opens window too low on Windows

2009-05-03 Thread Kurt B. Kaiser
Kurt B. Kaiser k...@shore.net added the comment: IDLE doesn't control window placement - that's left to Tk to handle. Hopefully it will get better with time. Once you take control, you have to handle all the window placement, which is one of the things that window managers are expert at,

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: ERRORS No errors are defined. So isn't it debatable if returning the NULL pointer really is an error? As Jeroen reports, this really means two different things a) no errors really means no errno codes. Whether or not an

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I am just wondering why we want to be quite different from how many other languages are approaching the issue. Because we have exceptions, and they don't. Would you also propose that open() should return None, just because fopen(3) returns

[issue5907] repr of time.struct_time type does not eval

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The question remains, how to fix it? Or whether to change it at all. It's hard to imagine that applications may rely on that aspect of the behavior - they have to use eval, after all. -- ___

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As for the C: behaviour, I think it is normal: you are not specifying the path itself, only the drive letter, so it uses the current path in the specified drive (which /is/ cwd if you are already running from C:, but may be something else if

[issue5910] kqueue for more than one event is broken.

2009-05-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5910 ___ ___ Python-bugs-list

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the feedback! Here's an updated patch that also deprecates PyOS_ascii_strtod and PyOS_ascii_atof and hooks up PyOS_string_to_double everywhere. The documentation still needs proper markup, and I'll add some C-API tests.

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Before anything is changed, I would first like to understand where the difference comes from. If it gives ENOENT on Unix, it should also give ENOENT on Windows (rather than giving ValueError). In addition, it should also give what

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This looks okay to me, and passes the tests. In PyOS_string_to_double, you can simplify it by using PyErr_Format instead of printing into a buffer and using PyErr_SetString. Sorry I didn't catch this earlier. --

[issue5809] No such file or directory with framework build under MacOS 10.4.11

2009-05-03 Thread Fazal Majid
Fazal Majid pyt...@sentfrom.com added the comment: I am experiencing the same problem with 2.6.2, whether using parallel make or not, but 2.6.1. builds just fine. -- nosy: +majid ___ Python tracker rep...@bugs.python.org

[issue5379] Multicast example mcast.py is outdated and ugly

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: thanks! committed in r72237 py3k r72238. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5379

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: A slightly improved patch, using DuplicateFile instead of storing a copy of each file for each Python version. Should keep the size of the resulting MSI similar to the size of the currently generated MSIs. -- Added file:

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Changes by Steven Bethard steven.beth...@gmail.com: Removed file: http://bugs.python.org/file13847/bdist_msi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5311 ___

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: both the behavior change and PySys_SetArgvEx() with an additional boolean parameter sounds good to me. Some people may disagree about changing the default behavior. So long as its documented in the whatsnew I personally think it is fine. But

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-05-03 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: barry - marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5724 ___ ___

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Ok, one last tiny update that makes sure TARGETDIR is always set to one of the TARGETDIRX.Ys from a Feature that is actually selected. I swear I'm done with this now. ;-) -- Added file:

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Changes by Steven Bethard steven.beth...@gmail.com: Removed file: http://bugs.python.org/file13854/bdist_msi.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5311 ___

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, the advantage of a new function over a behaviour change is that the new function could safely be backported to 2.6.3, since it is also a security fix. -- ___ Python tracker

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

2009-05-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +barry, benjamin.peterson priority: critical - release blocker stage: test needed - needs patch versions: +Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue5705] os.getpwent returns unsigned 32bit value, os.setuid refuses it

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: release30-maint r72245 (its already been merged into py3k). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5705

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Can you kindly attach a demo MSI, to simplify review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5311 ___

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Steven Bethard steven.beth...@gmail.com added the comment: Here's an MSI generated for the argparse module. -- Added file: http://bugs.python.org/file13856/argparse-0.9.1.win32.msi ___ Python tracker rep...@bugs.python.org

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: yes the reporter is correct. the suggested chdir happens in the subprocess. however, that only works on posix systems: windows currently uses popen2/3. (see issue1535504 for another issue with that). switching to subprocess and passing in

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks. I've committed a version of this patch, with Eric's suggested PyErr_Format change, in r72248. -- resolution: - accepted stage: patch review - committed/rejected status: open - closed ___

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: This is the implementation of PEP 383. Rietveld submission will follow. -- assignee: benjamin.peterson files: 383.diff keywords: patch messages: 87069 nosy: benjamin.peterson, loewis priority: release blocker severity: normal

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: http://codereview.appspot.com/52095 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5915 ___

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Some notes, in addition to the PEP: - the file system APIs have all stopped using et converters, and use O converters, with a new API function PyUnicode_FSConverter. This outputs a bytes or bytearray object which needs to be released when

[issue3286] IDLE opens window too low on Windows

2009-05-03 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: When I shrank the initial height, tk starting randomizing the initial placement so that it only occasionally puts the window too low. I will tolerate that. It is a bug for a window manager to ignore the Taskbar; this is rare to unique in my

[issue3286] IDLE opens window too low on Windows

2009-05-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: It is a bug for a window manager to ignore the Taskbar; this is rare to unique in my experience.  In fact, most Windows apps reopen at the size and position closed.  But I am no longer bothered enough to find, register with, and post to

[issue5915] PEP 383 implementation

2009-05-03 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The calls to bytes2str are not checked in posixmodule.c. http://codereview.appspot.com/52095/diff/1/5 File Include/unicodeobject.h (right): http://codereview.appspot.com/52095/diff/1/5#newcode1254 Line 1254: The function is intended to

[issue1684] CGIHTTPServer does not chdir prior to executing the CGI script

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: fyi - non-posix / non-windows platforms could include alternate python VMs that don't support fork, popen2 or subprocess. -- assignee: gregory.p.smith - ___ Python tracker rep...@bugs.python.org

[issue5916] Wrong function referenced in documentation of socket.inet_aton

2009-05-03 Thread Philipp Hagemeister
New submission from Philipp Hagemeister phi...@phihag.de: From the documentation of socket.inet_aton (and socket.inet_ntoa): inet_aton() does not support IPv6, and getnameinfo() should be used instead for IPv4/v6 dual stack support. socket.getnameinfo can not replace inet_aton/inet_ntoa at

[issue3066] FD leak in urllib2

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: not reproducable in head as stated. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3066 ___

[issue5917] Reference platform-independent alternative in socket.inet_ntop documentation

2009-05-03 Thread Philipp Hagemeister
New submission from Philipp Hagemeister phi...@phihag.de: socket.inet_ntop is only available on some UNIX platforms, although for example Windows users may want to use it. The new ipaddr module provides a platform-independent conversion to the packed format on all platforms and should therefore

[issue1443504] locale.getpreferredencoding() dies when setlocale fails

2009-05-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On Sun, 3 May 2009 at 08:55, Jeroen Ruigrok van der Werven wrote: I am just wondering why we want to be quite different from how many other languages are approaching the issue. Sure enough, we can use a try: construct, but it kind of

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: On Sun, 3 May 2009 at 17:36, Antoine Pitrou wrote: As for the C: behaviour, I think it is normal: you are not specifying the path itself, only the drive letter, so it uses the current path in the specified drive (which /is/ cwd if you

[issue5108] Invalid UTF-8 (%s) length in PyUnicode_FromFormatV()

2009-05-03 Thread Walter Dörwald
Walter Dörwald wal...@livinglogic.de added the comment: Checked in: r72260 (trunk) r72262 (release26-maint) r72265 (py3k) r72266 (release30-maint) -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5108] Invalid UTF-8 (%s) length in PyUnicode_FromFormatV()

2009-05-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The problem with your patch is that it calls PyUnicode_DecodeUTF8() twice I read your patch: storing the decoded string is the right way to do that, but i didn't noticed the callresult stack. Could you test this new version to

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch for trunk. -- Added file: http://bugs.python.org/file13860/setargvex.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Jan, would the new API be ok to you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5753 ___

[issue1266570] PEP 349: allow str() to return unicode

2009-05-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: PEP 349 was rejected because it breaks backward compatibility, eg. it breaks the assomption that str(ux) converts unicode to byte string. Python3 is the only good fix for all byte/character Python2 issues. -- resolution:

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: -Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-03 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- components: +Windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1602 ___ ___

[issue1602] windows console doesn't print utf8 (Py30a2)

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, it is a Windows problem. There simply doesn't seem to be a true Unicode codepage for command-line apps. Recommend closing. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue5918] test_parser crashes when run after test_distutils

2009-05-03 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: This happens sometimes here on trunk, in non-debug mode: $ ./python -m test.regrtest test_distutils test_parser Could not find '/home/antoine/cpython/__svn__/Lib/test' in sys.path to remove it test_distutils 0 blocks find:

[issue3130] In some UCS4 builds, sizeof(Py_UNICODE) could end up being more than 4.

2009-05-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I like the idea of using uint16_t and uint32_t. Unicode 5.1 contains approximately 1 million of codes (and 100,000 characters), so 21 bits are already enough to use the full Unicode 5.1 standard (released in April 2009). Use more

[issue5918] test_parser crashes when run after some other tests

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Sorry, it also fails with ./python -m test.regrtest test_os test_parser, so it's not caused by test_distutils. -- assignee: tarek - title: test_parser crashes when run after test_distutils - test_parser crashes when run after some other

[issue1298813] sysmodule.c: realpath() is unsafe

2009-05-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The patch introduces a memory leak, canonicalize_file_name() returns a new allocated string which is not freed later. -- ___ Python tracker rep...@bugs.python.org

[issue4751] Patch for better thread support in hashlib

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Committed with a couple refactorings in trunk r72267. I also added a test (basically checking for corruption that would occur if the locks weren't working). (I'll sort out any py3k vs trunk differences to make future change merges easier).

[issue3382] Make '%F' and float.__format__('F') convert results to upper case.

2009-05-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: With the implementation of issue5859 (py3k only), the only case where this matters in NAN and INF. I'm going to address those in 3.1, and not make any change for 2.x. -- versions: -Python 2.7 ___

[issue4482] 10e667.__format__('+') should return 'inf'

2009-05-03 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: With the new PyOS_double_to_string, this issue largely goes away. There are some remaining issues with commas, 'n' and the like. I'll address those. -- ___ Python tracker rep...@bugs.python.org

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I hope attached patch works. import os os.listdir() Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 3] 指定されたパスが見つかりません。: '' [36200 refs] os.listdir(u) Traceback (most recent call last):

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: For u, os.listdir calls FindFirstFileW with u\\*.*, For , os.listdir calls FindFirstFileA with *.*. The code before FindFirstFile[AW] is slightly different for empty path. -- ___ Python

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-03 Thread Larry Hastings
Larry Hastings la...@hastings.org added the comment: I've generated a new patch, attached. I don't know why you had trouble applying. I tested this one with a clean tree and patch -p1 ... and it applied cleanly. If it fails again, how about I upload the three modified files? I removed the

[issue5913] On Windows os.listdir('') - cwd and os.listdir(u'') - C:\

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Hirokazu, the patch looks fine, please apply to 2.7 and 3k. I wouldn't backport it to 2.6/3.0, since it may break existing code. -- assignee: - ocean-city resolution: - accepted ___ Python

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Reviewers: report_bugs.python.org, Benjamin, Message: Fixed in r72272 http://codereview.appspot.com/52095/diff/1/5 File Include/unicodeobject.h (right): http://codereview.appspot.com/52095/diff/1/5#newcode1254 Line 1254: The function is

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Removed file: http://bugs.python.org/file13857/383.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5915 ___

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: Added file: http://bugs.python.org/file13863/383.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5915 ___