[issue9815] test_tarfile sometimes ends with error "Cannot remoe dir"

2010-09-10 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I noticed regrtest claimed it cannot delete folder after test_tarfile ran. It was like this. Traceback (most recent call last): File "e:\python-dev\py3k\lib\runpy.py", line 160, in _run_module_as_main "__main__", fname, loader, pkg_name) File "e:\p

[issue9815] test_tarfile sometimes ends with error "Cannot remoe dir"

2010-09-10 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : -- stage: -> commit review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9816] random.jumpahead and PRNG sequence independence

2010-09-10 Thread Joseph Schaeffer
New submission from Joseph Schaeffer : Reading the Python 2.6 docs, it appeared that using random.jumpahead would allow the initialization of several generators with the same seed but having much different internal states. While the resulting PRNG appear to have different internal states, the

[issue9808] Implement os.getlogin on Windows

2010-09-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue9816] random.jumpahead and PRNG sequence independence

2010-09-10 Thread Ned Deily
Changes by Ned Deily : -- nosy: +rhettinger versions: -Python 2.5, Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9816] random.jumpahead and PRNG sequence independence

2010-09-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

[issue9817] expat copyright/license file is missing

2010-09-10 Thread Matthias Klose
New submission from Matthias Klose : files in Modules/expat reference a file COPYING for the copyright/license, but this is file is not included in the Python sources. Proposing to add the attached file, taken from the expat sources. -- assignee: doko components: None files: COPYING me

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Antoine, I tested this patch on py3k with both gcc and xlc in static and shared mode and I did not notice any issue. I attach the build and test logs. I think you can safely commit it. -- Added file: http://bugs.python.org/file18818/py3k_aix61_stat

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18819/py3k_aix61_static_xlc_patchshared.txt.gz ___ Python tracker ___ __

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18820/py3k_aix61_shared_xlc_pathshared.txt.gz ___ Python tracker ___ ___

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18821/py3k_aix61_static_gcc_patchshared.txt.gz ___ Python tracker ___ __

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18822/py3k_aix61_shared_gcc_patchshared.txt.gz ___ Python tracker ___ __

[issue9818] build files to build Lib/distutils/command/wininst-9.0* are missing

2010-09-10 Thread Matthias Klose
New submission from Matthias Klose : PC/V[CS]* contain the information to build the wininst-[678]* files, but I don't see any information how to build wininst-9.0*. -- components: Build messages: 115988 nosy: doko priority: normal severity: normal status: open title: build files to buil

[issue9706] ssl errors checking

2010-09-10 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Hello. I noticed test suite reports WARNING every time. /// E:\python-dev>py3k -m test.regrtest test_os WARNING: The filename '@test_464_tmp-共有される' CAN be encoded by the filesyste m encoding (mbcs). Unicode

[issue9816] random.jumpahead and PRNG sequence independence

2010-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the report. Something does appear to be broken. When the states are different, the random numbers should be different. Am looking in to it. In the mean time, I recommend against using jumpahead() with MT. It is better to separately seed thre

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: And one little thing. I noticed variable name varies in python2.x and python3.x. TESTFN_UNICODE_UNDECODEABLE (2.x) TESTFN_UNICODE_UNDECODABLE (3.x) I think 2.x should be unified into 3.x name. Thanks. -- ___ Pyt

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> haypo nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue9806] no need to try loading posix extensions without SOABI

2010-09-10 Thread Georg Brandl
Georg Brandl added the comment: I'm not in favor of this change. PEP 3179 was accepted because it presented an optional additional feature that doesn't break compatibility. For example, build tools of third-party external modules that do not use distutils would break. -- nosy: +benj

[issue9806] no need to try loading posix extensions without SOABI

