Path: csiph.com!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed1.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.021 X-Spam-Evidence: '*H*': 0.96; '*S*': 0.00; 'alias': 0.09; 'collier': 0.09; 'subject:module': 0.09; 'try:': 0.09; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'os.getcwd()': 0.16; 'sat,': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'header:In-Reply-To:1': 0.27; 'tried': 0.27; 'message-id:@mail.gmail.com': 0.30; "skip:' 10": 0.31; '>>>>': 0.31; 'running': 0.33; 'johnson': 0.35; 'but': 0.35; 'received:google.com': 0.35; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; "you're": 0.61; 'jul': 0.74; '2013': 0.98 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 :content-type; bh=N1TrLOXNLLKsJOxKZ9nZW24SKLnWlhrvNVoujYHdrRo=; b=UmVM8naygURkR/63diOgtq/Ryo0ZKqLl3jG1EXTr9oWcaWiah7t42qhxcyFvtZUJdo RNeoQBfqLWRGzW2N71OmBU0bc740VU0bPHZ605+wTCN1V5MQNnB/4XeJwYq75p0NJS1J QcKCzje6DZ2VOVgqGJJKoyZkkQElld2hK2LqWBmpTYOf2SL1Sx4QZs4b9Tkbo6V6wg2R SQ2DNOsDerizfHDi3fX/hcS98Qnu0y1ej1TTKXGdk2gzrIgpLtS6tFE18FKKU7Gm4Ohp +mKdFVgwzwp1TLeBAHTqpSornR/mUq/ffTEiJeItVN5eKYKQpFRYtesivGuKw9y0R3c/ 9ZXg== MIME-Version: 1.0 X-Received: by 10.58.249.236 with SMTP id yx12mr22697615vec.25.1374932245544; Sat, 27 Jul 2013 06:37:25 -0700 (PDT) In-Reply-To: <51F3C8FA.9040801@Gmail.com> References: <51f334eb$0$29971$c3e8da3$5496439d@news.astraweb.com> <51F3C8FA.9040801@Gmail.com> Date: Sat, 27 Jul 2013 14:37:25 +0100 Subject: Re: Critic my module From: Chris Angelico To: python-list@python.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 18 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1374934020 news.xs4all.nl 15902 [2001:888:2000:d::a6]:51854 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:51359 On Sat, Jul 27, 2013 at 2:19 PM, Devyn Collier Johnson wrote: > About the aliases, I have tried setting pwd() as an alias for "os.getcwd()", > but I cannot type "pwd()" and get the desired output. Instead, I must type > "pwd". I tested this in Guake running Python3.3. > >>>> os.getcwd() > '/home/collier' >>>> pwd = os.getcwd() >>>> pwd() Try: >>> pwd = os.getcwd Otherwise you're calling it immediately. ChrisA