473,385 Members | 1,630 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,385 software developers and data experts.

Professional quality scripts/code

I have been learning Python for the last 3 months or so and I have a
working (but somewhat patchy) sense of the the language. I've been
using a couple of the more popular Python books as well as online
resources.

A question for experienced Python programmers: can you recommend
resources where I can look at high quality Python code and scripts?
I've spent some time at http://code.activestate.com/recipes/ but am
concerned that the quality of what is posted there can be somewhat hit
and miss. What I have in mind is a site like cpan, where one can look
at the actual source code of many of the modules and learn a thing or
two about idiomatic Perl programming from studying the better ones.
Any sites like that for Python? (You can of course look up Python
modules on docs.python.org, but, as far as I can tell, not the actual
source code). Many thanks.


Oct 2 '08 #1
3 1084
On Oct 2, 3:38*pm, robean <st1...@gmail.comwrote:
I have been learning Python for the last 3 months or so and I have a
working (but somewhat patchy) sense of the the language. I've been
using a couple of the more popular Python books as well as online
resources.

A question for experienced Python programmers: can you recommend
resources where I can look at high quality Python code and scripts?
I've spent some time athttp://code.activestate.com/recipes/but am
concerned that the quality of what is posted there can be somewhat hit
and miss. *What I have in mind is a site like cpan, where one can look
at the actual source code of many of the modules and learn a thing or
two about idiomatic Perl programming from studying the better ones.
Any sites like that for Python? (You can of course look up Python
modules on docs.python.org, but, as far as I can tell, not the actual
source code). Many thanks.

You can look at any of the standard module's source code in your Lib
directory including any 3rd party modules you've downloaded. You could
also browse SourceForge or Google Code.

Mike
Oct 2 '08 #2
On Oct 3, 1:26*am, Bruno Desthuilliers <bruno.
42.desthuilli...@websiteburo.invalidwrote:
robean a crit :
I have been learning Python for the last 3 months or so and I have a
working (but somewhat patchy) sense of the the language. I've been
using a couple of the more popular Python books as well as online
resources.
A question for experienced Python programmers: can you recommend
resources where I can look at high quality Python code and scripts?

Well... Not everything is 'high quality' in it[1], but why not start
with the stdlib ? Most of it is pure Python, opensource code and is
already installed on your machine, isn't it ?-)

[1] IIRC, last time I had a look at the zipfile module's code, it was
more of a Q&D hack than anything else - now as long as it works fine for
what I do with it and I don't have to maintain it, well, that's fine.
I've spent some time athttp://code.activestate.com/recipes/but am
concerned that the quality of what is posted there can be somewhat hit
and miss.

Indeed.
*What I have in mind is a site like cpan, where one can look
at the actual source code of many of the modules and learn a thing or
two about idiomatic Perl programming from studying the better ones.
Any sites like that for Python?

Lurking here is probably a good way to see a lot of code reviews. And
even possibly to submit snippets of your own code to review. Some (if
not most) of us here like to show how good we are at improving the poor
newbies code !-)
Many thanks, Mike and Bruno,

The resources you mention are exactly the kind of stuff I was looking
for. Soon enough I hope to give all of you many chances to improve
this poor newbie's code...!

- Robean

Oct 4 '08 #3
robean a écrit :
I have been learning Python for the last 3 months or so and I have a
working (but somewhat patchy) sense of the the language. I've been
using a couple of the more popular Python books as well as online
resources.

A question for experienced Python programmers: can you recommend
resources where I can look at high quality Python code and scripts?
Well... Not everything is 'high quality' in it[1], but why not start
with the stdlib ? Most of it is pure Python, opensource code and is
already installed on your machine, isn't it ?-)

[1] IIRC, last time I had a look at the zipfile module's code, it was
more of a Q&D hack than anything else - now as long as it works fine for
what I do with it and I don't have to maintain it, well, that's fine.
I've spent some time at http://code.activestate.com/recipes/ but am
concerned that the quality of what is posted there can be somewhat hit
and miss.
Indeed.
What I have in mind is a site like cpan, where one can look
at the actual source code of many of the modules and learn a thing or
two about idiomatic Perl programming from studying the better ones.
Any sites like that for Python?
Lurking here is probably a good way to see a lot of code reviews. And
even possibly to submit snippets of your own code to review. Some (if
not most) of us here like to show how good we are at improving the poor
newbies code !-)
Oct 6 '08 #4

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

Similar topics

9
by: Christopher Brandsdal | last post by:
Where can I find information about "most valuable professional"? How do you get the MVP title?? I've heard that it's a pretty lucerative title ;)
65
by: Nikolas Hagelstein | last post by:
Hi, First of all: i spend a lot of time on thinking and researching about how to make developing webapplications with php a more structured/systematic thing. I even fancied to switch over to...
2
by: Kevin R | last post by:
I'm trying to get asp.net 1.1 running on my home PC. When I try creating a new ASP.NET Web Application in 'Visual Studio .NET 2003' I get the following error: "Visual Studio .NET has detected...
0
by: kellyonlyone | last post by:
E-XD++ MFC Library Professional Edition V9.20 is released (100% Source Code)! -------------------------------------------------------------------------------- February 18, 2006 For more...
1
by: arvyly | last post by:
Professional Web Designs Professional Web design and other web development is what wicked innovations specialized. Internet Marketing - Website Traffic - SEO Tips. Internet marketing...
16
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project...
8
by: berkshire | last post by:
Hi, Anyone know of a script out there that can resize images and not sacrifice image quality? I've been using phpthumb (http://phpthumb.sourceforge.net/) but when compared to an image resized...
0
by: Sharath | last post by:
Quality Globe is Glad to Offer you the Fast Track course on Automation, QTP Basics and Advanced, and Quality Center Starting Date: June 4th, 2007 Timings: 10 AM to 3:30 PM Duration: 50 Hours ...
18
by: firewoodtim | last post by:
I need some help in furthering my education in OOP. I have developed a set of PHP scripts that I use in a fairly sophisticated database driven website, but I am not proud of the rather amateurish...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.