Ronald Oussoren added the comment:
Your analysis looks correct to me, that is raise e is supposed to raise the
exception caught by the first try block.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18893
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18904
___
___
Roundup Robot added the comment:
New changeset 50e583f20d78 by Ethan Furman in branch 'default':
Close #18745: Improve enum tests in test_json for infinities and NaN.
http://hg.python.org/cpython/rev/50e583f20d78
--
nosy: +python-dev
resolution: - fixed
stage: patch review -
Stefan Krah added the comment:
Is the distutils freeze still in place? If not, I'll commit initfunc2.patch.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9709
___
Berker Peksag added the comment:
How about adding a codecs.register like public API for 3.4+?
import urllib.parse
urllib.parse.schemes.register('redis', 'rtmp')
or:
urllib.parse.urljoin('redis://localhost:6379/0', '/1', scheme='redis')
or just:
Matěj Stuchlík added the comment:
Doing 'valgrind --suppressions=valgrind-python.supp ./python
Lib/tests/regrtest.py test_ssl.py' I'm getting
==11944== LEAK SUMMARY:
==11944==definitely lost: 32 bytes in 1 blocks
==11944==indirectly lost: 392 bytes in 16 blocks
==11944== possibly
Changes by koobs koobs.free...@gmail.com:
--
nosy: +koobs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15018
___
___
Python-bugs-list mailing
Christian Heimes added the comment:
I can't reproduce the memory leak. valgrind's output doesn't show suspicious
memory leaks.
./configure --with-pydebug --config-cache
valgrind --suppressions=Misc/valgrind-python.supp ./python Lib/test/test_ssl.py
Python 3.4 tip
--
==26085==
Serhiy Storchaka added the comment:
In light of Raymond's comments on code bloat in issue18844, perhaps this
module could be added to PyPi to see whether or not there's interest in this
kind of functionality?
Agree. At first look there are no module which provides such features on PyPI.
Matěj Stuchlík added the comment:
Oh, I only checked the particular commit that fixed this issue in 2.6
(50803d881a92). I am not getting any leaks in 2.6 tip either, so I guess it was
fixed somewhere along the way.
Sorry for the confusion!
--
___
Ronald Oussoren added the comment:
oops. This should be the right patch.
--
Added file: http://bugs.python.org/file31554/issue-18550.txt
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18550
Ronald Oussoren added the comment:
That help() is confused by __dir__ is documented in #16938.
AFAIK help is fairly fragile in its expectations of the attributes present on
classes and the correspondence between dir(cls) and list(cls.__dict__), and
that is something that could be fixed in
Sigmund Augdal added the comment:
Can someone please apply this patch or provide a reason why it should not be
applied?
--
nosy: +Sigmund.Augdal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13323
Sigmund Augdal added the comment:
I'm also affected by this. Could someone please apply the patch or provide some
reason why it could not be applied?
--
nosy: +Sigmund.Augdal
___
Python tracker rep...@bugs.python.org
Senthil Kumaran added the comment:
Sigmund: Sorry for the delay. I shall act on this.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue13323
___
Serhiy Storchaka added the comment:
Here is a patch which combines both Kang-Hao's patches, synchronized with tip,
fixed and optimized.
Unfortunately even optimized this patch slowdown encoding/decoding some data.
Here are some benchmark results (benchmarking tools are here:
Changes by Serhiy Storchaka storch...@gmail.com:
--
keywords: +needs review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18818
___
___
Éric Araujo added the comment:
The feature freeze was lifted at PyCon 2013. This patch can be committed in
the default branch. Could you add a test?
--
assignee: tarek - eric.araujo
versions: -3rd party, Python 2.7, Python 3.3
___
Python tracker
Éric Araujo added the comment:
Ignore my comment about a test, you already replied to that :) Please commit.
--
assignee: eric.araujo - skrah
stage: needs patch - commit review
___
Python tracker rep...@bugs.python.org
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - works for me
stage: - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8821
___
Marc-Andre Lemburg added the comment:
You should be able to squeeze out some extra cycles by
avoiding the bit calculations using a simple range check
for ch = 0xd800:
+# if STRINGLIB_MAX_CHAR = 0xd800
+if (((ch1 ^ 0xd800)
+ (ch1 ^ 0xd800)
+ (ch1 ^
New submission from Wieland Hoffmann:
In Python 3 one can use `pydoc -p 0` to start a pydoc HTTP server on an
arbitrary unused port. This works (somewhat) in Python 2 as well, except that
pydoc doesn't tell you which port it's listening on. Applying the attached
patch makes pydoc print the
Serhiy Storchaka added the comment:
Oh, I were blind. Thank you Marc-Andre. Here is corrected patch. Unfortunately
it 1.4-1.5 times slower on UTF-16 encoding UCS2 strings than previous wrong
patch.
--
Added file: http://bugs.python.org/file31557/utf_16_32_surrogates_3.patch
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file31555/utf_16_32_surrogates_2.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12892
___
Serhiy Storchaka added the comment:
But what you will do with discrepancies between Python 2, Python 3 and
simplejson?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18726
___
New submission from Eli Bendersky:
There were numerous discussions and issues in the past about the cross-test
dependencies that sometimes exist because some tests need to muck with import
caches (both on the Python and C level). Some examples:
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - needs patch
type: - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18906
___
Ezio Melotti added the comment:
I have not seen any requests for this change.
That's probably because either people have not realized that their code might
be buggy, or because they have not realized that keyword-only args might be a
solution to this problem (or maybe they did but didn't
Changes by Ethan Furman et...@stoneleaf.us:
--
nosy: +eli.bendersky, ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16938
___
___
Madison May added the comment:
If nothing else, we should document the work around for this issue.
import urllib.parse
urllib.parse.uses_relative.append('redis')
urllib.parse.uses_netloc.append('redis')
urllib.parse.urljoin('redis://localhost:6379/0', '/1')
'redis://localhost:6379/1'
Dmi Baranov added the comment:
isatty is a part of of POSIX sub-system at Windows 5.x (AKA 2000) [1] (file
handling equivalents [2]). I think, we need to remove availability note here.
[1] http://msdn.microsoft.com/en-us/library/f4s0ddew.aspx
[2]
Madison May added the comment:
How about adding a codecs.register like public API for 3.4+?
A codecs style register function seems like an excellent solution to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18828
Serhiy Storchaka added the comment:
Isn't this a duplicate of issue5166?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18850
___
___
Marc-Andre Lemburg added the comment:
On 02.09.2013 18:56, Serhiy Storchaka wrote:
Oh, I were blind. Thank you Marc-Andre. Here is corrected patch.
Unfortunately it 1.4-1.5 times slower on UTF-16 encoding UCS2 strings than
previous wrong patch.
I think it would be faster to do this in
Bob Ippolito added the comment:
Other than when subclassing (which is actively discouraged), I haven't seen
anyone try and use positional args for these APIs. I simply don't think this is
an issue in practice. If you go far enough back in simplejson history, these
module-global functions were
New submission from John Nagle:
urllib2.open for an FTP url does not obey the timeout parameter.
Attached test program times out on FTP open after 21 seconds, even though the
specified timeout is 60 seconds. Timing is consistent; times have ranged from
21.03 to 21.05 seconds. Python
John Nagle added the comment:
Reproduced problem in Python 3.3 (Win32). Error message there is:
Open of ftp://ftp.sec.gov/edgar/daily-index failed after 21.08 seconds:
urlopen error ftp error: TimeoutError(10060, 'A connection attempt failed
because the connected party did not properly
Dmi Baranov added the comment:
I think ugly look is better than silence here. Elazar, can you touch a
optparse too (with some tests - test.support.EnvironmentVarGuard context
manager will be helpful here)?
--
nosy: +dmi.baranov
___
Python tracker
Changes by Zsolt Cserna zsolt.cse...@morganstanley.com:
--
nosy: +csernazs
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18808
___
___
Serhiy Storchaka added the comment:
No, it isn't faster. I tested this variant, it is 1.5x slower.
And simple range checking actually is slower.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12892
Serhiy Storchaka added the comment:
I think ugly look is better than silence here.
Agree. We have two possibilities:
1. Decrease an indentation. There is a lot of blank spaces below option's names.
2. Set some minimal width (10 or 20 characters) and let lines wrap out.
For better look we
Serhiy Storchaka added the comment:
If no one uses positional arguments then converting parameters to keyword-only
will not break any code.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18726
Bob Ippolito added the comment:
My evidence is only anecdotal. I haven't actively searched for code that uses
json/simplejson to try and find cases that are using positional arguments.
One way to test this assumption would be to release a version of simplejson
that deprecates using positional
Madison May added the comment:
Seems like a simple fix -- patch attached.
--
keywords: +patch
nosy: +madison.may
Added file: http://bugs.python.org/file31560/issue18893.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18893
Eli Bendersky added the comment:
As Serhiy points out, this is a duplicate of #5166
--
superseder: - ElementTree and minidom don't prevent creation of not
well-formed XML
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18850
Changes by Eli Bendersky eli...@gmail.com:
--
resolution: - duplicate
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18850
___
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5166
___
___
Python-bugs-list
Charles-François Natali added the comment:
Actually, I think urllib (actually ftplib) handles the timeout correctly.
Here's the result on my Linux box (replacing the server with localhost, with a
firewall rule to drop packets to ftp port):
$ ./python ~/edgartimeouttest3.py
Open of
Eli Bendersky added the comment:
A question that comes up is how should a module signal to regrtest that it
needs to be run in a subprocess?
The most natural approach is to have a special attribute set in the module's
global dict (for example: __REGRTEST_SUBPROCESS__ = True); however, there's
Nick Coghlan added the comment:
An easier hack is likely just a new always run in subprocess container
with submodule names in regrtest.py. It's not elegant, but it will work.
--
___
Python tracker rep...@bugs.python.org
Nick Coghlan added the comment:
Although the well, don't do that then alternative also sounds reasonable,
and better localises the information about how the test should run.
--
___
Python tracker rep...@bugs.python.org
Eli Bendersky added the comment:
An easier hack is likely just a new always run in subprocess container
with submodule names in regrtest.py. It's not elegant, but it will work.
True, that's also an option. I had it in mind in the beginning, but it's
too hacky for my tastes :-) Not doing
Changes by Eli Bendersky eli...@gmail.com:
--
Removed message: http://bugs.python.org/msg196813
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18906
___
Eli Bendersky added the comment:
An easier hack is likely just a new always run in subprocess container
with submodule names in regrtest.py. It's not elegant, but it will work.
True, that's also an option. I had it in mind in the beginning, but it's
too hacky for my tastes :-) Not doing
Tim Peters added the comment:
I'm closing this. While it makes a big difference for a cwr coded in Python,
it turn out to be minor in C. The extra complications (more state to remember
and update across next() invocations) isn't worth the minor speedup in C.
--
resolution: -
New submission from Elazar Gershuni:
Inner sections leak out from enum to the general datatypes index:
http://docs.python.org/3.4/library/datatypes.html
(sections 8.14 - 8.17)
--
assignee: docs@python
components: Documentation
messages: 196816
nosy: docs@python, elazar
priority: normal
Elazar Gershuni added the comment:
here's a patch.
--
keywords: +patch
Added file: http://bugs.python.org/file31561/enumcontain.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
Changes by Eli Bendersky eli...@gmail.com:
--
nosy: +eli.bendersky, ethan.furman
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
___
Changes by Eli Bendersky eli...@gmail.com:
--
stage: - patch review
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
Changes by Elazar Gershuni elaz...@gmail.com:
Added file: http://bugs.python.org/file31562/enumindent.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
Changes by Elazar Gershuni elaz...@gmail.com:
Added file: http://bugs.python.org/file31563/enumplusminor.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
Changes by Elazar Gershuni elaz...@gmail.com:
Added file: http://bugs.python.org/file31564/enumplusminor.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
Changes by Elazar Gershuni elaz...@gmail.com:
Removed file: http://bugs.python.org/file31563/enumplusminor.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18908
___
Jakub Stasiak added the comment:
I'm just gonna leave my implementation of chunk function (not sure about the
name yet) here, it's basically what itertools.chunks from the previous patch is
but it works for arbitrary iterables + few tests and documentation. The last
chunk is currently
New submission from Christoph Gohlke:
Using 64 bit CPython 2.6.6, 2.7.5, 3.2.5 or 3.3.2, numpy 1.7.1 and matplotlib
1.3.0 on Windows 8 64 bit, the following script segfaults most of the times:
```
# allocate ~4GB fragmented data
import numpy
a = [numpy.zeros(2**i, 'uint8') for i in range(1,
Changes by Christoph Gohlke cgoh...@uci.edu:
Added file:
http://bugs.python.org/file31568/fix_tkapp_interpaddr-win-amd64-py3.3.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18909
___
Changes by Christoph Gohlke cgoh...@uci.edu:
Added file: http://bugs.python.org/file31566/tkapp_interpaddr_crash_win-amd64.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18909
___
Changes by Christoph Gohlke cgoh...@uci.edu:
--
keywords: +patch
Added file:
http://bugs.python.org/file31567/fix_tkapp_interpaddr-win-amd64-py2.7.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18909
New submission from Phil Webster:
Started writing the tests for textView.py.
--
components: IDLE
files: test_textview.patch
keywords: patch
messages: 196820
nosy: JayKrish, Todd.Rovito, philwebster, terry.reedy
priority: normal
severity: normal
status: open
title: IDLE: Unit test for
Mikhail Traskin added the comment:
Peter, thank you for letting me know that views work with list, I was not aware
of this. This is indeed the best solution and it also keeps the DictWriter
interface unchanged.
Terry, attached patch contains the DictWriter change and a test case in
Andrew Svetlov added the comment:
Agree
--
nosy: +asvetlov
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18553
___
___
Python-bugs-list mailing
Toshio Kuratomi added the comment:
So, is this a security issue? I've been wondering if I should apply the
attached patch to the backports-ssl_match_hostname module on pypi. I was
hoping there'd be some information here as to whether this will be going into
the stdlib in the future.
Thus
New submission from Brian Vanderburg:
When I have unicode data to save, it seems that it does not save correctly,
giving an encode error. I know this exists on 2.7 and from checking the code in
xml/dom/minidom.py it looks like it does in 3.2 as well.
The method call that seem to be
73 matches
Mail list logo