[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-18 Thread Stefano Taschini
New submission from Stefano Taschini : How to reproduce Take the following two functions: >>> def f(l, (x, y)): ...sup = max(u*x + v*y for u, v in l) ...return ((u, v) for u, v in l if u*x + v*y == sup) >>> def g((x, y))

[issue12947] Examples in library/doctest.html lack the flags

2012-04-18 Thread Stefano Taschini
Stefano Taschini added the comment: Concrete examples can be seen in the section http://docs.python.org/library/doctest.html#option-flags-and-directives For instance at http://docs.python.org/library/doctest.html#doctest.IGNORE_EXCEPTION_DETAIL The doctest flags present in the sources in

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-18 Thread Stefano Taschini
Stefano Taschini added the comment: I'll give it a try. -- ___ Python tracker <http://bugs.python.org/issue14611> ___ ___ Python-bugs-list mailing list

[issue14611] inspect.getargs fails on some anonymous tuples

2012-04-19 Thread Stefano Taschini
Stefano Taschini added the comment: I think this should do. inspect.getargs is now looking for STORE_DEREF besides STORE_FAST, and is making sure that the appropriate namespace (locals vs cell + free vars) is selected depending on the opcode. The only changes to the test suite are three

[issue12947] Examples in library/doctest.html lack the flags

2012-04-19 Thread Stefano Taschini
Stefano Taschini added the comment: As far as I can see, Sphinx has a global setting for trim_doctest_flags but lacks the possibility of locally disabling the trimming. A quick workaround would be to have the following sphinx extension added: class ProxyLexer(object): def __init__(self

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-23 Thread Stefano Taschini
Changes by Stefano Taschini : -- nosy: +taschini ___ Python tracker <http://bugs.python.org/issue1065986> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-24 Thread Stefano Taschini
Stefano Taschini added the comment: Shouldn't this be reopened for Python 2.7 ? -- type: -> behavior versions: +Python 2.7 -Python 2.5 ___ Python tracker <http://bugs.python.org/i

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-24 Thread Stefano Taschini
Stefano Taschini added the comment: Oh well, in that case I guess we'll have to work around it. Here's the monkey patch I use to overcome this limitation in pydoc, in case others wish to add it to their PYTHONSTARTUP or sitecustomize: def pipepager(text, cmd): ""&

[issue8767] Configure: Cannot disable unicode

2012-04-26 Thread Stefano Taschini
Changes by Stefano Taschini : -- nosy: +taschini ___ Python tracker <http://bugs.python.org/issue8767> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8767] Configure: Cannot disable unicode

2012-04-27 Thread Stefano Taschini
Stefano Taschini added the comment: Here's the patch. It has four goals: 1. Allow ./configure --disable-unicode to work; 2. Have the naked interpreter running with no unicode support; 3. Be able to compile most of the stdlib; 4. Be able to run the test suite. The one

[issue1065986] Fix pydoc crashing on unicode strings

2012-04-27 Thread Stefano Taschini
Stefano Taschini added the comment: Here's my patch, along the lines of the work-around I posted earlier. A few remarks: 1. The modifications in pydoc only touch the four console pagers and the html pager (html.page). 2. A module-wide default encoding is initialized

[issue8767] Configure: Cannot disable unicode

2012-04-30 Thread Stefano Taschini
Stefano Taschini added the comment: Martin, That was exactly my first approach. What made me change my mind is that i) it is also fairly hacky (one might rightfully object that it is the isinstance(x, unicode) tests that should be changed) ii) it is now a hack spread over a dozen

[issue8767] Configure: Cannot disable unicode

2012-04-30 Thread Stefano Taschini
Changes by Stefano Taschini : Added file: http://bugs.python.org/file25418/issue8767_interpreter.patch ___ Python tracker <http://bugs.python.org/issue8767> ___ ___ Pytho

[issue8767] Configure: Cannot disable unicode

2012-04-30 Thread Stefano Taschini
Stefano Taschini added the comment: Here we go. -- Added file: http://bugs.python.org/file25419/issue8767_stdlib.patch ___ Python tracker <http://bugs.python.org/issue8

[issue12947] Examples in library/doctest.html lack the flags

2012-04-30 Thread Stefano Taschini
Stefano Taschini added the comment: Ezio, the patch I attached goes into that direction, by adding a ":trim-doctest-flags: disable" option to the code blocks. I thought I had a good reason for having the option worded as ":trim-doctest-flags: disable" instead of ":

[issue8767] Configure: Cannot disable unicode

2012-05-20 Thread Stefano Taschini
Stefano Taschini added the comment: Understood and agreed. -- ___ Python tracker <http://bugs.python.org/issue8767> ___ ___ Python-bugs-list mailing list Unsub

[issue4709] Mingw-w64 and python on windows x64

2015-10-20 Thread Stefano Taschini
Changes by Stefano Taschini : -- nosy: +taschini ___ Python tracker <http://bugs.python.org/issue4709> ___ ___ Python-bugs-list mailing list Unsubscribe: