Aaron Gallagher [EMAIL PROTECTED] added the comment:
I can't reproduce this on python 2.5.1, 2.5.2, or 2.6.0 on Mac OS 10.5.4.
Both .read() and .readline() raise an EBADF IOError. 3.0.0 fails in the
same way.
--
nosy: +habnabit
___
Python tracker
New submission from Aaron Brady [EMAIL PROTECTED]:
Nested 'BigEndianStructure' fails in 2.5 and 2.6.:
TypeError: This type does not support other endian
Example and traceback in attached file.
--
assignee: theller
components: ctypes
files: ng36.py
messages: 76171
nosy: castironpi
New submission from Aaron Brady [EMAIL PROTECTED]:
Python 2.6 (r26:66721, Oct 2 2008, 11:35:03) [MSC v.1500 32 bit
(Intel)] on win
32
Type help, copyright, credits or license for more information.
import inspect
type( inspect.getargvalues( inspect.currentframe() ) )
type 'tuple'
Docs say
Aaron Gallagher [EMAIL PROTECTED] added the comment:
Alright, sorry this took so long. Hopefully this can still be included in
3.0.
Included is a patch that no longer uses collections.deque and also adds a
test case to test/test_pickle.py. The test catches RuntimeError and fails
the unittest
Aaron Gallagher [EMAIL PROTECTED] added the comment:
Ah, I didn't know that a list would be as fast for appending and popping.
I knew that lists were optimized for .append() and .pop(), but I didn't
know that a list would be just as fast as a deque if it was just used as a
stack.
And I'll
Aaron Gallagher [EMAIL PROTECTED] added the comment:
I've provided an alternate implementation of this that works with very
minimal modification to pickle.py. See issue 3119 for the patch.
--
nosy: +habnabit
___
Python tracker [EMAIL PROTECTED]
http
New submission from Aaron Gallagher [EMAIL PROTECTED]:
Currently, pickle.py in the stdlib is limited by the python call stack.
For deeply recursive data structures, the default recursion limit of 1000
is not enough. The patch attached modifies pickle.py to instead use a
deque object as a call
New submission from Aaron Gallagher [EMAIL PROTECTED]:
With the advent of collections.namedtuple, I thought that having a
counterpart in the struct module would make having to deal with unpacked
data much easier. Per suggestion, this extends the behavior of
_struct.Struct rather than
Aaron Gallagher [EMAIL PROTECTED] added the comment:
Okay, here's a new version of my patch. Instead of replacing the default
functionality of struct.Struct, this patch now adds the functionality to a
separate class called NamedStruct, so as to not break backwards
compatibility. The coding
New submission from Aaron Gallagher [EMAIL PROTECTED]:
There is currently no way in the configure script to specify an
alternate name for Python.framework. If I want to completely separate
versions of Python (e.g. for 3.0 alphas and/or Stackless), I have to
manually edit configure.in
Aaron Gallagher [EMAIL PROTECTED] added the comment:
Here's a framework that implements the necessary change. I'm not very good
at autoconf, so it might need to be touched up.
--
keywords: +patch
Added file: http://bugs.python.org/file9977/framework.patch
Aaron Gallagher [EMAIL PROTECTED] added the comment:
Okay, here's the same patch but now with Mac/Makefile.in patched. I
changed all references to Python to the framework name, because I believe
it won't work properly otherwise.
Added file: http://bugs.python.org/file9979/framework2.patch
New submission from Aaron Kaplan:
In some versions of John Goergen's program offlineimap, he includes a
copy of imaplib.py with the attached changes. It results in a speedup
of more than 50% compared to using the stock imaplib.py.
--
files: imaplib-patch
messages: 63237
nosy
Aaron Watters added the comment:
Okay. I haven't looked but this should be well documented
somewhere because I found it very surprising (it crashed a large
run somewhere in the middle).
In the case of strings versus unicode I think it is possible
to hack around this by catching the exceptional
New submission from Aaron Watters:
As I understand it comparisons between two objects should
always work. I get this at the interpreter prompt:
Python 2.6a0 (trunk, Jan 11 2008, 11:40:59)
[GCC 3.4.6 20060404 (Red Hat 3.4.6-8)] on linux2
Type help, copyright, credits or license for more
Aaron Watters added the comment:
Facundo
1) the +1024 was an accelerator to jump up to over 1k at the first resize.
I think it's a good idea or at least doesn't hurt.
2) Here is an example program:
def test():
from marshal import dumps
from time import time
testString = abc
New submission from Aaron Watters:
Much to my surprise I found that one of
my applications seemed to be running slow as a result
of marshal.dumps. I think the culprit is the w_more(...)
function, which grows the marshal buffer in 1k units.
This means that a marshal of size 100k will have 100
Aaron Watters added the comment:
also:
I just modified the code to do iterations using increasingly large data
sizes
and I see the kind of very unpleasant behaviour for the old implementation
(max time varies wildly from min time) that I saw in my more complex
program. The new implementation
Aaron Swartz added the comment:
Just a note for those who think this is a purely theoretical issue:
We've been using the python-markdown module on our web app for a while,
only to notice the app has been repeatedly going down. After tracking
down the culprit, we found that a speech from Hamlet
New submission from Aaron Bingham:
Under Gnome, Firefox will open the wrong URL when launched by
webbrowser. For example after running the following interactive session:
[EMAIL PROTECTED]:~ python
Python 2.5.1 (r251:54863, Jun 6 2007, 13:42:30)
[GCC 4.1.2 20061115 (prerelease) (SUSE Linux
301 - 320 of 320 matches
Mail list logo