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


Groups > comp.lang.python > #97763

Re: help(string) commands not working on pyton 3.5

Path csiph.com!au2pb.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed1.swip.net!uio.no!news.tele.dk!news.tele.dk!small.news.tele.dk!newsgate.cistron.nl!newsgate.news.xs4all.nl!nzpost1.xs4all.net!not-for-mail
Return-Path <eryksun@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.010
X-Spam-Evidence '*H*': 0.98; '*S*': 0.00; 'exist,': 0.07; 'subject:help': 0.07; 'subject:string': 0.09; 'subject:not': 0.11; 'output': 0.13; 'command,': 0.16; 'wrote:': 0.16; 'pfxlen:0': 0.18; 'math': 0.20; 'windows': 0.20; 'cc:2**0': 0.20; 'to:name :python-list@python.org': 0.20; 'file.': 0.22; 'installation': 0.23; 'import': 0.24; 'recognized': 0.24; 'header:In-Reply-To:1': 0.24; "doesn't": 0.26; 'external': 0.27; 'message- id:@mail.gmail.com': 0.27; 'probably': 0.31; 'subject:) ': 0.32; 'received:google.com': 0.35; 'skip:p 30': 0.35; 'to:addr:python- list': 0.36; 'subject:: ': 0.37; 'missing': 0.37; 'skip:p 20': 0.38; 'skip:o 20': 0.38; 'does': 0.39; 'to:addr:python.org': 0.40; 'your': 0.60; 'cc:addr:microsoft.com': 0.84; 'subject:commands': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=z/YxT4A4ZuIAg88NdiLshCs8FngZHlwCpVPt7nPKELE=; b=sr8cubTyKQ8nwc6lC/pa1x9Fw3i/897OIVVxbA62y/aJCFUdAQy4OfcoC3pWf4o9I3 5QUTUu/cNGyS83aT2+3cyuSd26JjVEcwlgT/jnBPKZZ98x08fy8FZQrZhPXKzCgMpnI9 yCGbVPKsKXreid+azUa+WkDnQsBVI3Pv0FXuoI6f4ysjbIF8myobKMaUWljsS7SKnz8E PdbIszPlkzN41gCTmmpVrQlAznGTEXYRftvlMAobW6sqrJUf0giCh+0GtV9/FjuK5Sdx panqefAOFzxhDbPTJhXCFXeGolPeHaaHKZfa5MZ/c7fJOmqqs0jzYzH01DUdG+pwbPMA liqA==
MIME-Version 1.0
X-Received by 10.13.225.129 with SMTP id k123mr11789489ywe.221.1445036537933; Fri, 16 Oct 2015 16:02:17 -0700 (PDT)
In-Reply-To <CY1PR03MB150271C7A8F54CAB8140B480D53D0@CY1PR03MB1502.namprd03.prod.outlook.com>
References <CY1PR03MB1502995E56EDE62AFC2405B3D53E0@CY1PR03MB1502.namprd03.prod.outlook.com> <CACL+1atN0yNMFPBAHWXH_3=yLhYqt6-+AJbUy8xaFyB3gXEODQ@mail.gmail.com> <CY1PR03MB150271C7A8F54CAB8140B480D53D0@CY1PR03MB1502.namprd03.prod.outlook.com>
Date Fri, 16 Oct 2015 18:02:17 -0500
Subject Re: help(string) commands not working on pyton 3.5
From eryksun <eryksun@gmail.com>
To "python-list@python.org" <python-list@python.org>
Cc Prasad Joshi <prajoshi@microsoft.com>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
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.63.1445036546.4562.python-list@python.org> (permalink)
Lines 24
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1445036546 news.xs4all.nl 23768 [2001:888:2000:d::a6]:50663
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:97763

Show key headers only | View raw


On 10/16/15, Prasad Joshi <prajoshi@microsoft.com> wrote:
>
> I am using windows 10.
>
>>>> import math
>>>>
>>>>
>>>> help (math)
> 'more' is not recognized as an internal or external command,
> operable program or batch file.

What do you get for the following?

    import os
    windir = os.environ['SystemRoot']
    more_path = os.path.join(windir, 'System32', 'more.com')
    print(os.path.exists(more_path))

If more.com doesn't exist, your Windows installation needs to be
repaired. If it does exist, then probably PATHEXT is missing .COM.
Ensure it's listed in the output of the following:

    import os
    print(os.environ['PATHEXT'])

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


Thread

Re: help(string) commands not working on pyton 3.5 eryksun <eryksun@gmail.com> - 2015-10-16 18:02 -0500

csiph-web