Ray.Allen ysj@gmail.com added the comment:
You can write %20s as a argument for PyUnicode_FromFormat(), but it has no
effect. The width and precision modifiers are not intended to apply to string
formating(%s, %S, %R, %A), only apply to integer(%d, %u, %i, %x). Though you
can write %20s,
Marc-Andre Lemburg m...@egenix.com added the comment:
Ezio Melotti wrote:
Ezio Melotti ezio.melo...@gmail.com added the comment:
A quick search[0] also shows that environ.data is used by several projects.
Changing it from str to bytes will most likely break these programs, so I'm
not
Ronald Oussoren ronaldousso...@mac.com added the comment:
Interestingly enough I don't get the crash in a copy of 2.7, but do get the
crash in a copy of 2.6. The former was build on 10.6, the later on 10.5.
Both 3.1 and 3.2 crash reliably for me (after porting the script to py3k)
New submission from Łukasz Langa luk...@langa.pl:
By default, configparser classes simply `open()` and `read()` files specified
in the list passed to `.read()`. This means these calls use the default
platform-specific encoding and this is prone to breakage.
An existing solution is to use
Łukasz Langa luk...@langa.pl added the comment:
Patch included.
--
components: +Library (Lib)
keywords: +patch
type: - feature request
versions: +Python 3.2
Added file: http://bugs.python.org/file18248/issue9411.diff
___
Python tracker
New submission from Antoine Pitrou pit...@free.fr:
See http://mail.python.org/pipermail/python-checkins/2010-July/095648.html
test_smtpd leaked [25, 25, 25] references, sum=75
--
assignee: richard
components: Library (Lib)
messages: 111901
nosy: giampaolo.rodola, pitrou, richard
Teemu Rytkönen teemu.rytko...@gmail.com added the comment:
Hi!
I haven't tested this in linux or with python 2.7 so can't say for sure..
However I would assume that the main issue is with the zipdate it self (So does
it have those empty directories, which at least winzip creates) and then
Michael Foord mich...@voidspace.org.uk added the comment:
Seems good to me (the feature - and also the patch after a cursory read
through).
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9411
Antoine Pitrou pit...@free.fr added the comment:
Le jeudi 29 juillet 2010 à 06:26 +, Alexandre Vassalotti a écrit :
New submission from Alexandre Vassalotti alexan...@peadrop.com:
This is a big patch. Please review at
http://codereview.appspot.com/1694050/show
This patch adds the
Ronald Oussoren ronaldousso...@mac.com added the comment:
http://developer.apple.com/mac/library/technotes/tn2005/tn2083.html#SECDAEMONVSFRAMEWORKS
explains the issue that Ned mentions, I'm not sure yet if this crash is
related to that.
--
___
Ray.Allen ysj@gmail.com added the comment:
I found that this issue is duplicate with issue6050. And the bug has been fixed
since 2.6.3.
So this issue should be closed.
--
___
Python tracker rep...@bugs.python.org
Eric Smith e...@trueblade.com added the comment:
The feature request seems reasonable to me, too.
I don't recall if sys.getdefaultencoding() can change while a program is
running. If so, you might want to change:
def read(self, filenames, encoding=sys.getdefaultencoding()):
to:
def
New submission from me myself me.mys...@mailinator.com:
Title says it all.
--
messages: 111908
nosy: me.myself
priority: normal
severity: normal
status: open
title: asyncore.close_all() should call x.handle_close() instead of x.close()
type: behavior
versions: Python 2.6, Python 3.1
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +giampaolo.rodola
versions: +Python 2.7, Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9413
___
New submission from gnuthor ja...@internet24.de:
The follow code hangs on vanilla compile python 2.7 on Ubuntu 10.04 x86_64 and
all other versions of Python that I could find (i386/x86_64, 2.6.5/2.5.2/2.2):
import re
regex = re.compile(r'^((?:\.\d+)+|(?:\.?\w+(?:\-*\w+)+)+)\.(\d*?)$')
match
Skip Montanaro s...@pobox.com added the comment:
If the documentation is not clear enough about requiring binary, it is
a doc bug.
The documentation for both csv.reader and csv.writer state (this is from the
Python 2.7 version):
If *csvfile* is a file object, it must be opened with
New submission from Antoine Pitrou pit...@free.fr:
The buildslaves i386 Ubuntu have been exhibiting some strange behaviour for
some time now:
==
ERROR: test_protocol_sslv2 (test.test_ssl.ThreadedTests)
Connecting to an SSLv2
Richard Jones richardjo...@optushome.com.au added the comment:
That's odd. I didn't run the refcount tests because I was only adding Python
code. I'll look into compiling a debug build and running the tests locally with
a view to tracking down the problem.
--
Georg Brandl ge...@python.org added the comment:
Should be fixed now in r83218. I've removed the class directives, and put
generic class name substitutes regex and pattern in the method
descriptions, like we do for contextmanager.__enter__. I've also removed the
compatibility info, and
Antoine Pitrou pit...@free.fr added the comment:
That's odd. I didn't run the refcount tests because I was only adding
Python code.
That's not odd. A reference leak can indicate that some objects hang in
memory permanently rather than being cleaned up after the test run.
Looking at the code
Jesse Noller jnol...@gmail.com added the comment:
(sorry, I thought I had replied to your comment when I hadn't!) I think we can
get away with a new optional kwarg.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9205
Georg Brandl ge...@python.org added the comment:
Applied in r83220. The **kwds change for some methods should be done
separately.
--
resolution: - accepted
status: open - closed
___
Python tracker rep...@bugs.python.org
Ronald Oussoren ronaldousso...@mac.com added the comment:
This seems to be a minimal program to reproduce the problem:
import sys
import os
import platform
platform.mac_ver()
if sys.version_info[0] == 2:
import urllib
else:
import urllib.request
if os.fork() == 0:
print (about
Ronald Oussoren ronaldousso...@mac.com added the comment:
Fixed in r83221
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9392
Georg Brandl ge...@python.org added the comment:
The culprit was indeed DummyServer.messages. Fixed in r83222.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
This is very probably a duplicate of #1662581. When testing both your regexes
with the new engine from #2636, the match is not found/found instantaneously.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
Georg Brandl ge...@python.org added the comment:
Wishlist item: could you give the regex and match classes nicer names, so that
they can be referenced as `regex.Pattern` (or `regex.Regex`) and `regex.Match`?
--
___
Python tracker
Georg Brandl ge...@python.org added the comment:
Applied with some tweaks in r83223. Thanks Jeff and Terry!
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3874
New submission from Mark Dickinson dicki...@gmail.com:
format(complex(-0.0, 2.0), '.10') # expected '(-0+2j)'
'(+2j)'
format(complex(-0.0, 2.0), '') # gives expected result
'(-0+2j)'
--
assignee: mark.dickinson
messages: 111923
nosy: eric.smith, mark.dickinson
priority: normal
Changes by Terry J. Reedy tjre...@udel.edu:
--
stage: needs patch - committed/rejected
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3874
___
___
Georg Brandl ge...@python.org added the comment:
Sounds like a good addition to me.
--
assignee: - bethard
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9399
___
Georg Brandl ge...@python.org added the comment:
Yes, the current wording in the PEP should be sufficient.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue965065
Changes by Mark Dickinson dicki...@gmail.com:
--
components: +Interpreter Core
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9416
___
___
Georg Brandl ge...@python.org added the comment:
Isn't the usual way to use make -s if you don't want echoed commands?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3964
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl -
priority: high - normal
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5945
___
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8077
___
___
Python-bugs-list
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Closed as duplicate of issue6050.
--
nosy: +BreamoreBoy
resolution: - duplicate
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9172
Christian Höltje docw...@gerf.org added the comment:
Isn't 'make -s' a GNU make-ism?
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3964
___
___
Georg Brandl ge...@python.org added the comment:
Setting #1504333 which has a patch as superseder.
--
nosy: +georg.brandl
resolution: - duplicate
status: open - closed
superseder: - sgmllib should allow angle brackets in quoted values
___
Python
Mark Dickinson dicki...@gmail.com added the comment:
Here's a patch. The floating-point part of the tutorial still needs work.
--
keywords: +patch
Added file: http://bugs.python.org/file18249/issue9337.patch
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Well, at least -s is mentioned in my POSIX make(1p) manpage, and I found it in
an online version of the OpenBSD manpages.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3964
Ray.Allen ysj@gmail.com added the comment:
It may be useful to mention it to show the exception heirarchy as well as in
the case a user may want to catch all ConfigParser errors generally.
+1. I provide a patch for this.
--
keywords: +patch
nosy: +ysj.ray
Added file:
Georg Brandl ge...@python.org added the comment:
Committed doc patch similar to Raghuram's in r83226.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1090076
Changes by Ray.Allen ysj@gmail.com:
--
versions: +Python 3.2
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9407
___
___
Python-bugs-list
Mark Dickinson dicki...@gmail.com added the comment:
A couple of notes on the patch:
- the test_unicodedata failure was a result of computing a checksum involving
str(numeric_value_of_character) for fraction characters like 1/6 and 2/3. I've
changed the test to use
New submission from Andrea Corbellini corbellini.and...@gmail.com:
Creating a class (either using the 'class' statement or using type()) creates a
circular reference.
I've attached a script that simply demonstrates this. The problem is caused by
the fact that
Steven Bethard steven.beth...@gmail.com added the comment:
Should this print to stdout or stderr? I wonder if the API should allow either,
and instead look like:
parser.add_argument('--license', action='write', message='...', file=sys.stdout)
Where sys.stdout would be the default for the
R. David Murray rdmur...@bitdance.com added the comment:
No it doesn't. Why do you think this change should be made? What bug does it
produce in it's current form? Can you provide a unit test demonstrating the
buggy behavior?
--
nosy: +r.david.murray
stage: - unit test needed
Georg Brandl ge...@python.org added the comment:
Applied in r83229. Thanks!
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9407
Georg Brandl ge...@python.org added the comment:
from_iterable() was marked up wrongly in the itertools docs; this is fixed now
in r83230.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7447
Chris Leaf xcyborgni...@gmail.com added the comment:
Sorry but I still cannot get it to work because the folder remains inaccessible
to me and immutable. Is there any way around this problem?
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
This might work for (normally) commutative operations like multiplication and
addition, but what about those like subtraction? If the interpreter uses the
non-reversed method automatically, it has to apply semantics, but the semantics
depend
Martin v. Löwis mar...@v.loewis.de added the comment:
The hidden field is not filled in, here's a screenshot of the attributes
options
Ok. Remove the entire .idlerc folder, then.
--
___
Python tracker rep...@bugs.python.org
Georg Brandl ge...@python.org added the comment:
Removed in r83231, thanks.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9397
___
Georg Brandl ge...@python.org added the comment:
Thanks, fixed in r83232.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9388
Changes by Georg Brandl ge...@python.org:
--
assignee: - benjamin.peterson
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9386
___
___
Mark Dickinson dicki...@gmail.com added the comment:
Here are some tests.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9416
___
___
Changes by Mark Dickinson dicki...@gmail.com:
--
keywords: +patch
Added file: http://bugs.python.org/file18252/issue9416_tests.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9416
___
Antoine Pitrou pit...@free.fr added the comment:
Is there a reason why you want to disable the cyclic garbage collector?
--
nosy: +pitrou
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9417
Changes by Antoine Pitrou pit...@free.fr:
--
versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.3
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9417
___
Ray.Allen ysj@gmail.com added the comment:
This should not be a problem, I think. We cannot avoid such a circular
reference.
I believe the main reason of the circular reference is in MyClass.__mro__, this
is a list and contains a reference to MyClass. You can add __slots__ = [] to
Mark Lawrence breamore...@yahoo.co.uk added the comment:
Gentle poke in ribs can this be committed por favor?
--
nosy: +BreamoreBoy
versions: +Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7855
New submission from Georg Brandl ge...@python.org:
Currently, the string type has two single-underscore methods, _formatter_parser
and _formatter_field_name_split, that expose details of the new string
formatting implementation to Python, so that it can be used by the
string.Formatter class.
Dennis Malcorps dennis.malco...@googlemail.com added the comment:
parser.add_argument('--license', action='write', message='...',
file=sys.stdout)
The ability to redirect the output would be a nice addition.
parser.add_argument('--license', action='call', callable=lambda:
Andrea Corbellini corbellini.and...@gmail.com added the comment:
Disabling the GC can increase performances (although not significantly). But
this bug is the cause of other problems too: what if the metaclass contains a
__del__() method?
An another issue that I've found is that debugging is
Georg Brandl ge...@python.org added the comment:
I couldn't imagine why a metaclass would want to have a __del__ method...
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9417
Changes by Georg Brandl ge...@python.org:
--
assignee: georg.brandl -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1581182
___
___
Ron Adam ron_a...@users.sourceforge.net added the comment:
The error happens when Null is passed to strlen in (unicodeobject.c, line 860)
Passing NULL to a string format function is probably in the category of don't
do that.
Stefans solution of checking for NULL before calling PyErr_Format
Mark Dickinson dicki...@gmail.com added the comment:
And here's a fix (includes the earlier tests, along with some fixes to the
tests themselves).
--
stage: unit test needed - patch review
Added file: http://bugs.python.org/file18254/issue9416.patch
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
On Wed, Jul 28, 2010 at 11:22 PM, Guido van Rossum
rep...@bugs.python.org wrote:
..
What about the licensing? That look like the BSD license *with*
advertising clause...
I am not a lawyer and I am not intimately
Andrea Corbellini corbellini.and...@gmail.com added the comment:
Having a __del__ inside a metaclass is strange, I know... but probably there
are situations where you need to do so. Why shouldn't a developer be able to
add a __del__ to a metaclass without creating uncollectable objects? I
Georg Brandl ge...@python.org added the comment:
Done in r83234. Thanks for the suggestion!
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6522
Georg Brandl ge...@python.org added the comment:
Whether this is a bug is not clear. Sometimes it's just impossible not to
create cycles, and classes may just be one instance of that.
--
___
Python tracker rep...@bugs.python.org
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
For those not familiar with Unladen Swallow, can you describe what the most
interesting optimizations are? Maybe there is an Unladen Swallow document
you can point to. Would any of these optimizations apply to python
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +krisvale
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9417
___
___
Python-bugs-list mailing
STINNER Victor victor.stin...@haypocalc.com added the comment:
Removed in r83231, thanks.
I commited also r83235 to remove references in the source code.
The last reference is the following comment, but I don't know how to fix it:
# some dbm emulations based on Berkeley DB generate a .db
STINNER Victor victor.stin...@haypocalc.com added the comment:
I'm working on #3873 to add a read buffer (fixed size, 4096 bytes) to the
unpickler. It's 6 to 8 times faster with the read buffer: but this patch is
mainly to avoid the overhead introduced by the new I/O library (in Python2,
Andrea Corbellini corbellini.and...@gmail.com added the comment:
This is an unwanted an unexpected behavior, so this is a bug by definition. If
it's not easy to fix, it's a different matter.
However here's a proposed solution:
* for the __mro__: instead of using a tuple, use a new object that
Ezio Melotti ezio.melo...@gmail.com added the comment:
#9172 has been closed as duplicate of this.
--
nosy: +ezio.melotti
stage: - committed/rejected
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6050
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
This was discussed in issue1545463 which was deemed not to be worth fixing.
The particular bug described in issue1545463 would also be fixed by the still
open issue812369. So yes, there are cases where these cycles are
STINNER Victor victor.stin...@haypocalc.com added the comment:
Victor, have you tried using peek() instead of seek()?
I mentioned this previously in msg85780.
In a file encoded in protocol 0, backward seek are needed to each call to
unpickler_readline... and this function is called to read
Changes by Alexander Belopolsky belopol...@users.sourceforge.net:
--
nosy: +belopolsky
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3873
___
___
Changes by Andrea Corbellini corbellini.and...@gmail.com:
--
nosy: +candrea
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue812369
___
___
Alexander Belopolsky belopol...@users.sourceforge.net added the comment:
I wonder if complex addition/subtraction should preserve -0.0 when it is added
to a purely imaginary number. I.e.,
-0.0+1j
(-0+1j)
--
nosy: +belopolsky
___
Python tracker
Georg Brandl ge...@python.org added the comment:
This is not so easy: the __mro__ tuple, as its name says, is used internally
for method resolution, or finding attributes on the type's bases. __objclass__
is used whenever the descriptor is accessed. These operations are involved in
every
Georg Brandl ge...@python.org added the comment:
Amaury, any interest in getting this committed for 3.2?
--
nosy: +georg.brandl
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1195571
___
Georg Brandl ge...@python.org added the comment:
code.runsource() uses the single start symbol by default, which will parse
only a single statement. Only your second snippet is a single statement, while
the others are two statements.
--
nosy: +georg.brandl
resolution: - invalid
Georg Brandl ge...@python.org added the comment:
Cannot reproduce with current 3.2 trunk, closing.
--
resolution: - out of date
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6504
New submission from Peter Häring p.haer...@gmx.net:
test_distutils fails with 2.7 on a shared build (at least if building outside
the source tree), 2.6 versions work. The reason for this is, that the test
tries to link and doesn't find libpython-2.7.so.1.
A solution (or workaround) is to add
Georg Brandl ge...@python.org added the comment:
I'm quite sure nobody will want to do anything about it...
--
nosy: +georg.brandl
status: open - languishing
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6612
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le jeudi 29 juillet 2010 03:08:27, Ezio Melotti a écrit :
A quick search[0] also shows that environ.data is used by several projects.
_Environ is a wrapper on data: call putenv() when a value is changed and
unputenv() when a value
Chris Leaf xcyborgni...@gmail.com added the comment:
I solved the problem myself by editing the EditorWindow.py file where it sets
self.recent_files_path by setting it to a different file location (I created a
file in my Python31 directory named recent-files.lst and then set the
Georg Brandl ge...@python.org added the comment:
Added in r83236.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6630
___
Georg Brandl ge...@python.org added the comment:
I don't think optparse will get this update -- new features should go into
argparse instead.
--
nosy: +georg.brandl
resolution: - out of date
status: open - closed
___
Python tracker
STINNER Victor victor.stin...@haypocalc.com added the comment:
Le jeudi 29 juillet 2010 03:00:03, Ezio Melotti a écrit :
FWIW os.environb is missing from os.__all__.
Fixed by r83237
--
___
Python tracker rep...@bugs.python.org
Martin v. Löwis mar...@v.loewis.de added the comment:
Sorry, I'm busy with other stuff and won't be able to look into this for
another week or so.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9404
New submission from Peter Häring p.haer...@gmx.net:
There are systems out there, wich don't have ndbm, but gdbm and ndbm.h directly
in the include-path (usually /usr/include), not in the subdirectory i.e. gdbm.
setup.py at the moment assumes, that there is ndbm on the system, if there is
Georg Brandl ge...@python.org added the comment:
Alan, I've updated the patch for current 3.2 trunk, see attached, but the new
test now fails. Can you find out why?
--
nosy: +georg.brandl
versions: +Python 3.2 -Python 2.7
Added file: http://bugs.python.org/file18257/zipfile_empty.diff
Georg Brandl ge...@python.org added the comment:
Closing in favor of #2636, which allows this regex to be compiled.
--
resolution: - out of date
status: open - closed
superseder: - Regexp 2.7 (modifications to current re 2.2.2)
___
Python tracker
Georg Brandl ge...@python.org added the comment:
Thanks for the patch, fixed in r83238.
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4108
1 - 100 of 166 matches
Mail list logo