2010-09-10 Thread Georg Brandl
Georg Brandl added the comment: Martin might be able to provide some insight from when (IIRC) Windows dynamic DLLs were restricted to .pyd extension only. -- ___ Python tracker

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > WARNING: The filename '@test_464_tmp-共有される' CAN be encoded > by (...) cp932 We should find character not encodable in any Windows code page, but accepted as filenames. > characters like "\u2661" or "\u2668" (...) mbcs uses "ANSI" code pages: cp1250..cp125

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-10 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.2, mbcs encoding (default filesystem encoding on Windows) is now strict: raise an error on unencodable/undecodable characters/bytes. But os.listdir(b'.') encodes unencodable bytes as b'?'. Example: >>> os.mkdir('listdir') >>> open('listdir\\xxx

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: I found this bug while trying to find an unencodable filename for #9819 (TESTFN_UNDECODABLE). Anyway, the bytes API should be avoided on Windows since Windows native filename type is unicode. -- ___ Python tracker

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: See also #9820. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9816] random.jumpahead and PRNG sequence independence

2010-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I see the problem now. Random.jumpahead(n) does a very poor job of shuffling MT's state when n is small. The first few numbers of the state are different but some of the later ones are not. When random() crawls across parts of the state that are identic

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thank you for a reply. > u'\u2661' is encodable to cp949 Doh! I can imagine it's difficult to find out such character. ;-) -- ___ Python tracker __

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I also confirmed '\u0363' can be used as filename. "dir" command cannot print filename correctly, though. E:\python-dev\foo のディレクトリ 2010/09/10 19:44 . 2010/09/10 19:44 .. 2010/09/10 19:443 ͣ

[issue9821] Support PEP 383 on Windows: mbcs support of surrogateescape error handler

2010-09-10 Thread STINNER Victor
New submission from STINNER Victor : It would be nice to support PEP 383 (surrogateescape) on Windows, but the mbcs codec doesn't support it for performance reason. The Windows functions to encode/decode MBCS don't give the index of the unencodable/undecodable character/byte. For encoding, we

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > os.listdir(b'listdir') should raise an error (and not ignore > the filename or replaces unencodable characters by b'?'). To avoid the error, a solution is to support the PEP 383 on Windows (for the mbcs encoding). I opened a separated issue for that: #9821.

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hello. How about this patch? I just mimicked create_stdio() in Python/pythonrun.c. (Mostly) Newlines looks correct as well as python2.x. I tested this on windows. -- nosy: +ocean-city Added file: http://bugs.python.org/file18824/py3k_regrtest_newline

[issue8533] regrtest: use backslashreplace error handler for stdout

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: And here is more advanced (?) patch. More closer to Python/pythonrun.c 's implementaion. I tried regrtest_stdout_newline.patch, but it doesn't work. # AttributeError: '_io.TextIOWrapper' object has no attribute '_writenl' -- Added file: http://bugs.

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I believe attached patch will fix this issue. Please forget previous patch. -- Added file: http://bugs.python.org/file18826/py27_fix_threaded_file_close.patch ___ Python tracker

[issue9821] Support PEP 383 on Windows: mbcs support of surrogateescape error handler

2010-09-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > New submission from STINNER Victor : > > It would be nice to support PEP 383 (surrogateescape) on Windows, but the > mbcs codec doesn't support it for performance reason. The Windows functions > to encode/decode MBCS don't give

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > "dir" command cannot print filename correctly, though. Who cares? We just have to be able to create a file with a name containing non encodable characters, list the directory, and then remove this evil file. -- With r84666, Python uses "-\u5171\u6709\u3055

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file18823/find_unencode_filename.py ___ Python tracker ___ ___ Python-bugs-lis

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Maybe is #5619 related? -- dependencies: +Pass MS CRT debug flags into subprocesses ___ Python tracker ___ __

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
New submission from sorin : Currently most batch files from Tools\buildbot do fail to run if you do not call them from the python source root directory. I already have patched files, but the question is against which branch should I make them, considering that this bug is valid for all versio

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
Changes by sorin : -- keywords: +patch Added file: http://bugs.python.org/file18828/buildbot_curdir.patch ___ Python tracker ___ ___ Py

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Thank you for the fix. > Who cares? We just have to be able to create a file with a name > containing non encodable characters, list the directory, and then > remove this evil file. I won't. ;-) Sorry, that was not compliant. I just thought it's interesting

[issue9821] Support PEP 383 on Windows: mbcs support of surrogateescape error handler

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Oh wait. PEP 383 is a solution to store undecodable bytes in an unicode string, but for mbcs I'm trying to get the opposite: store unicode in bytes and this is not possible (at least with PEP 383). Example with Python 3.1: >>> print("abcŁdef".encode("cp1252"

[issue9819] TESTFN_UNICODE and TESTFN_UNDECODABLE

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > With r84666, Python uses "-\u5171\u6709\u3055\u308c\u308b" > suffix for TESTFN_UNENCODABLE. Backported to 3.1 as r84668. I don't want to patch Python 2.x (its unicode support is lower and the code is too different than Python3) and so I close the issue. -

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread R. David Murray
R. David Murray added the comment: The general rule for submitting patches is to make them against development trunk (which is currently the py3k branch). Unified diffs from the top level of the checkout are preferred; whole files are not useful. However, it is not clear what bug you are try

[issue9806] no need to try loading posix extensions without SOABI

2010-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: Indeed, PEP 3179 is only supposed to add support for people who wish to version their modules. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
sorin added the comment: In this case I made the patch on the right branch (py3k). These scripts could be called manually and it doesn't make any sense not to make them work in all cases. Not every Windows developer is using Visual Studio to build things, 'some' of them are using the command

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: I tested Michael test in msg115868 on my AIX system (AIX 6.1 with flock correctly present in libbsd) with py3k and it works fine: checking for flock declaration... yes checking for flock... no checking for flock in -lbsd... yes [103/344] test_fcntl = OK I a

[issue9806] no need to try loading posix extensions without SOABI

2010-09-10 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: s/3179/3149/ :) The point about building w/o distutils is a good one and touches on my concerns in my comment above. It would be nice to know whether there's any measurable practical benefit to the change, i.e. measure startup time for an application tha

