[issue9971] Optimize BufferedReader.readinto

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: You don't want to backport the optimization to at least 3.2? -- ___ Python tracker <http://bugs.python.org/issue9971> ___ ___

[issue12060] Python doesn't support real time signals

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: > Is it a theoretical concern or does it affect real software? It's more theoretical. -- ___ Python tracker <http://bugs.python.org

[issue12060] Python doesn't support real time signals

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: > Yeah it will not work without atomic ops. ... Or we can maybe block the signals (all signals or just one signal?) using pthread_sigmask(SIG_BLOCK) while we access the Handlers array. But pthread_sigmask() is not available on all OSes. On my Linux

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: If you add "from _pyio import open" to the example, unbuffered and buffered tests give the same result :-) -- nosy: +haypo ___ Python tracker <http://bugs.python.o

[issue12062] Buffered I/O inconsistent with unbuffered I/O in certain cases

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: open("test.bin", "w+b", buffering=-1) creates a BufferedRandom object. In the _pyio module, BufferedRandom overrides the write() method to "undo readahead", whereas the _io module reuses bufferedwriter_write()

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: This is a duplicate of #10801, issue fixed in Python 3.2 or later by 33543b4e0e5d. Should we backport the fix to Python 3.1, or you can upgrade to Python 3.2? Output with Python 3.2: "╕┤╝■ test.txt". -- versions: -Python 3.2,

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib), Unicode ___ Python tracker <http://bugs.python.org/issue12048> ___ ___ Python-bugs-list mailin

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/issue12048> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10801] zipfile.ZipFile().extractall() header mismatch for non-ASCII characters

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: Issue #12048 is a duplicate of this bug, but with Python 3.1. Should we backport the fix to Python 3.1? -- ___ Python tracker <http://bugs.python.org/issue10

[issue12057] HZ codec has no test

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: > I wanted for them to be treated as text files which are trackable > in CVS or subversion and to keep Python source codes free of any > non-ASCII characters Mercurial supports binary file, I plan to mark the CJK testcases as binary usi

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: Oh, right. Note: the encoding looks to be GBK, not CP932: >>> '\u590d\u4ef6'.encode('gbk') b'\xb8\xb4\xbc\xfe' >>> '\u590d\u4ef6'.encode('gbk').decode('cp437') '╕┤╝■

[issue11614] import __hello__ is broken in Python 3

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: > Why is this still open Because import __hello__ doesn't print hello. > and more importantly, why is it a release blocker? Because it is a very important issue! -- ___ Python tracker <http://b

[issue11614] import __hello__ is broken in Python 3

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: +print("Hello world...") I would prefer a more positive "Hello World!", but thanks for the patch. -- ___ Python tracker <http://bug

[issue12060] Python doesn't support real time signals

2011-05-12 Thread STINNER Victor
STINNER Victor added the comment: > It's not the only shortage with the current implementation regarding > (real-time) signals. Another one is that they're delivered > out-of-order (lowest-numbered signal first), Oh yes, it can be a problem. > and the most important one

[issue12069] test_signal.test_without_siginterrupt() failure on AMD64 OpenIndiana 3.x

2011-05-12 Thread STINNER Victor
New submission from STINNER Victor : test_signal fails sometimes on the "AMD64 OpenIndiana 3.x" buildbot: Traceback (most recent call last): File "/export/home/buildbot/64bits/3.x.cea-indiana-amd64/build/Lib/test/test_signal.py", line 358, in test_without_siginterrupt

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
New submission from STINNER Victor : $ ./python -c "import sysconfig; sysconfig._parse_makefile('Makefile.loop')" It loops on the following variables: 'DESTSHARED'='$(BINLIBDEST)/lib-dynload' 'INCLDIRSTOMAKE'='$(INCLUDEDIR) $(CONFIN

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21993/Makefile.loop ___ Python tracker <http://bugs.python.org/issue12070> ___ ___ Python-bugs-list m

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: My OS is Debian Sid. Important note: I use LC_ALL=C and so ASCII locale encoding. -- ___ Python tracker <http://bugs.python.org/issue12

[issue12071] test_concurrent_futures hangs on OpenIndiana

