473,466 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Create 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 1597
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.
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

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
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...
34
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...
4
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...
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...
0
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...
1
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...
0
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...
0
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,...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.