I think that the pretty printer should always prefer a repr defined for an earlier class in the MRO, whether that is as a registered function, a _repr_pretty_ method or a __repr__ method. I.e. if you define:
class A:
...
I think that using samefile() should be a better way to detect if our Python is in a virtualenv - it means we don't have to deal with resolving symlinks.
However, it depends on walking exactly two steps up the path from `sys.executa…
It's possible to have Parso installed alongside an older version of Jedi which doesn't use it. I had this situation, and it was messing up my tab completions because it couldn't detect when it was in a string.
Jedi 0.11 doesn't have t…
I want this to debug a test failure on Jenkins. Merging immediately.
It's a good habit, that will push us to cleanup some things, I hope.
Silence a few annoying warnings for a couple of years.
Otherwise we never know when a feature will be removed.
Nothing prevent us to keep longer, but at least giving a version number
instead of "Next Major release" give a hint to users. And also when we
want to cleanup later, we don't h…
I know we usually don't cleanup, but I've come across these enough time that they bother me.
Add test for up, down, list and longlist.
–
I'm refactoring in this area and these things being not tested makes me unconfortable.
I'm disappointed though that coverage don't work with doctests.
Proof of concept:
In [1]: from numpy import ones
In [2]: def stuff(**kwargs):
...: return ones(**kwargs)
...:
In [3]: stuff(size=18)
---------------------------------------------------------------------------
...
This is the first stage of my effort to use prompt_toolkit for the terminal interface.
My plan is to create a new subclass of InteractiveShell which deals with the terminal using prompt_toolkit instead of readline. To facilitate this,…
See Python issue 21591 for details: http://bugs.python.org/issue21591
The combination of exec and a closure caused a problem on Python 2 older than 2.7.9. That was only released in December 2014, so we probably can't require it yet.
This is a place to store config that should be used by all pages (notebook, dashboard, editor, terminal).
The first such thing is nbextensions that apply to all pages. Ping @Carreau , because this is probably relevant for the Google D…
#7256 asked for a boolean return value from run_cell() for whether code ran successfully. I discussed this with Min, who suggested that given the complexity of run_cell, it should return a result object that can store different pieces of…
Extends #6566 with a couple of fixes that have been holding it up from getting merged.
Closes gh-7237
Closes gh-7258
StaticFileHandler.get() is a coroutine. When Tornado calls a handler method, it uses the return value to determine whether or not it's a coroutine. So when head() calls get(), it needs to pass the return…
pep8 setupbase.py --ignore=E501 tells us everything is ok.
As part of http://24pullrequests.com, and to testing if I can actually submit a correct PR for IPython.
This fixes a test failure for me on my Windows VM. See the comment for details.
So that it gets installed. See discussion on #6537 where the problem came up.
It looks like we don't need to add this to MANIFEST.in - presumably package_data is included in the tarball automatically. I removed an outdated include pat…