2011-05-13 Thread STINNER Victor
New submission from STINNER Victor : test_concurrent_futures of Python 3.3 (rev [6d8678555c04]) hangs on OpenIndiana. I dumped manually the tracebacks of the parent process (test_concurrent_futures) and of the 3 child processes. In the parent process, the test hangs when exiting the context

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-13 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_concurrent_futures hangs on OpenIndiana -> test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana ___ Python tracker <http://bugs.python.org/issu

[issue6011] python doesn't build if prefix contains non-ascii characters

2011-05-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> status: closed -> ___ Python tracker <http://bugs.python.org/issue6011> ___ ___ Python-bugs-list

[issue11617] Sporadic failure in test_httpservers

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: The issue looks to be fixed. Reopen if there are new failures. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue11873] test_regexp() of test_compileall fails occassionally

2011-05-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> status: closed -> ___ Python tracker <http://bugs.python.org/issue11873> ___ ___ Python-bugs-list

[issue11996] libpython.py: nicer py-bt output

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: Without any reaction from Dave Malcolm, I kept its name under the name "py-bt-full". > I would also like a less verbose output for where, especially > be able to hidden the value of the globals argument of > PyEval_EvalCodeEx. Well, I wi

[issue12069] test_signal.test_without_siginterrupt() failure on AMD64 OpenIndiana 3.x

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the issue using regrtest.py -F test_signal. It is maybe a race condition, or another test has a border effect of test_signal? -- ___ Python tracker <http://bugs.python.org/is

[issue12070] Unlimited loop in sysconfig._parse_makefile()

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, the problem is that the prefix variable value is seen as "bogus" ($/home/haypo/...: $ is a typo made by me!) and the variable is removed from variables. But other variables depend on the prefix and so we have an unlimited loop. Possibles fixes

[issue12071] test_concurrent_futures.test_context_manager_shutdown() hangs on OpenIndiana

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: Oh, I have "no more memory" errors on this VM especially on fork. test_concurrent_futures.test_context_manager_shutdown() failure should be related to a memory allocation error. I tried my faulthandler using SIGUSR1 to get more information, but sen

[issue12073] regrtest: use faulthandler to dump the tracebacks on SIGUSR1

2011-05-13 Thread STINNER Victor
New submission from STINNER Victor : When you run the test suite manually and a test hangs, it would be nice to be able to dump immediatly the tracebacks of all threads without having to wait the timeout (which is 1 hour by default...). Attached patch installs a signal handler for the SIGUSR1

[issue12074] regrtest: display the current number of failures

2011-05-13 Thread STINNER Victor
New submission from STINNER Victor : The full test suite has something like 354 tests. regrtest writes one line per test, and if you use Python compiled in debug mode you have much more lines because of "[123 refs]" lines written by subprocesses. It's difficult to check if

[issue12074] regrtest: display the current number of failures

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: See also issue #12073. -- ___ Python tracker <http://bugs.python.org/issue12074> ___ ___ Python-bugs-list mailing list Unsub

[issue12073] regrtest: use faulthandler to dump the tracebacks on SIGUSR1

2011-05-13 Thread STINNER Victor
STINNER Victor added the comment: See also issue #12074. -- ___ Python tracker <http://bugs.python.org/issue12073> ___ ___ Python-bugs-list mailing list Unsub

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: > New changeset c2515cb23d9b by Gregory P. Smith in branch 'default': > Issue #1746656: Add if_nameindex, if_nametoindex, if_indextoname The _socket module doesn't compile on OpenIndiana anymore: http://www.python.org/dev/buildb

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: > The _socket module doesn't compile on OpenIndiana anymore Same problem of FreeBSD 8.2: http://www.python.org/dev/buildbot/all/builders/AMD64%20FreeBSD%208.2%203.x/builds/291/steps/test/logs/stdio -- __

[issue12060] Python doesn't support real time signals

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: > if someone comes up with a situation where this is a real problem, > feel free to reopen it. Ok I agree, no problem. But I commited at least Charles's patch ;-) -- ___ Python tracker <http://b

[issue10756] Error in atexit._run_exitfuncs [...] Exception expected for value, str found

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot the issue. I backported the fix to Python 3.1. Python 2.7 doesn't have the bug. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.

