On 8/11/06, Terry Peppers [EMAIL PROTECTED] wrote:
I'm really blocked right now, and I don't want to post this to the
main Python list since I think the answer is probably right in front
of my face. I'm clearly just too close to see it.
5100, foo
5100, -
5100, -
5100, -
5200, foo
5200, -
if I want to import factory.py into myfile.py, how can I do?
You need to make your folders into packages.
Its fairly simple, you basically create an init.py file
But its worth reading about packages in the docs
Come back here ifv you have any questions after that.
The other way would be
the overall root document of this useful read is:
http://jaynes.colorado.edu/PythonGuidelines.html
-wesley
___
Tutor maillist - Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor
summarizing what folks have already said plus a few more tweaks such
as moving the close() to finally (2.5+), following the style guideline
of variable non-titlecasing, removing unused variables, etc.:
#!/usr/bin/env python2.5
def processFile(inputfile):
try:
fh = open(inputfile, r)
attendees who saw the rough draft last week at
the convention bookstore.
hope this helps!
-wesley
From: John Salerno [EMAIL PROTECTED]
Date: Tues, Aug 1 2006 6:48 am
wesley chun wrote:
if you want a large case study (tons of
examples, i.e., everything *plus* the kitchen sink
gene tani wrote:
IOANNIS MANOLOUDIS wrote:
I want to learn python.
I plan to buy a book. I always find printed material more convenient than
reading on-line tutorials.
I don't know PERL or any other scripting language. I only know some BASH
programming. I am looking for a book which
docString = self.wdApp.Documents[0].Content
return str(docString).decode('latin-1')
i've been experimenting with Win32 COM client stuff myself lately,
having added a section for it in the upcoming 2nd ed. of Core Python.
i haven't tried what you're doing yet though, but i have
I have three books on Python programming, Learning Python by O'Reilly,
Beginning Python by Hetland, and Python in a Nutshell by O'Reilly. Are
these good (recommended) books? Any others that might be recommended?
Learning is a good book to learn from if you already know C.
Beginning is a good
(LONG... you've been warned ;-) )
andre wrote:
I don't know about others, but I think it might be of benefit if you
could give an assessment that would include a description of the
weaknesses of the book
I'm no expert since I've only browsed Wesley's book in a store
a few times but
-to-speed with Python as quickly as possible? Come join
us in beautiful Northern California the week before Labor Day. We are
proud to announce another rigorous Python training event taught by
software engineer and Core Python Programming author, Wesley Chun.
This is an intense introduction
-to-speed with Python as quickly as possible? Come join
us in beautiful Northern California the week before Labor Day. We are
proud to announce another rigorous Python training event taught by
software engineer and Core Python Programming author, Wesley Chun.
This is an intense introduction
rigorous
Python training event taught by software engineer and Core
Python Programming author, Wesley Chun. This is an intense
introduction to Python programming geared towards those who
have some proficiency in another high-level language.
Topics include:
* Python's Objects and Memory Model
501 - 512 of 512 matches
Mail list logo