[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-02-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc ___ Python tracker <http://bugs.python.org/issue7862> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7863] platform module doesn't detect Windows 7

2010-02-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg ___ Python tracker <http://bugs.python.org/issue7863> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7860] 32-bit Python on 64-bit Windows reports incorrect architecture

2010-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'm not sure what such a test would prove, e.g. on 64-bit Mac OS X, > platform.machine() return 'i386'. That could be mapped to 'x86'... You're right. There doesn't seem to be much consistency accross platfo

[issue7870] Duplicate test methods in test_memoryio

2010-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior versions: +Python 3.2 ___ Python tracker <http://bugs.pytho

[issue7875] test_multiprocessing / importlib failure

2010-02-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : An interesting bug failure on one of the buildbots. It seems importlib has been enabled as the default import mechanism (when? where?). test_multiprocessing Process Process-24: Traceback (most recent call last): File "/home/buildbot/slave/py-buil

[issue7857] test_logging fails

2010-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: There are still random failures: test test_logging failed -- Traceback (most recent call last): File "/home2/buildbot/slave/trunk.loewis-sun/build/Lib/test/test_logging.py", line 1612, in test_listen_config_10_ok ], stream=output) Fi

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That would be test_support.import_module, which at your recommendation > I changed to use importlib.import_module at the last pycon sprint :) I don't think it's the culprit. According to the traceback, importlib is triggered by

[issue7875] test_multiprocessing / importlib failure

2010-02-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Option 3 is ok with me. There could also be option 4: add a special flag (or environment var) to regrtest so as to run all tests with __import__ pulled from importlib. Then we can setup a buildbot with that flag / env var

[issue6608] asctime causing python to crash

2010-02-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon, lemburg priority: normal -> release blocker ___ Python tracker <http://bugs.python.org/issue6608> ___ ___ Py

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It's not only getrandbits(): ** x86 ** >>> random.seed(b'foo') >>> random.random() 0.95824312997798622 ** x86_64 ** >>> random.seed(b'foo') >>> random.random() 0.88694660946819537 --

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: It works when seeding from a single integer, though: >>> import random >>> random.seed(123) >>> random.random() 0.052363598850944326 So I guess it's the seeding-from-an-array which is buggy. -- __

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, it's simple really. When seeding from something else than an integer, seed() takes the hash of the object (instead of considering all its bytes, which might be considered a weakness since you lose entropy -- also, Python hash() is not supposed

[issue7889] random produces different output on different architectures

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, ideally we should drop the automatic hash() and only accept: 1) ints/longs 2) buffer-like objects (and tell people to hash() explicitly if they want to) If that's too disruptive, we should document it. And, for 3.x, provide the following recipe to

[issue7880] sysconfig does not like symlinks

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why would sys.executable be a directory? -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue7880> ___ ___ Pytho

