Skip to content
This repository

initial magic ? (question mark) fails before wildcard #113

Closed
ipython opened this Issue · 3 comments

3 participants

IPython: interactive computing in Python Thomas Kluyver Fernando Perez
IPython: interactive computing in Python
ipython commented

Original Launchpad bug 502779: https://bugs.launchpad.net/ipython/+bug/502779
Reported by: jdm-marchray (Jonathan March).

All the documentation which I have found says that magic:
?a*
should be the same as
a*?

But this is not the case. The latter searches namespaces as desired, the former raises SyntaxError.

OTOH, the following two do act identically:
?a
a?

Is this a documentation error, a product bug, or my configuration error?

Python 2.6.2
Ipython 0.10
Windows XP SP3

==== partial session copy: ===
In [1]: ?a
Object a not found.
In [2]: a?
Object a not found.

In [3]: ?a*

File "", line 1
?a*
^
SyntaxError: invalid syntax
In [4]: a*?
abs
all
any
apply

IPython: interactive computing in Python
ipython commented

[ LP comment 1 by: Fernando Perez, on 2010-04-25 05:11:05.018984+00:00 ]

Documentation error at the very least. It would be nice to actually support it in both modes, but barring that, we should explain that only the *? form works.

Thomas Kluyver
Collaborator

In trunk, ?a* does now work, if you want to close this bug.

Fernando Perez
Owner

Closing then, thanks!

Damián Avila damianavila referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
Damián Avila damianavila referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
David Renshaw dwrensha referenced this issue from a commit in dwrensha/ipython
Andrew Kelley andrewrk fix last.fm scrobbling. closes #113 2843faa
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.