[issue13218] test_ssl failures on Ubuntu 11.10

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > ssl.OPENSSL_VERSION_INFO is still (0, 9, 8, 15, 15) After a recompilation, I get (1, 0, 0, 5, 15) and ssl doesn't has PROTOCOL_SSLv2. test_ssl is failing with: ===

[issue13212] json library is decoding/encoding when it should not

2011-10-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13212> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12989] Consistently handle path separator in Py_GetPath on Windows

2011-10-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue12989> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13216] Add cp65001 codec

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > > Sorry, which bug? > #6501 and friends Hum, this particular issue, #6501, doesn't concern the code page 65001. The typical usecase (issues #7441 and #10920) is: ---- C:\victor\cpython>chcp 65001 Page de codes active : 65001

[issue12367] select.error has no errno attribute

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > The tracebacks say that the lockups are happening in test_errno The test was added by f6b8e4226260 the 17th october, the last lockup occurred the 16th (19:08:15). Before, I added a workaround to see the failure but avoid the lockup: 60fecfbea397 (Oct

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > you should make a case by example Did you read comments of this issue and my email thread on python-dev? There are differents examples: - LONG_MAX is 9223372036854775807 even on 32 bits system - On Mac OS X, FAT programs contains 32 and 64 binar

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: win_console.patch: a more complete prototype * patch the site module to replace sys.stdout and sys.stderr by UnicodeConsole and BytesConsole classes which use WriteConsoleW and WriteConsoleA * UnicodeConsole inherits from io.TextIOBase and BytesConsole

[issue1602] windows console doesn't print or input Unicode

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: test_win_console.py: Small script to test win_console.patch. Write some characters into sys.stdout.buffer (WriteConsoleA) and sys.stdout (WriteConsoleW). The test is written for cp850, cp1252 and cp65001 code pages. -- Added file: http

[issue13224] Change str(class) to return only the class name

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: It looks like your change breaks backward compatibility (e.g. tests written using doctests). I don't know if it's a problem or not. -- nosy: +haypo ___ Python tracker <http://bugs.python.o

[issue13226] Expose RTLD_* constants in the posix module

2011-10-19 Thread STINNER Victor
New submission from STINNER Victor : We have a sys.setdlopenflags() function, but required constants are not available on all platforms. The DLFCN is only available on Linux and sunos5 (is plat-sunos5 available for all Solaris and OpenIndiana versions?), but not on OpenBSD, FreBSD, Mac OS X

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #13226 to provide RTLD_* constants on all platforms (not only on Linux and sunos5). -- ___ Python tracker <http://bugs.python.org/issue12

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > > There are differents examples: > > - LONG_MAX is 9223372036854775807 even on 32 bits system > > - On Mac OS X, FAT programs contains 32 and 64 binaries, whereas > > constants are changed for 32 or 64 bits > > That's

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > *.encode('rot_13') ==> CodecLookupError I like the idea of raising a lookup error on .encode/.decode if the codec is not a classic text codec (like ASCII or UTF-8). > *.transform('ascii') ==> CodecLookupError Sam

[issue12619] Automatically regenerate platform-specific modules

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > FYI, in Debian we have at least: > one package using the CDROM module, Is it cdsuite? (http://offog.org/code/cdsuite.html) > 3 packages using the IN module, I found policykit (it uses IN.INT_MAX). What are the 2 others? Which constants are us

[issue13227] Option to make the lru_cache type specific

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: The patch doesn't update the doc. You may also test type(square(3)). Except of these nits, the patch looks good. The typed option is an important feature, and your patch contains a good example of its usage (the re module). -- nosy: +

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2011-10-19 Thread STINNER Victor
STINNER Victor added the comment: > I think it may even make sense to build the filtering > options into codecs.lookup() itself: > > def lookup(encoding, decoded_format=None, encoded_format=None): > info = _lookup(encoding) # The existing codec lookup algor

[issue13201] Implement comparison operators for range objects

2011-10-20 Thread STINNER Victor
STINNER Victor added the comment: +one = PyLong_FromLong(1); +if (!one) +return -1; +cmp_result = PyObject_RichCompareBool(r0->length, one, Py_EQ); +Py_DECREF(one); If would be nice to have a PyLong_CompareLong() function. -- nosy: +ha

[issue13232] Logging: Unicode Error

2011-10-20 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13232> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12619] Automatically regenerate platform-specific modules

2011-10-20 Thread STINNER Victor
STINNER Victor added the comment: For Freevo: yes, it uses the CDROM module. But this module doesn't look to be perfect because Freevo has a fallback for FreeBSD and another for... Linux (because of missing CDROM.CDROM_DRIVE_STATUS?): - try: from CDROM i

[issue13226] Expose RTLD_* constants in the posix module

2011-10-20 Thread STINNER Victor
STINNER Victor added the comment: Updated patch: remove "either" in the documentation. Thanks neologix par the review. -- Added file: http://bugs.python.org/file23483/posix_rtld-2.patch ___ Python tracker <http://bugs.python.o

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread STINNER Victor
STINNER Victor added the comment: Extract of configure.in: - # Check for --with-computed-gotos AC_MSG_CHECKING(for --with-computed-gotos) AC_ARG_WITH(computed-gotos, AS_HELP_STRING([--with(out)-computed-gotos], [Use

[issue13240] sysconfig gives misleading results for USE_COMPUTED_GOTOS

2011-10-21 Thread STINNER Victor
STINNER Victor added the comment: > Computed goto are disabled (in my Python 3.3 on Linux with GCC), > I checked by adding #error to ceval.c. Hum, I don't understand how, but I missed the #error failure. Computed goto *are enabled*

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread STINNER Victor
STINNER Victor added the comment: It is a compiler bug in GCC 4.2.1 with -O3. Try to compile attached unicode.c program with gcc -O3. The correct result is: $ gcc -O3 unicode.c -o unicode && ./unicode is ascii? 0 is compact? 1 is compact ascii? 0 _PyUnicode_COMPACT_DATA:

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Build versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue13241> ___ ___ Python-bugs-list mailin

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-21 Thread STINNER Victor
STINNER Victor added the comment: The bug has been fixed in GCC, try a more recent version using ./configure CC=gccX.Y. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13246] Py_UCS4_strlen and friends needn't be public

