[Tutor] Simple PassGen

python at bdurham.com python at bdurham.com
Wed Feb 11 16:19:20 CET 2009


Lie,
The import from __future__ print_function happens automatically
in our environment and I took this for granted.
Sorry about the confusion :)
Regards,
Malcolm

----- Original message -----
From: "Lie Ryan" <lie.1296 at gmail.com>
To: python at bdurham.com
Cc: tutor at python.org
Date: Wed, 11 Feb 2009 23:16:11 +1100
Subject: Re: [Tutor] Simple PassGen

On Wed, Feb 11, 2009 at 2:26 AM, <[1]python at bdurham.com> wrote:

  > Are you sure it isn't python 3.x you're playing with? The
  reason why simple print function "works" in python 2.x is
  because of a syntactical
  coincidence, it is still a 100% statement.
  Yes, I'm sure :) I restarted IDLE and pasted my session output
  below:

<snip>
You didn't tell that you imported __future__'s print_function! I
thought I was having a hallucination or something... seeing that
behavior in python2.6

References

1. mailto:python at bdurham.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090211/ce54c887/attachment.htm>


More information about the Tutor mailing list