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


Groups > comp.lang.python > #49732 > unrolled thread

[SPOILERS] Python easter eggs

Started bySteven D'Aprano <steve+comp.lang.python@pearwood.info>
First post2013-07-03 13:29 +0000
Last post2013-07-04 11:35 +1000
Articles 8 — 6 participants

Back to article view | Back to comp.lang.python


Contents

  [SPOILERS] Python easter eggs Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 13:29 +0000
    Re: [SPOILERS] Python easter eggs Ian Foote <ian@feete.org> - 2013-07-03 15:03 +0100
    Re: [SPOILERS] Python easter eggs Chris Angelico <rosuav@gmail.com> - 2013-07-04 00:11 +1000
    Re: [SPOILERS] Python easter eggs Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-03 10:14 -0600
    Re: [SPOILERS] Python easter eggs Ian Kelly <ian.g.kelly@gmail.com> - 2013-07-03 10:15 -0600
      Re: [SPOILERS] Python easter eggs Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-07-03 17:22 +0000
    Re: [SPOILERS] Python easter eggs Ben Finney <ben+python@benfinney.id.au> - 2013-07-04 10:59 +1000
      Re: [SPOILERS] Python easter eggs alex23 <wuwei23@gmail.com> - 2013-07-04 11:35 +1000

#49732 — [SPOILERS] Python easter eggs

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-07-03 13:29 +0000
Subject[SPOILERS] Python easter eggs
Message-ID<51d4272a$0$29999$c3e8da3$5496439d@news.astraweb.com>
Most people are familiar with:

import this


and sometimes even with:

from __future__ import braces


But I'm aware of at least three more. Anyone care to give them?


-- 
Steven

[toc] | [next] | [standalone]


#49736

FromIan Foote <ian@feete.org>
Date2013-07-03 15:03 +0100
Message-ID<mailman.4167.1372860211.3114.python-list@python.org>
In reply to#49732
On 03/07/13 14:29, Steven D'Aprano wrote:
> Most people are familiar with:
>
> import this
>
>
> and sometimes even with:
>
> from __future__ import braces
>
>
> But I'm aware of at least three more. Anyone care to give them?
>
>

import antigravity

Regards,
Ian F

[toc] | [prev] | [next] | [standalone]


#49740

FromChris Angelico <rosuav@gmail.com>
Date2013-07-04 00:11 +1000
Message-ID<mailman.4169.1372860724.3114.python-list@python.org>
In reply to#49732
On Thu, Jul 4, 2013 at 12:03 AM, Ian Foote <ian@feete.org> wrote:
> import antigravity

Having checked its docstring, I am now left wondering what I can do
with the Munroe geohashing algorithm and if there's any way I could
use that at work somehow.

ChrisA

[toc] | [prev] | [next] | [standalone]


#49751

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-07-03 10:14 -0600
Message-ID<mailman.4177.1372868114.3114.python-list@python.org>
In reply to#49732
On Wed, Jul 3, 2013 at 8:03 AM, Ian Foote <ian@feete.org> wrote:
> On 03/07/13 14:29, Steven D'Aprano wrote:
>>
>> Most people are familiar with:
>>
>> import this
>>
>>
>> and sometimes even with:
>>
>> from __future__ import braces
>>
>>
>> But I'm aware of at least three more. Anyone care to give them?
>>
>>
>
> import antigravity

from __future__ import barry_as_FLUFL
import __hello__

[toc] | [prev] | [next] | [standalone]


#49752

FromIan Kelly <ian.g.kelly@gmail.com>
Date2013-07-03 10:15 -0600
Message-ID<mailman.4178.1372868172.3114.python-list@python.org>
In reply to#49732
On Wed, Jul 3, 2013 at 10:14 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote:
> On Wed, Jul 3, 2013 at 8:03 AM, Ian Foote <ian@feete.org> wrote:
>> On 03/07/13 14:29, Steven D'Aprano wrote:
>>>
>>> Most people are familiar with:
>>>
>>> import this
>>>
>>>
>>> and sometimes even with:
>>>
>>> from __future__ import braces
>>>
>>>
>>> But I'm aware of at least three more. Anyone care to give them?
>>>
>>>
>>
>> import antigravity
>
> from __future__ import barry_as_FLUFL
> import __hello__

And in Jython there's:

from __future__ import GIL

[toc] | [prev] | [next] | [standalone]


#49764

FromSteven D'Aprano <steve+comp.lang.python@pearwood.info>
Date2013-07-03 17:22 +0000
Message-ID<51d45def$0$29999$c3e8da3$5496439d@news.astraweb.com>
In reply to#49752
On Wed, 03 Jul 2013 10:15:22 -0600, Ian Kelly wrote:

> And in Jython there's:
> 
> from __future__ import GIL

Nice one! I didn't know about that!


-- 
Steven

[toc] | [prev] | [next] | [standalone]


#49789

FromBen Finney <ben+python@benfinney.id.au>
Date2013-07-04 10:59 +1000
Message-ID<mailman.4194.1372899576.3114.python-list@python.org>
In reply to#49732
Ian Kelly <ian.g.kelly@gmail.com> writes:

> from __future__ import barry_as_FLUFL

Only works in Python 3 (raises a SyntaxError in Python 2).

> import __hello__

Different between Python 2 and Python 3 — try it in both!

-- 
 \          “I spent all my money on a FAX machine. Now I can only FAX |
  `\                                          collect.” —Steven Wright |
_o__)                                                                  |
Ben Finney

[toc] | [prev] | [next] | [standalone]


#49795

Fromalex23 <wuwei23@gmail.com>
Date2013-07-04 11:35 +1000
Message-ID<kr2j6v$if7$2@dont-email.me>
In reply to#49789
On 4/07/2013 10:59 AM, Ben Finney wrote:
> Ian Kelly <ian.g.kelly@gmail.com> writes:
>> import __hello__
>
> Different between Python 2 and Python 3 — try it in both!

Is it meant to imply that Py2 is weary while Py3 is still enthusiastic,
or is that just my personal take? :)

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web