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))
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
Stefano Taschini added the comment:
I'll give it a try.
--
___
Python tracker
<http://bugs.python.org/issue14611>
___
___
Python-bugs-list mailing list
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
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
Changes by Stefano Taschini :
--
nosy: +taschini
___
Python tracker
<http://bugs.python.org/issue1065986>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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):
""&
Changes by Stefano Taschini :
--
nosy: +taschini
___
Python tracker
<http://bugs.python.org/issue8767>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
Changes by Stefano Taschini :
Added file: http://bugs.python.org/file25418/issue8767_interpreter.patch
___
Python tracker
<http://bugs.python.org/issue8767>
___
___
Pytho
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
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 ":
Stefano Taschini added the comment:
Understood and agreed.
--
___
Python tracker
<http://bugs.python.org/issue8767>
___
___
Python-bugs-list mailing list
Unsub
Changes by Stefano Taschini :
--
nosy: +taschini
___
Python tracker
<http://bugs.python.org/issue4709>
___
___
Python-bugs-list mailing list
Unsubscribe:
17 matches
Mail list logo