[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: (?flags) are still scoping by default... a new flag to activate that behavior would really by helpful :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636

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

2010-09-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Actually the flags do already exist: note (as defined in the stat module) (http://docs.python.org/py3k/library/os.html#os.chflags). Other than the new UF_HIDDEN, it looks like they are all hardwired there in Lib/stat.py. There is something to be

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

2010-09-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Still happens with r84709 on PPC Tiger 3.x It's not the same error, PYTHONWARNINGS is decoded from the wrong encoding: locale encodind instead of utf-8. r84731 should fix this bug (at least, it restores the encoding used because

[issue9751] _PyInstance_Lookup() defeats its purpose

2010-09-12 Thread Armin Rigo
Armin Rigo ar...@users.sourceforge.net added the comment: I propose that we first attempt to fix the crasher; depending on the solution we might then either fix the doc or the code for _PyInstance_Lookup(). If no-one is willing to fix this bug I am fine to let it go. But somehow I am sure

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-12 Thread Marko Kohtala
Changes by Marko Kohtala marko.koht...@gmail.com: Removed file: http://bugs.python.org/file18721/sqlite3bug.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750 ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-12 Thread Marko Kohtala
Changes by Marko Kohtala marko.koht...@gmail.com: Removed file: http://bugs.python.org/file18722/sqlite3ident.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750 ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2010-09-12 Thread Marko Kohtala
Marko Kohtala marko.koht...@gmail.com added the comment: Thank you for the review. I have very limited time to use on this. So even when I'd like to make everything easy for you, have the time you give to python be as productive as possible, I can not. But I'll respond to your comments on

[issue9832] test_unicodedata fails on MacOSX 10.6

2010-09-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: On a similar systems (10.6, HFS+ case-sensitive), I was able to reproduce this failure when using those non-standard ./configure params. The test does not fail after removing --with-wctype-functions. As noted, --with-wctype-functions is planned to

[issue9832] test_unicodedata fails on MacOSX 10.6

2010-09-12 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- stage: unit test needed - committed/rejected ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9832 ___ ___

[issue9831] test_distutils fails on MacOSX 10.6

2010-09-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I am not able to reproduce that failure running on 10.6 (case-sensitive HFS+) using your ./configure options and running the tests in the build directory (make test). How are you running the tests? Could there be a file or directory permissions

[issue9837] ZipFileExt.read() reads more data than requested

2010-09-12 Thread Black Dew
New submission from Black Dew black...@gmail.com: ZipFileExt.read() can return more data than requested, unlike file and other file-like objects. This function calls read1() in a loop, passing the original requested size even if part of the data was already read thus reading and returning

[issue9831] test_distutils fails on MacOSX 10.6

2010-09-12 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Problem is I set PYTHONDONTWRITEBYTECODE to 1, tests should disable this environmental variable before testing for *.pyc files. Closing as invalid. -- resolution: - invalid status: open - closed

[issue9836] Refleak in PyUnicode_FormatV

2010-09-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Fixed by r84730, thanks for the issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9836

[issue9837] ZipFileExt.read() reads more data than requested

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

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

2010-09-12 Thread Nick Dowell
Nick Dowell nickdow...@gmail.com added the comment: Why should it only be available on OS X if built with MACOSX_DEPLOYMENT_TARGET of 10.5 or higher? chflags() should be available in earlier versions of the OS:

[issue903339] OpenVMS file system and UNIVERSAL_NEWLINES support

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg114328. -- resolution: - out of date status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue903339

[issue1379804] HP-UX thread stack size needs to be increased

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg114998. -- resolution: - out of date status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1379804

[issue1172011] BaseCookie should call value_decode from __getitem__

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Nor reply to msg114679. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172011 ___

[issue1076515] shutil.move clobbers read-only files.

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: No reply to msg114985. -- resolution: - invalid status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076515 ___

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

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I agree with msg115992. People do use make to build extension modules, with hard-coded file names in the make targets. -- ___ Python tracker rep...@bugs.python.org

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

2010-09-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: however we should expose the name of the SOABI string/extension in python-config, so that people can build with this name if they want to. -- ___ Python tracker rep...@bugs.python.org

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Senthil/John has this simply slipped under the radar? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1520831

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-12 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9828 ___ ___

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Same here. We also have sections Licenses and Acknowledgements for incorporated software, e.g. in Doc/license.rst; the text should be added there too. -- nosy: +georg.brandl ___ Python tracker

[issue1521051] Extra configurability for doctest TestCases

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The patch appears to be way out of date. Is there any interest in the concept of this patch, has something similar already been done or what? -- nosy: +BreamoreBoy ___ Python tracker

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

2010-09-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It is available via sysconfig, so that would not be a problem. Patch is attached; I'm not sure if the option name --so is the best one though. -- Added file: http://bugs.python.org/file18856/pc-so.diff

[issue8652] Minor improvements to the Handling Exceptions part of the tutorial

2010-09-12 Thread Marien Zwart
Marien Zwart m_zw...@123mail.org added the comment: Sorry for forgetting about this for so long. The attached patch makes the following changes: Removes the two instances I noticed of treating exception instances as sequences. This no longer works in python 3 and is not very useful in python

[issue9782] _multiprocessing.c warnings under 64-bit Windows

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It seems that multiprocessing is fairly conservative wrt. 64-bit support. For example, conn_send_string has a string limit of 0x7fff. Therefore, several of the warnings are harmless; the respective lengths fit into int just fine. I

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can't reproduce under Linux. Is 3.1 also affected? Can you try the following patch: Index: Python/pythonrun.c === --- Python/pythonrun.c (révision 84718) +++ Python/pythonrun.c

[issue9783] _elementtree.c warnings under 64-bit Windows

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Instead of PyLong_FromLong((Py_uintptr_t) self); use PyLong_FromVoidPtr(self); For the others, I suggest making length and allocated Py_ssize_t; this is likely a pervasive change. Of course, very few people will currently run into

[issue9827] Clarify LogRecord documentation

2010-09-12 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Chris: I just thought that as the list was so long, alphabetic might be easier for people when they remember the attribute name but don't remember exactly what it is. @Eric: Fair comment, I usually do but sometimes I forget. I have now

[issue9827] Clarify LogRecord documentation

2010-09-12 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- Removed message: http://bugs.python.org/msg116176 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9827 ___

[issue9827] Clarify LogRecord documentation

2010-09-12 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Chris: I just thought that as the list was so long, alphabetic might be easier for people when they remember the attribute name but don't remember exactly what it is. @Eric: Fair comment, I usually do but sometimes I forget. I have now

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I see. Looking at net/unix/af_unix.c:unix_mkname of Linux 2.6, there is a comment that says Check unix socket name: [...] - if started by not zero, should be NULL terminated (FS object) However, the code then just does /* * This

[issue9786] Native TLS support for pthreads

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The ifdef should go; pthreads always support TLS (since XPG5, 1997). -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9786

[issue1576120] Support spawnvp[e] + use native execvp[e] on win32

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Brian/Tim any comments on this, the patch contains C code that I'm not qualified to comment on. -- nosy: +BreamoreBoy, brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org

[issue9787] Release the TLS lock during allocations

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What is appMalloc, and what does it have to do with some Python lock? You seem to suggest that some malloc implementations make use of Python interpreter internals. I would call that a bug in the malloc implementation (it violates standard

[issue1595365] Urllib2 user-agent header added by an opener is frozen

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: What is the status of this issue? -- nosy: +BreamoreBoy title: User-agent header added by an opener is frozen - Urllib2 user-agent header added by an opener is frozen versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6

[issue9802] Document 'stability' of builtin min() and max()

2010-09-12 Thread Matthew Woodcraft
Matthew Woodcraft matt...@woodcraft.me.uk added the comment: (1) Shouldn't 'reverse=True' be omitted in the second doc addition? Yes, of course, sorry. (2) I'd also suggest adding a brief comment about what this means for distinct, but equal, objects; otherwise it's not really obvious

[issue9837] ZipFileExt.read() reads more data than requested

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Indeed. In most cases, though, read1(n) will return exactly n bytes and the loop will therefore end immediately with the right buf size. Do you have a simple test case? -- versions: +Python 3.2 ___

[issue1599254] mailbox: other programs' messages can vanish without trace

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Does any core committer fancy reviewing the 18 attached patches? :) -- nosy: +BreamoreBoy versions: +Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue9802] Document 'stability' of builtin min() and max()

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: As an aside, I still like Jeffrey Yasskin's suggestion on the python-dev mailing list that the sensible definition for max would maintain the invariant that max(iterable) be equivalent to sorted(iterable)[-1] What's interesting is the

[issue4733] Add a decode to declared encoding version of urlopen to urllib

2010-09-12 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Senthil: could you review the attached patch please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4733 ___

[issue9838] Inadequate C-API to Python 3 I/O objects

2010-09-12 Thread Pauli Virtanen
New submission from Pauli Virtanen p...@iki.fi: The C-API exposed by the `io` module on Python 3.1/3.2 is very limited, and makes interfacing with Python file objects in extension modules difficult. In more detail: 1) Because the Python layer has buffering etc., the file handle returned by

[issue9839] Test issue

2010-09-12 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: Will this have two patch keywords? -- files: rss.xml.diff keywords: patch messages: 116189 nosy: loewis priority: normal severity: normal status: open title: Test issue Added file: http://bugs.python.org/file18859/rss.xml.diff

[issue9839] Test issue

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: No. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9839 ___

[issue9784] _msi.c warnings under 64-bit Windows

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It's probably best to rewrite these functions in the way the SDK Example section works (i.e. CreateFile/ReadFile) instead of _open/_read (*). As Amaury says, the warnings are harmless: the file numbers will always be in range, as _open

[issue9838] Inadequate C-API to Python 3 I/O objects

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Instead, every call must go through PyObject_CallMethod, and the file objects only handle `PyBytes` and `PyByteArray` which are cumbersome and inefficient to use in extension modules. Because of the generic nature of the 3.x I/O stack, even

[issue3402] test_nis is hanging on Solaris

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: It should not hang anymore, since r84172/r84198. The issue was a GIL-based deadlock: the GIL was acquired and then not released in a callback function, so the next callback caused a deadlock. The actual cause was a non-ASCII character in

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: It should be noted that repeatedly calling Py_Initialize / Py_Finalize leaks a lot (even without the import _ctypes): --- 0 --- [34543 refs] --- 1 --- [37540 refs] --- 2 --- [40504 refs] --- 3 --- [43468 refs] --- 4 --- [46432 refs] --- 5 ---

[issue3402] test_nis is hanging on Solaris

2010-09-12 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thank you, Martin. Reenabled the test in r84735. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3402

[issue9793] Typo fix in What's New for 3.2: dynmaic - dynamic

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Dag: thanks again for the patch. You did everything correctly; Eric's remarks were just in case you plan to submit contributions in an ongoing manner. Raymond: that it makes users go through the hoops of getting a tracker account, doing a

[issue9837] ZipFileExt.read() reads more data than requested

2010-09-12 Thread Black Dew
Black Dew black...@gmail.com added the comment: If i follow the logic in read1() correctly it will do that only for files with very low compression ratios (the original sample where i noticed that problem was actually a chunk of encrypted data inside the zip). From the comments referring to

[issue9042] Gettext cache and classes

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9042 ___ ___ Python-bugs-list mailing

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I know this is closed, but traditionally, we have put stuff like this into README (not sure whether Sébastien read the README :-). So if anybody feel like adding some text, go ahead. In return, feel also free to take out some text that

[issue9042] Gettext cache and classes

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Unfortunately, 2.6 and 3.1 are stable releases, they only get security and documentation fixes. 2.7 is nearly in the same state Well, that's false. 2.7 and 3.1 both receive bug fixes (and this looks like a bug to me :-)). -- nosy:

[issue9799] Compilation error for branch py3k on AIX 6

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, there's a Misc/AIX-NOTES file which needs updating. Sébastien, do you want to do that? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9799

[issue9807] deriving configuration information for different builds with the same prefix

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If the feature to be provided is multiple Python installations with the same prefix, then I suggest to generalize this beyond the debug build. One approach would be: 1. add a --bin-suffix configure option (Debian: set this to _d when

[issue9837] ZipFileExt.read() reads more data than requested

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok, thank you. I've fixed the issue and added a test in r84737 (3.x) and r84739 (2.7). -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9759] GzipFile object should raise ValueError on .read() after .close()

2010-09-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9759 ___ ___

[issue9809] Wrong Registery Entries on win64

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: As Brian explains: if you want the Wow6432 entries, install the 32-bit Python - which will install just fine on your 64-bit system, and is, in many cases, the better choice. -- nosy: +loewis status: open - closed

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

2010-09-12 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Nick: lchflags. lchflags is only available in 10.5 or higher, unlike chflags which has been around for much longer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8746

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

2010-09-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: --extension-suffix ? doesn't use the `so', which you don't see on MacOs, HpUX and Windows. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9806

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9817 ___ ___

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: the .rst file is missing the zlib and libffi licenses too. will add them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9817 ___

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Is 3.1 also affected? Sorry, 3.1 is not affected. Can you try the following patch: Your patch works. :-) E:\python-dev\py3k\PC\VC6ctypes_crash.exe --- 0 --- [36242 refs] --- 1 --- [39140 refs] --- 2 --- [41538 refs] --- 3 ---

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

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What do you gain with this patch? (i.e. what is its advantage?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9820 ___

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

2010-09-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: What do you gain with this patch? (i.e. what is its advantage?) You know directly that os.listdir(bytes) is unable to encode the filename, instead of manipulate an invalid filename (b'?') and get the error later (when you use the

[issue6869] Embedded python crashed on 4th run, if ctypes is used

2010-09-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: I found another refcount bug in Python3.x. Fixed in r84741(py3k), r84742(release31-maint). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6869

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

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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. I'd rather prefer a different setup, also: it would be better if the batch files to get the

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-12 Thread Ismail Donmez
Ismail Donmez ism...@namtrac.org added the comment: Also reproduced on Snow Leopard. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8445 ___ ___

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: About Windows: supports_unicode_filenames is False if sys.getwindowsversion().platform 2: win32s (0) or Windows 9x/ME (1). I don't know win32s, but I know that Windows 9x/ME is not more supported. Win32s is long gone. It was an

[issue767645] incorrect os.path.supports_unicode_filenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I think that supports_unicode_filenames is still useful to check if the filesystem API uses bytes (Linux, FreeBSD, Solaris, ...) or characters (Mac OS X, Windows). Mac OS X is a special case because the C API uses char* (byte string), but

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

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Use PCbuild/bdist_wininst.vcproj. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9818 ___

[issue9828] Repeated Py_Initialize and Py_Finalize usage brings fatal error?

2010-09-12 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Ok. How about this patch now? (I'm trying to solve this in a clean way :)) -- keywords: +patch Added file: http://bugs.python.org/file18861/gildestroy.patch ___ Python tracker rep...@bugs.python.org

[issue9817] expat copyright/license file is missing

2010-09-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: fixed in r84743, r84745 and r84746 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9817 ___

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

2010-09-12 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: my bad -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9818 ___

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

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: You know directly that os.listdir(bytes) is unable to encode the filename, instead of manipulate an invalid filename (b'?') and get the error later (when you use the filename: open, copy, delete, ... the file). Ok. Then I'm -1 on the

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

2010-09-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Windows isn't relevant here, but for the others, extension-suffix sounds much better. Added in r84747. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9806

[issue8445] buildbot: test_ttk_guionly failures (test_traversal, test_tab_identifiers, test_identify, test_heading_callback)

2010-09-12 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +janssen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8445 ___ ___ Python-bugs-list mailing

[issue1521051] Extra configurability for doctest TestCases

2010-09-12 Thread Russell Keith-Magee
Russell Keith-Magee freakboy3...@gmail.com added the comment: It's still a problem AFAICT. Level of interest is a different matter. Django has needed this since 2006, so we've always shipped a locally modified copy of the doctest module. That said, Django is in the process of moving away

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: Another flag? Hmm. How about this instead: if a scoped flag appears at the end of a regex (and would therefore normally have no effect) then it's treated as though it's at the start of the regex. Thus: foo(?i) is treated

[issue2889] curses for windows (alternative patch)

2010-09-12 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: PDCurses is not updated, because it is considered stable and mature library that has been tested on Windows platform by many roguelikes. I doubt that ncurses hackers care about Windows compatibility more than just to make it run.

[issue9788] atexit and execution order

2010-09-12 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I agree with Antoine's LIFO comment. Also, FWIW, the C standard library behaves in a LIFO manner as well (C99 spec - 7.20.4.3 clause 3): First, all functions registered by the atexit function are called, in the reverse order of their

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: With all the effort that went into the patch, I recommend to get it right: if there is space for the \0, include it. If the string size is exactly 108, and it's linux, write it unterminated. Else fail. As for testing: we should

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Vlastimil Brom
Vlastimil Brom vlastimil.b...@gmail.com added the comment: Not that my opinion matters, but for what is it worth, I find it rather unusual to have to use special flags to get normal (for some definition of normal) behaviour, while retaining the defaults buggy in some way (like ZEROWIDTH). I

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: FindFirst/NextFileA will also do some other interesting conversions, such as the best-fit conversion (which the mbcs code doesn't do (anymore?)). About mbcs, mbcs codec of Python 3.1 is like .encode('mbcs', 'replace') and

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com added the comment: The tests for re include these regexes: a.b(?s) a.*(?s)b I understand what Georg said previously about some people preferring to put them at the end, but I personally wouldn't do that because some regex implementations

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: It remembers me the discussion of the issue #3187. About unencodable filenames, Guido proposed to ignore them or to use errors=replace, and wrote Failing the entire os.listdir() call is not acceptable. (... long discussion ...) And

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-09-12 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Matthew, I understand why you want to have these flags scoped, and if you designed a regex dialect from scratch, that would be the way to go. However, if we want to integrate this in Python 3.2 or 3.3, this is an absolute killer if it's not

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: FindFirst/NextFileA will also do some other interesting conversions, such as the best-fit conversion (which the mbcs code doesn't do (anymore?)). If we choose to keep this behaviour, I will have to revert my commit on mbcs codec

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: About Windows, os.listdir(str) never fails, but my question is about os.listdir(bytes). Should os.listdir(bytes) returns invalid filenames (encoded with mbcs+replace, filenames not usable to open, rename or delete the file) or just

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread David Watson
David Watson bai...@users.sourceforge.net added the comment: I meant to say that FreeBSD provides the SUN_LEN macro, but it turns out that Linux does as well, and its version behaves the same as FreeBSD's. The FreeBSD man pages state that the terminating null is not part of the address:

[issue9820] Windows : os.listdir(b'.') doesn't raise an errorfor unencodablefilenames

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: If we choose to keep this behaviour, I will have to revert my commit on mbcs codec to be consistent with os.listdir(). Or at least patch PyUnicode_EncodeFSDefault and os.fsencode() (use replace error handler) and

[issue8372] socket: Buffer overrun while reading unterminated AF_UNIX addresses

2010-09-12 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: The examples in Stevens/Rago's Advanced Programming in the Unix Environment also pass address lengths to bind(), etc. that do not include the null. I didn't (mean to) suggest that the null must be included in the length - only that it

[issue9210] remove --with-wctype-functions configure option

2010-09-12 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - amaury.forgeotdarc resolution: - accepted ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9210 ___

[issue1076515] shutil.move clobbers read-only files.

2010-09-12 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I haven't had time to investigate but it shouldn't be closed just yet. Someone will get to it. -- resolution: invalid - status: closed - open ___ Python tracker rep...@bugs.python.org

[issue2889] curses for windows (alternative patch)

2010-09-12 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: -brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___ Python-bugs-list

[issue9840] Recursive Repr

2010-09-12 Thread Raymond Hettinger
New submission from Raymond Hettinger rhettin...@users.sourceforge.net: Add a recursive_repr() decorator to provide a solution to the problem of creating a container __repr__ method that doesn't fail for recursive calls. -- files: recursive_repr.patch keywords: patch messages: 116239

[issue9838] Inadequate C-API to Python 3 I/O objects

2010-09-12 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9838 ___ ___ Python-bugs-list

  1   2   >