New submission from Gregory P. Smith <[EMAIL PROTECTED]>:
The attached script simply loops building a list of tuples. It has
horrible performance as the list gets larger compared to something
appending simple objects like ints to the list.
% python tuple_gc_h
Gregory P. Smith added the comment:
I like that this patch adds a new method with the different behavior. They are
both distinct and desirable behaviors. The existing behavior has already been
shipped in Python 3.1 so it should not change. Also it is already in use via
the http
Changes by Gregory P. Smith :
--
nosy: +michael.foord
___
Python tracker
<http://bugs.python.org/issue7832>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gregory P. Smith added the comment:
FYI - A discussion on why this change may have been a bad idea and breaks
peoples existing code:
http://freshfoo.com/blog/object__init__takes_no_parameters
--
nosy: +gregory.p.smith
___
Python tracker
<h
Gregory P. Smith added the comment:
Using issue7242-gps01.diff on release26-maint and a freshly downloaded
opensolaris 2009-06 VM test_thread, test_threading and test_subprocess all pass
for me both before -and- after the patch. Nor does the original thread_test.py
cause the problem for me
Gregory P. Smith added the comment:
If you have a chance tonight that'd be awesome. I'd love to get this in before
2.6.5rc1 (being cut tomorrow) but as its platform specific (and a pretty-old
platform at that) its not worth holding up t
Gregory P. Smith added the comment:
fixed in trunk r78517 and release26-maint r78518.
still needs merging into py3k and release31-maint
--
resolution: -> accepted
___
Python tracker
<http://bugs.python.org/iss
Gregory P. Smith added the comment:
r78519 r78520 for py3k and 3.1.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue7481>
___
___
Py
Gregory P. Smith added the comment:
Reviewers: gregory.p.smith, Benjamin, ilya.sandler,
Message:
Also, can you take a look at how the pdb unittests work and see if you
can come up with a way to unittest the KeyboardInterrupt behavior?
Particular for the 4 scenarios you outlined in your prior
Gregory P. Smith added the comment:
fwiw - The documentation was updated in trunk, py3k and release31-maint to
mention this behavior of assertSameElements.
Assigning to Michael for a decision on whether or not to add to the API.
python-unittest-backport has since been supplanted by Michael
Gregory P. Smith added the comment:
r.david.murray - sounds like a good idea.
--
___
Python tracker
<http://bugs.python.org/issue3892>
___
___
Python-bugs-list m
Changes by Gregory P. Smith :
--
nosy: +gregory.p.smith
priority: -> normal
___
Python tracker
<http://bugs.python.org/issue8032>
___
___
Python-bugs-list mai
Gregory P. Smith added the comment:
In PC/pyconfig.h we #define Py_WINVER to _WIN32_WINNT_WIN2K (0x500) for 32bit
builds.
I think we should update this to _WIN32_WINNT_WINXP (0x501) for all builds,
not just 64bit.
Assigning to loewis as he does our windows release builds so likely knows
Gregory P. Smith added the comment:
"extended support" for windows 2000 server ends in a few months, mainstream
support ended 5 years ago:
http://support.microsoft.com/lifecycle/?LN=en-us&x=8&y=9&p1=7274
That, IMNSHO, implies that python 2.7 and 3.2 should not bo
Gregory P. Smith added the comment:
Just disabling those two tests is the best thing for the 2.6.5 release if we
don't get around to the actual fix:
Since calling setreuid(-1, -1) is apparently not such a no-op on all systems
these tests would be better if we ran them in a subprocess so
Gregory P. Smith added the comment:
right that logic is inverted. my bad. its fine in trunk already as it uses
@unittest.skipIf there. that decorator doesn't exist in 2.6.
fixed in r78659
--
resolution: -> fixed
status: open -
Changes by Gregory P. Smith :
--
assignee: -> gregory.p.smith
nosy: +gregory.p.smith -gps
___
Python tracker
<http://bugs.python.org/issue8073>
___
___
Python-
Gregory P. Smith added the comment:
See trunk r78718 for my proposed fix.
--
___
Python tracker
<http://bugs.python.org/issue8045>
___
___
Python-bugs-list mailin
Gregory P. Smith added the comment:
merged into release26-maint r78754.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Gregory P. Smith added the comment:
I really don't care about the age of a bug. This bug is young. I've fixed
many bugs over twice its age in the past.
Regardless, I've got some serious subprocess internal refactoring changes
coming in the very near future to explicitly d
Gregory P. Smith added the comment:
Looking through the thousands of uses of assertSameElements in our internal
code base at work I see many uses of it that are likely not hashable items in
the sequences being compared.
The largest use of course is with lists and tuples of hashables where
Gregory P. Smith added the comment:
A restore_signals parameter was added in py3k r78946.
I'm leaving this issue open as it needs backporting to 2.7.
--
versions: -Python 3.2
___
Python tracker
<http://bugs.python.org/i
Gregory P. Smith added the comment:
Pretty sure I know off the top of my head what this is. Ill fix it.
--
Added file: http://bugs.python.org/file16578/unnamed
___
Python tracker
<http://bugs.python.org/issue8
Gregory P. Smith added the comment:
py3k r79097
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue8173>
___
__
Changes by Gregory P. Smith :
--
nosy: -gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue3783>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Gregory P. Smith :
--
assignee: -> gregory.p.smith
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue8246>
___
___
Python-
Gregory P. Smith added the comment:
wrapping select in an eintr handler that loops like SocketServer_eintr.diff is
fine.
--
assignee: -> gregory.p.smith
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/iss
Gregory P. Smith added the comment:
i don't see your attachment brett.
--
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue5099>
___
___
Changes by Gregory P. Smith :
--
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue8513>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gregory P. Smith added the comment:
Nice dabeaz.
One potential concern with "dabeaz_gil.patch 2010-04-25 21:13" is that it
appears to always leave the gil_monitor thread running. This is bad on
mobile/embedded platforms where waking up at regular intervals prevents
advanced sl
Gregory P. Smith added the comment:
since the other discussion is ongoing on issue7946 i posted my comment there.
--
nosy: +gregory.p.smith
___
Python tracker
<http://bugs.python.org/issue8
Gregory P. Smith added the comment:
i'm +0.7 on fsencode/fsdecode going into os.path.
My bikeshed 0.7? They're also useful for dealing with environment variables
which are not strictly filesystem (fs) related but also suffer from the same
issue requiring surrogate escape. But
Gregory P. Smith added the comment:
in the unittests there is some use of 'compress' and 'decompress'
mixed with 'zlib.decompress'. which one is right (i'm only looking at
the diff so i can't see if they were imported from zlib or if the
zlib. is requi
Gregory P. Smith added the comment:
I think your partA patch makes sense.
It would benefit from fsencode/fsdecode functions rather than manually doing
the 'surrogateescape' thing everywhere.
Also, could you add a unittest for os._execvpe to test it
Gregory P. Smith added the comment:
+.. function:: fsencode(value)
+
+ Encode *value* to bytes for use in the file system, environment variables or
+ the command line. Use :func:`sys.getfilesystemencoding` and
+ ``'surrogateescape'`` error handler for str, and keep bytes uncha
Gregory P. Smith added the comment:
Build on the os._execvpe unittest I added in py3k r81001. Protected functions
are perfectly fine things to unittest.
--
___
Python tracker
<http://bugs.python.org/issue8
Gregory P. Smith added the comment:
I think your patch looks good Brett.
--
___
Python tracker
<http://bugs.python.org/issue5099>
___
___
Python-bugs-list mailin
Gregory P. Smith added the comment:
Committed to trunk in r81012. though as this missed 2.7beta2 its possible that
will be rejected and this becomes a 3.x only feature.
I'm porting to py3k now.
--
versions: +Python 3.2
___
Python tracker
Gregory P. Smith added the comment:
And reverted in trunk r81013. Multiple buildbot problems from the initial
commit due to the unittest.
This is likely to be py3k only at this point.
I do believe sig.patch.v3 is fine, but its the test_pdb2 unittest that is
difficult to make work well
Gregory P. Smith added the comment:
my bad. hopefully r81019 fixes that.
--
___
Python tracker
<http://bugs.python.org/issue8513>
___
___
Python-bugs-list mailin
Gregory P. Smith added the comment:
bsddb3 isn't in py3k.
--
priority: high -> normal
versions: -Python 2.5, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.or
Gregory P. Smith added the comment:
zliberrors.patch looks good to me.
On Mon, May 10, 2010 at 3:37 PM, Antoine Pitrou wrote:
>
> New submission from Antoine Pitrou :
>
> This is a patch to use our own error descriptions when the zlib doesn't
> provide anything in parti
Gregory P. Smith added the comment:
patch looks good.
--
___
Python tracker
<http://bugs.python.org/issue8672>
___
___
Python-bugs-list mailing list
Unsubscribe:
Gregory P. Smith added the comment:
Thanks for the test! I'll take a look and likely commit this later.
--
assignee: -> gregory.p.smith
___
Python tracker
<http://bugs.python.or
New submission from Gregory P. Smith :
C Python has a real wart in that standard types and library functions that are
implemented in C do not always accept keyword arguments:
>>> 'xx'.find('xx', 4)
4
>>> 'xx'.find('xx', start=4
Gregory P. Smith added the comment:
"There is still another possible leak if the PyMem_Realloc
return NULL (i.e., the system is out of memory), but I don't think it
worth fixing."
Do it. It looks easy: a Py_DECREF(it) before the return
Gregory P. Smith added the comment:
reading 5.patch over...
Any particular reason for using buf_size = 32 when the length isn't
known up front? add a comment saying why (or that its just a magic
guess). anyways it sounds like a fine starting value. picking
anything "better"
New submission from Gregory P. Smith:
The resolution to http://bugs.python.org/issue1608 looks like it'll add
a -fwrapv gcc flag when building python. This works around the issue
nicely on one compiler (gcc) but doesn't fix our fundamentally broken code.
We should fix all depen
Gregory P. Smith added the comment:
"""code that has been audited and fixed in the past will again be
vulnerable."""
That code wasn't properly audited or fixed if it depended on integer
overflow behavior.
Anyways, I'm glad we have the flag to disable
Gregory P. Smith added the comment:
heh if thats the only warning gcc -Wstrict-overflow gives then I've
mistitled the bug. Fixed. It'll take some manual code review.
Anyone know if the commercial analysis tools we've run the code base
through in the past can fi
Gregory P. Smith added the comment:
nice. ping a mac developer for what to do with the darwin stuff that
you commented out.
It'd also be nice to have unit tests for the new behavior. Though i
don't think we have many (any?) of that type of regression test right
now. Such a test wou
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1731717>
_
___
Python-bugs-list
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1336>
__
___
Python-bugs-list mailing list
Unsubs
Gregory P. Smith added the comment:
The uploaded file appears to be derives from Python 2.4.1 (tags/r241).
i've uploaded an actual diff between the two.
regardless, Thomas's point about disabling it -before- the fork() is true.
Added file: http://bugs.python.org/file9186/di
Gregory P. Smith added the comment:
I've just attached a diff against trunk that I believe fixes this (based
off of jba's patch). Unit tests pass but that doesn't say a whole lot
given that this is a hard to reproduce timing/scheduling related bug.
Would someone please
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1736792>
_
___
Python-bugs-list
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1703448>
_
___
Python-bugs-list
Gregory P. Smith added the comment:
threadingbug.py doesn't fail for me on trunk (linux), anyone else?
the output I get is always:
Main thread ID: -134346528
Secondary thread ID: -135349328
Exception KeyError: KeyError(-134346528,) in ignored
--
nosy: +gregory.p.
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1404925>
_
___
Python-bugs-list
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue595601>
___
Python-bugs-list mailing list
New submission from Gregory P. Smith:
This probably applies to 3.0 as well but i have not tested it there.
Here are some sample failures:
=== A ==
Exception in thread Thread-01 (most likely raised during
interpreter shutdown):Exception in thread Thread-03
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1339>
__
___
Python-bugs-list mailing list
Unsubs
Changes by Gregory P. Smith:
--
nosy: +gregory.p.smith
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue829951>
___
Python-bugs-list mailing list
Changes by Gregory P. Smith:
--
assignee: -> gregory.p.smith
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue829951>
___
Python-bugs-li
Changes by Gregory P. Smith:
--
assignee: -> gregory.p.smith
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1339>
__
___
Python-bugs-list mailing li
Gregory P. Smith added the comment:
Yes i believe it is unrelated to any recent change.
I can reproduce both behaviors on my OS X 10.4 dual core mac using
Python 2.5.1.
Python 2.3 on the mac appears to get stuck in a loop when run stand
alone but gets a memory access fault when run under gdb
Gregory P. Smith added the comment:
Fixed in trunk (2.6) r60015.
--
resolution: -> accepted
status: open -> closed
versions: +Python 2.5, Python 2.6
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.
Gregory P. Smith added the comment:
and in r60017 on release25-maint for inclusion in 2.5.2.
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue829951>
___
Gregory P. Smith added the comment:
Accepted and applied, with appropriate documentation updates.
In svn trunk r60020 for 2.6.
--
resolution: -> accepted
status: open -> closed
versions: +Python 2.5, Python 2.6
__
Tracker <[EMAIL PROTECTE
Gregory P. Smith added the comment:
gah, sorry i misread the report. you are correct.
--
versions: +Python 2.4, Python 2.5, Python 2.6
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/iss
Gregory P. Smith added the comment:
agreed, during shutdown the other threads should be stopped. anything
to do this complicates acquiring and releasing the GIL by adding another
check to see if we're shutting down.
brainstorm: I haven't looked at the existing BEGIN_ALLOW_T
Changes by Gregory P. Smith:
--
status: pending -> closed
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1035>
__
___
Python-bugs-list mailing li
Gregory P. Smith added the comment:
fixed in trunk r60104. i'm backporting it to 2.5 and 2.4.
--
resolution: -> fixed
versions: +Python 2.5, Python 2.6
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pyt
Gregory P. Smith added the comment:
r60111 undid part of r60104 that added an unnecessary else and
indentation. svn diff -r60103:60111 of Lib/subprocess.py is a nice
clean patch.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/
Changes by Gregory P. Smith:
--
assignee: -> gregory.p.smith
keywords: +easy
nosy: +gregory.p.smith
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Gregory P. Smith added the comment:
fixed in trunk r60115 (2.6).
--
resolution: -> fixed
status: open -> closed
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Gregory P. Smith added the comment:
r60113 in release25-maint, r60114 in release24-maint.
--
status: open -> closed
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Gregory P. Smith added the comment:
fixed in trunk r60116 (2.6). and release25-maint r60117 (2.5.2).
--
resolution: -> accepted
status: open -> closed
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Gregory P. Smith added the comment:
The issue here was that reading more data than will fit into an in
memory string fails. While the zipfile module could detect this in some
cases, it is not really worth such a runtime check. This is just a fact
of python and of sane programming, if you
Gregory P. Smith added the comment:
this failure also occurs on simple zip files created using infozip's zip
with -e to "encrypt" the contents. debugging...
__
Tracker <[EMAIL PROTECTED]>
<http://b
Gregory P. Smith added the comment:
Fixed in r60121 (2.6). zip file decryption "check" bytes were more
complicated than the existing code supported. Algorithm updated.
--
resolution: -> fixed
status: open -> closed
versions: +Python
Gregory P. Smith added the comment:
a code snipped using a database d that demonstrates this:
c = d.cursor()
d.close()
print >>sys.stderr, "database closed before cursor"
del c
print >>sys.stderr, "cursor deleted and we didn't crash!&q
Gregory P. Smith added the comment:
why not just do this?
finally:
with _active_limbo_lock:
self.__stop()
try:
self.__delete()
except:
pass
(i believe with works on locks? if not turn that into an acquire, try
Changes by Gregory P. Smith:
--
assignee: -> gregory.p.smith
nosy: +gregory.p.smith
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1221598>
_
Gregory P. Smith added the comment:
accepted, committed as svn r60188 for 2.6. I also cleaned up the retr*
and stor* doc strings.
--
resolution: -> accepted
status: open -> closed
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Gregory P. Smith added the comment:
Looks good. Fixed in r60190 (2.6). And r60191 for release25-maint (2.5.2).
--
assignee: gvanrossum -> gregory.p.smith
keywords: +patch
resolution: -> fixed
status: open -> closed
_
Tracker <[EMA
Gregory P. Smith added the comment:
oh, whoops. not a security issue. should i undo it or let Martin?
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1336>
__
__
Gregory P. Smith added the comment:
thanks. applied (well, they will be when svn.python.org comes back)
On 1/22/08, Giampaolo Rodola' <[EMAIL PROTECTED]> wrote:
>
>
> Giampaolo Rodola' added the comment:
>
> Could I propose the following docstring cor
Gregory P. Smith added the comment:
4.5 support was put in a while back
--
nosy: +gregory.p.smith
resolution: -> fixed
status: open -> closed
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.o
Changes by Gregory P. Smith:
--
priority: normal -> low
resolution: -> wont fix
status: open -> closed
_
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Gregory P. Smith added the comment:
Works for me in 2.5 and 2.4 isn't getting bug fixes anymore.
>>> import dbhash
>>> d = dbhash.open('x.db', 'w')
>>> d['e'] = 'Eee'
&g
Gregory P. Smith added the comment:
BerkeleyDB 3.3 through 4.5 are supported. 4.6 support has been checked
in and 4.7 (not yet released) support is supposedly on its way from
someone at oracle.
Versions older than 3.3 are too difficult (and too buggy) to support.
You're on your own i
Gregory P. Smith added the comment:
ReST format docs that cover what is actually implemented and wrapped in
python would be good. We need a volunteer willing to go through and do it.
--
assignee: gregory.p.smith ->
nosy: +jcea
title: Python 2.3 bsddb docs need update -> Python
Changes by Gregory P. Smith:
--
assignee: -> gregory.p.smith
keywords: +64bit, easy
nosy: +gregory.p.smith
priority: -> normal
versions: +Python 2.6, Python 3.0
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.pytho
Changes by Gregory P. Smith:
--
assignee: -> janssen
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue1223>
__
___
Python-bugs-list mailing list
Uns
Gregory P. Smith added the comment:
the docs I see in the URL you give are correct as it states 'two and
four byte unsigned integer respectively' for H and L. However the
example is missing the < for little-endian; I'll add that.
Also, I notice that the struct module do
Gregory P. Smith added the comment:
eew, so the struct module does map as documented to the C types listed
in the docs. yuck. regardless, changing the Ls to Is will fix the
tutorial document code. I'll do that.
I believe there are also other instances of wrong uses of L in struct in
the
Gregory P. Smith added the comment:
The documentation for the struct module says:
"short is 2 bytes; int and long are 4 bytes; long long (__int64 on
Windows) is 8 bytes"
and lists 'l' and 'L' as the pack code for a C long.
As it is implemented today, the docu
Gregory P. Smith added the comment:
A significant portion of the python standard library is broken due to
incorrect use of the struct module on LP64 platforms. I'm attaching a
patch that should clean it up.
I need Mac OS X people to confirm that the Mac changes are sane.
Its possible tha
Gregory P. Smith added the comment:
Anders J. Munch on python-dev correctly says:
You overlooked the words "Standard size and alignment are as follows"
that start the quoted paragraph. It's a little confusing because
standard size is not the default. The default is platform
501 - 600 of 3274 matches
Mail list logo