Python Newbie

Chris Angelico rosuav at
Sun Feb 24 21:58:24 CET 2013

On Mon, Feb 25, 2013 at 7:34 AM, Ethan Furman <ethan at> wrote:
> One of the things I love about Python is its ability to get out of the way
> and let me work:
>   - no variable declarations, just use 'em
>   - no type declarations, just use 'em
>   - no need to remember what's an object and what's not -- everything is an
> object
>   - no need to cast to bool as everything has a truthy/falsey (something vs
> nothing) value

Variable declarations can go either way; Python requires you to name
all globals that you mutate, and to be careful when working with
nested functions. With declared variables, you name all locals, and
can enforce scoping and destructors without language features like
'with'. Both options are viable.

I absolutely agree with your third point. Treat 'em all as objects!
But of *course*, Java is "more object oriented" than Python. Everyone
knows that.


More information about the Python-list mailing list