Stephen J. Turnbull added the comment:
I'm thinking this may be overengineering, but I may as well post it and find
out for sure. :-) Is it worth encapsulating MIME types? They're really
pairs as far as mail handling applications are concerned, but they have a
string representation. So
New submission from Jeroen Van Goey:
The sample code in the itertools.count documentation should be indented by 4
spaces.
For 2.7.4: lines 3429 till 3432 in
http://hg.python.org/releasing/2.7.4/file/026ee0057e2d/Modules/itertoolsmodule.c#l3429
For 3.4.0a1: lines 3981 till 3984 in
Changes by Jeroen Van Goey jeroen.vang...@gmail.com:
--
hgrepos: -207
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18912
___
___
Jeroen Van Goey added the comment:
Patch for Python 2.7.4 attached
--
keywords: +patch
Added file: http://bugs.python.org/file31571/2.7itertoolsmodule.c.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18912
Antoine Pitrou added the comment:
We don't have to align EVERY data structure. But I do have immediate
beneficial use cases for set tables and for data blocks in deque
objects.
Can you explain what the use cases are, and post some benchmarking code?
Also, what would be the strategy? Would
Jeroen Van Goey added the comment:
Patch for Python 3.4.0a1 attached
--
Added file: http://bugs.python.org/file31572/3.4itertoolsmodule.c.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18912
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com:
Removed file: http://bugs.python.org/file31518/fix_for_27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18849
___
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com:
Added file: http://bugs.python.org/file31573/temp_dir_exists_retry_27.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18849
___
Stefan Behnel added the comment:
This would make it possible to layer XMLPullParser on top of the stock
XMLParser coupled with a special target that collects events from the
callback calls.
Given that we have an XMLPullParser now, I think we should not clutter the API
with more classes
Jan-Wijbrand Kolman added the comment:
Thanks you for the swift followup!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18851
___
___
Stefan Behnel added the comment:
(fixing subject to properly hit bug filters)
--
title: Make ET event handling more modular to allow custom targets for the
non-blocking parser - Make ElementTree event handling more modular to allow
custom targets for the non-blocking parser
Changes by Vlad Shcherbina vlad.shcherb...@gmail.com:
Added file: http://bugs.python.org/file31574/temp_dir_exists_retry_33_34.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18849
___
Serhiy Storchaka added the comment:
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 a
slight problem with this approach - regrtest has to import the module to see
this attribute, and
STINNER Victor added the comment:
Linux provides the following functions:
int posix_memalign(void **memptr, size_t alignment, size_t size);
void *valloc(size_t size); # obsolete
void *memalign(size_t boundary, size_t size); # obsolete
Windows provides the following functions:
void*
Serhiy Storchaka added the comment:
We should distinguish between at least two different functions. One generates
slices of input sequence (it is especially useful for strings and bytes
objects), and other groups items from arbitrary iterator into tuples. They have
different applications.
Serhiy Storchaka added the comment:
On Python 3 you should not only open file in text mode with specified encoding,
but also specify the xmlcharrefreplace error handler.
doc.writexml(open(filename, w, encoding=utf-8,
errors=xmlcharrefreplace), , , utf-8)
I can suggest only one solution
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
stage: - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18912
___
___
New submission from Matěj Stuchlík:
Doing 'valgrind --suppressions=Misc/valgrind-python.supp ./python
Lib/tests/test_ssl.py' I'm getting:
==322== LEAK SUMMARY:
==322==definitely lost: 32 bytes in 1 blocks
==322==indirectly lost: 392 bytes in 16 blocks
==322== possibly lost:
Eli Bendersky added the comment:
The fix looks good to me, in general. Could you create a test that goes along?
My only (minor) doubt is whether this should be generalized, in two dimensions:
1. PermissionError is mapped from both EACCES and EPERM. So to make the 2.7
patch equivalent with
Amaury Forgeot d'Arc added the comment:
To ensure it's a real memory leak: do the figures increase when the code is
called in a loop?
I would not consider a single-time malloc (stored in some static variable) to
be a leak.
--
nosy: +amaury.forgeotdarc
Eli Bendersky added the comment:
LGTM, thanks
--
nosy: +eli.bendersky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18912
___
___
Python-bugs-list
Roundup Robot added the comment:
New changeset 8e174ee0575a by Eli Bendersky in branch '3.3':
Issue #18912: Fix indentation in docstring
http://hg.python.org/cpython/rev/8e174ee0575a
New changeset 31ef590a0d2f by Eli Bendersky in branch 'default':
Issue #18912: Fix indentation in docstring
Matěj Stuchlík added the comment:
That's a good idea:
NULLBYTECERT = os.path.join(os.path.dirname(__file__) or os.curdir,
nullbytecert.pem)
for i in xrange(100):
p = ssl._ssl._test_decode_cert(NULLBYTECERT)
gives
==1647== LEAK SUMMARY:
==1647==definitely lost: 3,200 bytes in 100
Roundup Robot added the comment:
New changeset a559cda6a498 by Eli Bendersky in branch '2.7':
Close #18912: Fix indentation in docstring
http://hg.python.org/cpython/rev/a559cda6a498
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
Eli Bendersky added the comment:
On Tue, Sep 3, 2013 at 2:32 AM, Serhiy Storchaka rep...@bugs.python.orgwrote:
Serhiy Storchaka added the comment:
The most natural approach is to have a special attribute set in the
module's global dict (for example: __REGRTEST_SUBPROCESS__ = True);
Jesús Cea Avión added the comment:
Could you possibly check this in Python 2.7, 3.2 and 3.3?. Python 2.6 is open
ONLY for security fixes, if any.
--
nosy: +jcea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18913
Matěj Stuchlík added the comment:
Ah, that is unfortunate. I did check it for 2.7 and 3.4, neither of those leak,
I can check it for the rest tomorrow, but I imagine it'll be the same story.
--
___
Python tracker rep...@bugs.python.org
R. David Murray added the comment:
It's an interesting thought. It bothered me to be handling them as pure
strings when writing the code. It just felt wrong somehow :)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18891
Serhiy Storchaka added the comment:
Here is corrected patch (it uses relative seek()) with a lot of tests.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5202
___
Amaury Forgeot d'Arc added the comment:
http://hg.python.org/cpython/rev/c4bbda2d4c49 looks relevant.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18913
___
Amaury Forgeot d'Arc added the comment:
Ah, http://hg.python.org/cpython/rev/80d491aaeed2/ as well then.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18913
___
Matěj Stuchlík added the comment:
Potentially interesting part of the valgrind output:
==21685== 42,400 (3,200 direct, 39,200 indirect) bytes in 100 blocks are
definitely lost in loss record 909 of 914
==21685==at 0x4A0887C: malloc (vg_replace_malloc.c:270)
==21685==by 0x331B06315F:
Matěj Stuchlík added the comment:
That seems to be it, no more leaking! Good job!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18913
___
___
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
title: SSL module fails to handle NULL bytes inside subjectAltNames general
names (CVE-2013-4238) - SSL module fails to handle NULL bytes inside
subjectAltNames general names (CVE-2013-4238)
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com:
--
nosy: +Arfrever
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18906
___
Zachary Ware added the comment:
I took a stab at the doc changes, attached here and including Barry's patch.
--
components: +Library (Lib)
type: - enhancement
versions: +Python 3.4
Added file: http://bugs.python.org/file31575/16662_with_doc.diff
___
New submission from Brian Mingus:
The python documentation links to an outside website for info and examples on
http basic auth. This documentation is terrible and confusing. The link should
be removed, and user's should be advised to use the Requests library.
# this example is from
Changes by Ned Deily n...@acm.org:
--
nosy: +michael.foord
title: Python docs link to terrible outsi - Confusing documentation in the
urllib2 HOWTO
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18914
Ethan Furman added the comment:
I wonder if it would be better to have inspect.classify_class_attrs be improved
instead?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16938
___
Brian Mingus added the comment:
The documentation is confusing. Consider this comment:
# All calls to urllib2.urlopen will now use our handler
# Make sure not to include the protocol in with the URL, or
# HTTPPasswordMgrWithDefaultRealm will be very confused.
# You must (of course) use it when
Barry A. Warsaw added the comment:
On Sep 03, 2013, at 07:37 AM, Stephen J. Turnbull wrote:
I'm thinking this may be overengineering, but I may as well post it and find
out for sure. :-) Is it worth encapsulating MIME types? They're really
pairs as far as mail handling applications are
R. David Murray added the comment:
Suggesting using a 3rd party library in order to explain how to use the python
standard library to do something isn't going to work.
Would you like to propose an alternate article or an improvement to the howto,
using only stdlib facilities?
(Note that the
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
nosy: +barry
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16039
___
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
nosy: +larry
priority: normal - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18747
___
Charles-François Natali added the comment:
Here's an updated patch with new tests.
It passes the regression test, and yields noticable performance improvements
for IPv6:
before:
$ ./python -m timeit -s import socket; s = socket.socket(socket.AF_INET,
socket.SOCK_DGRAM); DATA = b'hello'
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
nosy: +barry
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16040
___
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
nosy: +barry
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16038
___
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16043
___
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16037
___
Barry A. Warsaw added the comment:
blocker for 2.6.9
--
priority: critical - release blocker
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16042
___
Brian Mingus added the comment:
Yes - this link was a waste of my time. It would have been better if it had not
been there. I propose to replace it with nothing.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18914
R. David Murray added the comment:
The article is *explaining* basic auth, thus the pedegogy of the presentation,
and why it is a see also and not part of the docs proper.
I'll admit I don't understand the first part of that comment, since the second
part says you do have to put the protocol
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
stage: committed/rejected - patch review
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17487
Changes by Senthil Kumaran sent...@uthcode.com:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18914
___
___
Python-bugs-list
Changes by Serhiy Storchaka storch...@gmail.com:
--
resolution: - invalid
stage: - committed/rejected
status: pending - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11126
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +Claudiu.Popa
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18878
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18878
___
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
assignee: - serhiy.storchaka
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18901
___
Changes by Serhiy Storchaka storch...@gmail.com:
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8311
___
___
Serhiy Storchaka added the comment:
I afraid we can't just change comptype to string. We can allow setcomptype()
accept strings and convert them to bytes, but we can't change the type of
getcomptype()'s result.
--
___
Python tracker
Serhiy Storchaka added the comment:
Thank you Claudiu for your contribution.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18901
Serhiy Storchaka added the comment:
Thank you Claudiu. I have changed _Wave_params to _wave_params for consistency
with issue17818 and issue18901.
--
stage: patch review - committed/rejected
status: open - closed
___
Python tracker
Changes by Serhiy Storchaka storch...@gmail.com:
Added file: http://bugs.python.org/file31577/sunau_context_manager.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18878
___
Changes by Serhiy Storchaka storch...@gmail.com:
Removed file: http://bugs.python.org/file31512/sunau_context_manager.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18878
___
Serhiy Storchaka added the comment:
I will commit it tomorrow if there are no objections.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18878
___
Roundup Robot added the comment:
New changeset 99d26f32aed3 by Serhiy Storchaka in branch 'default':
Issue #18901: The sunau getparams method now returns a namedtuple rather than
http://hg.python.org/cpython/rev/99d26f32aed3
--
nosy: +python-dev
___
Roundup Robot added the comment:
New changeset a14ec46de0a4 by Serhiy Storchaka in branch 'default':
Issue #17487: The result of the wave getparams method now is pickleable again.
http://hg.python.org/cpython/rev/a14ec46de0a4
--
___
Python tracker
Roundup Robot added the comment:
New changeset 934e650abc4d by Meador Inge in branch '3.3':
Issue #16826: Don't check for PYTHONCASEOK when using -E.
http://hg.python.org/cpython/rev/934e650abc4d
New changeset ba850a78cbbc by Meador Inge in branch 'default':
Issue #16826: Don't check for
Changes by Meador Inge mead...@gmail.com:
--
resolution: - fixed
stage: commit review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue16826
___
Serhiy Storchaka added the comment:
There is PyLong_FromVoidPtr() for such cases.
--
nosy: +serhiy.storchaka
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18909
___
STINNER Victor added the comment:
Oh, another TODO: drop the (optional) dependency to psutil. Implement
get_process_memory() in C (in the _tracemalloc module).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18874
New submission from mpb:
It would be nice to be able to pass ssl.wrap_socket the key and certificate as
PEM encoded strings, rather than as paths to files.
Similarly for SSLContext.load_cert_chain.
--
components: Library (Lib)
messages: 196878
nosy: mpb
priority: normal
severity:
Michael Foord added the comment:
As David explained, the linked article *explains* basic auth as well as showing
how to use the standard library support. I think the article is still of some
value, it has certainly been useful to many people.
--
resolution: - wont fix
stage: -
Meador Inge added the comment:
My last commit caused some buildbot failures
(http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.3/builds/1069).
I am investigating.
--
___
Python tracker rep...@bugs.python.org
New submission from Tim Peters:
Here under 3.3.2:
from threading import Lock
help(Lock)
Help on built-in function allocate_lock in module _thread:
allocate_lock(...)
allocate_lock() - lock object
(allocate() is an obsolete synonym)
Create a new lock object. See
Changes by Alan Cristhian alan.cri...@gmail.com:
--
nosy: +Alan.Cristhian
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18898
___
___
Roundup Robot added the comment:
New changeset 7801ef4a4ce3 by Meador Inge in branch '3.3':
Issue #16826: Revert fix while Windows issues are being worked out.
http://hg.python.org/cpython/rev/7801ef4a4ce3
New changeset a1282b67b4cf by Meador Inge in branch 'default':
Issue #16826: Revert fix
R. David Murray added the comment:
Thanks. I suspect someone will indeed latch on to this soon enough.
We use the 'versions' to track what version we are going to fix the bug in. So
I've removed 3.2, since that only gets security fixes, and 3.5, since that
doesn't exist yet. (If we don't
Changes by Manuke manuke.skyl...@gmail.com:
--
versions: +Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15875
___
___
Python-bugs-list
Nikolaus Rath added the comment:
*ping*
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12704
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Nick:
I've set up apache on Windows 7 and I'm running python with cgi.
I have a script that contains this:
#!C:\Python34\python.exe
print (Content-Type: text/html; charset=utf-8\n)
print (Δοκιμή)
Pretty simple, right? When I'm opening the page to my browser in stead of
Changes by Nick low...@yahoo.com:
--
components: +Unicode, Windows
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18917
___
___
Roundup Robot added the comment:
New changeset 96e55a1a0de7 by Andrew Svetlov in branch 'default':
Issue #18882: Add threading.main_thread() function.
http://hg.python.org/cpython/rev/96e55a1a0de7
--
nosy: +python-dev
___
Python tracker
Changes by Andrew Svetlov andrew.svet...@gmail.com:
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18882
New submission from bussau:
Calling for help() about the topic 'FILES' returns
no documentation found for 'FILES'
--
Python 2.7.3 (default, Apr 14 2012, 08:58:41) [GCC] on linux2
Type help, copyright, credits or license for more information.
help('topics')
Here
Daniel Farina added the comment:
I've confirmed this in a non-gevent program (actually a very trivial one, I can
include the source if anyone asks), in 'initposix'. This is on a quiet system,
so OOM is not a very likely explanation. Perhaps signal handling?
#0 0x0054662d in ?? ()
Ramchandra Apte added the comment:
I am able to reproduce on Python 3.3 as well.
--
components: -Interpreter Core
nosy: +Ramchandra Apte
versions: +Python 3.3, Python 3.4
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18918
Alex Gaynor added the comment:
If you could supply the source that'd be great.
--
nosy: +alex
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14903
___
88 matches
Mail list logo