Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Python Lists

Name: Anonymous 2012-02-04 15:51

I don't understand how a list works in Python.

I always assumed that it was just a linked list with the "link" part hidden to make it mutable. If I wanted to delete a value or a slice I assumed it would just mark the deleted parts for the GC and route the "links" around them.

x = [1,2,3,4,5]

x[0] = (1, 0x1111)
x[1] = (2, 0x2222)
x[2] = (3, 0x3333)

del x[1]

x[0] = (1, 0x1111)
x[1] = (3, 0x3333)

Is this how it works?

Name: Anonymous 2012-02-04 23:17

MENTAL MIDGET DRAFT (MM1X)

Mental Midget is a language that requires no specific syntax from its user, it is capable of understanding (to any conceivable extent) any human language and will execute the statement exactly as the programmer intended it to be executed as part of its mind reading capabilities. Mental Midget can and will do anything the programmer asks, including but not limited to cleaning their toilets, fucking off back to the imageboards and violate Guido van Rossums asshole together with the laws of Physics. Mental Midget programs might be interpreted or compiled or just executed by concentrated effort of the mind.

The purpose of this language is to supersede the "Compute" programming language (as defined in http://esolangs.org/wiki/Compute) as the "Compute" programming language lacks any form of output to the user.

Implementation is left as an exercise to the reader.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List