Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Re: Is '[' a function or an operator or an language feature?

Reply
Thread Tools

Re: Is '[' a function or an operator or an language feature?

 
 
Tim Chase
Guest
Posts: n/a
 
      07-17-2010
On 07/16/2010 09:08 PM, MRAB wrote:
> Peng Yu wrote:
>>> You might find my Python symbol glossary useful.
>>> https://code.google.com/p/xploro/dow...PySymbols.html

>>
>> This is for Python 3. Is there one for Python 2.x?
>>

> Is anyone /still/ using Python 2.x?


2.x?! You were lucky. We lived for three months with Python 1.x
in a septic tank. We used to have to get up at six in the
morning, write our 1.x code using ed, eat a crust of stale bread,
go to work down in machine language, fourteen hours a day,
week-in week-out, for sixpence a week, and when we got home our
Dad would thrash us to sleep wi' his belt...

-tkc




 
Reply With Quote
 
 
 
 
Steven D'Aprano
Guest
Posts: n/a
 
      07-17-2010
On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote:

>> Is anyone /still/ using Python 2.x?

>
> 2.x?! You were lucky. We lived for three months with Python 1.x in a
> septic tank. We used to have to get up at six in the morning, write our
> 1.x code using ed,


You got to use ed? Oh, we *dreamed* of using an editor! We had to edit
the sectors on disk directly with a magnetised needle. A rusty, blunt
needle.



--
Steven
 
Reply With Quote
 
 
 
 
geremy condra
Guest
Posts: n/a
 
      07-17-2010
On Sat, Jul 17, 2010 at 1:03 AM, Steven D'Aprano
<(E-Mail Removed)> wrote:
> On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote:
>
>>> Is anyone /still/ using Python 2.x?

>>
>> 2.x?! *You were lucky. We lived for three months with Python 1.x in a
>> septic tank. We used to have to get up at six in the morning, write our
>> 1.x code using ed,

>
> You got to use ed? Oh, we *dreamed* of using an editor! We had to edit
> the sectors on disk directly with a magnetised needle. A rusty, blunt
> needle.


Real programmers use butterflies.

http://xkcd.com/378/

Geremy Condra
 
Reply With Quote
 
Thomas Jollans
Guest
Posts: n/a
 
      07-17-2010
On 07/17/2010 10:03 AM, Steven D'Aprano wrote:
> On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote:
>
>>> Is anyone /still/ using Python 2.x?

>>
>> 2.x?! You were lucky. We lived for three months with Python 1.x in a
>> septic tank. We used to have to get up at six in the morning, write our
>> 1.x code using ed,

>
> You got to use ed? Oh, we *dreamed* of using an editor! We had to edit
> the sectors on disk directly with a magnetised needle. A rusty, blunt
> needle.
>


You try and tell the young people of today that, and they won't believe
you.
 
Reply With Quote
 
Gary Herron
Guest
Posts: n/a
 
      07-17-2010
On 07/17/2010 01:03 AM, Steven D'Aprano wrote:
> On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote:
>
>
>>> Is anyone /still/ using Python 2.x?
>>>

>> 2.x?! You were lucky. We lived for three months with Python 1.x in a
>> septic tank. We used to have to get up at six in the morning, write our
>> 1.x code using ed,
>>

> You got to use ed? Oh, we *dreamed* of using an editor! We had to edit
> the sectors on disk directly with a magnetised needle. A rusty, blunt
> needle.
>


Along those lines, there's this -- one of my favorite comics:

http://xkcd.com/378/

and unrelated to the thread but still about python:

http://xkcd.com/353/

Gary Herron


 
Reply With Quote
 
Thomas Jollans
Guest
Posts: n/a
 
      07-17-2010
On 07/17/2010 06:38 PM, Gary Herron wrote:
> On 07/17/2010 01:03 AM, Steven D'Aprano wrote:
>> On Fri, 16 Jul 2010 21:23:09 -0500, Tim Chase wrote:
>>
>>
>>>> Is anyone /still/ using Python 2.x?


> http://xkcd.com/353/


There we have the most important difference between Python 2 and 3: in
the latter, "import antigravity" actually works.
 
Reply With Quote
 
Emile van Sebille
Guest
Posts: n/a
 
      07-17-2010
On 7/17/2010 9:38 AM Gary Herron said...
> and unrelated to the thread but still about python:
>
> http://xkcd.com/353/


ActivePython 2.6.1.1 (ActiveState Software Inc.) based on
Python 2.6.1 (r261:67515, Dec 5 2008, 13:58:3 [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import antigravity

Nothing happens.
>>>


Emile

 
Reply With Quote
 
Emile van Sebille
Guest
Posts: n/a
 
      07-17-2010
On 7/17/2010 10:57 AM Benjamin Kaplan said...
> Try it in Python 3.
>


Cool.

Although I wouldn't have been surprised had my monitor levitated.

Emile



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Is '[' a function or an operator or an language feature? Peng Yu Python 1 07-17-2010 01:57 PM
Obtaining member function/function object's operator() signature psujkov@gmail.com C++ 1 02-14-2007 12:59 PM
function Object,function statement,function operator alex Javascript 3 12-28-2006 02:57 PM
operator==, member function or free function =?ISO-8859-1?Q?Mattias_Br=E4ndstr=F6m?= C++ 6 04-07-2005 08:40 PM
write a function such that when ever i call this function in some other function .it should give me tha data type and value of calling function parameter komal C++ 6 01-25-2005 11:13 AM



Advertisments