aliles added the comment:
Upload new patch that uses encoding and errors from stderr if stdout values are
invalid unicode. Includes unit test in test_builtin.py.
With this patch I am no longer able to replicate this issue.
--
Added file: http://bugs.python.org/file27006/p1345978092
aliles added the comment:
Not an exact duplicate, although I should have seen that issue. Oops.
The 'display' and 'logdir' arguments are independent. Although I do appear to
have gone a little overboard and fixed 12890 issue as well. Should I wait for
that fix to be merged then reissue
aliles added the comment:
I agree that the second patch adds little value to InteractiveConsole.
A third alternative would be to accept default grammar start symbol to be
passed to __init__(). Although this would prevent mixing use of 'single' with
'exec
aliles added the comment:
Replicated this issue on Python 3.3b2. The cause is the 'encoding' and 'errors'
attributes on io.StringIO() being None. Doctest replaces sys.stdout with a
StringIO subclass. The exception raised is still a TypeError.
At this point I'm unsure what the fix should
aliles added the comment:
Submitted patch. Patch creates a new unit test suite with basic unit tests for
InteractiveConsole. Enhances InteractiveConsole to call sys.excepthook instead
of it's own handler if the user has overridden the excepthook.
The unit tests use the new unittest.mock
aliles added the comment:
New patch to address comments provide by Nick Coghlan in person at PyCon-AU
2012.
--
Added file: http://bugs.python.org/file26928/issue12643_2.diff
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12643
aliles added the comment:
Patch option 1 of 2.
Incorporates Kristjan's patch and adds unit tests. This has the side effect of
changing InteractiveConsole's behaviour with respect to displayhook(). I'm
unsure if this is desirable.
--
nosy: +aliles
Added file: http://bugs.python.org
aliles added the comment:
Patch option 2 of 2.
Alternative patch that adds a new method to InteractiveConsole to split the
string into multiple lines, feeding each line to interpreter using push().
This doesn't change the behaviour regarding the displayhook. But this may not
meet Kristjan's
aliles added the comment:
A quick note regarding the last two patches submitted. These patches add unit
tests using the test suite added for Issue #12643. This limits the patches
suitable to Python 3.3 and up.
--
nosy: +ncoghlan
___
Python tracker
aliles added the comment:
Has this issue been resolved by issue been resolved by #12643, which has been
merged for Python 3.3?
--
nosy: +aliles, ncoghlan
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1228112
aliles added the comment:
Tested with Python 3.3b2 built from trunk. This issue is resolved.
--
resolution: - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14563
New submission from aliles:
If cgitb has been enabled to format as text but suppress the display, the
output is formated as html. (Prefixed with p)
gitb.enable(display=0, format='txt')
raise ValueError('Oops!')
pA problem occurred in a Python script.
The patch changes the prefix used
New submission from aliles aaron.i...@gmail.com:
Python 3.2 will exit with a segmentation fault if a byte string is used as a
field name in a subclass of ctypes.Structure.
Python 3.2.2 (default, Dec 18 2011, 18:56:20)
[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00
aliles aaron.i...@gmail.com added the comment:
Should I build a version from the tip of the 3.2 or default branch on
hg.python.org?
This version is Python 3.2.2 built using homebrew. The revision is being
reported as an empty string.
Python 3.2.2 (default, Dec 18 2011, 18:56:20)
[GCC 4.2.1
New submission from aliles aaron.i...@gmail.com:
code.InteractiveConsole doesn't match the CPython interactive interpreter with
respect to allowing sys.excepthook to handle exceptions. Unlike the interactive
interpreter, replacing sys.excepthook with an alternate function will not
change
aliles aaron.i...@gmail.com added the comment:
OK. Not something I was expecting to be asked. But cool :D
If it's not possible for InteractiveConsole to allow exceptions to propagate
through sys.excepthook. (I assume they are being caught in a try: catch: block)
check sys.excepthook
aliles aaron.i...@gmail.com added the comment:
Yes. I have code that behaves differently under CPython and PyPy because of
this issue.
Admittedly that code is somewhat evil. It's attached for reference, in
particular the __HelpSyntax class.
--
Added file: http://bugs.python.org
17 matches
Mail list logo