[issue9213] range purports to implement the Sequence ABC, but is missing index and count methods

2010-09-10 Thread Daniel Urban
Daniel Urban added the comment: > Attached is a greatly revised patch, with two significant changes: > - Adds support for !PyLong_CheckExact (using _PySequence_IterSearch) Thanks, indeed, we should support that. > Any strong feelings on whether range.index should support the start and > stop a

[issue8699] Equality and hashing for functools.partial

2010-09-10 Thread Daniel Urban
Daniel Urban added the comment: Is there anybody, who is interested in this? There are some substantial problems with it (hashing a dict), so I suggest that this should be closed, unless somebody is interested. -- status: open -> pending ___ Python

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread R. David Murray
R. David Murray added the comment: I did not realize the build instructions recommended using the buildbot tool. It is clearly past time I got around to doing windows build myself. Please regenerate the diffs from the top level of the checkout, and we'll see if one of the windows devs feel

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread Brian Curtin
Brian Curtin added the comment: This is just a guess, but it might have to do with how buildbot works, so I'd be careful of changing this. A lot of things (everything?) in that Tools\buildbot folder depend on being run from the top-level directory in order to work correctly. Another example:

[issue9813] Module Name Changed

2010-09-10 Thread Charles M Norton
Charles M Norton added the comment: Solved. I needed to download a separate packed. Thanks. -- ___ Python tracker ___ ___ Python-bugs-

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
sorin added the comment: This is true, that this can impact the build process but the changes are assuring that it will always chdir to the right directory. BTW, %~dp0 is the directory when the batch file is located. -- Added file: http://bugs.python.org/file18831/path_for_bug_9822_v1

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
Changes by sorin : Removed file: http://bugs.python.org/file18829/readme.txt.patch ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue9822] windows batch files are dependent on cmd current directory

2010-09-10 Thread sorin
Changes by sorin : Removed file: http://bugs.python.org/file18828/buildbot_curdir.patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue4617] SyntaxError when free variable name is also an exception target

2010-09-10 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> amaury.forgeotdarc resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-l

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Removed file: http://bugs.python.org/file18820/py3k_aix61_shared_xlc_pathshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18832/py3k_aix61_shared_xlc_pathshared.txt.gz ___ Python tracker ___ ___

[issue3876] multiprocessing does not compile on systems which do not define sem_timedwait

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: For info: I have no problem compiling _multiprocessing and passing the unittest test_multiprocessing with py3k rev84631 on AIX 6.1 with xlc_r compiler without the patch proposed here. I don't know if this is due to some updates in Python (3.2alpha2+) or AIX

[issue6742] Embedding python into shared library crash on AIX

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: You may want to take a look at issue 941346 in order to compile libpython2.6.so on AIX. I also embed python in my AIX application, and I had no problem once python was compiled as share thanks to the patch provided in the other issue. -- nosy: +sabl

