[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > pitrou: actually that seems a bit suspect now... you need to handle > 'data' differently depending on its type, Yes, but you can't know all appropriate types in advance, so it's better to try and catch the TypeError. I don't

[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > len(data) will raise anyway. > > No, it won't, if the iterable happens to be a sequence. Well, it seems the patch is confused between iterable and iterator. Only iterators have a __next__, but they usually don't have a __len__. T

[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: One way to check that it's bytes-compatible is to take a memoryview of it: >>> memoryview(b"abc") >>> memoryview(bytearray(b"abc")) >>> memoryview(array.array('b', b"abc")) >>&

[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - Lets have the ValueError raised from the urllib/request.py. Changing > it to isinstance(data,collections.Iterable) as Antoine suggested is > okay here too. Xuanji is right: it's not. We want bytes to be accepted, and it

[issue10576] Add a progress callback to gcmodule

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > You are right, Antoine. > How about a string and a dict? the string can be "start" and "stop" > and we can add interesting information to the dict as you suggest. Looks good to me. --

[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Answering to myself, sorry. memoryview() does return the right answer of whether the object supports the buffer interface, *however* it doesn't mean the len() will be right. For example, take an array.array of ints: >>> memoryview(array.arr

[issue10589] I/O ABC docs should specify which methods have implementations

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

[issue8685] set(range(100000)).difference(set()) is slow

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Raymond, unless you object, I'd like to commit this before beta1. -- ___ Python tracker <http://bugs.python.org/i

[issue8685] set(range(100000)).difference(set()) is slow

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Modified patch committed in r86905. Thanks! -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue10589] I/O ABC docs should specify which methods have implementations

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: What does "unsupported" mean? "Abstract" would look more exact. -- ___ Python tracker <http://bug

[issue10591] test_os failure in refleak runs

2010-11-30 Thread Antoine Pitrou
New submission from Antoine Pitrou : $ ./python -m test.regrtest -R 3:2 test_os [1/1] test_os [35351 refs] [35351 refs] [35352 refs] beginning 5 repetitions 12345 [35351 refs] [35351 refs] [35352 refs] test test_os failed -- Traceback (most recent call last): File "/home/antoine/py3k/__

[issue10589] I/O ABC docs should specify which methods have implementations

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > What does "unsupported" mean? "Abstract" would look more exact. > > It means they raise io.UnsupportedOperation when called (unless the > subclass overrides them to do something else). > > They are not marked wit

[issue10589] I/O ABC docs should specify which methods have implementations

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Other suggestions for a better name for that column are certainly welcome. :-) > > "Stub Methods"? Fine with me. -- ___ Python tracker <http://bugs

[issue10478] Ctrl-C locks up the interpreter

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

[issue6594] json C serializer performance tied to structure depth on some systems

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Raymond, I'll follow up in private with Shawn. All the recent performance improvements done on JSON (in 3.2) mean the issue can be closed IMO. -- resolution: -> out of date status: open -> closed ___

[issue3243] Support iterable bodies in httplib

2010-11-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > just to confirm: we WANT array.array("I", [1,2,3]) to have a content- > length of 12, right? Yes, since it will emit 12 bytes in the body (you could actually have a test for it). -- ___ Pytho

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Senthil: +try: + self.sock.sendall(data) Indentation problem here. +if isinstance(data,str): +content_length = len(data) I'm not sure I understand. What does sending an unicode string

[issue10594] Typo in PyList_New doc.

2010-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: You don't need to backport, we'll do it ourselves. Can someone from the doc team please review/commit? -- assignee: eli.bendersky -> d...@python nosy: +pitrou stage: -> patch review ___ Pytho

[issue8805] urllib should support SSL contexts

2010-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: HTTPSHandler now allows to pass an SSLContext and the old API should be buried in the ground, closing. -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue10596] modulo operator bug

2010-12-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue10596> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3243] Support iterable bodies in httplib

2010-12-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > if not request.has_header('Content-length'): > if (not hasattr(data, '__read__') and What is __read__ supposed to be? > 2) Can call len but not buffer: assume len == #byt

[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Just wanted to post this so there weren't any illusions about the > patch being a big win. Daniel has already posted benchmark numbers, I would trust them rather than any theoretical speculation about whether the patch is interes

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Since the conventional mathematical symbols for the additional > imaginary units of quaternions are j and k, confusion is bound to > happen. > > My preferred solution is to limit PYTHONIMAGINARYSYMBOL values to "i", > "

[issue9915] speeding up sorting with a key

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! -- ___ Python tracker <http://bugs.python.org/issue9915> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10562] Change 'j' for imaginary unit into an 'i'

2010-12-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 02 décembre 2010 à 22:29 +, Mark Dickinson a écrit : > Mark Dickinson added the comment: > > Maybe we need a complex analog to datetime.strptime: > > complex.strpcx('(3 + 4i)', '(%R + %Ii)') -> 3 + 4j

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This issue remembers me #3618 (opened 2 years ago): I proposed to use > RLock instead of Lock, but RLock was implemented in Python and were > too slow. Today, we have RLock implemented in C and it may be possible > to use them. Would it solve th

[issue2380] Raise a Py3K warning for catching nested tuples with non-BaseException exceptions

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not all incompatibilities have to raise a py3k warnings; AFAIK, only those which are not handled by 2to3 do. -- nosy: +benjamin.peterson, pitrou ___ Python tracker <http://bugs.python.org/issue2

[issue10562] Change 'j' for imaginary unit into an 'i'

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

[issue10478] Ctrl-C locks up the interpreter

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r86981 (3.2), r86987 (3.1) and r86992 (2.7). Thanks! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10272] SSL timeouts should raise socket.timeout, not a generic SSLError

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Requalifying this issue so that the ssl module is fixed to raise socket.timeout on socket timeouts, which is not only more logical but much more useful (since you can then specifically handle this error). -- priority: low -> normal title:

[issue10272] SSL timeouts should raise socket.timeout, not a generic SSLError

2010-12-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86997. I won't backport it to bugfix branches since it is a small compatibility breach. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python

[issue10626] test_concurrent_futures failure under Windows Server 2008

2010-12-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : See this buildbot log: http://www.python.org/dev/buildbot/all/builders/AMD64%20Windows%20Server%202008%203.x/builds/198/steps/test/logs/stdio == FAIL: test_done_callback_raises

[issue6210] Exception Chaining missing method for suppressing context

2010-12-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: It is not possible to do this using a method, since "raise exc" will add a context anyway. So, if this is desired, it needs some new syntax and should be discussed on python-ideas. (I don't think this is very important personally. Tra

[issue10626] test_concurrent_futures failure

2010-12-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Same one under Ubuntu: http://www.python.org/dev/buildbot/all/builders/PPC64%20Ubuntu%203.x/builds/265/steps/test/logs/stdio -- title: test_concurrent_futures failure under Windows Server 2008 -> test_concurrent_futures fail

[issue6101] SETUP_WITH

2010-12-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Really ? Is this documented somewhere ? Do you know of any other case > where a number for an existing opcode was changed ? I can't find any > so far. Opcodes are an implementation detail. If you are fiddling with opcodes, how will your c

[issue6101] SETUP_WITH

2010-12-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Well, I just checked, and from 2.3 to 2.6 opcodes were only added, > existing ones were never renumbered. > > 2.7 however reshuffled a bunch of them, for no apparent reason at all: LIST_APPEND was renumbered because it gained an argument. There

[issue10626] test_concurrent_futures failure

2010-12-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Minimal command line for reproducing: ./python -m test -uall test_pydoc test_logging test_concurrent_futures [1/3] test_pydoc [46429 refs] [46430 refs] [46430 refs] [46429 refs] [46430 refs] [46425 refs] [46425 refs] [2/3] test_logging [3/3

[issue10576] Add a progress callback to gcmodule

2010-12-05 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue10576> ___ ___ Python-

[issue10631] ZipFile and current directory change

2010-12-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't know, but I wouldn't call it a bug either. In general it's not recommended to change the current directory except at the very beginning of your application. -- nosy: +pitrou ___ Python

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2010-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I just tried using script_helper in a new test, so I have a couple of > comments. > > I don't see stdout and stderr being conflated, it looks to me like > they are returned separately, at least by the assert methods. That's b

[issue10626] test_concurrent_futures implicitly installs a logging handler on import

2010-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The problem of avoiding interfering with application level handlers > while having unraisable errors visible by default is probably the > biggest reason past attempts to get the standard library using the > logging module internally haven&#

[issue10626] test_concurrent_futures implicitly installs a logging handler on import

2010-12-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Wow, I didn't realize that's how logging worked. My understanding was > a module should just get a logger and log messages, and if the > application didn't do any setup beforehand, the first logging call > would cause messages

[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Which OS is it? It works for me: Traceback (most recent call last): File "socketbug.py", line 24, in print(con.send(bytes("Hello", "ascii"))) socket.error: [Errno 32] Broken pipe Regardless, the error returned is the on

[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I tried on both 3.1.3 and 3.2. It works (raises an error) under Mandriva; I've just tested under Debian stable and it fails. Looking at netstat, the difference seems to be that "nc" closes the TCP connection fine under Mandriva when killed, an

[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > This is not consistent with the results reproduced above, however, the > results from above are exactly what should happen. Maybe there should > be a remark, that the return value of sendall (and send) may be system > dependent. Pretty much al

[issue9517] Make test.script_helper more comprehensive, and use it in the test suite

2010-12-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Having posted that it occurs to me that it could be useful to have the > _remove_refcount function in test.support There's already strip_python_stderr() :) -- ___ Python tracker <http://b

[issue10655] Wrong powerpc define in Python/ceval.c

2010-12-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: How about accepting either of these symbols? Do you want to provide a patch? -- nosy: +pitrou versions: +Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue10

[issue10655] Wrong powerpc define in Python/ceval.c

2010-12-08 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mercredi 08 décembre 2010 à 23:06 +, Dave Malcolm a écrit : > Dave Malcolm added the comment: > > One of RH's gcc gurus told me in IRC that: > __ppc__ is not a standard powerpc*-linux macro > __PPC__ or __powerpc__ is Keep

[issue10663] configure shouldn't set a default OPT

2010-12-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : The configure.in sets a default OPT of "-O" if none was set by the user, but I think that's wrong. The user could simply pass optimization flags as part of CFLAGS instead, and then the contents of OPT could conflict with that of CFLAGS (wh

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think TAB is the key expected by most people, so let's make it the default. As for the location, site.py is an adequate one IMO. -- components: +Library (Lib) -Interpreter Core versions: +Python 3.2 ___ P

[issue10667] collections.Counter object in C

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: When adding some C accelerations, we often try to keep a pure Python alternative in the stdlib, since it can then benefit other Python implementations (and easy prototyping). If you move some of the methods inside a mixin and use multiple inheritance with

[issue6422] timeit called from within Python should allow autoranging

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not sure why you chose 0.11 here. It should probably be 0.2 as in the command-line code. As for applying the patch, this can't be done before 3.2 is released. -- nosy: +pitrou stage: unit test needed -> patc

[issue10644] socket loses data, calling send()/sendall() on invalid socket does not report error and returns all bytes as written

2010-12-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, closing as invalid. -- resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue10188] tempfile.TemporaryDirectory may throw errors at shutdown

2010-12-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: A test still fails under Windows: == FAIL: test_warnings_on_cleanup (test.test_tempfile.test_TemporaryDirectory

[issue5863] bz2.BZ2File should accept other file-like objects.

2010-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sorry, I'm giving up. Indeed, I think only an extensive rewrite could fulfill the feature request here. > The copyright notice for bz2module.c lists "Gustavo Niemeyer" as one > of the holders, is he the maintainer? Maybe he should b

[issue1731717] race condition in subprocess module

2010-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems the canonical spelling is SIGCHLD. SIGCLD doesn't exist everywhere and it produces test failures under OS X: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%203.x http://www.python.org/dev/buildbot/all/builders/AMD64%20Snow%20Le

[issue6559] add pass_fds paramter to subprocess.Popen()

2010-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: It seems there are (intermittent?) test failures: == FAIL: test_pass_fds (test.test_subprocess.POSIXProcessTestCase

[issue8106] SSL session management

2010-12-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue8106> ___ ___ Python-bugs-list mailing list Unsub

[issue10706] kill runtests.sh

2010-12-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : There are two official ways to run tests: - "make test" for beginners - "./python -m test [etc.]" for experts runtests.sh serves no useful purpose and had completely outdated reporting, making it potentially confusing for newcomers who

[issue10707] compileall is broken

2010-12-14 Thread Antoine Pitrou
New submission from Antoine Pitrou : $ ./python -m compileall Traceback (most recent call last): File "/home/antoine/py3k/__svn__/Lib/runpy.py", line 160, in _run_module_as_main "__main__", fname, loader, pkg_name) File "/home/antoine/py3k/__svn__/Lib/runpy.p

[issue10707] compileall is broken

2010-12-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +r.david.murray ___ Python tracker <http://bugs.python.org/issue10707> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10453] Add -h/--help option to compileall

2010-12-14 Thread Antoine Pitrou
Antoine Pitrou added the comment: Works under Windows 7. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10453> ___ ___ Python-bugs-list mailin

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +gregory.p.smith ___ Python tracker <http://bugs.python.org/issue1975> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: First, I don't think the resource module needs to be used here. Second, I don't see why getcode() would return 200. If no valid response was received then some kind of error should certainly be raised, shouldn't it? -

[issue10706] kill runtests.sh

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r87261. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10708] Misc/porting should be folded in to the development FAQ

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : Title says it all. -- assignee: brett.cannon components: Documentation messages: 124023 nosy: brett.cannon, pitrou priority: normal severity: normal status: open title: Misc/porting should be folded in to the development FAQ versions: Python 3.2

[issue10656] "Out of tree" build fails on AIX 5.3

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sable ___ Python tracker <http://bugs.python.org/issue10656> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10709] Misc/AIX-NOTES needs updating

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : Sébastien, would you like to provide an updated version of that file? The current contents look hopelessly outdated. -- assignee: d...@python components: Documentation messages: 124024 nosy: d...@python, pitrou, sable priority: normal severity

[issue10710] Is Misc/setuid-prog.c still needed?

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : I guess it was created for ease of hosting CGI scripts written in Python, but is it still useful (or even functional) nowadays? Last updated goes back to 1998. -- components: Demos and Tools messages: 124025 nosy: brett.cannon, gvanrossum, jhylton

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, looking at the code, readline() without any parameter is used all over http.client, so fixing only this one use case doesn't really make sense. -- stage: unit test needed -> needs patch __

[issue6791] httplib read status memory usage

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's true. Near the bottom of the code, it says: > > # The status-line parsing code calls readline(), which normally > # get the HTTP status line. For a 0.9 response, however, this is > # actually the first line of the body! > &

[issue10711] Rip off HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
New submission from Antoine Pitrou : Both http.client and http.server claim to support HTTP 0.9. The HTTP 1.0 RFC was filed in 1996, and 1.1 is most commonly used nowadays. We should probably rip off 0.9 support. -- components: Library (Lib) messages: 124032 nosy: jhylton, orsenthil

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Rip off HTTP 0.9 support -> Rip out HTTP 0.9 support ___ Python tracker <http://bugs.python.org/issue10711> ___ ___ Py

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file20052/removehttp09.patch ___ Python tracker <http://bugs.python.org/issu

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker <http://bugs.python.org/issue10711> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file20052/removehttp09.patch ___ Python tracker <http://bugs.python.org/issue10711> ___ ___ Python-bug

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file20053/removehttp09.patch ___ Python tracker <http://bugs.python.org/issue10711> ___ ___ Python-bug

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > But http.client needs to be able to communicate with any random server > created since the dawn of time. Well, that sounds a bit unreasonable... > Often on 8 bit microcontrollers that haven't been updated since 1994. Anyone with such need

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Would it be worth keeping (but modifying) test_http_0_9 to verify that > the server complains in the expected way? Actually, I don't think the server will complain, since the request is legit. It will send back a full response with status line

[issue10711] Rip out HTTP 0.9 support

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch with adapted tests. -- Added file: http://bugs.python.org/file20061/removehttp09-2.patch ___ Python tracker <http://bugs.python.org/issue10

[issue2576] httplib read() very slow due to lack of socket buffer

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: This was apparently fixed in r69209. -- resolution: -> out of date status: open -> closed ___ Python tracker <http://bugs.python.org/

[issue6785] IncompleteRead / BadStatus when parsing http://peakoil.mobi

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: That server simply doesn't respect the HTTP RFC. It fails to send a last "0" line to indicate that the chunked transfer has completed. -- nosy: +pitrou resolution: -> invalid status: open -> pending _

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker <http://bugs.python.org/issue7013> ___ ___ Python-bugs-list mai

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.org/iss

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: pitrou -> nosy: +mark.dickinson ___ Python tracker <http://bugs.python.org/issue9990> ___ ___ Python-bugs-list mai

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

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

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-12-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- dependencies: -Make gettimeofday available in time module ___ Python tracker <http://bugs.python.org/issue8844> ___ ___ Python-bug

[issue10538] PyArg_ParseTuple("s*") does not always incref object

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

[issue5218] Check for tp_iter in ceval:ext_do_call before overriding exception message

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

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can reproduce the crash under 2.7, but not 2.6 or 3.x here. So it might be a separate issue. -- ___ Python tracker <http://bugs.python.org/issue10

[issue10254] unicodedata.normalize('NFC', s) regression

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: After a bit of debugging, the crash is due to the "skipped" array being overflowed in nfc_nfkc() in unicodedata.c. "cskipped" goes up to 21 while the array only has 20 entries. This happens in all branches (but only crashes in 2.7 ri

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think this is a bit misleading. These functions are only needed if you are implementing a container. For the general case where you don't display another Python object in your repr() (or you only display objects which are themselves atomic, such as st

[issue8753] Py_ReprEnter and Py_ReprLeave are undocumented

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > How about if I change the first sentence to the following? > > Properly implementing :attr:`tp_repr` for container types requires > special recursion handling. This looks good to me. -- __

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2010-12-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r87292. Thank you for doing this! -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue6791] httplib read status memory usage

2010-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, removing 0.9 support doesn't make this obsolete, does it? -- status: pending -> open ___ Python tracker <http://bugs.python.or

[issue6791] httplib read status memory usage

2010-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It does. Doesn't it? Because I saw in your patch that you fall back on > HTTP 1.0 behaviour when the server does not return a status line and > in which case a Exception will be raise and this issue won't be > observed. I don't thi

[issue10717] Multiprocessing module Pickling unPickling issues

2010-12-16 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +asksol, jnoller versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issue10

[issue10714] httpserver request length

2010-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. First, there's no need to use multiprocessing here. Threading would be sufficient. Second, you shouldn't use an explicit port number, but instead let the server bind itself to whatever port is available (I think 0 using a

[issue10714] httpserver request length

2010-12-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: It turns out the test could be simplified a lot by reusing the existing infrastructure. I've committed the modified patch in r87317 (3.2), r87318 (3.1) and r87320 (2.7). Thank you! -- resolution: -> fixed stage: -> committed/rejected s

[issue10720] test_threadsignals hang on FreeBSD 6.4

2010-12-16 Thread Antoine Pitrou
New submission from Antoine Pitrou : The title says it all. This is related to r87292 (issue8844). -- components: Library (Lib), Tests messages: 124141 nosy: db3l, pitrou, rnk priority: normal severity: normal status: open title: test_threadsignals hang on FreeBSD 6.4 type: behavior

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