[issue7662] time.utcoffset()

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: The `time` module is written in C, in Modules/timemodule.c. If this is too bothersome to write in C, the function could perhaps be added to the datetime module instead. In any case, we need a proper patch, including unit tests if possible. (and I agree that

[issue6233] ElementTree (py3k) doesn't properly encode characters that can't be represented in the specified encoding

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r78123 (py3k) and r78124 (3.1). I've also removed _escape_cdata() since it wasn't used anymore. Thanks Jerry for the patch. -- resolution: -> fixed stage: -> committed/rejected status

[issue5223] infinite recursion in PyErr_WriteUnraisable

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: As already mentioned, the backport patch isn't up to date. -- ___ Python tracker <http://bugs.python.org/issue5223> ___ ___

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch in r78125 (trunk) and r78126 (py3k). I'm not sure I want to backport it to 2.6/3.1, since it might bite people who relied on the old behaviour. -- resolution: -> accepted stage: patch review -> committed

[issue6472] Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules

2010-02-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Given the size of the patch, it's very difficult to review properly. In any case, could you upload it to http://codereview.appspot.com/ ? -- ___ Python tracker <http://bugs.python.org/i

[issue7418] hashlib : the names of the different hash algorithms

2010-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gps ___ Python tracker <http://bugs.python.org/issue7418> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7898] rlcompleter add "real tab" when text is empty feature

2010-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: On the one hand, it makes sense for the common case of completing using the Tab key. On the other hand, it will appear quite bizarre to people who have another, dedicated key for auto-completion. By the way, rather than inserting a tab character, it should

[issue7505] ctypes not converting None to Null in 64-bit system

2010-02-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: It works in 64-bit mode under Mandriva Linux (gcc 4.4.1), with Python 2.6, 2.7 and 3.2. $ python issue7505.py b = (nil) a = 7, c = 7, d = 7, e = 7, f = 7, g = 7, h = 7, i = 7, j = 7, k = 7, l = 7 I also works with a hand-compiled Python (2.6, 2.7, 3.2

[issue6472] Update ElementTree with upstream changes

2010-02-10 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Inconsistent use of "iterator" in ElementTree doc & diff between Py and C modules -> Update ElementTree with upstream changes ___ Python tracker <http://bugs.

[issue7899] MemoryError While Executing Python Code

2010-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: If these 8 million records are loaded into memory, it can be normal to get a MemoryError. It depends on the complexity of the records (number of fields) and the way they are kept in memory (tuples? dicts?); and of course of the amount of available RAM in

[issue7897] Support parametrized tests in unittest

2010-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure what this brings. It is easy to write a loop iterating over test data. What parametric testing could bring is precise progress and error display (displaying the parameters for each run), but this doesn't seem to be the case here, sin

[issue7897] Support parametrized tests in unittest

2010-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > With paramterized tests *all* the tests are run and *all* failures > > reported. With testing in a loop the tests stop at the first failure. > > +1 to this justification. Parameterized tests are a big win over a > simple for loop

[issue6608] asctime causing python to crash

2010-02-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Retrograding to critical after popular python-dev demand. -- nosy: +pitrou priority: release blocker -> critical ___ Python tracker <http://bugs.python.org/iss

[issue7805] test_multiprocessing failure

2010-02-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, I forgot to mention that the Debian Lenny install I reproduce the bug on is a single core (virtual) machine. -- ___ Python tracker <http://bugs.python.org/issue7

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2010-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think restore_sigpipe=True would be a reasonable default. As RDM says, adding an unit test would be better, but it may be difficult to do so (we probably can't spawn Python itself since it will change the default SIGPIPE handler at startup). Looking a

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

2010-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I tried several times to debug it myself, but I don't understand the > exception cleanup macros in ceval.c (UNWIND_EXCEPTION_HANDLER and > friends, new in Py3). If someone can get me set up to debug them, I > can give it another shot. I a

[issue7173] Cython compiler run crashes CPython 3.1.1 and 3.2

2010-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is it normal that even after the call to next(), the generator frame > contains a reference to the RuntimeError? As long as it's executing the generator it's quite normal. The generator must be able to restore the caller's RuntimeErro

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Just a quick test under Linux (on a dual quad core machine): - with iotest.py and echo_client.py both running Python 2.7: 25.562 seconds (410212.450 bytes/sec) - with iotest.py and echo_client.py both running Python 3.2: 28.160 seconds (372362.459 bytes/sec

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: We could try not to release the GIL when socket methods are called on a non-blocking socket. Regardless, I've re-run the tests under the Linux machine, with two spinning threads: * python 2.7: 25.580 seconds (409914.612 bytes/sec) * python 3.2: 3

[issue7593] Computed-goto patch for RE engine

2010-02-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: You should disassemble the output (or produce assembler from gcc) and check that the various indirect jumps at the end of each case block don't get merged into a single shared indirect jump. Or perhaps it's simply that regular expression matc

[issue7955] TextIOWrapper Buffering Inconsistent Between _io and _pyio

2010-02-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: I agree this deserves documentation. I'm not convinced it's a common need, though. Usually you either use stdin/stdout in binary mode or in text mode, but you don't interleave both quite frequently. -- assignee: -> georg

[issue4174] Performance optimization for min() and max() over lists

2010-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think the patch should just be rejected. Workloads where min() / max() performance is a bottleneck have to be very rare. -- ___ Python tracker <http://bugs.python.org/issue4

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: And here is an experimental patch which enables the "priority requests" mechanism which was in the original new GIL patch. "Experimental" because it only enables them on a couple of socket methods (enough to affect the benchmarks

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-02-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is another patch based on a slightly different approach. Instead of being explicitly triggered in I/O methods, priority requests are decided based on the computed "interactiveness" of a thread. Interactiveness itself is a simple saturat

[issue7996] concurrency problem in regrtest -jX

2010-02-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : While testing GIL changes I ran against an interesting bug in regrtest when run with -j. It turns out that we can't consume a generator from two threads simultaneously. Exception in thread Thread-8: Traceback (most recent call last): File "/ho

[issue8020] Crash in Py_ADDRESS_IN_RANGE macro

2010-02-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: Obviously it also involves changing the code where the macro is invoked. It would be quite non-controversial though. I've a got a more interesting question: how does the memory allocator end up being invoked from two threads at once? Usually m

[issue7849] Improve "test_support.check_warnings()"

2010-02-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: "lazy" sounds like a bad name for that parameter. It makes me think of lazy evaluation, not error checking. There's also the problem that check_py3k_warnings() will check all DeprecationWarnings, not only py3k-specific ones. We need a Py3kDep

[issue8055] Sleeping after acquiring RLock causes acquire to block in other thread

2010-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: You are just having wrong expectations. Releasing a lock doesn't guarantee that any other thread waiting on it will be scheduled preemptively. So, if you re-acquire the lock immediately, the other thread will not necessarily have had the opportuni

[issue887237] Machine integers

2010-03-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le Fri, 05 Mar 2010 02:21:30 +, Alexander Belopolsky a écrit : > > Code duplication is unavoidable because the goal is to give access to > machine arithmetics which means (# types) x (# operations) of very > similar looking functions.

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know what compatibility you are talking about. Py3k deliberately breaks compatibility with many 2.x behaviours that were considered defective or suboptimal. -- nosy: +pitrou ___ Python tracker

[issue8073] Test fail for sha512

2010-03-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- components: +Extension Modules -Tests nosy: +gps type: -> crash ___ Python tracker <http://bugs.python.org/issue8073> ___ ___ Py

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: As Florent said, it is a rule of py3k to avoid implicit encoding/decoding. The fact that it could have made sense for 2.x as well is not relevant, since the change was only done in py3k (and for good reason: we normally try not to break compatibility without

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le Mon, 08 Mar 2010 09:01:19 +, Stefan Behnel a écrit : > > Antoine, in the same comment, you say that it was not backported to > Py2 in order to prevent breaking existing code, and then you ask if > it's difficult to support in l

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> georg.brandl components: +Documentation nosy: +georg.brandl ___ Python tracker <http://bugs.python.org/iss

[issue4180] warnings.simplefilter("always") does not make warnings always show up

2010-03-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: It sounds like it would be cleaner to apply Brett's idea in msg75122, rather than have the user override (and alternate implementations implement) another obscure hook. We have enough hooks that nobody knows about, IMHO. -- nosy: +p

[issue8092] utf8, backslashreplace and surrogates

2010-03-08 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +lemburg, loewis priority: -> normal stage: -> patch review type: -> behavior versions: +Python 3.2 ___ Python tracker <http://bugs.python.o

[issue8091] TypeError at the end of 'make test'

2010-03-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Probably a duplicate of issue5099. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue8091> ___ ___ Python-bug

[issue5099] subprocess.POpen.__del__() AttributeError (os module == None!)

2010-03-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, stderr will contain "[XXX refs]" as the last line with Python compiled in debug mode. The remove_stderr_debug_decorations() function will help you ignore this line. -- ___ Python trac

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The "no header" thing is very much done on purpose, and it's > documented in the upstream ElementTree documentation. I'm sorry, where is that? I can't find it either at http://effbot.org/zone/python

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Ha. There has been a very long temporal window > > You should have had plenty of time to fix it, then, right? Under the condition that someone would have actually reported it, yes. We don't magically fix bugs if nobody (including us) de

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le Thu, 11 Mar 2010 22:03:37 +, Fredrik Lundh a écrit : > > >>> import array > >>> array.array("i", [1, 2, 3]).tostring() > b'\x01\x00\x00\x00\x02\x00\x00\x00\x03\x00\x00\x00' The fact that array is old

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +janssen ___ Python tracker <http://bugs.python.org/issue8108> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7424] segmentation fault in listextend during install

2010-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Can you try to recompile Python in debug mode? ("make distclean && ./configure --with-pydebug"). -- nosy: +pitrou ___ Python tracker <http://bugs

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-11 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not wanting to waste my time anymore on this. -- ___ Python tracker <http://bugs.python.org/issue8047> ___ ___ Python-bug

[issue8047] Serialiser in ElementTree returns unicode strings in Py3k

2010-03-11 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker <http://bugs.python.org/issue8047> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8104] socket.recv_into doesn't support a memoryview as an argument

2010-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suppose recvfrom_into() should also be converted. -- ___ Python tracker <http://bugs.python.org/issue8104> ___ ___ Python-bug

[issue8125] shutil.copytree behavior is inconsistent with copyfile

2010-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > 1. It's inconsistent with copyfile I think it's ok. When using copyfile you can easily check that the destination file doesn't exist, while with copytree it's harder to do the same for *all* destination files. Therefore it makes sens

[issue8104] socket.recv_into doesn't support a memoryview as an argument

2010-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch priority: -> normal stage: -> patch review type: -> feature request Added file: http://bugs.python.org/file16529/recvinto.patch ___ Python tracker <http://bug

[issue8110] subprocess.py doesn't correctly detect Windows machines

2010-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Florent's patch makes sense to me. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue8110> ___ ___ Pytho

[issue4473] POP3 missing support for starttls

2010-03-12 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +janssen priority: -> normal stage: -> patch review type: -> feature request versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.o

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is PYTHON_API_VERSION actually useful right now? It seems to me that we need Martin's ABI stability PEP to be implemented before extension modules can be safely shared between several non-bugfix releases. -- nosy: +loewis, p

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-12 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I posted on openssl-users mailing list. The author of patch (change > SSL_shutdown() behaviour for non blocking socket) replied! > http://marc.info/?l=openssl-users&m=126838806919896&w=2 Interesting read, thank you. AFAICT, his proposed &q

[issue3928] os.mknod missing on Solaris

2010-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Compiles fine under Debian stable. You shouldn't commit to 2.6 until 2.6.5 is released, though. If you want to do so, contact Barry first. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/i

[issue7993] Add IO bandwidth test to ccbench

2010-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r78939 (trunk) and r78940 (py3k). -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Depends on what we want. It just suppresses information that's now > available. What we'd really like is for the caller to recognize that > close() can fail, and should be re-tried if it does. That requires > that we signal the error

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > One thing to think about with > this example is the proper priority of I/O handling generally. What > if, instead of a file, this example code was writing on a pipe to > another process? For that, you would probably want that I/O thread >

[issue7946] Convoy effect with I/O bound threads and New GIL

2010-03-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Oh the situation definitely matters. Although, in the big picture, > most programmers would probably prefer to have fast I/O performance > over slow I/O performance :-). Yes, of course. But that's not the point. We could try to improve GI

[issue7512] shutil.copystat may fail EOPNOTSUPP

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou nosy: +pitrou resolution: -> accepted stage: -> commit review ___ Python tracker <http://bugs.python.o

[issue7512] shutil.copystat may fail EOPNOTSUPP

2010-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: For the record, this seems to break Mercurial on NFS-mounted repositories: http://www.selenic.com/pipermail/mercurial/2010-March/030716.html -- ___ Python tracker <http://bugs.python.org/issue7

[issue7512] shutil.copystat may fail EOPNOTSUPP

2010-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Barry, I suppose this doesn't warrant being a release blocker for 2.6.5, but in any case you're welcome to advise. -- nosy: +barry ___ Python tracker <http://bugs.python.

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Will apply after 2.6.5. -- assignee: -> pitrou resolution: -> accepted stage: patch review -> commit review ___ Python tracker <http://bugs.python.o

[issue7682] Optimisation of if with constant expression

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger ___ Python tracker <http://bugs.python.org/issue7682> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2746] ElementTree ProcessingInstruction uses character entities in content

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox resolution: accepted -> fixed status: pending -> closed ___ Python tracker <http://bugs.python.org/issue2746> ___ __

[issue3783] dbm.sqlite proof of concept

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- type: behavior -> feature request ___ Python tracker <http://bugs.python.org/issue3783> ___ ___ Python-bugs-list mailing list Un

[issue3580] failures in test_os

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> ___ Python tracker <http://bugs.python.org/issue3580> ___ ___ Python-bugs-list mailing list Unsubscri

[issue3581] failures in test_uuid

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> ___ Python tracker <http://bugs.python.org/issue3581> ___ ___ Python-bugs-list mailing list Unsubscri

[issue1518] Fast globals/builtins access (patch)

2010-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: There probably isn't any point in such a complication, until perhaps we have a JIT that magnifies the improvement. (but I assume the JIT will be able to treat references to globals and builtins as "frozen" usin

[issue1518] Fast globals/builtins access (patch)

2010-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks Collin, recommend closing then. -- ___ Python tracker <http://bugs.python.org/issue1518> ___ ___ Python-bugs-list mailin

[issue477863] New gc work

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +flox ___ Python tracker <http://bugs.python.org/issue477863> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue477863] Print warning at shutdown if gc.garbage not empty

2010-03-17 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> needs patch title: New gc work -> Print warning at shutdown if gc.garbage not empty versions: +Python 3.2 -Python 3.1 ___ Python tracker <http://bugs.python.org/is

[issue8104] socket.recv_into doesn't support a memoryview as an argument

2010-03-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in trunk, and additional tests ported to py3k. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue8118] PYTHON_API_VERSION needs to be bumped?

2010-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > But should PYTHON_API_VERSION be increased for the 2.7 release? Sounds like a good idea. -- ___ Python tracker <http://bugs.python.org/iss

[issue8154] os.execlp('true') crashes the interpreter on 2.x

2010-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: Crash reproduced under Mandriva Linux 2010.0 (glibc-2.10.1-6.2mnb2). Stack trace is as follows: (gdb) bt #0 0x7fb59f2eba9a in strrchr () from /lib64/libc.so.6 #1 0x004010ae in ?? () #2 0x00400ff3 in ?? () #3 0x7fb59f29091d in

[issue8173] test_subprocess leaks

2010-03-18 Thread Antoine Pitrou
New submission from Antoine Pitrou : test_subprocess has been leaking since the recent changes in py3k: test_subprocess leaked [2, 2] references, sum=4 -- assignee: gregory.p.smith components: Library (Lib), Tests messages: 101286 nosy: gregory.p.smith, pitrou priority: normal severity

[issue8084] pep-0370 on osx duplicates existing functionality

2010-03-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +tarek ___ Python tracker <http://bugs.python.org/issue8084> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7316] Add a timeout functionality to common locking operations

2010-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a new patch fixing most of your comments. A couple of answers: > I believe we can support arbitrary values here, subject to floating > point rounding errors, by calling lock-with-timeout in a loop. I'm not > sure whether that's

[issue7316] Add a timeout functionality to common locking operations

2010-03-20 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15795/timedlock4.patch ___ Python tracker <http://bugs.python.org/issue7316> ___ ___ Python-bug

[issue1628484] Python 2.5 64 bit compile fails on Solaris 10/gcc 4.1.1

2010-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r79218 (trunk), r79220 (2.6), r79221 (py3k), r79222 (3.1). Thanks! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: I committed the patch to trunk (r79226), only to discover that it caused occasional failures in test_ftplib: $ ./python -m test.regrtest -F test_ftplib test_ftplib test_ftplib Exception in thread Thread-116: Traceback (most recent call last): File "

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: (using SSL_MODE_AUTO_RETRY doesn't fix the test_ftplib issue) -- ___ Python tracker <http://bugs.python.org/issue3890> ___ ___

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: The intuitive explanation seems to be: - there are some bytes available for reading on the *TCP socket*, therefore asyncore calls the read handler - however, there are not enough bytes for OpenSSL to actually decrypt any data, which is why we get

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This last issue seems related to SSL 0.9.8m: > http://bugs.python.org/issue8108 I don't think so: $ rpm -qv openssl openssl-0.9.8k-5.1mdv2010.0 -- ___ Python tracker <http://bugs.python

[issue3890] ssl.SSLSocket.recv() implementation may not work with non-blocking sockets

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The patch seems ok to me. This is how it was supposed to be in the > first place if ssl.py behaved as expected with non blocking sockets. Ok, patch applied. In light of the recv() and recv_into() implementation change, I also think we should

[issue8108] test_ftplib fails with OpenSSL 0.9.8m

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I finally agree that test_ftplib should be patched. The patch isn't exactly correct: it should ideally retry the unwrap() call later, rather than simply ignore the error. But since it's just used for testing, it looks sufficient. (we proba

[issue7512] shutil.copystat may fail EOPNOTSUPP

2010-03-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I committed the simple patch in r79299 (trunk), r79300 (2.6), r79301 (py3k), r79302 (3.1). Tarek suggested a test could be added for this, assigning the issue to him. -- assignee: pitrou -> tarek nosy: +tarek stage: commit review -> com

[issue8205] test_multiprocessing failure

2010-03-22 Thread Antoine Pitrou
New submission from Antoine Pitrou : r79165 seems to be the culprit Traceback (most recent call last): File "/home/antoine/cpython/trunk/Lib/test/regrtest.py", line 864, in runtest_inner indirect_test() File "/home/antoine/cpython/trunk/Lib/test/test_multiprocessing.py&q

<    42   43   44   45   46   47   48   49   50   51   >