[ python-Bugs-950055 ] Is cmdqueue attribute used?

SourceForge.net noreply at sourceforge.net
Fri May 7 17:07:58 EDT 2004


Bugs item #950055, was opened at 2004-05-07 13:25
Message generated for change (Comment added) made by rhettinger
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=950055&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Closed
Resolution: None
Priority: 5
Submitted By: Raymond Hettinger (rhettinger)
Assigned to: Guido van Rossum (gvanrossum)
Summary: Is cmdqueue attribute used?

Initial Comment:
In cmd.py, the cmdqueue attribute is set to a list and 
checked for pending items but never is filled by any 
method nor is it in the documented API.  

Is the interface incomplete or is the attribute bogus?

----------------------------------------------------------------------

>Comment By: Raymond Hettinger (rhettinger)
Date: 2004-05-07 16:07

Message:
Logged In: YES 
user_id=80475

It looks like the interface is limited to an append method.
 Would it be reasonable to make cmdqueue a deque() object
and replace the pop(0) with a popleft()?



----------------------------------------------------------------------

Comment By: Guido van Rossum (gvanrossum)
Date: 2004-05-07 15:50

Message:
Logged In: YES 
user_id=6380

It may not be documented, but it is intended for use by
subclasses, e.g. pdb.py.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=950055&group_id=5470



More information about the Python-bugs-list mailing list