learning python idioms
James Stroud
jstroud at ucla.edu
Sun Jun 11 17:26:34 EDT 2006
conkerll at gmail.com wrote:
> After several years developing in Java, I've begun to switch to Python
> for several of my new projects as I have found the language quite
> interesting. I've read several tutorials and implemented a few sample
> programs and I've found that Python enables one to program in a variety
> of different styles (I'm not sure if this was the original intention or
> not). Thus, I find myself occaisionally slipping into the "Java"
> mindset when writing Python code and I wonder if this is not optimal.
> Python is not Java and there must be more "correct" ways of doing this
> in Python that simply writing Java code with different syntax. Is
> there a good reference on the internet about Python-specific idioms and
> just good Python style in general. Which language constructs are
> efficient and which aren't?
>
> Thanks in advance,
> Ben
>
As an experiment, I googled 'python idioms' and got a few good hits
right at the top. I probably should have done this a long time ago.
James
--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095
http://www.jamesstroud.com/
More information about the Python-list
mailing list