Re: [Tutor] Python Block

2006-08-11 Thread wesley chun
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, -

Re: [Tutor] python import problem

2006-08-09 Thread wesley chun
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

Re: [Tutor] What techniques should I use to make my code run faster?Informational

2006-08-09 Thread wesley chun
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

Re: [Tutor] Unusual behavior in readline

2006-08-08 Thread wesley chun
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)

Re: first book about python

2006-08-02 Thread wesley chun
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

Re: first book about python

2006-08-01 Thread wesley chun
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

Re: [Tutor] Win32Com.client help

2006-07-19 Thread wesley chun
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

Re: [Tutor] Python Programming Books

2006-07-14 Thread wesley chun
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

Re: [Tutor] Python Programming Books

2006-07-14 Thread wesley chun
(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

[Tutor] ANN: Python training, 2005 Aug 29-31, San Francisco

2005-08-17 Thread Wesley Chun
-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

ANN: Python training, 2005 Aug 29-31, San Francisco

2005-08-17 Thread Wesley Chun
-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

[Tutor] ANN: Python training, Aug 29-31, San Francisco

2005-08-09 Thread Wesley Chun
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

<    1   2   3   4   5   6