[issue12080] decimal.py: performance in _power_exact

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

[issue12082] Python/import.c still references fstat even with DONT_HAVE_FSTAT/!HAVE_FSTAT

2011-05-15 Thread STINNER Victor
STINNER Victor added the comment: Oh, so it's possible to not have the fstat() syscall. I asked me the question when I modified import.c (and other files related to importing a module). -- nosy: +haypo ___ Python tracker <http://bugs.py

[issue12087] install_egg_info fails with UnicodeEncodeError depending on locale

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: install_egg_info.run() uses f = open(target, 'w') to create the .egg-info file and so the file uses the locale encoding. I don't know which module/program reads the file, so I don't know if the "locale encoding" is a good ch

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: @pitrou: What do you think Antoine? -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue12028> ___ ___ Python-bug

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: The threading API changed in Python 3 with the PEP 3108, especially and issue #2875. Extract of the PEP: "thread [done] * People should use 'threading' instead. * Rename 'thread' to _thread. * Deprecate dummy_thread and rename

[issue12028] threading._get_ident(): remove it in the doc and make it public

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: > In which case can it be None? Oh, I misunderstood threading.py. current_thread().ident cannot be None. During the bootstrap of a thread, Thread._ident is None, but current_thread().ident is not None because current_thread() creates a dummy thread obj

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: Thanks Andreas for your fix! Python 3 is now better than Python 2: it prints "Hello World!" instead of "Hello World...". -- resolution: -> fixed status: open -> closed ___ Python tracke

[issue12089] regrtest.py doesn't check for unexpected output anymore?

2011-05-16 Thread STINNER Victor
New submission from STINNER Victor : In Python 3.1, a test fails if it writes to stdout/stderr. It is no more the case in Python 3.2 and 3.3. Why? If we decided to not check for unexpected output in Python 3.2+, the following code should be removed: if verbose: capture_stdout

[issue12057] HZ codec has no test

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: Oh, I specified the wrong issue number of my last 3 commits: test_linecache failure is related to this issue. New changeset 9a4d4506680a by Victor Stinner in branch '3.1': Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exi

[issue11614] import __hello__ is broken in Python 3

2011-05-16 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 9a4d4506680a by Victor Stinner in branch '3.1': > Issue #11614: Fix test_linecache, cjkencodings_test.py doesn't exist anymore Oh, these commits are related to #12057, not this one. -- _

[issue12095] test failures due to missing module

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: Oh oh. I forgot to patch .hgeol and test_multibytecodec_support.py during my "merge" 3.1 (16503022c4b8) -> 2.7 (1bd697cdd210). It should be ok with 83f4c270b27d. Thank you for your report Ronald. -- resolution: -> fixed status

[issue12096] test_threading.test_waitfor() timeout (1 hour) on x86 Gentoo 3.x buildbot

2011-05-17 Thread STINNER Victor
New submission from STINNER Victor : Builder x86 Gentoo 3.x Build #130: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%203.x/builds/130/steps/test/logs/stdio [263/354] test_threading Timeout (1:00:00)! Thread 0x48f0bb70: File "/var/lib/buildslave/3.x.murray-gentoo/buil

