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


Groups > comp.lang.python > #74428

Re: Not enough memory.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.albasani.net!rt.uk.eu.org!newsfeed.xs4all.nl!newsfeed1a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <zachary.ware@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.023
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'win32': 0.03; 'memory.': 0.07; 'python': 0.11; 'bug': 0.12; 'windows': 0.15; 'exit()': 0.16; 'itself),': 0.16; 'subject:Not': 0.16; 'sender:addr:gmail.com': 0.17; 'wrote:': 0.18; 'variable': 0.18; 'bit': 0.19; 'module': 0.19; '>>>': 0.22; 'memory': 0.22; 'import': 0.22; 'tells': 0.24; 'helpful': 0.24; 'mon,': 0.24; 'environment': 0.24; 'cc:2**0': 0.24; 'supported': 0.26; 'header :In-Reply-To:1': 0.27; 'am,': 0.29; 'message-id:@mail.gmail.com': 0.30; 'skip:( 20': 0.30; "i'm": 0.30; 'code': 0.31; '>>>>': 0.31; 'disable': 0.31; 'text': 0.33; 'running': 0.33; 'to:name:python- list': 0.33; 'skip:_ 10': 0.34; 'message.': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'version': 0.36; '14,': 0.36; 'to:addr:python-list': 0.38; 'that,': 0.38; 'to:addr:python.org': 0.39; 'enough': 0.39; 'either': 0.39; 'even': 0.60; 'tell': 0.60; 'more': 0.64; 'different': 0.65; 'linked': 0.65; 'stated': 0.69; 'jul': 0.74; 'future,': 0.83; '2014,': 0.84; 'object:': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=gj15FCTfszObQWIs6xehmnNF/dbJFGip30xPBMSfUeg=; b=xWxgfZVoBXxcqM/6m329q4qraL2hRrS60YqBoTQqY1oBcumzzcThRHXKgoMz88oGFW Cv5jayq6AsT/k97/wRBCuTa5V6OPpyx5gBxMmXQOWFrVthZIur2dYXpriAmBojpjf0Ds NskZ5xjBd9YVSlusZ9B/f2MrFYhMlQWEYKCCHXdhwd/OJ5NHqxFzK/aN5Tqg8IM0voLQ Cy/773yzJcEW0sI8CxaDgJBFRvYR5HOUz3Z0uarW0wI1aTBkbK8ZYB3NHfd71mlyyQ1Q F+R5v11ZIDGsXFMc1Fxh+pF7JnoWX4mITpPgM5kInf709LqkADPep0jMsd2w6ZMHXzOe Ae3Q==
X-Received by 10.60.134.102 with SMTP id pj6mr9413775oeb.70.1405356023923; Mon, 14 Jul 2014 09:40:23 -0700 (PDT)
MIME-Version 1.0
Sender zachary.ware@gmail.com
In-Reply-To <tencent_761A03211ACD954C396C8228@qq.com>
References <tencent_761A03211ACD954C396C8228@qq.com>
From Zachary Ware <zachary.ware+pylist@gmail.com>
Date Mon, 14 Jul 2014 11:40:03 -0500
X-Google-Sender-Auth Jc3EH7NKI6Waj_QEBuTLccYkQTc
Subject Re: Not enough memory.
To python-list <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.11802.1405356026.18130.python-list@python.org> (permalink)
Lines 45
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1405356026 news.xs4all.nl 2885 [2001:888:2000:d::a6]:55755
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:74428

Show key headers only | View raw


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.

-- 
Zach

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


Thread

Re: Not enough memory. Zachary Ware <zachary.ware+pylist@gmail.com> - 2014-07-14 11:40 -0500
  Re: Not enough memory. wxjmfauth@gmail.com - 2014-07-14 10:37 -0700

csiph-web