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

2009-05-03 Thread Ezio Melotti
Ezio Melotti added the comment: > It is normal behavior for Windows. Try it with the 'dir' command > in a command window. (That said, I have no idea, not being a > Windows user, how Windows decides what the 'current' directory > is on any given drive from any given context). Yes, I tried to r

[issue4685] IDLE will not open (2.6.1 on WinXP pro)

2009-05-03 Thread Kurt B. Kaiser
Kurt B. Kaiser added the comment: Couple of comments. First, your messages seem to indicate that you have both Python24 and Python26 installed. Although that shouldn't cause problems, it might in your case. If you are no longer using Python24, please uninstall it. First, open your Windows

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

2009-05-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Committed in r72273(trunk) and r72274(py3k). -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file13863/383.diff ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file13857/383.diff ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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 intended to be used f

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

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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 tracker

[issue5799] Change ntpath functions to implicitly support UNC paths

2009-05-03 Thread Larry Hastings
Larry Hastings 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 extraneous change

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

2009-05-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto 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 tracker

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

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

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

2009-05-03 Thread Eric Smith
Eric Smith 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 _

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

2009-05-03 Thread Eric Smith
Eric Smith 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 ___ Python tracker

[issue4751] Patch for better thread support in hashlib

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith 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). -- status

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

2009-05-03 Thread STINNER Victor
STINNER Victor added the comment: The patch introduces a memory leak, canonicalize_file_name() returns a new allocated string which is not freed later. -- ___ Python tracker

[issue5918] test_parser crashes when run after some other tests

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou 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 tests ___

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

2009-05-03 Thread STINNER Victor
STINNER Victor 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 than 32 bits for an unicode c

[issue5918] test_parser crashes when run after test_distutils

