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

Ben Finney ben+python at benfinney.id.au
Wed Oct 5 07:44:34 EDT 2011


Steven D'Aprano <steve+comp.lang.python at pearwood.info> writes:

> import the module called 'math' into the current namespace and bind
> that module to the name 'math' in the current namespace
>
> bind the name 'x' in the current namespace to the return result of
> calling the attribute named 'sin' in the object currently bound to the
> name 'math' in the current namespace using the float literal 1.2345 as
> the argument

This mocking is hurtful to people who identify too strongly with COBOL.
I wonder whether that means it's intentionally hurtful.

-- 
 \           “The long-term solution to mountains of waste is not more |
  `\      landfill sites but fewer shopping centres.” —Clive Hamilton, |
_o__)                                                _Affluenza_, 2005 |
Ben Finney



More information about the Python-list mailing list