help() function screen output

2015-01-31 Thread Jacob Kruger
Using python 3.4 32 bit on windows 7 64 bit machine, and when, for example, 
type in something like the following in interpreter window:
help(str)

It will populate the screen with one full screen of information, with a prompt 
of --more-- to hit enter, or something to continue displaying information, but, 
when, for example, hit enter key, it merely populates one more line of info, 
each time - under pythn 2.7, it seemed to render one full screen of info each 
time.

Is there rather a different keystroke should use to invoke that, or is this a 
python 3.4 feature/issue?

TIA

Jacob Kruger
Blind Biker
Skype: BlindZA
Roger Wilco wants to welcome you...to the space janitor's closet...
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: help() function screen output

2015-01-31 Thread Steven D'Aprano
Jacob Kruger wrote:

 Using python 3.4 32 bit on windows 7 64 bit machine, and when, for
 example, type in something like the following in interpreter window:
 help(str)
 
 It will populate the screen with one full screen of information, with a
 prompt of --more-- to hit enter, or something to continue displaying
 information, but, when, for example, hit enter key, it merely populates
 one more line of info, each time - under pythn 2.7, it seemed to render
 one full screen of info each time.

Are you sure? 

I don't have Windows to try, but in Linux using both Python 2.7 and 3.3,
pressing Enter advances by a single line.

 Is there rather a different keystroke should use to invoke that, or is
 this a python 3.4 feature/issue?

Try using the Space key to advance an entire page.

You can also try Page Up and Page Down keys.

The exact keys will depend on the pager program used by help. The help
function depends on the pydoc module, which tries to use your operating
system's pager program for displaying pages of text. On Linux, that may
be the external programs more or less. I don't know what Windows uses.
If there is no external pager program available, pydoc may end up using its
own internal pager. So the exact keys used will differ.


-- 
Steven

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: help() function screen output

2015-01-31 Thread Jacob Kruger

- Original Message -  Specifically, the last two lines show:


space Display next page
ret   Display next line

which is, I suspect, what you're after here.

(If you're interested, the code for all this is in the pydoc module 
(Lib\pydoc.py) in the getpager() function.


TJG
--
https://mail.python.org/mailman/listinfo/python-list

Yes, that makes sense/works - wonder what changed recently in my overall 
configuration/setup - suppose might have something to do with screen 
reader's system wide interference - maybe it was passing a different 
effective keystroke through to command line prompt before, or something, 
since am 99.9% sure always just used ret key to advance one screen at a 
time before - who knows, but, main thing is, yes, space bar does what I want 
it to.


Thanks

Jacob Kruger
Blind Biker
Skype: BlindZA
Roger Wilco wants to welcome you...to the space janitor's closet...

--
https://mail.python.org/mailman/listinfo/python-list


Re: help() function screen output

2015-01-31 Thread Terry Reedy

On 1/31/2015 4:13 AM, Steven D'Aprano wrote:

Jacob Kruger wrote:


Using python 3.4 32 bit on windows 7 64 bit machine, and when, for
example, type in something like the following in interpreter window:
help(str)

It will populate the screen with one full screen of information, with a
prompt of --more-- to hit enter, or something to continue displaying
information, but, when, for example, hit enter key, it merely populates
one more line of info, each time - under pythn 2.7, it seemed to render
one full screen of info each time.



I don't have Windows to try, but in Linux using both Python 2.7 and 3.3,
pressing Enter advances by a single line.


Same on Windows, 2.7 and 3.4.


Is there rather a different keystroke should use to invoke that, or is
this a python 3.4 feature/issue?


Try using the Space key to advance an entire page.


This works on Windows.


You can also try Page Up and Page Down keys.


Nada

In Idle Shell, help displays entire text and one can scroll up and down 
as desired with scrollbar or PageUp/Down or arrows.


--
Terry Jan Reedy

--
https://mail.python.org/mailman/listinfo/python-list


Re: help() function screen output

2015-01-31 Thread Tim Golden

On 31/01/2015 08:17, Jacob Kruger wrote:

Using python 3.4 32 bit on windows 7 64 bit machine, and when, for
example, type in something like the following in interpreter window:
help(str)
It will populate the screen with one full screen of information, with a
prompt of --more-- to hit enter, or something to continue displaying
information, but, when, for example, hit enter key, it merely populates
one more line of info, each time - under pythn 2.7, it seemed to render
one full screen of info each time.
Is there rather a different keystroke should use to invoke that, or is
this a python 3.4 feature/issue?


The help() function uses (by default, on Windows) the built-in 
more.com command. There's some hand-waving going on there because it 
can/will be overridden if you have a different more executable 
available before the system-provided more.com or if you have a PAGER env 
var set.


If you, at the Windows command prompt (ie *not* in Python), type:

more /?

You can see the various keystrokes which the program responds to. 
Specifically, the last two lines show:


space Display next page
ret   Display next line

which is, I suspect, what you're after here.

(If you're interested, the code for all this is in the pydoc module 
(Lib\pydoc.py) in the getpager() function.


TJG
--
https://mail.python.org/mailman/listinfo/python-list


Re: help() function screen output

2015-01-31 Thread Jacob Kruger
- Original Message - 
From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info

Newsgroups: comp.lang.python
To: python-list@python.org
Sent: Saturday, January 31, 2015 11:13 AM
Subject: Re: help() function screen output



Jacob Kruger wrote:


Using python 3.4 32 bit on windows 7 64 bit machine, and when, for
example, type in something like the following in interpreter window:
help(str)

It will populate the screen with one full screen of information, with a
prompt of --more-- to hit enter, or something to continue displaying
information, but, when, for example, hit enter key, it merely populates
one more line of info, each time - under pythn 2.7, it seemed to render
one full screen of info each time.


Are you sure?

I don't have Windows to try, but in Linux using both Python 2.7 and 3.3,
pressing Enter advances by a single line.


Is there rather a different keystroke should use to invoke that, or is
this a python 3.4 feature/issue?


Try using the Space key to advance an entire page.

You can also try Page Up and Page Down keys.
Ok, strangely, while am relatively sure 2.7 rendered a screen at a time 
before when hitting enter key, it now also seems to advance one line at a 
time, but, yes, seems like space bar does advance a whole screen in both 
versions, and page up/down doesn't react, but, space bar will do for 
now...smile


And, I generally let it render a screen full, and then review the screen 
contents using screen-reader screen review functionality, but, in this case 
it pretty much matches what people see.


Thanks

Jacob Kruger
Blind Biker
Skype: BlindZA
Roger Wilco wants to welcome you...to the space janitor's closet... 


--
https://mail.python.org/mailman/listinfo/python-list