Some "pythonic" suggestions for Python

2007-11-08 Thread Frank Samuelson
I love Python, and it is one of my 2 favorite languages. I would suggest that Python steal some aspects of the S language. --- 1. Currently in Python def foo(x,y): ... assigns the name foo to a function object. Is this pythonic? Why not use t

Re: Some "pythonic" suggestions for Python

2007-11-09 Thread Frank Samuelson
Steven D'Aprano wrote: > Why? What benefit do you gain? > >> Define function objects as "function"s, let users put them where they >> want to. Get rid of lambda, get rid of def, only use = for assignments. > > So you remove two keywords. That's a plus. But then you have to create a > WHOLE lo

Re: Some "pythonic" suggestions for Python

2007-11-09 Thread Frank Samuelson
Bruno Desthuilliers wrote: > Yes. Python deliberately choosed to be a statement-based language. > >> Why not use the = operator like most other assignments? > > This dead horse has been beaten to hell and back. > > Note that as far as I'm concerned, I may like an expression-based > Python-insp

Re: Some "pythonic" suggestions for Python

2007-11-09 Thread Frank Samuelson
So you like my ideas too! > > There are at least 2 posts a month by someone who decides that they > want to re-wire Python syntax. Usually it's because of some particular > idiom they're used to in another language, And python does not use idioms from other languages? > in other cases it's be

Re: Some "pythonic" suggestions for Python

2007-11-09 Thread Frank Samuelson
Carl Banks wrote: >> "Consistency" improves my productivity because I don't have to keep >> referring to the manual. Things work the way I expect them to work. > > Really, should we be taking suggestions from someone who needs a manual > to recall the syntax of the def statement? > > What you