A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2007-February/071130.html below:

[Python-Dev] [Python-3000] pre-PEP: Default Argument Expressions

[Python-Dev] [Python-3000] pre-PEP: Default Argument Expressions [Python-Dev] [Python-3000] pre-PEP: Default Argument ExpressionsGreg Ewing greg.ewing at canterbury.ac.nz
Thu Feb 15 00:18:33 CET 2007
Another thing I don't like about this default argument
proposal is that using it in any non-trivial way would
tend to put implementation details of the function
up in the header, which should be reserved for info
describing the calling signature.

The following example from the PEP is an extreme
instance of this:

 >   def bar(b=my_sum((["b"] * (2 * 3))[:4])):
 >      print b

--
Greg
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4