christen added the comment:
Bug is still there but pb is solved, simply use oepn('file', 'U')
see outputs :
fichin=open('test.txt','U')
===
(2, 5, 0, 'final', 0)
2007-09-12 08:00:43
(500, 9.31236239624)
(1000, 22.31236239624)
(1500, 35.094000101089478)
(2000,
Changes by Georg Brandl:
--
assignee: - georg.brandl
nosy: +georg.brandl
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1152
__
___
Python-bugs-list mailing list
Gregory P. Smith added the comment:
Attaching the most recent patch (minor update from the second one i sent
to the python-3000 mailing list to initialize ob_readonly_exports = 0 in
the appropriate places).
Current mailing list discussion is pointing out that the name LOCKDATA
means something
New submission from Marcin 'Qrczak' Kowalczyk:
Python 3.0a1 (py3k, Sep 8 2007, 15:57:56)
[GCC 4.2.1 20070719 (release) (PLD-Linux)] on linux2
Type help, copyright, credits or license for more information.
import pickle
help(pickle)
Traceback (most recent call last):
File stdin, line 1, in
Tim Golden added the comment:
I've reviewed the docs for English and general readability. As
mentioned, I've no idea of the tech involved. I did look through the
bdb.py source and the existing docs for pdb to get some idea of the
terminology used. Ultimately I've changed very little; in a couple
Guido van Rossum added the comment:
Cool. This helps track down the bug a bit more; it's either in (our
routine) getline_via_fgets or it's in Microsoft's text mode line end
translation (which universal newlines bypasses).
I'm assigning this to Tim Peters, who probably still has a Windows box
Georg Brandl added the comment:
Thanks for reviewing, I'll finish and commit that one shortly.
--
assignee: - georg.brandl
nosy: +georg.brandl
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1136
__
New submission from hhas:
CFStringRefObj_Convert leaks memory when passed a str. See attached diff
file for patch.
--
components: Macintosh
files: CFmodule.diff
messages: 55843
nosy: hhas
severity: normal
status: open
title: Carbon.CF memory leak
type: resource usage
versions: Python
Cristina Yenyxe González García added the comment:
Oops, of course a filename should be in canonical form (an absolute name
which does not contain repeated path separators or symbolic links)!
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1136
ajaksu added the comment:
IMHO this patch should be considered for (at least) py3k, in which long
becomes the new int. As there is current interest in long/int
performance[1] this seems like a good time to raise this kind of issue.
Mark, could you please outline the semantic changes
New submission from hhas:
While other CF...RefObj_Convert functions return a borrowed object,
CFStringRefObj_Convert will return either a new or borrowed CFStringRef
depending on the type of value supplied (str, unicode or CFString). As a
result, extensions that use CFStringRefObj_Convert
Bill Janssen added the comment:
Georg got it right -- this patch is bogus. I'm going to close it as
won't fix. Feel free to re-open it as an RFE with a good patch.
--
resolution: - wont fix
status: open - closed
_
Tracker [EMAIL PROTECTED]
Georg Brandl added the comment:
Okay, committed as rev. 58112, 58113. Thank you!
--
resolution: - accepted
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1136
__
Georg Brandl added the comment:
Fixed in rev. 58114.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1152
__
___
Georg Brandl added the comment:
Fixed in rev. 58115, 58116 (2.5). Thanks!
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1122
__
Georg Brandl added the comment:
Fixed in rev. 58117, 58118 (2.5). Thanks!
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1139
__
Georg Brandl added the comment:
I'll look into it.
--
nosy: +georg.brandl
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1598083
_
___
Python-bugs-list mailing
New submission from Johann Tonsing:
The document from which http://docs.python.org/lib/os-process.html was
generated contains:
Note: The standard way to exit is sys.exit(n). _exit() should normally
only be used in the child process after a fork().
Should child be replaced with parent?
This
Georg Brandl added the comment:
Fixed in rev. 58119, 58120 (2.5).
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1154
__
Guido van Rossum added the comment:
PJE's patch looks good to me too.
Stylistic nits:
- The proper name of the now-public null importer type ought to be
PyNullImporter_Type, to rhyme with e.g. PyString_Type
- There's a multi-line if that has the closing parenthesis in an odd
place at the
Georg Brandl added the comment:
Assigning to Martin.
--
assignee: - loewis
nosy: +georg.brandl, loewis
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1156
__
___
Georg Brandl added the comment:
Fixed in the repr module (it was calling sorted() on sets and dicts,
which is wrong without fallback) in rev. 58122 (trunk), 58123 (2.5) --
will be merged to 3.0 shortly.
--
assignee: - georg.brandl
nosy: +georg.brandl
resolution: - fixed
status: open -
Georg Brandl added the comment:
Documented in rev. 1121.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1121
__
___
Guido van Rossum added the comment:
I like this, but the patch has problems: you don't error-check the
return value from PyObject_Unicode() or PyUnicode_FromObject() (and why
do you need the latter call anyway?)
Also in the docstring I would reference str() instead of __str__().
There are also
Thomas Heller added the comment:
Can someone please test the patch and report back? -- Thanks
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1777530
_
___
Georg Brandl added the comment:
Fixed in rev. 58125, should be merged to 3k shortly. Thanks!
--
nosy: +georg.brandl
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1120
Georg Brandl added the comment:
The function in question is in Python/ast.c. Martin, does the string
need to be null-terminated or does DecodeUnicodeEscape need to be fixed
(since it takes an explicit length argument)?
--
assignee: - loewis
nosy: +georg.brandl, loewis
type: - crash
Georg Brandl added the comment:
Brett, you recently fixed an infinite recursion crasher, right?
--
assignee: - brett.cannon
nosy: +brett.cannon
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1686386
_
Guido van Rossum added the comment:
Confirmed. I'll fix it ASAP.
--
assignee: - gvanrossum
nosy: +gvanrossum
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1148
__
Georg Brandl added the comment:
Unfortunately, the patch is hard to review with all the whitespace
cleanup distracting from semantic changes. Can you produce a patch with
only those changes?
--
nosy: +georg.brandl
__
Tracker [EMAIL PROTECTED]
Guido van Rossum added the comment:
Committed revision 58126.
--
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1148
__
___
Georg Brandl added the comment:
Fixed in rev. 58127.
--
assignee: - georg.brandl
nosy: +georg.brandl
resolution: - fixed
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1038
__
Guido van Rossum added the comment:
There's one additional issue. If any of the items is a bytes, the call
should fail.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1145
__
Brett Cannon added the comment:
So the first example (in msg31624) crashes because of infinite recursion
with the repr of exceptions::
#7771 0x00065178 in BaseException_repr (self=0x5dc6b8) at
Objects/exceptions.c:128
#7772 0x0001d90c in PyObject_Repr (v=0x5dc6b8) at Objects/object.c:362
#7773
Changes by Brett Cannon:
--
versions: +Python 2.6
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1686386
_
___
Python-bugs-list mailing list
Unsubscribe:
Mark Dickinson
added the comment:
To help explain what's going on, here's some Python code. The Python
function long_hash1 below has the properties that:
(1) long_hash1(n) == hash(n) for almost all integers n, with a
Brett Cannon added the comment:
OK, so I have attached a possible patch. I found out that
tuple.__repr__ didn't do anything to prevent infinite recursion since
you can't pull it off from Python code. But obviously C code is another
matter. =)
Same goes for object.__str__; it didn't think
Changes by Brett Cannon:
--
title: Python SEGFAULT on invalid superclass access - Python SEGFAULT on
tuple.__repr__ and str()
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1686386
_
ajaksu added the comment:
Thanks a lot for the explanation. I still think it could be valuable
(C?)py3k change (but now for the predictability, as you say :)
Regarding the performance of Decimal.__hash__:
I believe (int) hash performance would be a moot issue if
Decimal.__int__ was (much)
New submission from Skip Montanaro:
Attached is a patch for py3k which adds a %f format code to its strftime
method. When included in a format string it expands to the number of
microseconds in the object. date, time and datetime objects all support
the format (though I'm not sure what, if
40 matches
Mail list logo