[issue3053] test_shutil fails under AIX

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: For info: I have no problem with test_shutil on AIX 6.1 with python 2.6.6 or python 3.2alpha2. There may be no problem anymore. -- nosy: +sable ___ Python tracker ___

[issue9823] OrderedDict is comparable to dict

2010-09-10 Thread Ram Rachum
New submission from Ram Rachum : OrderedDict is currently comparable to dict. I think this is not logical, because a dict doesn't have order, and having an identical order is a necessary condition for a match. I think that comparing an OrderedDict with a dict makes as much sense as comparing

[issue9823] OrderedDict is comparable to dict

2010-09-10 Thread Benjamin Peterson
Benjamin Peterson added the comment: This was purposeful. See PEP 372. -- nosy: +benjamin.peterson resolution: -> invalid status: open -> closed ___ Python tracker ___ _

[issue9823] OrderedDict is comparable to dict

2010-09-10 Thread Ram Rachum
Ram Rachum added the comment: Thanks Benjamin. Was there a discussion about this in the mailing list? If so can you give me a link to it? -- ___ Python tracker ___ _

[issue9824] SimpleCookie should escape commas and semi-colons

2010-09-10 Thread Luke Plant
New submission from Luke Plant : In developing Django, we found that some browsers don't treat commas and semi-colons in cookie values (i.e. the Set-Cookie header) the way that RFC 2109 says they should. (Safari splits the header on a comma followed by space, Internet Explorer splits on semi-c

[issue9824] SimpleCookie should escape commas and semi-colons

2010-09-10 Thread Luke Plant
Luke Plant added the comment: I forgot to mention backwards compatibility: In the context of Cookie being used in a web application, if developers were relying on literal commas and semi-colons being present in the client side cookie value (e.g. in javascript), the patch will introduce an inc

[issue3053] test_shutil fails under AIX

2010-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing. The original install was on a rather strange setup. -- resolution: -> works for me status: open -> closed ___ Python tracker ___ _

[issue8699] Equality and hashing for functools.partial

2010-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the interesting thread. I do agree with your suggestion to close this one though. -- nosy: +rhettinger resolution: -> rejected status: pending -> closed ___ Python tracker

[issue9823] OrderedDict is comparable to dict

2010-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: That is the documented and tested behavior: http://docs.python.org/library/collections.html#ordereddict-objects """ Equality tests between OrderedDict objects are order-sensitive and are implemented as list(od1.items())==list(od2.items()). Equality tests

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thank you. The improvement has been committed in all three branches (3.2, 3.1, 2.7). -- stage: -> committed/rejected status: open -> closed versions: -Python 2.6, Python 3.3 ___ Python tracker

[issue9825] OrderedDict ref cycles cause memory leak

2010-09-10 Thread jason kirtland
New submission from jason kirtland : Circular graphs of collections.OrderedDict are uncollectable due to the presence of OrderedDict.__del__. >>> from collections import OrderedDict >>> import gc >>> left, right = OrderedDict(), OrderedDict() >>> left['other'] = right >>> right['other'] = left

[issue9826] OrderedDict ref cycles break repr()

2010-09-10 Thread jason kirtland
New submission from jason kirtland : repr of circular graphs of collections.OrderedDicts fails with 'RuntimeError: maximum recursion depth exceeded while calling a Python object'. >>> from collections import OrderedDict >>> left, right = OrderedDict(), OrderedDict() >>> left['other'] = right >>

[issue9825] OrderedDict ref cycles cause memory leak

2010-09-10 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9826] OrderedDict ref cycles break repr()

2010-09-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9826] OrderedDict ref cycles break repr()

2010-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: Patch? -- priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9825] OrderedDict ref cycles cause memory leak

2010-09-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This is an unfortunate aspect of using __del__. I don't see a way around it without reintroducing weak references. Of course, your code can also use weak ref proxies to avoid creating uncollectible circular garbage. -- priority: normal -> low _

[issue941346] AIX shared library fix

2010-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the latest patch in r84680 (3.x), r84682 (3.1) and r84683 (2.7). Perhaps you want to check it's ok. Thank you anyway! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue9825] OrderedDict ref cycles cause memory leak

