[IPython-dev] wildcard-patch

Jörgen Stenarson jorgen.stenarson at bostream.nu
Tue Sep 20 16:00:55 CDT 2005


hi,

here are the latest developments for the wildcard patch. I have 
continued work on the last patch. I now require the shell environment to 
be passed down to psearch() in the inspector class perhaps not the best 
solution but it works.

?PATTERN [OBJECT TYPE] [-NAMSPACE]+ [+NAMESPACE]+ [!a] [!i]

I have added two options that are chosen with !a or !i
!a Show objects with a single leading underscore, default is to hide 
these objects.
!i Ignore case in searches

The namespaces that can be searched are user, builtin, internal, alias. 
The default list contains user and builtin. Using a minus sign infront 
of these names removes the namespace from the search, using a plus adds 
it to the list.

OBJECT TYPE are from the list in the module types. E.g float<=>FloatType
ex.
?* float would match all objects of type float

I'm sure we could have a better syntax so suggestions are welcome. I 
would for instance like to be able to match multiple object types.

regards,
Jörgen
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_20050920
Url: http://projects.scipy.org/pipermail/ipython-dev/attachments/20050920/1b72f3f6/attachment.pl 


More information about the IPython-dev mailing list