[issue12098] Child process running as debug

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce this bug on Linux. $ cat script.py from multiprocessing import Pool import os def myfunc(x): import sys print("child", os.getpid(), "optimize?", sys.flags.optimize) assert False, "assert Fa

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: I don't like the API because it gives a different behaviour depending on the OS and I don't see how to check that the function does really a full sync. I would prefer a new option os.fullsync() function which is like your os.fsync(fd, full_

[issue12098] Child process running as debug on Windows

2011-05-17 Thread STINNER Victor
Changes by STINNER Victor : -- title: Child process running as debug -> Child process running as debug on Windows ___ Python tracker <http://bugs.python.org/issu

[issue12096] test_threading.test_waitfor() timeout (1 hour) on x86 Gentoo 3.x buildbot

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: Oh, it is a real bug in the test. Bug fixed by your patch. Thanks, I commited your patch. I don't wait for the buildbot because it's a sporadic (and rare) failure. -- resolution: -> fixed status: o

[issue11779] test_mmap.test_large_offset() timeout (1 hour) on "AMD64 Snow Leopard 3.x" buildbot

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: I did not see new failure recently, let's close this issue. Reopen if it is not fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.

[issue6059] ctypes/uuid-related segmentation fault

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: > It's probably a libc bug The bug looks to be specific to the GNU libc. It exists in glibc-2.11.3 and glibc-2.12.2. I suppose that all versions of the GNU libc are affected. The bug has been fixed: http://sourceware.org/git/?p=glibc.git;a=comm

[issue12100] Incremental encoders of CJK codecs reset the codec at each call to encode()

2011-05-17 Thread STINNER Victor
New submission from STINNER Victor : Stateful CJK codecs reset the codec at each call to encode() producing a valid but overlong output: >>> import codecs >>> encoder = codecs.getincrementalencoder('hz')() >>> encoder.encode('\u804a') + encod

[issue12057] HZ codec has no test

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: ISO 2022 encodings don't have tests neither: test_multibytecodec doesn't test directly these encodings but it is "Unit test for multibytecodec itself". We may also add tests specific to ISO 2022 encodings: - iso2022_kr - iso202

[issue8796] Deprecate codecs.open()

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: Python 3.2 has been published. Can we start deprecating StreamWriter and StreamReader in Python 3.3 (to remove them from Python 3.4)? The doc should explain how to convert code using codecs into code using the io module (it should be simple), and using a

[issue8796] Deprecate codecs.open()

2011-05-17 Thread STINNER Victor
Changes by STINNER Victor : -- status: closed -> ___ Python tracker <http://bugs.python.org/issue8796> ___ ___ Python-bugs-list mailing list Unsubscri

[issue8796] Deprecate codecs.open()

2011-05-17 Thread STINNER Victor
STINNER Victor added the comment: > ... once most Linux distributions have moved to Python 2.6 Debian uses Python 2.6 by default since it's last stable release (Squeeze). I think that it was the last distro using Python 2.5 by

[issue8796] Deprecate codecs.open()

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: > This ticket is about deprecating codecs.open(), not about > StreamWriter and StreamReader. Right. I may open a different issue. Can we start by modifying codecs.open() to use the builtin open() (to reuse TextIOWrapper)? > I'm -1

[issue11877] Change os.fsync() to support physical backing store syncs

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: See also issue #12102. -- ___ Python tracker <http://bugs.python.org/issue11877> ___ ___ Python-bugs-list mailing list Unsub

[issue12102] mmap requires file to be synced

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: See also issue #11877 and #11277. -- nosy: +haypo, sdaoden ___ Python tracker <http://bugs.python.org/issue12102> ___ ___ Pytho

[issue12103] Documentation of open() does not claim 'e' support in mode string

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: c, e, m and x flags are specific to the GNU libc. Python 2 does basically pass the mode to fopen() unmodified (there is one exception, the U flag). fopen() of Visual C++ 2005 has other flags: c Enable the commit flag for the associated filename so that the

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: See also #4621. -- ___ Python tracker <http://bugs.python.org/issue12048> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4621] zipfile returns string but expects binary

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: This issue looks to be a duplicate of #10801 which was only fixed (33543b4e0e5d) in Python 3.2. See also #12048: similar issue in Python 3.1. -- ___ Python tracker <http://bugs.python.org/issue4

[issue4621] zipfile returns string but expects binary

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: The initial problem is clearly a duplicate of issue #10801 which is now fixed in Python 3.1+ (I just backported the fix to Python 3.1). > I just "discovered" that attempting to open zip member "test\file" > fails where attempting

[issue12048] Python 3, ZipFile Bug In Chinese

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: This issue is just another example of the issue #10614: I'm closing it as a duplicate. -- resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.

[issue10614] ZipFile: add a filename_encoding argument

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: I closed issue #12048 as a duplicate of this issue: yaoyu wants to uncompress a ZIP file having filenames encoded to GBK. -- ___ Python tracker <http://bugs.python.org/issue10

[issue12102] mmap requires file to be synced

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: > Hello, zion, Victor, i'm proposing a documentation patch. I like it. I don't think that Python should guess what the user expects (i.e. Python should not sync the file *implicitly*). -- ___ P

[issue12098] Child process running as debug on Windows

2011-05-18 Thread STINNER Victor
STINNER Victor added the comment: I think that the problem is in Popen.get_command_line() of multiprocessing.forking. There are other options changing Python behaviour: -b, -B, -E, -u, etc. -- ___ Python tracker <http://bugs.python.org/issue12

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: > Here's a patch: > - those functions now accept and return str, not bytes arrays You use UTF-8 encoding: +"Is", ni[i].if_index, ni[i].if_name); +if (!PyArg_ParseTuple(args, "s:if_nametoindex", &i

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Example with a non-ASCII interface name: $ sudo tunctl -u haypo -t unicodeé Set 'unicodeé' persistent and owned by uid 1000 $ sudo ifconfig -a|grep unicode|hexdump -C 75 6e 69 63 6f 64 65 c3 a9 20 4c 69 6e 6b 20 65 |unicode.. Link e| 00

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
New submission from STINNER Victor : The locale encoding is not portable, packaging should use UTF-8 instead. Attached patch is a draft to workaround "LANG=C ./python -m test test_packaging" failures. I'm not sure that my test in Metadata.write_file() of packaging.metadata

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Library (Lib) nosy: +eric.araujo, tarek ___ Python tracker <http://bugs.python.org/issue12112> ___ ___ Python-bug

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: See also issue #9561 (distutils: set encoding to utf-8 for input and output files) and #6011 (python doesn't build if prefix contains non-ascii characters). If you are curious, read also #8611 (Python3 doesn't support locale different than utf8

[issue12114] packaging.util._find_exe_version(): potential deadlock

2011-05-19 Thread STINNER Victor
New submission from STINNER Victor : The following code does deadlock if the subprocess writes a lot of output to stdout and stderr: pipe = Popen(cmd, shell=True, stdout=PIPE, stderr=PIPE) try: stdout, stderr = pipe.stdout.read(), pipe.stderr.read() finally

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: I ported a distutils fix (for non-ASCII path) into packaging: New changeset cc5cfeaa4a8d by Victor Stinner in branch 'default': Issue #10419, issue #6011: port 6ad356525381 fix from distutils to packaging http://hg.python.org/cpython/rev/cc

[issue12116] io.Buffer*.seek() doesn't seek if "seeking leaves us inside the current buffer"

2011-05-19 Thread STINNER Victor
New submission from STINNER Victor : Example: with open("setup.py", "rb") as f: # read smaller than the file size to fill the readahead buffer f.read(1) # seek doesn't seek f.seek(0) print("f pos=", f.tell()) print("f.raw pos="

[issue12116] io.Buffer*.seek() doesn't seek if "seeking leaves us inside the current buffer"

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Note: _pyio.BufferedReader(), _pyio.BufferedWriter(), _pyio.BufferedRandom() don't use this optimization. They might be patched too. -- ___ Python tracker <http://bugs.python.org/is

[issue12116] io.Buffer*.seek() doesn't seek if "seeking leaves us inside the current buffer"

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: And how can I seek the raw file to zero? Using buffer.raw.seek(0), buffer.tell() becomes inconsistent: $ ./python Python 3.2.1b1 (3.2:bd5e4d8c8080, May 15 2011, 10:22:54) >>> buffer=open('setup.py', 'rb') >>&

[issue12112] The new packaging module should not use the locale encoding

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: What is the MainProgram.inspect_file() function in packaging.create? Which kind of file should it process? => What is the encoding of the input files? -- ___ Python tracker <http://bugs.python.org/issu

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

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Using spawn_python() to check that os.O_CLOEXEC flag is correctly set seems overkill. Why not just testing fcntl.fcntl(f.fileno(), fcntl.F_GETFL) & FD_CLOEXEC)? I don't think that there are OSes with O_CLOEXEC but without fcntl(F_GETFL). > Note

