Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
Nice work! Is there a specific place for comments? Here are some of them
already:
- Modules/zipimport.c::make_filename: remove the limit buffer, the code could
look like:
pathsize = PyUnicode_GET_SIZE(prefix) +
Charles-Francois Natali neolo...@free.fr added the comment:
Could you try with the attached patch ?
The problem is that subprocess silently replaces bufsize=0, so child.stdout is
actually buffered, and when you read just one byte, everything that's available
for reading is read into the
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11459
___
___
Changes by Giampaolo Rodola' g.rod...@gmail.com:
--
nosy: +giampaolo.rodola
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11453
___
___
New submission from saradayerramalle saradasr...@yahoo.co.in:
Hi.
I am new to Python.
I have an ABC.py file in which it has a checkbox.
An instance of the wx.CheckBox is created with name chkbox1.
Initial value is set and its binded to the wx.EVT_CHECKBOX with a function
xxx().
Now, I am
Ezio Melotti ezio.melo...@gmail.com added the comment:
Hi, if you need help with Python try the Python mailing list[0] or ask on
IRC[1].
This bug tracker is used only to report bugs in the Python language.
[0]: http://www.python.org/community/lists/
[1]: http://www.python.org/community/irc/
Alex Leach beamesle...@gmail.com added the comment:
Thanks! =D
On Thu, Mar 10, 2011 at 3:46 AM, R. David Murray rep...@bugs.python.orgwrote:
R. David Murray rdmur...@bitdance.com added the comment:
I believe you are looking for mode 'r|'.
--
nosy: +r.david.murray
resolution: -
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:
Bill,
I was looking at this patch again, and I'm not sure about thread safety. The
correctness of the caching depends on manager.status, which is state which is
potentially shared across threads. There are no interlocks around it, so with
New submission from Yuriy Pilgun p...@ukrpost.net:
Reading UTF-16 text file with module 'codecs' fails, if surrogate pair is
located at 72-character boundary.
Attached python script fails with message:
UnicodeDecodeError: 'utf16' codec can't decode bytes in position 70-71:
unexpected end of
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
stage: - test needed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11461
___
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment:
So, nobody. I still can't find a way to reproduce the errors, so.
I also get occasional errors when building _multiprocessor, which
disappear when (removing _multiprocessor_failed.so and) simply
running make all once again.
I
Eric Smith e...@trueblade.com added the comment:
I'll give this a proper review in the next day or so (busy at PyCon).
Despite the fact that I typically hate changing values returned by the server,
I agree on case-folding the fact names to lowercase upon reading them. The RFC
clearly states
Giampaolo Rodola' g.rod...@gmail.com added the comment:
You should have the facts in MLSD_DATA be mixed case, to ensure
they're being lowercased correctly.
This is already tested by:
+# case sensitiveness
+set_data('Type=type;TyPe=perm;UNIQUE=unique; name\r\n')
+
Eric Smith e...@trueblade.com added the comment:
So it is. I told you I hadn't done a proper review! I was mainly trying to say
I agree with lowercasing.
I'll shut up until I can read the whole patch.
--
___
Python tracker rep...@bugs.python.org
Ezio Melotti ezio.melo...@gmail.com added the comment:
The tables and several other doc changes went in 3.1 in cb3a925de1bd.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9796
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The utf16 incremental codec does not like incomplete surrogate pairs.
Patch attached.
I also plan to refactor all the test_partial() functions of test_codecs, to
give them a common implementation.
--
keywords: +patch
nosy:
Changes by Ross Lagerwall rosslagerw...@gmail.com:
--
nosy: +rosslagerwall
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11459
___
___
Ross Lagerwall rosslagerw...@gmail.com added the comment:
OK, running this:
import base64
import bisect
import hashlib
import io
import os
import posixpath
import random
import re
import socket
import sys
import time
import collections
import io
import os
import socket
import collections
import
Eric Smith e...@trueblade.com added the comment:
I removed the unused import (mostly as a simple test of mercurial, it's my
first commit there).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9584
STINNER Victor victor.stin...@haypocalc.com added the comment:
Is there a specific place for comments?
Yes, but my work is not done. I still have parts to commit.
_PyImport_GetDynLoadFunc still takes char* arguments.
Oh. This one is not easy because this function has many implementations
Martin v. Löwis mar...@v.loewis.de added the comment:
I'd rather recommend a different approach, where the set of CAs doesn't need to
be specified for every module that directly or indirectly uses SSL. Instead,
there should be support for a thread-local setting of the allowable CAs, and
then
Novimir Pablant amici...@gmail.com added the comment:
Applying the patch appears to fix this problem. Thanks!
I am definitely confused about why the buffer was changed to line buffered in
the first place, especially since the default is bufsize=0 and the comment (#
Nearly unbuffered (XXX for
Daniel Stutzbach stutzb...@google.com added the comment:
For what it's worth, I believe this could be implemented easily by calling
_PyDict_HasOnlyStringKeys at the end of the class creation process.
--
nosy: +stutzbach
___
Python tracker
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nvawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11457
___
___
Python-bugs-list
Changes by Nadeem Vawda nadeem.va...@gmail.com:
--
nosy: +nvawda
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11454
___
___
Python-bugs-list
uptimebox m...@uptimebox.ru added the comment:
The bug still exists in 2.6.6
Process PoolWorker-2:
Traceback (most recent call last):
Process PoolWorker-1:
Traceback (most recent call last):
File /usr/lib/python2.6/multiprocessing/process.py, line 232, in _bootstrap
File
Martin v. Löwis mar...@v.loewis.de added the comment:
Can somebody propose a patch?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11455
___
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
The bug was fixed in 2.7, and not backported to 2.6.
2.6 is now in security-fix-only mode, if possible you should upgrade to 2.7.
--
nosy: +amaury.forgeotdarc
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
I'd rather recommend a different approach, where the set of CAs
doesn't need to be specified for every module that directly or
indirectly uses SSL. Instead, there should be support for a
thread-local setting of the allowable CAs, and then no
Daniel Urban urban.dani...@gmail.com added the comment:
So, I see four possible solutions:
1. If we get a tuple, create the new tuple, normalize the exception, and store
it. If we get a SyntaxError instance, use its args, create the new tuple,
normalize, and store. (In this case a
Mads Kiilerich m...@kiilerich.com added the comment:
The response I got to this issue hinted that it was a lame issue I filed. I
haven't had time/focus to investigate further and give constructive feedback.
I think it is kind of OK to require explicit specification of the ca_certs as
long as
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
I'd choose solution 3, but instead of calling SyntaxError.__init__, call
PyErr_NormalizeException().
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11441
Daniel Urban urban.dani...@gmail.com added the comment:
Err... sorry, I don't understand again:
If we get a tuple, create a new, store it without normalization. That's okay, I
understand.
If we get a SyntaxError instance, then take its args field, create the new
tuple. Then call
Antoine Pitrou pit...@free.fr added the comment:
I think it is kind of OK to require explicit specification of the
ca_certs as long as it is made clear in all the relevant places that
it _has_ to be done. I think it would be a good idea to deprecate the
default value for ca_certs and issue a
Daniel Urban urban.dani...@gmail.com added the comment:
Can somebody propose a patch?
Yes, here it is. (I'm not sure if the test is in the correct file.)
--
keywords: +patch
nosy: +durban
Added file: http://bugs.python.org/file21072/issue11455.patch
Antoine Pitrou pit...@free.fr added the comment:
How about the case where non-string keys are added after the class is created?
(I think I've heard some third-party lib does this, perhaps a generic functions
implementation?)
--
nosy: +pitrou
___
Alex alex.gay...@gmail.com added the comment:
How can they be set afterwords?
alex@alex-laptop:~/projects/pypy$ python3.1
Python 3.1.2 (release31-maint, Sep 17 2010, 20:34:23)
[GCC 4.4.5] on linux2
Type help, copyright, credits or license for more information.
class A(object):
... pass
Antoine Pitrou pit...@free.fr added the comment:
Hmm, that's true (although there's a trick using gc.get_referers(), IIRC).
I was probably thinking about instance dicts rather than type dicts, then.
--
___
Python tracker rep...@bugs.python.org
Filip Gruszczyński grusz...@gmail.com added the comment:
Bump! How about applying this patch, Eric? Or maybe there is something else,
that needs to be done. If so, I'll be happy to do it.
--
___
Python tracker rep...@bugs.python.org
Éric Araujo mer...@netwok.org added the comment:
Could you port the patch to distutils2? I should have told so sooner, it’s the
process we follow (more info on
http://wiki.python.org/moin/Distutils/FixingBugs).
--
keywords: +needs review
stage: needs patch - patch review
versions:
Filip Gruszczyński grusz...@gmail.com added the comment:
Sure :-)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8933
___
___
Python-bugs-list
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +orsenthil
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11454
___
___
Python-bugs-list mailing
Ezio Melotti ezio.melo...@gmail.com added the comment:
And in 2.7 in 6e5b5d1b6714.
There's some more refactoring that could be done on unittest.rst but it's out
of the scope of this issue, so I'm closing this.
--
resolution: - fixed
stage: commit review - committed/rejected
status:
Ezio Melotti ezio.melo...@gmail.com added the comment:
This can be closed.
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11435
Eugene Toder elto...@gmail.com added the comment:
As discussed on the list, peephole refuses to fold -0. The reasons for this are
unclear. Folding was disabled with this commit:
http://hg.python.org/cpython/diff/660419bdb4ae/Python/compile.c
Here's a trivial patch to enable the folding again,
Vetoshkin Nikita nikita.vetosh...@gmail.com added the comment:
BTW, can you publish your xlistdir implementation somewhere?
http://pastebin.com/Qnni5HBa
Tests show 10 times smaller memory footprint during directory listing - 25Mb
against 286Mb on directory with 800K entries.
--
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +giampaolo.rodola
status: open - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4758
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
This is maybe out of the scope of this issue, but I would like to see all the
basic data types on single page on their own. The current page[0] has some
section about data types mixed with sections about operations, comparisons, and
Roundup Robot devnull@devnull added the comment:
New changeset 4f9213d3858b by R David Murray in branch '3.1':
#10999: Add missing documentation for chflags constants to stat module docs
http://hg.python.org/cpython/rev/4f9213d3858b
New changeset de5d0b4f81c3 by R David Murray in branch '3.2':
R. David Murray rdmur...@bitdance.com added the comment:
Thanks for the patch!
--
resolution: - fixed
stage: needs patch - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10999
Terry J. Reedy tjre...@udel.edu added the comment:
I have started learning .rst, so I hope to work on this in the not too distant
future.
Ezio -- I have also noticed that some chapters are too long to be easily
scrolled around in (unittest is another), and either need an index at the top
Ezio Melotti ezio.melo...@gmail.com added the comment:
The advantage of having one big page is that you can ctrl+f easily without
having to go back and forth from different pages
On the other hand, the page is not easy to browse (especially on small screens,
mobile devices, old/slow pcs).
In
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +haypo
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11461
___
___
Python-bugs-list mailing
Ezio Melotti ezio.melo...@gmail.com added the comment:
The patch contains non-ascii chars that should be avoided (they break `make
pdf`).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10665
New submission from Eugene Toder elto...@gmail.com:
Peephole optimizer performs constant folding, however
1) When it replaces operation with LOAD_CONST it always adds a new constant to
co_consts, even if constant with the same value is already there. It also can
add the same constant multiple
Changes by Eugene Toder elto...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file21074/dedup_const_plana.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11462
___
Eugene Toder elto...@gmail.com added the comment:
(either plana or planb should be applied)
--
Added file: http://bugs.python.org/file21075/dedup_const_planb.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11462
Changes by Eugene Toder elto...@gmail.com:
Added file: http://bugs.python.org/file21076/unused_consts.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11462
___
Eugene Toder elto...@gmail.com added the comment:
(test case)
--
nosy: +pitrou
Added file: http://bugs.python.org/file21077/consts_test.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11462
Changes by Santoso Wijaya santoso.wij...@gmail.com:
--
nosy: +santa4nt
versions: +Python 3.1, Python 3.2, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3591
___
New submission from Luís Antônio Araújo de Brito l...@multmeio.com.br:
Hi folks,
I have an app that talk with cPanel for create/suspend/unsuspend/kill
domaind.. So when I use the urllib2 to get response for cPanel and read it. It
show the IncompleteRead except.
I get the same URL in a
Changes by Luís Antônio Araújo de Brito l...@multmeio.com.br:
--
nosy: +hdiogenes
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11463
___
___
Changes by Éric Araujo mer...@netwok.org:
--
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9850
___
Éric Araujo mer...@netwok.org added the comment:
Victor: Should I close this bug as superseded by yours?
--
priority: high - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8754
___
Humberto Diogenes humbe...@digi.com.br added the comment:
Luís, please analyse the response from the web server to see if it really is a
valid HTTP response - AFAIK CPanel web services do not always give valid HTTP
responses.
--
components: +Library (Lib)
type: resource usage -
Raymond Hettinger rhettin...@users.sourceforge.net added the comment:
Sorry Eugene, but I'm not willing to add that much complexity to save a few
bytes. This was a known issue and long ago we choose to leave it as-is. In
the future when constant folding is done at the AST level, we'll get
Eugene Toder elto...@gmail.com added the comment:
I think the changes are fairly trivial. dedup_const_planb.patch is about 10
lines of new code with all the rest being trivial plubming. unused_consts.patch
may look big, but only because I factored out fix ups into a separate function;
there
Марк Коренберг socketp...@gmail.com added the comment:
http://lwn.net/Articles/216948/
Why kernel.org is slow
To proove that readdir is bad thing on large number of items in a directory.
Well, EXT4 has fixed some issues
(http://ext2.sourceforge.net/2005-ols/paper-html/node3.html) But what
New submission from yufun heyt1...@gmail.com:
appsLib =cdll.LoadLibrary(util.find_library('ApplicationServices'))
event = appsLib.CGEventCreate(None);
pt = appsLib.CGEventGetLocation(event);
Crash after execute above python code. But these code works well in python3.13.
--
assignee:
Eli Bendersky eli...@gmail.com added the comment:
The attached patch tries to be true to the convention in other documentation
pages, by using with in complete code samples (examples), but not using it in
prompt () samples, where usage of with unnecessarily complicates
interaction.
uptimebox m...@uptimebox.ru added the comment:
Unfortunately, upgrading to 2.7 is not an option for me, since my application
works on Debian stable which only includes 2.6. For now I'm settled with the
following workaround: http://paste.pocoo.org/show/351774/
--
Charles-Francois Natali neolo...@free.fr added the comment:
Could you try with Python 3.2 ?
In 3.1, the only available pickle implementation was in pure python: with
cPickle (2.7) or _pickle (3.2), it should be much faster.
--
nosy: +neologix
___
72 matches
Mail list logo