Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #74431

Re: Not enough memory.

From Mark Lawrence <breamoreboy@yahoo.co.uk>
Subject Re: Not enough memory.
Date 2014-07-14 18:51 +0100
References <tencent_761A03211ACD954C396C8228@qq.com> <CAKJDb-NfZZCjOizRWmKGmMoi-ktujTPqjcRUW_4r7U1rs7GSZA@mail.gmail.com>
Newsgroups comp.lang.python
Message-ID <mailman.11804.1405360305.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 14/07/2014 17:40, Zachary Ware wrote:
> On Mon, Jul 14, 2014 at 8:16 AM, 水静流深 <1248283536@qq.com> wrote:
>>>>> import os
>>>>> help(os.path)
>> Not enough memory.‍
>>
>> Why i get it?Not enough memory , not help info?,not
>
> In future, it's very helpful to tell us what OS is running which
> version of Python when you get an error, but in this case I'm betting
> on Python 3 on Windows with code page 65001 active:
>
> C:\>chcp 65001
> Active code page: 65001
>
> C:\>py -3
> Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600
> 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> help(help)
> Not enough memory.
>
>>>> exit()
>
> C:\>chcp 437
> Active code page: 437
>
> C:\>py -3
> Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600
> 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
>>>> help(help)
> Help on _Helper in module _sitebuiltins object:
> ...
>
> The 'Not enough memory.' message is actually coming from the Windows
> 'more' utility (C:\Windows\System32\more.com), as stated in the bug
> linked to in Mark's message.  To work around that, you can either use
> a different codepage (anecdotal evidence tells me that cp65001 is
> barely supported by anything, even Windows itself), or set the PAGER
> environment variable to "type", which will disable paging, but allow
> the help text to print.
>

See also https://bugs.python.org/issue21927, specifically msg222761

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence

---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Not enough memory. Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-07-14 18:51 +0100

csiph-web