2011-10-23 Thread STINNER Victor
STINNER Victor added the comment: > It seems there's no reason to document these functions > which operate on null-terminated unicode arrays. It's the easiest way to create a new string with the new Unicode API, when it's difficult to predict the exact output length

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-23 Thread STINNER Victor
STINNER Victor added the comment: abspath() is implemented using nt._getfullpathname() which calls GetFullPathNameA(). > The returned path with question marks is completely useless. Can you open the file using such filename? If no, I agree that the result is useless. > It's

[issue13241] Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X

2011-10-23 Thread STINNER Victor
STINNER Victor added the comment: > i686-apple-darwin10-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) > (LLVM build 2336.1.00) Oh, that's not GCC but llvm-gcc. It is maybe a bug in LLVM? -- ___ Python tracker <http://b

[issue13256] Document and test new socket options

2011-10-24 Thread STINNER Victor
New submission from STINNER Victor : The commit c64216addd7f for issue #6560 added various socket option, but some of them are not well documented or tested. Authentication: * SO_PASSCRED, SO_PEERCRED, LOCAL_PEERCRED * SCM_RIGHTS, SCM_CREDENTIALS, SCM_CREDS SCTP: * socket.IPPROTO_SCTP is

[issue13256] Document and test new socket options

2011-10-24 Thread STINNER Victor
STINNER Victor added the comment: Another issue: the "version added" tag is not used, it's not possible to know that socket.SO_PEERCRED was added in Python 3.3. -- ___ Python tracker <http://bugs.pyt

[issue13258] replace hasattr(obj, '__call__') with callable(obj)

