New submission from Just van Rossum [EMAIL PROTECTED]:
struct.pack() raises SystemError when fed a numpy integer in some cases.
The following was run on MacOSX 10.4, little endian (I can only
reproduce the error if I specify big endian for the struct format). Not
sure if this could be a numpy
Ralf Schmitt [EMAIL PROTECTED] added the comment:
attached is a patch. I hope it is ok to change the semantics a bit.
They were very strange:
- on unix it raises an exception on errors. otherwise it always returns 0.
- on windows it returns non-zero on success, and returns zero on errors.
Now,
Ralf Schmitt [EMAIL PROTECTED] added the comment:
Okay, the patch applies just fine (besides configure, which must be
regenerated). Running the tests however consumes 3 gb of memory.
The range functions must be changed to xrange on trunk. I've also
changed the docs a bit (new in 2.6).
I didn't
Changes by Ralf Schmitt [EMAIL PROTECTED]:
--
versions: +Python 2.6
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2240
__
___
Python-bugs-list mailing list
New submission from Eric Smith [EMAIL PROTECTED]:
PEP 3101 specifies that the empty format presentation type for float
will always print at least one digit after the decimal point, but it
does not do that if the number is output with an exponent:
works:
format(3.0, '')
'3.0'
fails:
Changes by Ralf Schmitt [EMAIL PROTECTED]:
--
nosy: +schmir
type: - resource usage
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1751245
_
___
Python-bugs-list
Skip Montanaro [EMAIL PROTECTED] added the comment:
Jeffrey ... but I'm really surprised to see the same tests affected in
Jeffrey opposite directions. Is that common with pybench and compiler
Jeffrey changes?
I've no idea. Marc-André Lemburg would be the person with the most insight
Joseph Armbruster [EMAIL PROTECTED] added the comment:
Should this issue be linked to 1559298? It appears to be the same issue
but was opened up earlier and is referencing a different version.
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1475
Joseph Armbruster [EMAIL PROTECTED] added the comment:
Note: If this issue is related to 1672853, I ran through the test code
provided in the issue recently and it appeared to pass for both the
trunk and 2.5 maint.
_
Tracker [EMAIL PROTECTED]
New submission from Kazuyoshi Furutaka [EMAIL PROTECTED]:
The line
destination.add(MHMessage(message))
should read
destination.add(mailbox.MHMessage(message))
--
assignee: georg.brandl
components: Documentation
messages: 63442
nosy: furutaka, georg.brandl
severity: minor
status:
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Here is a patch that redoes the entire argv handling, in terms of
wchar_t. As a side effect, it also changes the sys.path handling to use
wchar_t.
--
keywords: +patch
Added file: http://bugs.python.org/file9647/wchar.diff
Changes by Jeffrey Yasskin [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file9648/elim_mem_refs.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2262
__
___
Changes by Jeffrey Yasskin [EMAIL PROTECTED]:
Removed file: http://bugs.python.org/file9648/elim_mem_refs.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2262
__
___
Changes by Jeffrey Yasskin [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file9649/elim_mem_refs.patch
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2262
__
___
Jesús Cea Avión [EMAIL PROTECTED] added the comment:
This issue is solved in pybsddb 4.6.1, available in pypi. Python bsddb3
module must be updated and this issue closed as fixed.
--
nosy: +jcea
__
Tracker [EMAIL PROTECTED]
New submission from Yinon Ehrlich [EMAIL PROTECTED]:
http://docs.python.org/tut/node11.html talks about old/new style
classes. But there is no any explanation what it is. The same for
http://docs.python.org/ref/node33.html
My suggestion: refer to
Changes by Yinon Ehrlich [EMAIL PROTECTED]:
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2266
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by jan matejek [EMAIL PROTECTED]:
--
nosy: +matejcik
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1621
__
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Jesús Cea Avión [EMAIL PROTECTED]:
--
nosy: +jcea
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue834461
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión [EMAIL PROTECTED]:
--
nosy: +jcea
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1215023
_
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión [EMAIL PROTECTED]:
--
nosy: +jcea
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1010645
_
___
Python-bugs-list mailing list
Changes by Jesús Cea Avión [EMAIL PROTECTED]:
--
nosy: +jcea
_
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1149447
_
___
Python-bugs-list mailing list
New submission from Paul Komkoff [EMAIL PROTECTED]:
The datetime.datetime class overrides some arithmetic operations for it
to be able to add or subtract timedeltas. However, the result of A + B
operation, where A is instance of a subclass of datetime and B is
timedelta instance will be always
New submission from Alexander Belopolsky [EMAIL PROTECTED]:
I am attaching a proof-of-concept patch which would optimize bytecode
generated from constant slices as follows:
Before patch:
dis(lambda:x[1:2:3])
1 0 LOAD_GLOBAL 0 (x)
3 LOAD_CONST
Changes by Jean-Paul Calderone [EMAIL PROTECTED]:
--
nosy: -exarkun
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2268
__
___
Python-bugs-list mailing list
New submission from Isaac Morland [EMAIL PROTECTED]:
$ cat bug_fine.py
if True:
max (a='a', 'b')
#elif True:
# pass
else:
pass
$ python bug_fine.py
File bug_fine.py, line 2
max (a='a', 'b')
SyntaxError: non-keyword arg after keyword arg
$ cat bug_show.py
if True:
Isaac Morland [EMAIL PROTECTED] added the comment:
I should add that the full version information is:
Python 2.5 (r25:51908, Aug 15 2007, 11:38:03)
[GCC 4.0.1 (Apple Computer, Inc. build 5367)] on darwin
Also, in my actual code (a much larger file, in a project using ll.xist
and other
New submission from T.G.M. [EMAIL PROTECTED]:
The Python 2.5.2 online docs,
http://docs.python.org/lib/dom-document-objects.html;
(http://docs.python.org/lib/dom-document-objects.html) has the following
2nd sentence:
Remeber that it inherits properties from Node.
Remeber should be Remember.
Facundo Batista [EMAIL PROTECTED] added the comment:
Already fixed in the trunk. Thanks for the report!
--
nosy: +facundobatista
resolution: - out of date
status: open - closed
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2269
Alexander Belopolsky [EMAIL PROTECTED] added the comment:
This is trivial to implement (see attached) and IMHO is a good idea.
The next question, however is whether similar changes should be made to
timedelta arithmetics. Timedelta case is not so clearcut because of the
usual dilemma of what
Paul Komkoff [EMAIL PROTECTED] added the comment:
I just checked the astimezone method - it also does this.
As with timedelta... well, it's not critical for me now but it worth
thinking about :)
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2267
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment:
Recently, the similar issue1562 Decimal can't be subclassed useful was
rejected. In the discussion I found a reference to a former post, which
precisely deals with datetime and timedelta:
New submission from Ross [EMAIL PROTECTED]:
When installing Python using any of the following stand-alone installers:
python-2.5.2.amd64.msi
python-2.5.1.amd64.msi
python-2.5.2.msi
all the files and folders are installed in C:\ instead of C:\Python25\
as specified in the installer. Creating
subclass' tp_alloc.
Existing code already does this in some cases. For example,
class d(datetime): pass
...
d.strptime('20080310', '%Y%m%d')
d(2008, 3, 10, 0, 0)
d.now()
d(2008, 3, 10, 20, 27, 6, 303147)
I think date/datetime present a particularly compelling case for
departing from the general
Tarek Ziadé [EMAIL PROTECTED] added the comment:
patch with more tests and explanations...
for the -r option, the standard call without the change would be:
$ python setup.py register -r pypi sdist upload -r pypi
which is very redundant. That's why config.py looks into args.
To avoid
Martin v. Löwis [EMAIL PROTECTED] added the comment:
Please run
msiexec /i msi /l*v python.log
Compress the log, and attach it to this report.
--
nosy: +loewis
__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2271
36 matches
Mail list logo