2009-05-03 Thread Antoine Pitrou
New submission from Antoine Pitrou : 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: `/home/antoine/tmp/tmpngdCYU/foo/bui

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou 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

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

2009-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

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

2009-05-03 Thread STINNER Victor
Changes by STINNER Victor : -- components: -Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

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

2009-05-03 Thread STINNER Victor
STINNER Victor added the comment: PEP 349 was rejected because it breaks backward compatibility, eg. it breaks the assomption that str(u"x") converts unicode to byte string. Python3 is the only good fix for all byte/character Python2 issues. -- resolution: out of date -> rejected stat

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Jan, would the new API be ok to you? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

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

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

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

2009-05-03 Thread STINNER Victor
STINNER Victor 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 see if there's still a Va

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

2009-05-03 Thread Walter Dörwald
Walter Dörwald added the comment: Checked in: r72260 (trunk) r72262 (release26-maint) r72265 (py3k) r72266 (release30-maint) -- resolution: -> fixed status: open -> closed ___ Python tracker __

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

2009-05-03 Thread R. David Murray
R. David Murray 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 are already runnin

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

2009-05-03 Thread R. David Murray
R. David Murray 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 defeats the principle

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

2009-05-03 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : 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 be used in platfo

[issue3066] FD leak in urllib2

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: not reproducable in head as stated. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2009-05-03 Thread Philipp Hagemeister
New submission from Philipp Hagemeister : >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 all. However, ine

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith 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

[issue5915] PEP 383 implementation

2009-05-03 Thread Benjamin Peterson
Benjamin Peterson 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 be used for paths an

[issue3286] IDLE opens window too low on Windows

2009-05-03 Thread Guilherme Polo
Guilherme Polo 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 another tracker.

[issue3286] IDLE opens window too low on Windows

2009-05-03 Thread Terry J. Reedy
Terry J. Reedy 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 experience. In fac

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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 done; if it is a byt

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: http://codereview.appspot.com/52095 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue5915] PEP 383 implementation

2009-05-03 Thread Martin v. Löwis
New submission from Martin v. Löwis : 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 status: open title: PEP

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Mark Dickinson
Mark Dickinson 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 ___ Python tracker

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith 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 cwd would fix it

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Steven Bethard 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 ___

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: Can you kindly attach a demo MSI, to simplify review? -- ___ Python tracker ___ ___ Python-bugs-lis

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: release30-maint r72245 (its already been merged into py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

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

2009-05-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry, benjamin.peterson priority: critical -> release blocker stage: test needed -> needs patch versions: +Python 2.6, Python 3.0 ___ Python tracker ___

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou 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

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Changes by Steven Bethard : Removed file: http://bugs.python.org/file13854/bdist_msi.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Steven Bethard 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: http://bugs.python.org/file13855/bdist_msi.patch

[issue5724] 2.6.2c1 fails to pass test_cmath on Solaris10

2009-05-03 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: barry -> marketdickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith 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 would doing tha

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Changes by Steven Bethard : Removed file: http://bugs.python.org/file13847/bdist_msi.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5311] bdist_msi generates version number for pure Python packages

2009-05-03 Thread Steven Bethard
Steven Bethard 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: http://bugs.python.org/file13854

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: thanks! committed in r72237 & py3k r72238. -- resolution: -> accepted status: open -> closed ___ Python tracker ___

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

2009-05-03 Thread Fazal Majid
Fazal Majid 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

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Eric Smith
Eric Smith 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. -- ___ Pyt

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

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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 open("")/open(b"") gives - as

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Mark Dickinson
Mark Dickinson 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. -- Added file: htt

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

2009-05-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +christian.heimes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

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

2009-05-03 Thread Antoine Pitrou
Antoine Pitrou 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 running from anoth

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

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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. -- ___ Python tracker

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

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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 NULL? While it

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

2009-05-03 Thread Martin v. Löwis
Martin v. Löwis 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 error

[issue3286] IDLE opens window too low on Windows

2009-05-03 Thread Kurt B. Kaiser
Kurt B. Kaiser 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, supposedly. You

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Eric Smith
Eric Smith 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 problems in the pas

[issue5914] Add PyOS_string_to_double function to C API

2009-05-03 Thread Mark Dickinson
New submission from Mark Dickinson : 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 the various possibl

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

2009-05-03 Thread Philipp Hagemeister
Changes by Philipp Hagemeister : Removed file: http://bugs.python.org/file13198/mcast-example.diff ___ Python tracker ___ ___ Python-bugs-list

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

2009-05-03 Thread Philipp Hagemeister
Philipp Hagemeister 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: http://bugs.python.org/file13851/mcast-example.diff __

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

2009-05-03 Thread Thomas Heller
Thomas Heller added the comment: Tested myself, on a mipsel debian qemu instance. -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___ _

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

2009-05-03 Thread Ezio Melotti
New submission from Ezio Melotti : 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: ''" is raised. I also no

[issue5912] import deadlocks when using fork

2009-05-03 Thread ayal baron
New submission from ayal baron : 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 import lock but the parent rec

[issue5909] Segfault in typeobject.c

2009-05-03 Thread Gerald Britton
Gerald Britton 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 Python that is giving us cor

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

2009-05-03 Thread John Morton
John Morton 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 functions originally producing a

[issue5909] Segfault in typeobject.c

2009-05-03 Thread Mark Dickinson
Mark Dickinson 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 could narrow down the

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

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

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

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

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

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven 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

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

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

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

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven 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: -- ___ Python tra

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

2009-05-03 Thread Jeroen Ruigrok van der Werven
Jeroen Ruigrok van der Werven 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 the process with a c

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

2009-05-03 Thread Georg Brandl
Georg Brandl 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

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

2009-05-03 Thread tyoc
Changes by tyoc : -- title: I need to import the module in the same thread? -> I need to import the module in the same thread ___ Python tracker ___ _

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

2009-05-03 Thread Claudio Canepa
Claudio Canepa added the comment: On Sat, May 2, 2009 at 11:31 PM, Kurt B. Kaiser wrote: > > Kurt B. Kaiser added the comment: > > r72227. > > How's your test code coming? A relative Win filename with leading > spaces should be found even when there's a file of same name but no > spaces. > >

[issue5902] Stricter codec names

2009-05-03 Thread Ezio Melotti
Ezio Melotti 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 that 'utf-8' is the mos

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

2009-05-03 Thread Gregory P. Smith
Gregory P. Smith added the comment: r72210 pep8-ified the test names. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs