472,344 Members | 2,325 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,344 software developers and data experts.

Learning more about "The Python Way"

Those who have read my posts today have probably understood that I'm
not a "true" Python programmer ... but I want to learn more (I think
that Python is rather fun).

I've read "Learning Python" pretty thoroughly, I've looked at some of
the tutorials, some of online documentation, etc. But I still miss a
lot of pieces for writing good python code, idioms, advanced
usage/features, etc.

I've also seen a lot of references to v3, but I haven't found any
real documentation of what's planned for that version.

So, I'm looking for advice/information on:

+ How to write "proper" python code instead of
Java/Perl/C/C++/Pascal/Modula-2/etc inspired code

+ The more advanced parts/uses of Python

+ Discussions about the ideas behind different Python
constructs

+ What's going to happen with v3

I would really appriciate some pointers to where I can find info
about this. Web sites (I've looked at python.org but haven't manage
to find the stuff of what I'm looking for ... but perhaps I've missed
all the interesting parts) ? Books (I've got 'Learning Python' and
'Programming Python')? Other things?

jem
Jul 19 '05 #1
6 1407
Kalle Anke napisał(a):
So, I'm looking for advice/information on:

+ How to write "proper" python code instead of
Java/Perl/C/C++/Pascal/Modula-2/etc inspired code


Just follow the white rabbit.

Rewrite your code in Python, then optimize.

--
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/
Jul 19 '05 #2
> Just follow the white rabbit.
This triggers in me the temptation to start
a thread asking:

What (in your opinion) can a good programmer
learn from watching all of the Matrix movies?
Which part, one, two or three deals most with
the philosophy of programming?

Claudio

"Jarek Zgoda" <jz****@gazeta.usun.pl> schrieb im Newsbeitrag
news:d8**********@nemesis.news.tpi.pl...
Kalle Anke napisał(a):
So, I'm looking for advice/information on:

+ How to write "proper" python code instead of
Java/Perl/C/C++/Pascal/Modula-2/etc inspired code


Just follow the white rabbit.

Rewrite your code in Python, then optimize.

--
Jarek Zgoda
http://jpa.berlios.de/ | http://www.zgodowie.org/

Jul 19 '05 #3
"Kalle Anke" wrote:
[snipped]

So, I'm looking for advice/information on:

+ How to write "proper" python code instead of
Java/Perl/C/C++/Pascal/Modula-2/etc inspired code

+ The more advanced parts/uses of Python

+ Discussions about the ideas behind different Python
constructs
For all these, do yourself a favor and buy/borrow/steal a copy of the
python cookbook, 2nd edition. You'll get over 300 recipes, ranging from
simple one-liners to full working programs, packed with pythonic idioms
and extensive discussion for every single recipe.
+ What's going to happen with v3


Google is your friend; search for "python 3000" (interestingly,
searching for "python 3" returns something completely different :-)).

George

Jul 19 '05 #4
Claudio Grondi wrote:
Just follow the white rabbit.

This triggers in me the temptation to start
a thread asking:

What (in your opinion) can a good programmer
learn from watching all of the Matrix movies?
Which part, one, two or three deals most with
the philosophy of programming?

IMO, in my opinion almost certainly the first.

The first can be summed up in the words, "free your mind." From my very
limited experience, that captures 90% of the Zen right there.

The second... uh... "dancing rave orgies are fun?" Doesn't quite work.

The third is entirely inappropriate, since it's rather hard to program
in Python after one has gouged one's eyes out with a rusty spoon.
Jul 19 '05 #5
Kalle Anke wrote:
Those who have read my posts today have probably understood that I'm
not a "true" Python programmer ... but I want to learn more (I think
that Python is rather fun).

I've read "Learning Python" pretty thoroughly, I've looked at some of
the tutorials, some of online documentation, etc. But I still miss a
lot of pieces for writing good python code, idioms, advanced
usage/features, etc.

I've also seen a lot of references to v3, but I haven't found any
real documentation of what's planned for that version.

So, I'm looking for advice/information on:

+ How to write "proper" python code instead of
Java/Perl/C/C++/Pascal/Modula-2/etc inspired code

+ The more advanced parts/uses of Python

+ Discussions about the ideas behind different Python
constructs

+ What's going to happen with v3

I would really appriciate some pointers to where I can find info
about this. Web sites (I've looked at python.org but haven't manage
to find the stuff of what I'm looking for ... but perhaps I've missed
all the interesting parts) ? Books (I've got 'Learning Python' and
'Programming Python')? Other things?

jem


latest edition of the Python Cookbook (read a review here
http://www.techbookreport.com/tbr0163.html). Also online at ActiveState.
Jul 19 '05 #6
Jim
Have you seen the Zen of Python
http://www.python.org/peps/pep-0020.html
? Like a lot of humor, it has a lot of truth in it.

Jim

Jul 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: maadhuu | last post by:
well,i am curious to know what would be the output of the following: delete this; basically , comment on this .
1
by: vsk | last post by:
Hai all, How to retrieve the information about the Network Interface Card(NIC) in C++ ?. Please help me in this regard. Thanks, vsk.
3
by: cmay | last post by:
In reading some documents from the Patterns and Practices group, I had a question about the example given for the Page Controller pattern. (I...
1
by: woodpecker | last post by:
when I set readonly=true,I can't set it back to the value "false",why? Anybody can tell me the reason and fix the problem? Thanks advance. ...
9
by: Lloyd Dupont | last post by:
In my code I would like to use the constant (define in WinGdi.h) CLEARTYPE_QUALITY But that doesn't work!! (it's for CreateFont(...)) A quick...
2
by: Gabriele *darkbard* Farina | last post by:
Hi, I'm using Python 2.5 to develop a simple MVC framework based on mod_python. To load my controllers, I create new modules using the "new"...
1
by: rag84dec | last post by:
Hi, I have a Dialog Which has a Menu which contains "help" which has " About " option through which i want to open a dialog "IDD_DIALOG2"...PLease...
3
by: Rahul Babbar | last post by:
Hi, I had the following doubts about the "For Read Only" clause. 1. How does a "for Read only" clause improve the performance? 2. How does a...
2
by: unauthorized | last post by:
The short story: I need to be able to cast a function pointer for any function and class to an intermediate type, so I could call it from any point...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: teenabhardwaj | last post by:
How would one discover a valid source for learning news, comfort, and help for engineering designs? Covering through piles of books takes a lot of...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
2
by: Matthew3360 | last post by:
Hi, I have a python app that i want to be able to get variables from a php page on my webserver. My python app is on my computer. How would I make it...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.