Changes by Chris Withers ch...@simplistix.co.uk:
--
nosy: -cjw296
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6816
___
___
Python-bugs-list
Phillip Hellewell ssho...@gmail.com added the comment:
Please apply the patch ASAP. This bug is affecting downstream product
viewvc in a very adverse way. See
http://viewvc.tigris.org/issues/show_bug.cgi?id=436
It's sad that I spent several hours tracking down this bug only to find
out that
New submission from Steve Krenzel sgk...@gmail.com:
The struct module has a calcsize() method which reports the size of the data
for a specified format
string. In some instances, to the best of my knowledge, this is wrong.
To repro:
from struct import calcsize
calcsize(ci)
8
calcsize(ic)
5
Changes by Alexander Dutton d...@alexdutton.co.uk:
--
nosy: +alexdutton
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5862
___
___
Eric Smith e...@trueblade.com added the comment:
It's a padding issue, having to do with putting values at the correct
word boundaries.
--
nosy: +eric.smith
resolution: - invalid
stage: - committed/rejected
status: open - closed
___
Python tracker
Tom Lynn tl...@users.sourceforge.net added the comment:
This bug should be re-opened, since there is definitely a bug here.
I think the patch was incorrectly rejected.
If I can expand palfrey's example:
from textwrap import *
T = TextWrapper(replace_whitespace=False, width=75)
text = '''\
Mark Dickinson dicki...@gmail.com added the comment:
However, that header file was removed in this commit:
http://svn.python.org/view?view=revrevision=71697
Hmm. That was me.
with this message:
Issue #4910: PyNumber_Int is deprecated in 3.0.1; will be removed in
3.1.
That's the
Mark Dickinson dicki...@gmail.com added the comment:
I didn't mean to assign this to Georg. Apologies.
--
assignee: georg.brandl -
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7353
___
Marcin Kasperski marcin.kasper...@mekk.waw.pl added the comment:
I found this bug while looking for suggestions how to add examples to
the optparse help call, but I feel there is a better and more general
solution - just provide some minimal formatting for description: treat
empty line as
Retro vinet...@gmail.com added the comment:
I suggest renaming the class from BadZipfile to BadZipFile. We have a
class named LargeZipFile. It would make sence to have the previously
mentioned class named as BadZipFile then. What is your verdict on that?
--
Mark Dickinson dicki...@gmail.com added the comment:
What Eric said. You can see the padding explicitly in the results of
struct.pack:
struct.pack(ci, '*', 0x12131415) # 8-byte result, 3 padding bytes
'*\x00\x00\x00\x15\x14\x13\x12'
struct.pack(ic, 0x12131415, '*') # 5-byte result, no
New submission from Matthias Klose d...@debian.org:
% /sbin/ldconfig -p | grep GL
libGLU.so.1 (libc6) = /usr/lib/libGLU.so.1
libGLEW.so.1.5 (libc6) = /usr/lib/libGLEW.so.1.5
libGL.so.1 (libc6, Système d'exploitation ABI : Linux 2.4.20) =
/usr/lib/libGL.so.1
the regexp fails to parse
Matthias Klose d...@debian.org added the comment:
msg94560 should read backported to the 2.6 branch. can we close the
report?
--
nosy: +doko
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5833
Ezio Melotti ezio.melo...@gmail.com added the comment:
The old name could be deprecated and replaced by the right one, but as
Eric Smith mentioned on #python-dev, the class with the old name can't
be removed because - even if unlikely - the object might exist in a pickle.
So we can either live
R. David Murray rdmur...@bitdance.com added the comment:
You didn't. Doc bugs are automatically assigned to Georg by the tracker.
--
nosy: +r.david.murray
priority: - normal
stage: - needs patch
title: Why was Include/intobject.h removed in 3.1? - cporting docs recommend
using
Changes by R. David Murray rdmur...@bitdance.com:
--
nosy: -r.david.murray
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7353
___
___
Antoine Pitrou pit...@free.fr added the comment:
Can we close the report?
Well there's something else in the original patch, although I don't care
about it.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5833
Mark Dickinson dicki...@gmail.com added the comment:
Reopening for possible doc clarification. Suggestions welcome!
--
assignee: - mark.dickinson
components: +Documentation, Extension Modules -Library (Lib)
keywords: +easy
priority: - low
resolution: invalid -
stage:
New submission from Eli Venter even...@jcvi.org:
tarfile doesn't seem to return any error or raise any exception when an
extraction fills up the disk, making it hard to use safely. Both
extractall and extract suffer from this problem. I'm using CentOS 5.2
and python 2.6.2.
--
New submission from Ryan Shaw ryan.s...@stanfordalumni.org:
def save_object(r, key, m):
r.set(key, cPickle.dumps(m))
[4] save_object(r, 'cluster', cluster)
python: ./Modules/cStringIO.c:419: O_cwrite: Assertion `oself-pos + l
2147483647' failed.
Aborted
Linux 2.6.30.9-96.fc11.x86_64 #1
Guido van Rossum gu...@python.org added the comment:
I think the code originally wasn't meant to support this feature (honor
embedded newlines when replace_whitespace=False). I'm thinking that we
could add it though. Maybe Mark is interested in getting this into 2.7
and 3.2? I imagine it
Eric Smith e...@trueblade.com added the comment:
What are the types and values of cluster and r?
Can you reproduce this in a self-contained script?
--
nosy: +eric.smith
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7358
Retro vinet...@gmail.com added the comment:
I am merely speaking of renaming the class name from BadZipfile to
BadZipFile.
class BadZipFile(exceptions.Exception):
# etc.
Only the name is fixed at class definition. I am aiming for that in this
bug report. And then every other BadZipfile
New submission from Matthias Klose d...@debian.org:
no change in behaviour in 2.6
the mailbox module in python 2.5 cannot modify mboxes in read-only
directories, e.g. the system mail spool. This is because
mailbox._singlefileMailbox.flush() tries to write the modified mailbox
to a temporary
New submission from Matthias Klose d...@debian.org:
[forwarded from http://bugs.debian.org/451733]
the mailbox._singlefileMailbox class is not safe with concurrent access,
because mailbox._singlefileMailbox.flush() replaces the underlying file
with a new copy by constructing a temporary file
Changes by Matthias Klose d...@debian.org:
Added file: http://bugs.python.org/file15364/mailbox-race.py
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7360
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
It might be doable for Python and its stdlib, but all the programs and
modules that are using the old name will start raising errors if they
don't find the old name anymore.
If the old name is deprecated for at least one Python version (e.g.
Lars Gustäbel l...@gustaebel.de added the comment:
The TarFile constructor (as well as tarfile.open) takes an errorlevel
keyword argument. See
http://docs.python.org/dev/library/tarfile.html#tarfile-objects
I quote: If errorlevel is 0, all errors are ignored when using
TarFile.extract().
Ezio Melotti ezio.melo...@gmail.com added the comment:
assertTrue() also accepts a 'msg' argument where to explain what went
wrong in case of failure [1].
[1]:
http://docs.python.org/library/unittest.html#unittest.TestCase.assertTrue
--
___
Python
Antoine Pitrou pit...@free.fr added the comment:
the mailbox._singlefileMailbox class is not safe with concurrent access,
because mailbox._singlefileMailbox.flush() replaces the underlying file
with a new copy by constructing a temporary file and then renaming it.
This breaks all other class
Runar Tenfjord runar.tenfj...@gmail.com added the comment:
By utilizing triggers on inserts and deletes it is possible to
keep track of the size and speed up __len__ by 10 x.
SQL:
CREATE TABLE IF NOT EXISTS info
(key TEXT UNIQUE NOT NULL,
value INTEGER NOT NULL);
INSERT OR IGNORE INTO
Changes by Antoine Pitrou pit...@free.fr:
--
stage: - needs patch
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3783
___
Erik Carstensen sandb...@virtutech.com added the comment:
Also, assertTrue has an alias failUnless which I personally find more
descriptive (I don't know if either form is preferred for inclusion in
Python though).
--
___
Python tracker
Antoine Pitrou pit...@free.fr added the comment:
Oops, sorry:
I don't think this class aims at being safe against concurrent access,
so having it fail loudly is a good thing.
I now understand that the problem is that it doesn't fail loudly. That's
what I get for replying too quickly.
Still, I
Ezio Melotti ezio.melo...@gmail.com added the comment:
failUnless is deprecated in Python3.1 [1]. The assert* methods are
preferred over the fail* ones that are now deprecated.
[1]:
http://docs.python.org/3.1/library/unittest.html#unittest.TestCase.failUnless
--
Antoine Pitrou pit...@free.fr added the comment:
Actually, the doc is quite clear about it:
« Be very cautious when modifying mailboxes that might be simultaneously
changed by some other process. The safest mailbox format to use for such
tasks is Maildir; try to avoid using single-file formats
Antoine Pitrou pit...@free.fr added the comment:
+1 for a TypeError too.
--
nosy: +pitrou
priority: - normal
stage: - needs patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5080
___
Changes by Ezio Melotti ezio.melo...@gmail.com:
--
nosy: +ezio.melotti
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5080
___
___
Python-bugs-list
Ronald Oussoren ronaldousso...@mac.com added the comment:
I committed a fix in r76403 (trunk), r76404 (2.6), r76405 (3.2), 76406
(3.1)
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Ronald Oussoren ronaldousso...@mac.com added the comment:
I've just committed a fix for this issue in all 4 active branches (2.6,
2.7, 3.1 and 3.2)
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
Thomas Heller thel...@ctypes.org added the comment:
I'm curious: Which output do you get from:
'LANG=C /sbin/ldconfig -p | fgrep GL'
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7356
Ronald Oussoren ronaldousso...@mac.com added the comment:
The problem occurs in two occassions:
1) python was configured/built without the Carbon bindings (such
as the copy that Apple ships)
2) python was build in 64-bit mode
In both cases Carbon.File does not have an FSSpec type.
Luckily
Ryan Shaw ryan.s...@stanfordalumni.org added the comment:
r is the Redis python client. cluster is a large cluster tree along the
lines of the cluster_node class found here:
http://jesolem.blogspot.com/2009/04/hierarchical-clustering-in-python.html
--
Ronald Oussoren ronaldousso...@mac.com added the comment:
Fixed the postflight issue in r76407 (trunk), r76408 (2.6), r76409 (3.2)
and r76410 (3.1).
--
resolution: - fixed
stage: - committed/rejected
status: open - closed
___
Python tracker
Ryan Shaw ryan.s...@stanfordalumni.org added the comment:
I can't reproduce this in a self-contained script. Pickling a smaller
cluster object and storing it in Redis works fine. The cluster object that
caused the crash was large, a binary tree with 5000 leaves holding the
results of a
Retro vinet...@gmail.com added the comment:
I made a patch which fixes the BadZipfile issue. Please take a look and
decide whether you'll toss it or use it. Maybe it'll come handy some
other time in the future.
--
keywords: +patch
Added file:
Matthias Klose d...@debian.org added the comment:
$ LANG=C /sbin/ldconfig -p | fgrep GL
libGLU.so.1 (libc6) = /usr/lib/libGLU.so.1
libGLEW.so.1.5 (libc6) = /usr/lib/libGLEW.so.1.5
libGL.so.1 (libc6, OS ABI: Linux 2.4.20) = /usr/lib/libGL.so.1
--
Mark Dickinson dicki...@gmail.com added the comment:
Short float repr is now enabled in r76379.
Misc/NEWS entries added/updated in r76411.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7117
Steve Krenzel sgk...@gmail.com added the comment:
Just for clarification, why does ci get padded but ic doesn't?
While I agree that updating the documentation would help clarify,
perhaps either everything should be padded to word boundaries or
nothing should.
It is weird behavior that ic !=
Eric Smith e...@trueblade.com added the comment:
It's basically because nothing comes after it. If you put something
after it, such as a zero length integer, you'll see:
from struct import calcsize
calcsize(ci)
8
calcsize(ic)
5
calcsize(ic0i)
8
--
Mark Dickinson dicki...@gmail.com added the comment:
Just for clarification, why does ci get padded but ic doesn't?
Because no padding is necessary in the second case: both the integer and
the character already start at a position that's a multiple of 4---the
integer at position 0 and the
New submission from R. David Murray rdmur...@bitdance.com:
One of the buildbots suffered a test_multiprocessing failure, which
itself is not such an unusual thing. But the error that was
subsequently thrown looks like it might point to a place where
importlib's error handling could be improved.
Mark Dickinson dicki...@gmail.com added the comment:
I'm half-convinced that struct.pack *should* ideally add trailing padding
in the same situation that C does, for consistency with C. Then calcsize
would match C's sizeof. If you're writing or reading a struct from C,
it's probably
Thomas Heller thel...@ctypes.org added the comment:
I assume the patch is fine, would you like to apply it? Thanks.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7356
___
Changes by Andy Buckley a...@insectnation.org:
--
nosy: +andybuckley
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue444582
___
___
Python-bugs-list
New submission from James Lingard j...@aristanetworks.com:
def f((x)=0): pass
gives the following incorrect error message:
SyntaxError: non-default argument follows default argument
def f((x)): pass is treated exactly the same as def f(x): pass, so
it would seem sensible for the same to be
Benjamin Peterson benja...@python.org added the comment:
Fixed in r76416.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7362
Benjamin Peterson benja...@python.org added the comment:
Hmm, I wish intobject.h hadn't been removed so soon. I'm not really sure
how a file of #defines could suffer bitrot. This point is probably moot,
though because there's little point in having its presence skip a
version. I suppose sticking
New submission from Yuv Gre ubershme...@gmail.com:
A bit nitpicky but there are 3 spaces instead of 4 in the docs. This is
relevant to py3k and trunk.
http://docs.python.org/library/socketserver.html#socketserver-udpserver-
example
--
assignee: georg.brandl
components: Documentation
New submission from James Lingard j...@aristanetworks.com:
The following python file:
lambda a, a: 0
when executed gives the following backtrace:
File /tmp/test.py, line 0
SyntaxError: duplicate argument 'a' in function definition
Note that the line number is 0, not 1. (It's always
Benjamin Peterson benja...@python.org added the comment:
Fixed in r76423.
--
nosy: +benjamin.peterson
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7364
New submission from Ed Plese e...@edplese.com:
Both Linux and Solaris define uid_t and gid_t as unsigned integers. The
pwd and grp modules cast these to signed long values that are then
converted with PyInt_FromLong. For large values, greater than 2 ** 32 -
1, the result is correct when Python
Antoine Pitrou pit...@free.fr added the comment:
Are you still willing to work on this?
--
versions: +Python 3.2 -Python 3.1
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5683
___
Antoine Pitrou pit...@free.fr added the comment:
The same remark as in issue7360, that is it is not robust at all to
overwrite the file rather than doing an atomic rename from a temporary
file. The only possible exception would be if you only /append/ to the
mbox file (and that's assuming all
Changes by Antoine Pitrou pit...@free.fr:
--
nosy: +akuchling
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7360
___
___
Python-bugs-list mailing
Valentin Kuznetsov vkuz...@gmail.com added the comment:
Hi,
I just found this bug and would like to add my experience with
performance of large JSON docs. I have a few JSON docs about 180MB in
size which I read from data-services. I use python2.6, run on Linux, 64-
bit node w/ 16GB of RAM and
Bob Ippolito b...@redivi.com added the comment:
Did you try the trunk of simplejson? It doesn't work quite the same way as
the current json module in Python 2.6+.
Without the data or a tool to produce data that causes the problem, there
isn't much I can do to help.
--
Brett Cannon br...@python.org added the comment:
I will obviously have a look, but why the heck is test_multiprocessing
calling importlib? Is it meant to do that? Or is this part of the -j flag
for regrtest?
--
assignee: - brett.cannon
___
Python
Changes by Brett Cannon br...@python.org:
--
nosy: -brett.cannon
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue444582
___
___
Python-bugs-list
Brett Cannon br...@python.org added the comment:
And it looks like the error was triggered from a malformed .pyc file that
was truncated. Guess I need to be more careful with that possibility. =)
--
___
Python tracker rep...@bugs.python.org
Glenn Linderman v+pyt...@g.nevcal.com added the comment:
Re: the BTW -- and should be entity-escaped when used in attribute
values inside tag attributes... (but are probably seldom found as part
of tag attribute values)
But the example you showed is not an attribute in a tag, but rather text
R. David Murray rdmur...@bitdance.com added the comment:
This was on a buildbot, and regrtest -j isn't used there, but in any
case it wouldn't affect importlib as far as I know. From the traceback
it looks like multiprocessing is just doing an import.
--
Chiyuan Zhang plus...@gmail.com added the comment:
re: Yes. In fact, the BTW is a different problem with respect to this
bug. And that seems to be more complicated to fix.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7311
New submission from James Henstridge ja...@jamesh.id.au:
The documentation for the weakref module contains an example that uses
WeakValueDictionary to implement a id2obj() lookup function that doesn't
store strong references to those objects.
This example implicitly assumes that the id() of an
James Henstridge ja...@jamesh.id.au added the comment:
Forgot to include a link to the documentation I was talking about:
http://docs.python.org/library/weakref#example
This example also appears in the 2.7a0 and 3.2a0 documentation.
--
___
Ezio Melotti ezio.melo...@gmail.com added the comment:
If __str__ is supposed to produce nice output, the microsecond shouldn't
be visible at all imho (special cases are not special enough to break the
rules).
If the date/time object is read by a human he probably doesn't care of
the
New submission from Jay Lugo jacewick...@gmail.com:
I spend the better part of a day figuring out this relatively simple
problem with the help files in IDLE with python 2.6 on a mac OSX
I came about the solution by following the code errors all over
up and down the program files.
Eventual I
77 matches
Mail list logo