[issue1045] Performance regression in 2.5

2007-08-28 Thread Andreas Kloeckner
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

[issue1381] cmath is numerically unsound

2007-11-03 Thread Andreas Kloeckner
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

[issue1381] cmath is numerically unsound

2007-11-03 Thread Andreas Kloeckner
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

[issue4949] Constness in PyErr_NewException

2011-06-04 Thread Andreas Kloeckner
Andreas Kloeckner added the comment: ping? -- ___ Python tracker <http://bugs.python.org/issue4949> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10129] Curious 'name not defined error' with 'python -m'

2010-10-16 Thread Andreas Kloeckner
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

[issue4949] Constness in PyErr_NewException

2010-10-16 Thread Andreas Kloeckner
Andreas Kloeckner added the comment: ping? -- ___ Python tracker <http://bugs.python.org/issue4949> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3828] Bound methods compare 'successfully' with ints

2008-09-10 Thread Andreas Kloeckner
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

[issue1530559] struct.pack raises TypeError where it used to convert

2010-03-01 Thread Andreas Kloeckner
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

[issue1530559] struct.pack raises TypeError where it used to convert

2010-03-01 Thread Andreas Kloeckner
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

[issue1530559] struct.pack raises TypeError where it used to convert

2010-03-01 Thread Andreas Kloeckner
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

[issue4949] Constness in PyErr_NewException

2009-01-14 Thread Andreas Kloeckner
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

[issue21873] Tuple comparisons with NaNs are broken

2022-03-24 Thread Andreas Kloeckner
Change by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker <https://bugs.python.org/issue21873> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21161] list comprehensions don't see local variables in pdb in python3

2019-12-05 Thread Andreas Kloeckner
Change by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker <https://bugs.python.org/issue21161> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20131] warnings module offers no documented, programmatic way to reset "seen-warning" flag

2014-01-05 Thread Andreas Kloeckner
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

[issue20131] warnings module offers no documented, programmatic way to reset "seen-warning" flag

2014-01-05 Thread Andreas Kloeckner
Changes by Andreas Kloeckner : -- type: -> enhancement ___ Python tracker <http://bugs.python.org/issue20131> ___ ___ Python-bugs-list mailing list Unsubscrib

[issue6323] Py3.1 pdb doesn't deal well with syntax errors

2009-07-09 Thread Andreas Kloeckner
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

[issue6246] Python bebugger ignores exception if instructed to return from generator

2009-06-08 Thread Andreas Kloeckner
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

[issue6246] Python debugger ignores exception if instructed to return from generator

2009-06-08 Thread Andreas Kloeckner
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

[issue4949] Constness in PyErr_NewException

2009-06-22 Thread Andreas Kloeckner
Changes by Andreas Kloeckner : -- versions: +Python 2.7 ___ Python tracker <http://bugs.python.org/issue4949> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6322] Pdb breakpoints don't work on lines without bytecode

2009-06-22 Thread Andreas Kloeckner
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

[issue6323] Py3.1 pdb doesn't deal well with syntax errors

2009-06-22 Thread Andreas Kloeckner
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

[issue1652] subprocess should have an option to restore SIGPIPE to default action

2009-07-02 Thread Andreas Kloeckner
Changes by Andreas Kloeckner : -- nosy: +inducer ___ Python tracker <http://bugs.python.org/issue1652> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17413] format_exception() breask on exception tuples from trace function

2013-03-13 Thread Andreas Kloeckner
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

[issue17413] format_exception() breaks on exception tuples from trace function

2013-03-14 Thread Andreas Kloeckner
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

[issue17687] Undeclared symbol in _struct.c

2013-04-10 Thread Andreas Kloeckner
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

[issue17687] Undeclared symbol in _struct.c

2013-04-10 Thread Andreas Kloeckner
Andreas Kloeckner added the comment: Whoops. I'm an idiot. Forget I said anything. -- status: open -> closed ___ Python tracker <http://bugs.python.org

[issue17687] Undeclared symbol in _struct.c

2013-04-10 Thread Andreas Kloeckner
Andreas Kloeckner added the comment: (Forgot to say: sorry.) -- ___ Python tracker <http://bugs.python.org/issue17687> ___ ___ Python-bugs-list mailing list Unsub