Andreas Stührk added the comment:
How about applying the workaround patch to Python 3.2? An unprecise error
message is way better than a segfault.
--
___
Python tracker
<http://bugs.python.org/issue9
Andreas Stührk added the comment:
That happens because argparse uses `os.basename(sys.argv[0])` (per default) as
program name, but `sys.argv[0]` is usually a string of length 0 at interactive
sessions. The tests use ``"usage: {} ...".format(program_name)`` (note that
there will be
Andreas Stührk added the comment:
glibc's `dlopen()` can call `mprotect()`, which is used for loading C
extensions.
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/is
New submission from Andreas Stührk :
There are two tests called "test_descriptor" in getattr_static's test case.
Attached is a patch that renames one.
--
components: Tests
files: duplicated_test_descriptor.patch
keywords: patch
messages: 134565
nosy: Trundle, michael
Andreas Stührk added the comment:
Note that I also opened issue #11824 for the abiflags problem.
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue7
Andreas Stührk added the comment:
I think it is reasonable to restrict the self argument of method descriptors
and slot wrapper descriptors to real instances of the type. The called method
can't cope with the value anyway (in the general case). Alternative Python
implementations like J
Andreas Stührk added the comment:
FWIW, this also affects `ast.literal_eval()`.
--
___
Python tracker
<http://bugs.python.org/issue11343>
___
___
Python-bug
New submission from Andreas Stührk :
The example says "PyModule_AddConstant" instead of "PyModule_AddIntMacro".
Attached is a patch for 3.1 branch, but it applies to all branches.
--
assignee: docs@python
components: Documentation
files: PyModule_AddIntMacro_doc.p
Andreas Stührk added the comment:
See issue #11272.
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue11972>
___
___
Python-bugs-list mailin
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue1856>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue11988>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Stührk added the comment:
A patch against 3.1. The new bytecode is now:
1 0 LOAD_CONST 2 (True)
3 STORE_NAME 1 (initialized)
2 6 LOAD_NAME2 (print)
9 LOAD_CONST 0 ('
Changes by Andreas Stührk :
Added file: http://bugs.python.org/file21988/issue11614_!.patch
___
Python tracker
<http://bugs.python.org/issue11614>
___
___
Python-bug
New submission from Andreas Stührk :
If a non-ascii character is found and there isn't an encoding cookie, a
SyntaxError is raised (in `decoding_fgets`) that includes the path of the file
(using ``tok->filename``), but that path is never set. You can easily reproduce
the crash by
Changes by Andreas Stührk :
--
keywords: +patch
Added file: http://bugs.python.org/file19775/PyTokenizer_FindEncoding_fix.patch
___
Python tracker
<http://bugs.python.org/issue10
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue9232>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Stührk added the comment:
Yes, it is (at the latest since msg124018).
--
resolution: -> duplicate
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue9319>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Stührk added the comment:
It's because `PyErr_Fetch()` which is used in `atexit_callfuncs()` can return
an unnormalized exception (e.g. if the exception is set with
`PyErr_SetString()`. "value" is then a string). A simple call to
`PyErr_NormalizeException()` f
Andreas Stührk added the comment:
Updated patch against py3k branch.
--
nosy: +Trundle
Added file: http://bugs.python.org/file20213/issue8013_py3k.diff
___
Python tracker
<http://bugs.python.org/issue8
Andreas Stührk added the comment:
The real problem with years >= is that it is undefined behaviour anyway
(see e.g.
http://pubs.opengroup.org/onlinepubs/9699919799/functions/asctime.html: "the
behavior is undefined if the above algorithm would attempt to generate more
than 26
Andreas Stührk added the comment:
Sorry, I meant " years > " of course.
--
___
Python tracker
<http://bugs.python.org/issue8013>
___
___
Pytho
Andreas Stührk added the comment:
It's documented under "Year 2000 (Y2K) issues":
http://docs.python.org/library/time.html#time-y2kissues
--
___
Python tracker
<http://bugs.py
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue10814>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Stührk added the comment:
So I guess someone should feel responsible and commit that patch. For
convenience, I updated the patch to inline the raise.
--
Added file:
http://bugs.python.org/file20246/issue10756_normalize_exceptions_v2.diff
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue10827>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Stührk added the comment:
There should also be a call to `PyErr_NormalizeException()`, as `PyErr_Fetch()`
can return unnormalized exceptions (see e.g. issue #10756).
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue6
New submission from Andreas Stührk :
See the attached patch (applies to 2.7 and 3.2).
--
components: Tests
files: test_urllib2.patch
keywords: patch
messages: 125846
nosy: Trundle, lukasz.langa
priority: normal
severity: normal
status: open
title: test_urllib2 shouldn't use is ope
Andreas Stührk added the comment:
I think this is a duplicate of issue #9756: `methoddescr_call()` checks whether
the given argument is acceptable as "self" argument and does so using
`PyObject_IsInstance()`. As the class in the given code returns the type of the
proxied obje
Andreas Stührk added the comment:
See also issue #10922.
--
___
Python tracker
<http://bugs.python.org/issue9756>
___
___
Python-bugs-list mailing list
Unsub
Andreas Stührk added the comment:
Attached is a patch that fixes the issue: The dict methods are now used
directly and before every access to an instance's "__dict__" attribute, it is
checked that that attribute is really the instance's attribute and not a class
attribu
Andreas Stührk added the comment:
> The patch is not sufficient - instances may have a class member "__dict__"
> whilst still having an instance __dict__.
Sure, but I don't think there is a way how you can access the instance
__dict__ in that case inside Python code. At l
Andreas Stührk added the comment:
Updated patch.
--
Added file: http://bugs.python.org/file20830/inspect_issue_11133_v2.patch
___
Python tracker
<http://bugs.python.org/issue11
New submission from Andreas Stührk :
As already stated by Amaury in
http://mail.python.org/pipermail/python-dev/2011-October/113829.html, that
leads to crashes:
>>> import xxlimited
>>> repr(xxlimited.Str)
[1]19575 segmentation fault (core dumped) ./python
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue12029>
___
___
Python-bugs-list mailing list
Unsubscribe:
Andreas Stührk added the comment:
See also issue #11349.
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue15667>
___
___
Python-bugs-list mailin
Andreas Stührk added the comment:
See also issue #11824 for the ABI tags changes.
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue16047>
___
___
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue16612>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Andreas Stührk :
--
nosy: +Trundle
___
Python tracker
<http://bugs.python.org/issue20637>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Andreas Stührk:
The traceback module tries to handle loops caused by an exception's __cause__
or __context__ attributes when printing tracebacks. To do so, it adds already
seen exceptions to a set. Unfortunately, it doesn't handle unhashable
exceptions:
&
Andreas Stührk added the comment:
It was reported as bug to a project that uses the traceback module
(https://github.com/bpython/bpython/issues/651). Parsley
(https://pypi.python.org/pypi/Parsley) is at least one library that uses
unhashable exceptions, although I guess it's by acciden
101 - 141 of 141 matches
Mail list logo