473,383 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 1477
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 have posted the code for the BasePage below) In...
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. Woodpecker.
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 look at the header reveal that: == WinGdi.h...
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" module like this: # .... my_module =...
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 help afx_msg void CExoDialog::OnAbout() {...
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 "for Read only" clause compare with "With UR"...
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 of my program using the "__asm call" instruction....
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.