Valery Khamenya added the comment:
Amaury, I followed your advice. All relevant changes of 3.2 are backported via
the patch attached.
P.S. now I can install Twisted using pypy too. "pypy setup.py install" works
fine for me.
--
keywords: +patch
status: pending -> op
Valery Khamenya added the comment:
"I can't reproduce this problem in either 2.7.2 or 3.3.0a0."
You probably mean CPython implementation of Python. No, I didn't mean this
implementation.
"Do you mean that this problem is only reproducible when the attached
script is
Valery Khamenya added the comment:
the problem seems to be fixed with the patch attached.
Thanks go to fijal@freenode
--
keywords: +patch
Added file: http://bugs.python.org/file23348/urllib2.patch
___
Python tracker
<http://bugs.python.
New submission from Valery Khamenya :
The attached file reproduces 3 types of FD leaks and leads to the error like:
IOError: [Errno 24] Too many open files: '/tmp/1019'
For example if executed with pypy.
--
components: IO, Library (Lib)
files: zipfiletest.py
messages: 1
Valery Khamenya added the comment:
by the way, timeout parameter should be set to 0.2 as for my 13Mbit ADSL line.
With 0.002 it is not reproducible for my environment
--
___
Python tracker
<http://bugs.python.org/issue13
New submission from Valery Khamenya :
Explanation from dablitz's comment at https://bugs.pypy.org/issue867 :
urllib2 in the stdlib leaks fd's if an exception is raised while opening a
connection. The issue occurs due to a socket being opened then an exception
being raised before
Valery Khamenya added the comment:
Guys, in my item 2 the simplistic goal was stated clearly: open, read and close.
Do you confirm that this basic sequence is not supported by urllib2 under 2.7 ?
(I just requested for a tiny documentation update entry)
regards,
Valery
Valery Khamenya added the comment:
Terry, Senthil, thanks, for replying to this ticket. OK, to the question:
1. @Terry, here is the full example as for CPython 2.7 I am talking about and
the output:
#
from urllib2 import Request, build_opener
request = Request('
New submission from Valery Khamenya :
The following intuitive construction
with urllib2.build_opener().open() as:
...
leads to AttributeError: addinfourl instance has no attribute '__exit__'
http://docs.python.org/library/urllib2.html says almost nothing about concept
of closi
Valery Khamenya added the comment:
Guys, do you expect anythig else from me in respect to this issue? Let me know
it before my non-stopable garbage collector wipes all the details from my brain
away :)
--
___
Python tracker
<h
Valery Khamenya added the comment:
Hi Éric, thanks for guiding.
So, attached is the concatenation of two forward unified diffs for
rlcompleter.py and test_rlcompleter.py -- both as of py3k trunk. Tested against
Python 3.1.2 though.
P.S. hm, py3k code appeared to be surprisingly nicer -- no
New submission from Valery Khamenya :
rlcompleter.py has no test_rlcompleter in trunk, see
http://svn.python.org/view/python/trunk/Lib/test/
There is one in 2.7 though.
Remark: the issue http://bugs.python.org/issue10351 introduces autocompletion
patch and comes with new tests. So, one may
New submission from Valery Khamenya :
1. The patch introduces autocompletion for keys in dictionaries (patch attached)
2. The patched rlcompleter as such works OK for unicode dictionary keys as
well. All tests pass OK. HOWEVER, readline's completion mechanism seem to be
confused with un
13 matches
Mail list logo