2011-10-24 Thread STINNER Victor
STINNER Victor added the comment: callable() is not just faster, it's also "more correct": hasattr(obj, "__call__") doesn't call base classes. See callable() of the six module: def callable(obj): return any("__call__" in klass.__dict__ for klas

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-10-24 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue8036> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-10-24 Thread STINNER Victor
STINNER Victor added the comment: @nvetoshkin: Can you please also write tests (in Lib/test/test_os.py) for your patch? -- ___ Python tracker <http://bugs.python.org/issue8

[issue13258] replace hasattr(obj, '__call__') with callable(obj)

2011-10-24 Thread STINNER Victor
STINNER Victor added the comment: > Is it actually appropiate to commit this to 3.2? If it fixes a bug, the fix should be backported to 3.2. -- ___ Python tracker <http://bugs.python.org/issu

[issue13261] time.clock () has very low resolution on Linux

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: This issue is a duplicate of the issue #10278. -- nosy: +haypo resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10278] add time.wallclock() method

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: The issue #13261 has been marked as a duplicate of this issue. Copy of msg146347: - time.clock () has very poor time resolution on Linux (tested on Ubuntu 11.04). The result of call to clock () changes once per several seconds. On the other side

[issue10278] add time.wallclock() method

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: I closed maybe this issue too quickly. My commit doesn't solve the initial issue: Python doesn't provide a portable "wallclock" function. wallclock.patch should be updated to use: - time.clock() on Windows (use QueryPerfo

[issue13226] Expose RTLD_* constants in the posix module

2011-10-25 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/issue13226> ___ ___ Python-bugs-list

[issue13256] Document and test new socket options

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: For #12619, I added socket.SO_BINDTODEVICE constant. -- ___ Python tracker <http://bugs.python.org/issue13256> ___ ___ Pytho

[issue13263] Group some os functions in submodules

2011-10-25 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13263> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13256] Document and test new socket options

2011-10-25 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file23516/socket_options_doc.patch ___ Python tracker <http://bugs.python.org/issue13

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: os.getcwdb() (GetCurrentDirectoryA) and os.listdir(bytes) (FindNextFileA & co) encode filenames using WideCharToMultiByte() in default mode (flags=0): unencodable characters are replaced by question marks. Such filenames cannot be used, open() fails

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: os_mbcs.patch adds _Py_EncodeCodePage() to encode directly wchar_t* filenames without having to create a temporary Unicode object. The patch removes HAVE_MBCS because the MBCS is now always needed by the posixmodule.c. Anyway, I don't se

[issue13234] os.listdir breaks with literal paths

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: -if (ch != SEP && ch != ALTSEP && ch != ':') +if (ch != '\\' && ch != '/' && ch != ':') I don't understand this change in issue13234_py33_v4.patch (the change looks

[issue13263] Group some os functions in submodules

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: I would prefer to keep the shared prefix even if we move functions to a new module. Python refers usually to the C documentation for the details of a function. If we rename a function, it becomes more difficult to get the manual of the function

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-25 Thread STINNER Victor
STINNER Victor added the comment: Le 26/10/2011 01:32, Atsuo Ishimoto a écrit : > - I don't think filenames cannot be decoded in ANSI code page are rare enough > to be ignored. The issue is able being able to be noticied of encoding errors. Currently, unencodable characters a

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: > Yuval Greenfield added the comment: > Another option btw is to use utf-16 UTF-8, UTF-16 or any encoding different than the ANSI code page are not an option. The Windows bytes API expect filenames encoded to the ANSI code page. os.listdir() would ra

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1+ on Mac OS 10.7)

