[Patches] [ python-Patches-490026 ] Namespace selection for rlcompleter
noreply@sourceforge.net
noreply@sourceforge.net
Sat, 08 Dec 2001 17:38:33 -0800
Patches item #490026, was opened at 2001-12-06 13:42
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=490026&group_id=5470
Category: Library (Lib)
>Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Fernando Pérez (fer_perez)
Assigned to: Nobody/Anonymous (nobody)
Summary: Namespace selection for rlcompleter
Initial Comment:
The standard rlcompleter is hardwired to work with
__main__.__dict__. This is limiting, as one may have
applications which execute in specially constructed
'sandboxed' namespaces.
This patch extends rlcompleter with
a constructor which provides an optional namespace specifier.
This optional parameter defaults to __main__.__dict__, so the
patch is 100% backwards compatible.
----------------------------------------------------------------------
>Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-08 17:38
Message:
Logged In: YES
user_id=6380
Since this is obviously a new feature, I'll postpone this
until after 2.2.
One thing that worries me: you capture the identity of
__main__.__dict__ early on in this patch. The original code
uses whatever __main__.__dict__ at the time it is needed.
----------------------------------------------------------------------
Comment By: Fernando Pérez (fer_perez)
Date: 2001-12-08 10:39
Message:
Logged In: YES
user_id=395388
Oops, sorry. You can tell I've never used the system before. I put the
file in, but I just didn't see the stupid extra checkbox. Lack of
orthogonality
in an interface is always a recipe for
problems.
Anyway, it should be ok now.
Cheers,
Fernando.
PS.
And the obvious, *THANKS* a lot for putting such a fantastic tool out.
----------------------------------------------------------------------
Comment By: Guido van Rossum (gvanrossum)
Date: 2001-12-08 09:15
Message:
Logged In: YES
user_id=6380
There's no uploaded file! You have to check the
checkbox labeled "Check to Upload & Attach File"
when you upload a file.
Please try again.
(This is a SourceForge annoyance that we can do
nothing about. :-( )
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=490026&group_id=5470