Re: Favorite non-python language trick?

2005-06-27 Thread GodFoca
> if a.value == True: > return a > if not database.connect == error: > database.query(q) Yeah, yeah, I know that :-) What I mean is that most of the time I find the code more "readable" (I know that more readable code ain't better code, but it helps when you work with other people...). >

Re: Favorite non-python language trick?

2005-06-26 Thread GodFoca
> I'm curious -- what is everyone's favorite trick from a non-python > language? And -- why isn't it in Python? Hmm... I used to be quite the fan of Python, yet not long ago I met Ruby and fell in love almost instantly. Some of the features I like the most: - statement modifiers: < "return a if