Is it possible to create C-style "main" function in Python? (for teaching purposes)

Chris Angelico rosuav at gmail.com
Thu Oct 6 00:58:24 EDT 2011


On Thu, Oct 6, 2011 at 2:36 PM, alex23 <wuwei23 at gmail.com> wrote:
> On Oct 5, 11:10 pm, Chris Angelico <ros... at gmail.com> wrote:
>> The absence from the language doesn't prove that. All it means is
>> that, on those rare occasions when a goto would have been correct, the
>> programmer had to make do with something else :-)
>
> Like the goto module? :)
>
> http://entrian.com/goto/

Yes. That module is extremely valuable and needs to be brought into
the main trunk. Rick, can this go on your Python 4000 list?

ChrisA



More information about the Python-list mailing list