473,804 Members | 2,615 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Create our own python source repository

Hi all,
beeing almost a newbie, I am trying to learn from experts.
For that reason I am collecting examples of Python sources (and
Pythonic way of programming...) on a CD, ready to be searched.
By now, I extracted from web (using wget) all the examples of Cookbook
Python (35 Mb!). After some polishing and merging I obtained 20 files
(one for each Category), which sum up to 12 Mb).
To this source repository, I want also add my own scripts. But since my
programming habits are not very Pythonic, I should prefer to include
more meaningful examples.
In the web there is plenty of such material, but I need the advice of
experts to address me in the right direction...
Bye.

Jul 19 '05 #1
7 1623
I'm not entirely sure what the point of your exercise is - if you have
access to the net, ,why do you want to collate code examples? They are
frequently updated in the cookbook so an offline repository would
quickly become out of date.

However.... you've aroused my interest in something related. We all
know Python is significantly easier for novice programmers to grasp
than, say, Java - I too am a newbie who started at uni with java and
wished I hadn't.

Tutorials are great, self paced learning is great, BUT, for the
complete beginner a well structured, offline course with examples,
exercises, tips etc. would be a brilliant resource. Python would fit
the bill as a demonstration language to teach Object Orientation, flow
control statements, other common constructs etc. A quick canvas of some
IT teachers I know indicates support for such a thing - perhaps even in
secondary shools (pre-uni).

What does everyone think it would take to start such a project, and
distribute it? or has it been done already?

Jul 19 '05 #2
Hi Rob,
thank you for your reply. I am further commenting on your doubts ("I'm
not entirely sure what the point of your exercise is") and on your
proposal of a project for more structured tutorials.

About the second item, I fully agree with you. I should be even more
drastic: for a certain argument I'd prefer an application fully
explained (also if not covering all the features) to a more general
tutorial with only brief and unrelated code snippets.
Unfortunately, that's not the way things are normally done, because it
is much harder to build a useful application and fully comment it (also
from the theoretical point of view, like, for example, OO or database
management)

As far as the 1st item is concerned, I know that Cookbook Python is
frequently updated, but for my purposes also a "freezed" situation is
OK, and "grepping" is much more useful than "googling" over the web.
For that reason I want also add to the repository "my" examples of
Python scripts, to build on already known tools.
To give an example, the other day I wanted to use "writelines ()" to
save a list to a file. Having already used such a file method, but not
remembering where and when, I was obliged to consult the Library
Reference for the sintax and for the type of list instead of merely
cutting and pasting from my code...
Bye.

Jul 19 '05 #3
Hello,

I use MoinMoin (a python wiki) desktop edition to collect and sort code
snippets and classes.
It runs standalone (comes with its own webserver) and does the job just
fine.

regards
dc

Jul 19 '05 #4
Hi datacide,
before, the good part...: thank you for your replay. Your suggestion
has opened me a new worldl: an alternative method to get web
resources.
Now the bad part: your is an example of "guru's suggestion", that is a
few words from which the poor newbye can't exctract much. It is much
more useful is you give also some web directions to get the tool and
install it (if it is not straightforwad. ..).
Of course the top would be to give a short example of what you mean by
"collect and sort code snippets and classes).
My method is much ruder: to merge the various htmls and get rid of the
spurious parts...
(I am making the same mistake, that is ...few words, but I'm not a
guru!).
Bye.

Jul 19 '05 #5
qwwee:
for a certain argument I'd prefer an application fully
explained (also if not covering all the features) to a more general
tutorial with only brief and unrelated code snippets.
Unfortunatel y, that's not the way things are normally done, because it
is much harder to build a useful application and fully comment it


A part the Cookbook, I know of at least two Python books taking the
approach you describe:

1. Dive into Python (Pilgrim)
2. Programming Python (Lutz)

Dive into Python is free (and even translated in Italian on
www.python.it, IIRC)

Michele Simionato

Jul 19 '05 #6
Michele Simionato said unto the world upon 21/06/2005 07:58:
qwwee:
for a certain argument I'd prefer an application fully
explained (also if not covering all the features) to a more general
tutorial with only brief and unrelated code snippets.
Unfortunately , that's not the way things are normally done, because it
is much harder to build a useful application and fully comment it

A part the Cookbook, I know of at least two Python books taking the
approach you describe:

1. Dive into Python (Pilgrim)
2. Programming Python (Lutz)

Dive into Python is free (and even translated in Italian on
www.python.it, IIRC)

Michele Simionato


Not free, but:

Practical Python, published by the same press as the Pilgrim, steps
through incremental approaches to large (by book standards)
applications. From the author's site:

"Hetland devotes the second half of the book to project development,
taking great care to choose a series of ten increasingly complex
applications that are of timely and wide-ranging interest to
burgeoning and expert developers alike. Project focus includes
automated document conversion, newsgroup administration, graphical PDF
document generation, remote document maintenance, the creation of a
peer-to-peer system with XML-RPC, database integration, and GUI and
game development.
"
http://hetland.org/writing/practical-python/

best,

Brian vdB
Jul 19 '05 #7
Practical Python is quite a good book. And to re-iterate again, teh
humongous tutorial list which has Hetland's Instant python among
others:

http://www.awaretek.com/tutorials.html

Brian van den Broek wrote:
Michele Simionato said unto the world upon 21/06/2005 07:58:
qwwee:
for a certain argument I'd prefer an application fully
explained (also if not covering all the features) to a more general
tutorial with only brief and unrelated code snippets.
Unfortunately , that's not the way things are normally done, because it
is much harder to build a useful application and fully comment it

A part the Cookbook, I know of at least two Python books taking the
approach you describe:

1. Dive into Python (Pilgrim)
2. Programming Python (Lutz)

Dive into Python is free (and even translated in Italian on
www.python.it, IIRC)

Michele Simionato


Not free, but:

Practical Python, published by the same press as the Pilgrim, steps
through incremental approaches to large (by book standards)
applications. From the author's site:

"Hetland devotes the second half of the book to project development,
taking great care to choose a series of ten increasingly complex
applications that are of timely and wide-ranging interest to
burgeoning and expert developers alike. Project focus includes
automated document conversion, newsgroup administration, graphical PDF
document generation, remote document maintenance, the creation of a
peer-to-peer system with XML-RPC, database integration, and GUI and
game development.
"
http://hetland.org/writing/practical-python/

best,

Brian vdB


Jul 19 '05 #8

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

Similar topics

3
2022
by: Richard Tew | last post by:
Hi, Stackless Python is now available for the recent release of Python 2.4.3 (final). You can either obtain the source code from the SVN repository or download the precompiled windows binaries. SVN: http://codespeak.net/svn/stackless/Python-2.4.3/dev Download: http://www.stackless.com/download
34
2937
by: nicolasfr | last post by:
Hi, I am a bit disapointed with the current Python online documentation. I have read many messages of people complaining about the documentation, it's lack of examples and the use of complicated sentences that you need to read 10 times before understanding what it means. That's why I have started a collaborative project to make a user contributed Python documentation. The wiki is online here: http://www.pythondocs.info
4
3389
by: Alia Khouri | last post by:
Can we open up the discussion here about how to improve setuptools which has become the de facto standard for distributing / installing python software. I've been playing around with ruby's gems which seems to be more more mature and usable. From my perspective, the relative immaturity of setuptools and its simultaneous widespread use is a clear python weakness and can make python less easy to absorb than it should be. A few...
0
9577
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10569
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10315
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10075
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9140
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6847
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3815
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2990
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.