[issue12124] python -m test test_packaging test_zipimport failure

2011-05-19 Thread STINNER Victor
New submission from STINNER Victor : "python -m test test_packaging test_zipimport" fails with: == FAIL: testAFakeZlib (test.test_zipimport.CompressedZipImpo

[issue12124] python -m test test_packaging test_zipimport failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: OMG! I understood why the bug was not seen before: "python -m test test_zipimport test_zipimport" succeed because test_zipimport REMOVES testAFakeZlib tests after the first run! New patch to remove this ugly hack (it is no more needed with my pa

[issue12124] python -m test test_packaging test_zipimport failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: "test_zipimport REMOVES testAFakeZlib tests after the first run" hack was introduced by a commit supposed to "test zipimport a bit more" :-) changeset: 36383:7b3d915b6e9d branch: legacy-trunk user:Neal Norwitz date:

[issue12125] test_sysconfig fails on OpenIndiana because of test_packaging

2011-05-19 Thread STINNER Victor
New submission from STINNER Victor : It looks like a test of test_packaging removes some data from sysconfig._SCHEMES: http://www.python.org/dev/buildbot/all/builders/AMD64%20OpenIndiana%203.x/builds/1239/steps/test/logs/stdio

[issue12118] test_imp failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #12117. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12119] test_distutils failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #12117. -- nosy: +haypo resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12123] test_import failures

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #12117. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12122] test_runpy failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #12117. -- nosy: +haypo resolution: -> duplicate status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12120] test_packaging failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Duplicate of #12117. -- nosy: +haypo resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue12117] test_importlib failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: The following issues has been marked as a duplicate of this issue: - issue #12118 (test_imp) - issue #12119 (test_distutils) - issue #12120 (test_packaging) - issue #12122 (test_runpy) - issue #12123 (test_import) Tarek did the following commit to try to

[issue12117] test_importlib failure

2011-05-19 Thread STINNER Victor
STINNER Victor added the comment: Traceback of the duplicate issues: == ERROR: test_issue5604 (test.test_imp.ImportTests) -- Traceback (most recent call last

[issue12117] test_importlib failure

2011-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +alexis, eric.araujo ___ Python tracker <http://bugs.python.org/issue12117> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12117] Failures with PYTHONDONTWRITEBYTECODE: test_importlib, test_imp, test_distutils, test_packaging, test_runpy, test_import

2011-05-19 Thread STINNER Victor
Changes by STINNER Victor : -- title: test_importlib failure -> Failures with PYTHONDONTWRITEBYTECODE: test_importlib, test_imp, test_distutils, test_packaging, test_runpy, test_import ___ Python tracker <http://bugs.python.org/issu

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

2011-05-20 Thread STINNER Victor
STINNER Victor added the comment: > Why not to implement 'e' letter in py3k ? > > In systems where O_CLOEXEC is not supported in open(), flag should be set > non-atomically using fcntl. Having an atomic or non-atomic behaviour depending on the

[issue1746656] IPv6 Interface naming/indexing functions

2011-05-20 Thread STINNER Victor
STINNER Victor added the comment: > that patch looks good I tested it with non-ASCII interface names: it works as expected with ASCII and UTF-8 locales. It's the first time that I see the "O&" format for Py_BuildValue(), I didn't know this one. The patch looks good.

[issue12124] python -m test test_packaging test_zipimport failure

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

[issue4558] with_stdc89

2011-05-20 Thread STINNER Victor
STINNER Victor added the comment: Is it still useful to ensure that ISO C89 compilers are supported in 2011? -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue4

[issue1054041] Python doesn't exit with proper resultcode on SIGINT

2011-05-20 Thread STINNER Victor
STINNER Victor added the comment: +kill(getpid(), SIGINT); kill() doesn't exist on Windows: use raise() which is more portable and doesn't require a PID argument. We may need to do something on Windows for console applications: see SetConsoleCtrlHandler(), http://msdn.mic

[issue12057] HZ codec has no test

2011-05-20 Thread STINNER Victor
STINNER Victor added the comment: I think that issue #12100 should be fixed (wontfix/fixed) before this one. -- dependencies: +Incremental encoders of CJK codecs reset the codec at each call to encode() ___ Python tracker <http://bugs.python.

<    27   28   29   30   31   32   33   34   35   36   >