Critic my module
Chris Angelico
rosuav at gmail.com
Sat Jul 27 09:37:25 EDT 2013
On Sat, Jul 27, 2013 at 2:19 PM, Devyn Collier Johnson
<devyncjohnson at gmail.com> 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
More information about the Python-list
mailing list