[issue39964] adding a string to a list works differently with x+='' compared to x=x+''

2020-03-14 Thread Richard King
New submission from Richard King : x = ['a'] x += ' ' results in ['a',' '] x = x + ' ' results in an exception: Traceback (most recent call last): File "", line 1, in TypeError: can only concatenate list (not "str") to

[issue2577] cmd.py should track input file objects so macros with submacros can be easily written

2009-03-30 Thread Richard King
Richard King added the comment: ok, thanks. R. David Murray wrote: > R. David Murray added the comment: > > Since it's been almost a year and the OP hasn't responded with an > updated patch, I'm closing this as out of date. > > -- > nosy: +bit

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-06-18 Thread Richard King
Richard King <[EMAIL PROTECTED]> added the comment: There were some other things I wanted too so I just made my own cmd.py. -Rick Raghuram Devarakonda wrote: > Raghuram Devarakonda <[EMAIL PROTECTED]> added the comment: > > Richard, I see the following very clearly mentione

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-04-08 Thread Richard King
Richard King <[EMAIL PROTECTED]> added the comment: (this is really 2 mails because my home email address was not registered so they were rejected at first) Right - I wasn't too clear. The module stashes stdin, whether from sys or passed in, in self.stdin. When it reads input it

[issue2577] cmd.py should track input file objects so macros with submacros can be easily written

2008-04-07 Thread Richard King
New submission from Richard King <[EMAIL PROTECTED]>: Add an "input" method or property that saves the current input file object and resets the input file object; when input results in an "EOF", the input file object stack is popped and reading continues from there. A m

[issue2571] cmd.py always uses raw_input, even when another stdin is specified

2008-04-07 Thread Richard King
New submission from Richard King <[EMAIL PROTECTED]>: The module global value use_rawinput is initialized to 1 but not reset when stdin is replaced with a passed-in value. -- components: Extension Modules messages: 65094 nosy: rickbking severity: normal status: open title: cmd.py