2011-10-26 Thread STINNER Victor
Changes by STINNER Victor : -- title: Assertion failed in _PyUnicode_CheckConsistency during build of default branch on Mac OS X -> llvm-gcc-4.2 miscompiles Python (XCode 4.1+ on Mac OS 10.7) ___ Python tracker <http://bugs.python.org/issu

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I asked for more information about llvm-gcc on IRC (#llvm). Extracts: - "llvm-gcc is not maintained." ("Clang and DragonEgg are.) "Apple is the maintainer of Apple's version of llvm-gcc and clang." - "Apple ships a [llvm-g

[issue13207] os.path.expanduser breaks when using unicode character in the username

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: Python 2 uses byte strings. If characters are not encodable to the ANSI code page, Windows replaces them by question marks. See the issue #13247 for another example (in Python 3 when using explicitly the bytes API). To be able to support characters not

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2cad20e2e588 by Victor Stinner in branch 'default': Close #13247: Add cp65001 codec, the Windows UTF-8 (CP_UTF8) http://hg.python.org/cpython/rev/2cad20e2e588 -- resolution: -> fixed status: o

[issue13247] os.path.abspath returns unicode paths as question marks

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: Oops, I specified the wrong issue number in my changeset 2cad20e2e588, it's the issue #13216. -- resolution: fixed -> status: closed -> open ___ Python tracker <http://bugs.python.

[issue13216] Add cp65001 codec

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: Lib/encodings/cp65001.py uses a little trick to mark the codec as specific to Windows: - if not hasattr(codecs, 'code_page_encode'): raise LookupError("cp65001 encoding is only avail

[issue6058] Add cp65001 to encodings/aliases.py

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker <http://bugs.python.org/issue6058> ___ ___ Pytho

[issue12281] bytes.decode('mbcs', 'ignore') does replace undecodable bytes on Windows Vista or later

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker <http://bugs.python.org/issue12281> ___ ___ Pytho

[issue10920] cp65001, PowerShell, Python crash.

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. So Python will not "crash" anymore if the console code page is set to cp65001. -- ___ Python tracker <http://bugs.python.o

[issue7441] Py3.1: Fatal Python Error: Py_Initialize...unknown encoding: chcp 65001.

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. So Python will not "crash" anymore if the console code page is set to cp65001. -- nosy: +haypo ___ Python tracker <http://bugs.python.

[issue1602] windows console doesn't print or input Unicode

2011-10-26 Thread STINNER Victor
STINNER Victor added the comment: I added a cp65001 codec to Python 3.3: see issue #13216. -- ___ Python tracker <http://bugs.python.org/issue1602> ___ ___ Pytho

[issue5661] asyncore should catch EPIPE while sending() and receiving()

2011-10-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue5661> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13218] test_ssl failures on Debian/Ubuntu

2011-10-28 Thread STINNER Victor
STINNER Victor added the comment: "./python -m test -v -u all test_ssl" pass with issue13218.diff or issue13218-true.diff on Ubuntu 10.10. -- ___ Python tracker <http://bugs.python.o

[issue13059] Sporadic test_multiprocessing failure: IOError("bad message length") in recv_bytes()

2011-10-28 Thread STINNER Victor
STINNER Victor added the comment: @antoine: can you try to add more debug messages? -- ___ Python tracker <http://bugs.python.org/issue13059> ___ ___ Python-bug

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-28 Thread STINNER Victor
STINNER Victor added the comment: I would be nice to have a third path for inegality with kind1==kind2, something like: else if (kind1 == PyUnicode_2BYTE_KIND && kind2 == PyUnicode_2BYTE_KIND) { /* use Py_UCS2* pointers */ } else if (kind1 == PyUnicode_4BYTE_KIND

[issue13279] Add memcmp into unicode_compare for optimizing comparisons

2011-10-28 Thread STINNER Victor
STINNER Victor added the comment: > These 3 minor optimizations can make unicode_compare faster. Can you please try to write a short benchmark script? (or just run a benchmark using ./python -m timeit) -- ___ Python tracker &l

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2011-10-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +benjamin.peterson, georg.brandl Removed file: http://bugs.python.org/file16209/unnamed ___ Python tracker <http://bugs.python.org/issue6

[issue6877] enable compilation of readline module on Mac OS X 10.5 and 10.6

2011-10-28 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16169/unnamed ___ Python tracker <http://bugs.python.org/issue6877> ___ ___ Python-bugs-list mailin

[issue13285] signal module ignores external signal changes

2011-10-28 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13285> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2011-10-28 Thread STINNER Victor
New submission from STINNER Victor : The following example works on Python 2.7 and 3.2, but fails on Python 3.3: --- import errno import os try: os.rmdir("testdir") except: pass os.mkdir("testdir") try: try: os.mkdir("testdir&qu

[issue13286] PEP 3151 breaks backward compatibility: it should be documented

2011-10-28 Thread STINNER Victor
STINNER Victor added the comment: The first example was extracted from Lib/importlib/_bootstrap.py. The code was maybe wrong, I don't know. Another example: -- import errno import os try: os.rmdir("testdir") except: pass os.mkdir("tes

[issue12105] open() does not able to set flags, such as O_CLOEXEC

2011-10-30 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> duplicate ___ Python tracker <http://bugs.python.org/issue12105> ___ ___ Python-bugs-list mailing list Un

[issue1336] subprocess.Popen hangs when child writes to stderr

2011-10-31 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue1336> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-10-31 Thread STINNER Victor
New submission from STINNER Victor : Traceback (most recent call last): File "/export/home/buildbot/32bits/3.x.cea-indiana-x86/build/Lib/test/regrtest.py", line 1186, in runtest_inner indirect_test() File "/export/home/buildbot/32bits/3.x.cea-indiana-x86

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-11-01 Thread STINNER Victor
STINNER Victor added the comment: Le 01/11/2011 00:07, Roundup Robot a écrit : > > Roundup Robot added the comment: > > New changeset 3f025427f02b by Florent Xicluna in branch 'default': > Fix regression due to changeset 2096158376e5 (issue #13305). > http

[issue12939] Add new io.FileIO using the native Windows API

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: > Instead of rewriting your own RawIO implementation, why not use > _open_osfhandle? I don't know yet what is the best approach. One important point is to keep the HANDLE, to be able to manipulate the open file using the Windows API (e.g. call

[issue13226] Expose RTLD_* constants in the posix module

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: sys.getdlopenflags() doc and docstring still contain references to ctypes and DLFCN module. -- ___ Python tracker <http://bugs.python.org/issue13

[issue13303] Sporadic importlib failures: FileNotFoundError on os.rename()

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: > 3) Fall back to the original ".tmp" suffix (with the risk > of stale tmp file). I missed something, what is the "stale tmp file" issue? Python/import.c uses: (void) unlink(filename); fd = open(filename, O_EXCL|O_CREAT|

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-02 Thread STINNER Victor
STINNER Victor added the comment: "I don't believe that the first parameter to tparm() (the format string) is ever constructed by hand, because it's terminal specific. The value is obtained from the terminfo database by calling tigetstr() instead. Furthermore, tigetstr() retu

[issue13326] make clean failed on OpenBSD

2011-11-02 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13326> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13326] make clean failed on OpenBSD

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: By the way, removing *.pyc and *.pyo is useless: Python 3.3 only generates such files in __pycache__: + -find $(srcdir) -name '*.py[co]' -print0 | xargs -0r rm -f + -find $(srcdir) -name '__pycache__' -print0 | xargs -0r rmdi

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: > It seems that putp() should also accept only bytes, > because it's used to output terminal commands. Ok, here is another fix for Python 3.2 and 3.3. I'm closing the issue again. -- resolution: -> fixed sta

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: Here is the patch as a .patch file. -- keywords: +patch Added file: http://bugs.python.org/file23607/tcl_unicode_range.patch ___ Python tracker <http://bugs.python.org/issue12

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: Did your commit fix the issue or not? -- ___ Python tracker <http://bugs.python.org/issue13305> ___ ___ Python-bugs-list mailin

[issue11812] transient socket failure to connect to 'localhost'

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: > Sure, if you have access to a machine on which you can > reliably reproduce the problem, it'll be much easier. I explain a reliable method to reproduce this issue on Linux (it may work on other OSes) i

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: A patch similar to input_stdout_encoding.patch has been applied to 3.2 and 3.3 for the issue #6697: see changeset 846866aa0eb6. -- ___ Python tracker <http://bugs.python.org/issue8

[issue8256] input() doesn't catch _PyUnicode_AsString() exception; io.StringIO().encoding is None

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: input_stdout_none_encoding.patch uses UTF-8 if sys.stdout.encoding is None. -- Added file: http://bugs.python.org/file23608/input_stdout_none_encoding.patch ___ Python tracker <http://bugs.python.org/issue8

[issue13305] datetime.strftime("%Y") not consistent for years < 1000

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: Since the changeset 55a3b563f0dbed04af317f632f7f3c0f6abe175b, test_strptime is failing on "AMD64 Gentoo Wide 3.x" buildbot: == FAIL: test_strptime (test.test_time.Ti

[issue12342] characters with ord above 65535 fail to display in IDLE

2011-11-03 Thread STINNER Victor
STINNER Victor added the comment: _tkinter now raises ValueError("character U+10 is above the range (U+-U+) allowed by Tcl"). > You could say "Unicode character ..." in the error to make clear > what kind of range is U+-U+ (people that are not f

[issue13342] input() builtin always uses "strict" error handler

2011-11-04 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13342> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13341] Incorrect documentation for "u" PyArg_Parse format unit

2011-11-04 Thread STINNER Victor
STINNER Victor added the comment: Can you write a patch? -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13341> ___ ___ Python-bugs-list mailin

[issue13287] urllib.request exposes too many names

2011-11-04 Thread STINNER Victor
STINNER Victor added the comment: test_urllib2.test___all__() is failing on Windows. Example: http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.x/builds/5498/steps/test/logs/stdio == FAIL: test___all__

[issue13348] test_unicode_file fails: shutil.copy2 says "same file"

2011-11-05 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue13348> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10570] curses.tigetstr() returns bytes, but curses.tparm() expects a string

2011-11-06 Thread STINNER Victor
STINNER Victor added the comment: > The entry in Misc/NEWS mentions the change in curses.tigetstr(), > but actually curses.tparm() has been changed Woops, thanks for fixing the NEWS file :-) -- ___ Python tracker <http://bugs.python.org/i

[issue13370] test_ctypes fails on osx 10.7

2011-11-08 Thread STINNER Victor
STINNER Victor added the comment: > test_ctypes fails when building and testing on OSX 10.7 (Lion). What is the error message? -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issu

[issue13371] Some Carbon extensions don't build on OSX 10.7

2011-11-08 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Build ___ Python tracker <http://bugs.python.org/issue13371> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
New submission from STINNER Victor : Attached patch deprecates the Windows ANSI API (bytes API) in the nt module. Use Unicode filenames instead of bytes filenames to not depend on the ANSI code page anymore and to support any Unicode filename. The patch changes also os.link(), os.rename() and

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
STINNER Victor added the comment: The patch deprecates bytes filenames for the following functions: nt._getfullpathname nt._isdir os.access os.chdir os.chmod os.link os.listdir os.lstat os.mkdir os.open os.rename os.rmdir os.stat os.symlink os.unlink os.utime Oh, I forgot a test for os.open

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
STINNER Victor added the comment: Functions like os.execv() or os.readlink() are not deprecated because the underlying C function really uses a bytes API (execv and readlink). -- ___ Python tracker <http://bugs.python.org/issue13

[issue13374] Deprecate usage of the Windows ANSI API in the nt module

2011-11-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +loewis, mhammond ___ Python tracker <http://bugs.python.org/issue13374> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue13377] test_codecs "Segmentation fault" on Windows

2011-11-09 Thread STINNER Victor
STINNER Victor added the comment: I may be related to recent changes on codecs. My following commit fixed a test_codecs crash, but there is maybe another bug. changeset: 73466:9042d71962d6 user:Victor Stinner date:Wed Nov 09 00:02:18 2011 +0100 files: Objects

[issue13377] test_codecs "Segmentation fault" on Windows

2011-11-09 Thread STINNER Victor
STINNER Victor added the comment: The test doesn't crash on our Windows buildbots. Please try to update. If the problem does still exist, reopen the issue. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://b

[issue13377] test_codecs "Segmentation fault" on Windows

2011-11-09 Thread STINNER Victor
STINNER Victor added the comment: > Why was the change necessary? First because unicode_decode_call_errorhandler() was called with the wrong argument count: 1.90 -v, &outpos, &out)) 1.91 +v, &outpos)) decode_code_page

<    6   7   8   9   10   11   12   13   14   15   >