2010-09-10 Thread jason kirtland
jason kirtland added the comment: I find the behavior surprising compared to dict and other containers, where this is not an issue and weakrefs are not required in user code. I would not be surprised, however, to have to wait for a gc.collect() to clean up my cycles like I do for regular obj

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Great! Thanks Antoine. I checked quickly and there is a small correction to do on the 2.7 branch: this branch is different because there has been a change between python 2.x and 3.x in pep-3121 concerning the name of the entry function in a module (init to

[issue9820] Windows : os.listdir(b'.') doesn't raise an error for unencodable filenames

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Patch: - Remove the bytes version of listdir(): reuse the unicode version but converts the filename to bytes using PyUnicode_EncodeFSDefault() if the directory name is not unicode - use Py_XDECREF(d) instead of Py_DECREF(d) at the end (because d=NULL on err

[issue9821] Support PEP 383 on Windows: mbcs support of surrogateescape error handler

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Close this issue: PEP 383 is specific to filesystem using bytes, it is useless on Windows (the problem on Windows is on encoding, not on decoding). -- resolution: -> invalid status: open -> closed ___ Python tracke

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: @amaury: Do you agree to reject non-ascii bytes? TODO: document format encoding in Doc/c-api/*.rst. -- ___ Python tracker ___ _

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-09-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Yes, let's be conservative and reject non-ascii bytes in the format string. -- ___ Python tracker ___

[issue9632] Remove sys.setfilesystemencoding()

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: I didn't proposed to add a new parameter to Py_InitializeEx() (which means create a new function to not break the API), I just wrote that _Py_SetFileSystemEncoding() doesn't work for your use case. > If you embed Python into another application, say as script

[issue4617] SyntaxError when free variable name is also an exception target

2010-09-10 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Fixed in r84685, with tests and doc updates. -- resolution: accepted -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue1466065] base64 module ignores non-alphabet characters

2010-09-10 Thread Neil Tallim
Neil Tallim added the comment: I agree that it does look like RFC 3548 implicitly denies the use of \r and \n. A few *very* simple tests also makes it look like ommitting them breaks nothing, but we'd need to add a test that includes them before applying the patch. Other than that, I agree w

[issue8835] buildbot: support.transient_internet() doesn't catch DNS socket.gaierror

2010-09-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue8603] Create a bytes version of os.environ and getenvb()

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: > If you still consider that the change on .data as a bug, > I think that the fix is to remove .data (mark it as > protected: environ.data => environ._data). r84690 marks os.environ.data as protected. Close this issue again. -- status: open -> closed

[issue9402] pyexpat: replace PyObject_DEL() by Py_DECREF() to fix a crash in pydebug mode

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Fixed by r84692. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-b

[issue8197] Fatal error on thread creation in low memory condition: local storage

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: I don't know how to fix this issue, and I don't know if it can be fixed. As the issue is very unlikely, I prefer to close it. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Ned Deily added the comment: Thanks Garrett for reporting the problem and thank Nick for the patches. It turns out the problem is more involved though the solution is similar. I've spent some time figuring out what went wrong here and documenting it in this issue so that no one else has to.

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file18838/issue8746-31.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7093] xmlrpclib.ServerProxy() doesn't support unicode uri

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Well, it was trivial to workaround this bug in my application (convert host to bytes using explicit host = str(host)). Python3 doesn't have this issue and Python 2.7 is released, I prefer to close this bug as wont fix. -- resolution: -> fixed status:

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Changes by Ned Deily : Added file: http://bugs.python.org/file18839/issue8746-27.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue7093] xmlrpclib.ServerProxy() doesn't support unicode uri

2010-09-10 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> wont fix ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file18736/8746-3.1.2.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file18737/8746-2.7.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2010-09-10 Thread Ned Deily
Changes by Ned Deily : Removed file: http://bugs.python.org/file18738/8746-2.6.6.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5934] fix gcc warnings: explicit type conversion for uid/gid in posix

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Well, it's not a bug, just a gcc warning. We don't need this patch. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ __

[issue9408] curses: Link against libncursesw instead of libncurses

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: Does anyone agree with me? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8589] test_warnings.CEnvironmentVariableTests.test_nonascii fails under an ascii terminal

2010-09-10 Thread STINNER Victor
STINNER Victor added the comment: It should be fixed by r84694. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

  1   2   >