[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2015-05-17 Thread Terry J. Reedy

Changes by Terry J. Reedy :


--
resolution: remind -> postponed
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-29 Thread Éric Araujo

Éric Araujo added the comment:

I won’t have the time to do the docs/tests inspection I wanted to do.

--
assignee: eric.araujo -> 

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Terry J. Reedy

Terry J. Reedy added the comment:

Since Eric assigned this to himself, I will give him a chance to answer. I 
removed the 'easy' tag because it is not clear to me what the remaining issue 
is.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-28 Thread Mark Lawrence

Mark Lawrence added the comment:

Given "my patch is not necessary and there is no deficiency." from Jack Andrews 
in msg221777 please close as "not a bug".

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-27 Thread Jack Andrews

Jack Andrews added the comment:

I'm no longer working on this, but IIRC, my patch is not necessary and
there is no deficiency.

Ta, Jack

On Saturday, June 28, 2014, Mark Lawrence  wrote:

>
> Mark Lawrence added the comment:
>
> Does somebody want to propose a patch to take this forward, or can it be
> closed again, or what?
>
> --
> nosy: +BreamoreBoy
> versions: +Python 3.5 -Python 3.3
>
> ___
> Python tracker >
> 
> ___
>

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2014-06-27 Thread Mark Lawrence

Mark Lawrence added the comment:

Does somebody want to propose a patch to take this forward, or can it be closed 
again, or what?

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.3

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2011-04-14 Thread Jack Andrews

Jack Andrews  added the comment:

> Terry J. Reedy  added the comment:
>
> Jack, several questions.
> Are you saying that when stdin is a pipe and not a tty, pdb works better with 
> use_rawinput set False?

yes.  well, at least i thought so.  today, pdb works fine
with no patch.  i must have stumbled across my bug
in the middle of patching cmd.py.

if i notice anything strange, i'll let you know.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2011-04-14 Thread Terry J. Reedy

Terry J. Reedy  added the comment:

Jack, several questions.
Are you saying that when stdin is a pipe and not a tty, pdb works better with 
use_rawinput set False? 
Are you sure that the auto setting is correct in all use cases?
Are you aware that you can set use_rawinput 'manually'?
Have you read my previous response msg118093?
Are you willing to help sort out the questions and issues therein?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2011-04-14 Thread Jack Andrews

Jack Andrews  added the comment:

hi guys,

this makes Cmd a bit more useful.

my use case is talking to pdb via pipe
(ie. subprocess module).  pdb doesn't 
behave very well if stdin is not a tty.


===
--- cmdpy.orig/cmd.py   2011-04-14 23:55:01.102867999 +1000
+++ cmdpy/cmd.py2011-04-14 23:55:16.272868002 +1000
@@ -92,6 +92,8 @@
 self.stdin = stdin
 else:
 self.stdin = sys.stdin
+if not stdin.isatty():
+self.use_rawinput = 0
 if stdout is not None:
 self.stdout = stdout

--
nosy: +Jack.Andrews

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2011-02-17 Thread R. David Murray

Changes by R. David Murray :


--
versions: +Python 3.3 -Python 3.2

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2571] can cmd.py's API/docs for the use of an alternate stdin be improved?

2011-02-17 Thread R. David Murray

Changes by R. David Murray :


--
title: cmd.py always uses raw_input, even when another stdin is specified -> 
can cmd.py's API/docs for the use of an alternate stdin be improved?

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com