[Python-ideas] Default value for input

Antoine Pitrou solipsis at pitrou.net
Tue Apr 1 18:00:51 CEST 2014


On Wed, 2 Apr 2014 00:01:47 +1100
Steven D'Aprano <steve at pearwood.info> wrote:
> 
> Yes, I have work-arounds. They aren't what you call elegant. Your 
> suggestion, to wrap the default in square brackets:
> 
> What is the fish of the day? [trout a la creme]

For the record, I would spell it "trout à la crème" or rather "truite à
la crème".
(you might also want to add some shallots, or perhaps they are
implied :-))

cheers

Antoine.




More information about the Python-ideas mailing list