The "goto" module was an April Fool's joke, published on 1st April 2004. Yes, it works, but it's a joke nevertheless. Please don't use it in real code!
Let's use it everywhere!
Name:
Anonymous2008-12-22 22:47
oh god, if i knew this existed my coding would be 10x better.
Name:
Anonymous2008-12-22 22:49
EXPERT PROGRAMMERS, such as myself, can safely use goto.
Name:
Anonymous2008-12-22 23:26
expert programmers like DARK SQUARE are such experts they can hax yor anus and cenzor their name form your reply!
Name:
Anonymous2008-12-23 4:21
PHP's next version will be implementing a new kind of GOTO.
Expect PHP 'developers' to rejoice about how OOP this is and how it is 'magic' that will lead to good 'code'.
Name:
Anonymous2008-12-23 5:54
No jumping into the middle of a loop
Even in Python, gotos are not proper gotos.
Name:
Anonymous2008-12-23 5:58
Goto isn't harmful.Its actually faster.Goto compiles to JMPs,
everything else(which replaces Goto) is converted to series of complex assignments/checks and then a JMP.
>>12 Shed Skin is currently limited to small programs, that do not make heavy use of the Python standard library. ShedSkin can also be significantly slower than CPython for some programs compilable by ShedSkin (e.g. ones relying on the well-optimized behavior of CPython set and str types). It supports only a subset of the features of Python. * Programs cannot freely use the Python standard library, but several common imports are supported (see lib/*.py).
* The type analysis currently does not scale well beyond a few hundreds of lines of code.
* As of version 0.0.22, it is possible to generate simple extension modules, but custom classes are not supported and arguments/return values are copied recursively.
wow, that sounds really useful.
Name:
Anonymous2008-12-23 7:34
Improve it yourself.Are you a programmer?
Name:
Anonymous2008-12-23 7:41
>>14
why would i want to improve a shitty FIOC compiler when i have C99 and haskell compilers that work just fine?
Name:
Anonymous2008-12-23 18:32
Stackless.
Proof of non-suckiness: it's capable of handling the most popular streaming video site on the internet, and can run a full blown MMORPG. CPython can't do that.
Name:
Anonymous2008-12-25 15:52
A golden rule for optimising Python code is to minimise the use of explicit Python structures in favor of implicit ones that use code written in C internaly. For example, list mappings and comprehensions are much faster than Python loops because the implied loops in these constructs are very efficient. Code written using intrinsic operations is also smaller and easier to read. In Python, there is usually one (and only one) obvious way to achieve a task using an implicit operation, so optimising is often straightforward.
Also, function calls are very expensive in Python. You should limit their use as much as possible when performance is important, by inlining code in loops to replace function calls. It does lessen modularity and prevent code reuse, unfortunately. In fact, function calls are so expensive you can lose the performance advantage gained by using implicit structures if these structures call a Python function! For example, using a list mapping that calls a Python function (such as a lambda) is slower than an explicit Python loop using inline code...