New submission from Andreas Kloeckner:
The attached program uncovers a two-fold performance regression in
Python 2.5 with respect to Python 2.4. Below, the "element-wise" case
goes from 2.5 seconds in 2.4 to about 4 in 2.5. Since that's a pretty
serious increase, I thought I
New submission from Andreas Kloeckner:
This here basically says it all:
>>> import cmath;[cmath.asinh(i*1e-17).real for i in range(0,20)]
[4.4408920985006257e-16, 4.4408920985006257e-16, 4.4408920985006257e-16,
4.4408920985006257e-16, 4.4408920985006257e-16, 4.44089209850
Andreas Kloeckner added the comment:
On Samstag 03 November 2007, Martin v. Löwis wrote:
> Martin v. Löwis added the comment:
>
> Can you propose a patch?
Other than point at how boost.math does things, I don't have the time to work
on this right now, s
Andreas Kloeckner added the comment:
ping?
--
___
Python tracker
<http://bugs.python.org/issue4949>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Kloeckner :
$ python3.1 -m a b.py
results in
Traceback (most recent call last):
File "/usr/lib/python3.1/runpy.py", line 128, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python3.1/runpy.py", line
Andreas Kloeckner added the comment:
ping?
--
___
Python tracker
<http://bugs.python.org/issue4949>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Kloeckner <[EMAIL PROTECTED]>:
Check out this transcript:
8< ---
Python 2.5.2 (r252:60911, Aug 8 2008, 09:22:44)
[GCC 4.3.1] on linux2
Type "help", "copyright", &q
Andreas Kloeckner added the comment:
The fix breaks my package PyCUDA, which relies on handing struct something that
can be cast to long. (i.e. not a float, but something representing a memory
address on a GPU)
Am I out of luck?
--
nosy: +inducer
Andreas Kloeckner added the comment:
AFAICS, __index__ would be fine.
To make sure I understand your proposed solution correctly: You'd go through
the argument list beforehand and cast everything that's not a number type or
str to int by means of
Andreas Kloeckner added the comment:
Thanks for the clarification of 'beforehand'--I had understood from your
description that this would be some sort of preprocessing step.
I agree that the TypeError is a bit much, though I'm biased of course. If you'd
like my input o
New submission from Andreas Kloeckner :
The "name" argument to PyErr_NewException() should be changed from "char
*" to "const char *". Since the rest of pyerrors.h is const-correct,
this seems like an omission.
--
components: Interpreter Core
messages
Change by Andreas Kloeckner :
--
nosy: +inducer
___
Python tracker
<https://bugs.python.org/issue21873>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Andreas Kloeckner :
--
nosy: +inducer
___
Python tracker
<https://bugs.python.org/issue21161>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Kloeckner:
For tests and doctests, it is often desirable to show or verify that a certain
warning occurs. Unfortunately, if the warning has been hit previously, it will
not be issued again. It would be great if there were a documented, unified way
to reset this
Changes by Andreas Kloeckner :
--
type: -> enhancement
___
Python tracker
<http://bugs.python.org/issue20131>
___
___
Python-bugs-list mailing list
Unsubscrib
Andreas Kloeckner added the comment:
Vladislav: The behavior you find funny is actually correct. "pass" is a
statement and as such not allowed in a lambda. (only expressions are)
Your posting is unrelated to this bug report. If you're still confused,
please ask on c
New submission from Andreas Kloeckner :
I get this debugger session with the attached file. Note that even
though a NameError occurs, no indication of that error is visible on the
debugger conosle.
8< -
$ python -m pdb pdb_bug
Changes by Andreas Kloeckner :
--
title: Python bebugger ignores exception if instructed to return from generator
-> Python debugger ignores exception if instructed to return from generator
___
Python tracker
<http://bugs.python.org/iss
Changes by Andreas Kloeckner :
--
versions: +Python 2.7
___
Python tracker
<http://bugs.python.org/issue4949>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Kloeckner :
Take this program:
8< ---
print "START"
a = [
1
for i in range(10)]
8< ---
as "a.py", run "python -m pdb a.py", s
New submission from Andreas Kloeckner :
Steps to reprdocue:
1) Debug a program with a syntax error in pdb.
2) Get the SyntaxError traceback.
3) Hit "q" to quit.
4) Another SyntaxError traceback, and you're back at the Pdb prompt.
--
components: Library (Lib)
messa
Changes by Andreas Kloeckner :
--
nosy: +inducer
___
Python tracker
<http://bugs.python.org/issue1652>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Kloeckner:
traceback.format_exception() used to work properly with the 'arg' value passed
to a tracing function set up via sys.settrace for an 'exception' event. In
Python 3.x, this is no longer the case. Below you'll find what the atta
Andreas Kloeckner added the comment:
Thanks for the suggestion. Since 3.2 and 3.3 will be with us for a while, I've
implemented the workaround you've suggested. Works, too. :)
--
___
Python tracker
<http://bugs.python.o
New submission from Andreas Kloeckner:
This line in the "_struct" module references a "PyStructType" that isn't
declared anywhere. This is only apparent when the file is compiled without
-DNDEBUG.
http://hg.python.org/cpython/file/1410b7790de6/Modules/_struct.c#l
Andreas Kloeckner added the comment:
Whoops. I'm an idiot. Forget I said anything.
--
status: open -> closed
___
Python tracker
<http://bugs.python.org
Andreas Kloeckner added the comment:
(Forgot to say: sorry.)
--
___
Python tracker
<http://bugs.python.org/issue17687>
___
___
Python-bugs-list mailing list
Unsub
27 matches
Mail list logo