Giudo Van Helsing today announced that the use of a main() function in Python will now generate an error. After stating that "Python is not C" he went on to say that for backward compatibility the programmer can import a module for programs already using main(). "...and since the people who use main() are also the people who disregard naming conventions, it is"

from USELESScRUFT import main

The new main() function will also be required to return an integer or an error will be generated.

Happy April 1st!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.