![]() ![]() ![]() (13) seems like a response to the Perl motto “ There’s more than one way to do it”.Namespaces are one honking great idea - let's do more of those! If the implementation is easy to explain, it may be a good idea.ġ9. If the implementation is hard to explain, it's a bad idea.ġ8. Although never is often better than *right* now.ġ7. Although that way may not be obvious at first unless you're Dutch.ġ6. It was actually supposed to be twenty aphorisms. There should be one- and preferably only one -obvious way to do it.ġ4. The Zen of Python is a set of nineteen aphorisms that serve as guiding principles for Pythons design. In the face of ambiguity, refuse the temptation to guess.ġ3. Special cases aren't special enough to break the rules.ġ2. Type the following in a Python command line: Zen of Python: Errors should never pass silently.The Perl scripting language is well known for having many different ways to accomplish a task. Special cases aren’t special enough to break the rules. 'Although that way may not be obvious at first unless youre Dutch.' is probably a reference to the inventor of Perl, Larry Wall, who is not Dutch. The Zen of Python by Tim Peters Beautiful is better than ugly. The Zen of Python by Tim Peters are 20 guidelines for the design of the Python language. Go to PEP (Python Enhancement Request) 20 on the web. The inventor of Python is a Dutch programmer named Guido van Rossum.There are two ways to display these aphorisms: Long time Pythoneer Tim Peters succinctly channels the BDFL's guiding principles for Python's design into 20 aphorisms, only 19 of which have been written down. Zen of Python is a set of principles for writing computer programs that deeply influenced the design of the Python programming language. The Zen of Python inspires programmers all over the world, but, it is not to be taken too literally. The “Zen of Python” is a mini style guide for Python code that is also interesting if you don’t program Python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |