Re: ftplib limitations?

2010-08-25 Thread durumdara
Hi! > > So if I understand correctly, the script works well on > smaller files but not on the large one? Yes. 500-800 MB is ok. > 1 GB is not ok. > > > It down all of the file (100%) but the next line never reached. > > _Which_ line is never reached? The `print` statement after > the `retrbinar

Re: problem with strptime and time zone

2010-08-25 Thread Lawrence D'Oliveiro
In message <45faa241-620e-42c7-b524-949936f63...@f6g2000yqa.googlegroups.com>, Alex Willmer wrote: > Dateutil has it's own timezone database ... I hate code which doesn’t just use /usr/share/zoneinfo. How many places do you need to patch every time somebody changes their daylight-saving rules?

Re: Proper set-up for a co-existant python 2.6 & 3.1 installation

2010-08-25 Thread Mark Tolonen
"vsoler" wrote in message news:3d85d8f5-8ce0-470f-b6ec-c86c452a3...@a36g2000yqc.googlegroups.com... On Aug 24, 1:33 am, "Martin v. Loewis" wrote: > > When I am logged-in in a session as an administrator, the BAT file on > > the Desktop, and I double-click on it, it does not work. > > This is no

Re: Iterative vs. Recursive coding

2010-08-25 Thread BartC
"Steven D'Aprano" wrote in message news:4c6f8edd$0$28653$c3e8...@news.astraweb.com... On Fri, 20 Aug 2010 17:23:23 +0200, Bruno Desthuilliers wrote: I onced worked in a shop (Win32 desktop / accouting applications mainly) where I was the only guy that could actually understand recursion. FWIW

Re: ftplib limitations?

2010-08-25 Thread durumdara
Hi! On aug. 25, 08:07, Stefan Schwarzer wrote: > > The file is 2 GB in size and is fully transferred, without > blocking or an error message. The status message from the > server is '226-File successfully transferred\n226 31.760 > seconds (measured here), 64.48 Mbytes per second', so this > looks

Re: ftplib limitations?

2010-08-25 Thread Stefan Schwarzer
Hi durumdara, On 2010-08-25 09:43, durumdara wrote: >> I can imagine the error message (a full traceback if >> possible) would help to say a bit more about the cause of >> the problem and maybe what to do about it. > > This was: > > Filename: "Repositories 20100824_101805 (Teljes).zip" Size: 153

Re: pypy

2010-08-25 Thread Daniel Fetchinson
> Just curious if anyone had the chance to build pypy on a 64bit > environment and to see if it really makes a huge difference in > performance. Would like to hear some thoughts (or alternatives). I'd recommend asking about this on the pypy mailing list or looking at their documentation first; see

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread David Kastrup
Hugh Aguilar writes: > On Aug 24, 5:16 pm, Paul Rubin wrote: >> Anyway, as someone else once said, studying a subject like CS isn't done >> by reading.  It's done by writing out answers to problem after problem. >> Unless you've been doing that, you haven't been studying. > > What about using wh

Re: Using String Methods In Jump Tables

2010-08-25 Thread Bruno Desthuilliers
Tim Daneliuk a écrit : On 8/19/2010 7:23 PM, Steven D'Aprano wrote: On Thu, 19 Aug 2010 18:27:11 -0500, Tim Daneliuk wrote: Problem: Given tuples in the form (key, string), use 'key' to determine what string method to apply to the string: table = {'l': str.lower, 'u': str.upper} table['u

Re: problem with strptime and time zone

2010-08-25 Thread Alex Willmer
On Aug 25, 8:48 am, Lawrence D'Oliveiro wrote: > In message > <45faa241-620e-42c7-b524-949936f63...@f6g2000yqa.googlegroups.com>, Alex > > Willmer wrote: > > Dateutil has it's own timezone database ... > > I hate code which doesn’t just use /usr/share/zoneinfo. How many places do > you need to pat

Re: Helper classes design question

2010-08-25 Thread John O'Hagan
On Tue, 24 Aug 2010, Jean-Michel Pichavant wrote: > John O'Hagan wrote: > > I want to know the best way to organise a bunch of functions designed to > > operate on instances of a given class without cluttering the class itself > > with a bunch of unrelated methods. > > > > What I've done is make w

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Alex McDonald
On 25 Aug, 01:00, Hugh Aguilar wrote: > On Aug 24, 4:17 pm, Richard Owlett wrote: > > > Hugh Aguilar wrote: > > > [SNIP ;] > > > > The real problem here is that C, Forth and C++ lack automatic garbage > > > collection. If I have a program in which I have to worry about memory > > > leaks (as desc

Re: ftplib limitations?

2010-08-25 Thread Stefan Schwarzer
Hi durumdara, On 2010-08-25 11:18, durumdara wrote: > On aug. 25, 08:07, Stefan Schwarzer wrote: >> >> The file is 2 GB in size and is fully transferred, without >> blocking or an error message. The status message from the >> server is '226-File successfully transferred\n226 31.760 >> seconds (me

Simple hack to get *$5000* to your Paypal account

2010-08-25 Thread paypal cash
Simple hack to get* $5000 * to your Paypal account At http://moneyforwarding.co.cc i have hidden the Paypal Form link in an image. in that website on Right Side below search box, click on image and enter your name and Paypal ID. -- http://mail.python.org/mailman/listinfo/python-list

Newbie: Win32 COM problem

2010-08-25 Thread Paul Hemans
Simple class to wrap the xlwt module for COM access pyXLS.py: from xlwt import Workbook class WrapXLS: _reg_clsid_ = "{c94df6f0-b001-11df-8d63-00e09103a9a0}" _reg_desc_ = "XLwt wrapper" _reg_progid_ = "PyXLS.Write" _public_methods_ = ['createBook','createSheet','writeSheetCell',

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Anton Ertl
Alex McDonald writes: > Your example of writing code with >memory leaks *and not caring because it's a waste of your time* makes >me think that you've never been a programmer of any sort. Ever. Well, I find his approach towards memory leaks as described in <779b992b-7199-4126-bf3a-7ec40ea80...@j1

staticmethod behaviour

2010-08-25 Thread Samu
Hi, I run today into some problems with my code and I realized that there is something in the behaviours of the @staticmethod that I don't really understand. I don't know if it is an error or not, actually, only that it was, definitely, unexpected. I wrote a small demo of what happens. The code:

Re: staticmethod behaviour

2010-08-25 Thread Samu
On Aug 25, 3:03 pm, Samu wrote: > Hi, > > I run today into some problems with my code and I realized that there > is something in the behaviours of the @staticmethod that I don't > really understand. I don't know if it is an error or not, actually, > only that it was, definitely, unexpected. > > I

Re: staticmethod behaviour

2010-08-25 Thread Peter Otten
Samu wrote: > Hi, > > I run today into some problems with my code and I realized that there > is something in the behaviours of the @staticmethod that I don't > really understand. I don't know if it is an error or not, actually, > only that it was, definitely, unexpected. > > I wrote a small dem

Re: problem with simple multiprocessing script on OS X

2010-08-25 Thread Darren Dale
On Aug 24, 5:29 pm, Benjamin Kaplan wrote: > On Tue, Aug 24, 2010 at 3:31 PM, Darren Dale wrote: > > On Aug 23, 9:58 am, Darren Dale wrote: > >> The following script runs without problems on Ubuntu and Windows 7. > >> h5py is a package wrapping the hdf5 library (http://code.google.com/p/ > >> h5

Re: Help please! strange Tkinter behavior has me totally baffled.

2010-08-25 Thread Steve Ferg
Thanks mucho! That was it! -- Steve Ferg -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with simple multiprocessing script on OS X

2010-08-25 Thread Darren Dale
On Aug 24, 4:32 pm, Thomas Jollans wrote: > On Tuesday 24 August 2010, it occurred to Darren Dale to exclaim: > > > > > > > On Aug 23, 9:58 am, Darren Dale wrote: > > > The following script runs without problems on Ubuntu and Windows 7. > > > h5py is a package wrapping the hdf5 library (http://co

Re: staticmethod behaviour

2010-08-25 Thread Samu
On Aug 25, 3:26 pm, Peter Otten <__pete...@web.de> wrote: > Samu wrote: > > Hi, > > > I run today into some problems with my code and I realized that there > > is something in the behaviours of the @staticmethod that I don't > > really understand. I don't know if it is an error or not, actually, >

speed of numpy.power()?

2010-08-25 Thread Carlos Grohmann
Hi all, I'd like to hear from you on the benefits of using numpy.power(x,y) over (x*x*x*x..) I looks to me that numpy.power takes more time to run. cheers Carlos -- http://mail.python.org/mailman/listinfo/python-list

Re: speed of numpy.power()?

2010-08-25 Thread Mark Lawrence
On 25/08/2010 14:59, Carlos Grohmann wrote: Hi all, I'd like to hear from you on the benefits of using numpy.power(x,y) over (x*x*x*x..) I looks to me that numpy.power takes more time to run. cheers Carlos Measure it yourself using the timeit module. Cheers. Mark Lawrence. -- http://mai

Python2.4 on ARM-Linux "import time module fails"

2010-08-25 Thread Ajeet Yadav
Hi, I cross-compiled Python2.4 for ARM (Linux 2.6.30) in order to run autotest-client-xxx on my ARM target. When I run autotest on ARM target I get "ImportError: No module named time" Which package I need to install to add support for time module. # bin/autotest samples/filesystem Traceback (mos

Re: CRIMINAL YanQui MARINES Cesar Laurean Regularly RAPE GIRLS Maria Lauterbach and KILL THEM - CIA/Mossad/Jew did 911 - Wikileaks for ever CRIMES of YANQUI Bustards

2010-08-25 Thread Standish P
On Aug 25, 7:12 am, nanothermite911fbibustards wrote: > CRIMINAL YanQui MARINES Cesar Laurean Regularly RAPE GIRLS Maria > Lauterbach and KILL THEM > > Is he a Jew or a white Anglo Saxon race ? or a Southern Baptist > Bustard who > > The girl was a German like the one Roman Polansky raped, Semanth

Re: staticmethod behaviour

2010-08-25 Thread Peter Otten
Samu wrote: > the concept sticks. But why does it have a different behaviour the > staticmethod with the "rights3" case then? Moving from staticmethod to standalone function doesn't affect the output. You have inadvertently changed something else. Peter -- http://mail.python.org/mailman/listin

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Nick Keighley
On 19 Aug, 16:25, c...@tiac.net (Richard Harter) wrote: > On Wed, 18 Aug 2010 01:39:09 -0700 (PDT), Nick Keighley > wrote: > >On 17 Aug, 18:34, Standish P wrote: > >> How are these heaps being implemented ? Is there some illustrative > >> code or a book showing how to implement these heaps in C

Re: speed of numpy.power()?

2010-08-25 Thread Hrvoje Niksic
Carlos Grohmann writes: > I'd like to hear from you on the benefits of using numpy.power(x,y) > over (x*x*x*x..) > > I looks to me that numpy.power takes more time to run. You can use math.pow, which is no slower than repeated multiplication, even for small exponents. Obviously, after the expon

Re: staticmethod behaviour

2010-08-25 Thread Samu
On Aug 25, 4:32 pm, Peter Otten <__pete...@web.de> wrote: > Samu wrote: > > the concept sticks. But why does it have a different behaviour the > > staticmethod with the "rights3" case then? > > Moving from staticmethod to standalone function doesn't affect the output. > You have inadvertently chang

Re: How to see intermediate fail results from unittest as tests are running?

2010-08-25 Thread Jean-Paul Calderone
On Aug 18, 9:20 pm, Margie Roginski wrote: > Hi, > > I am using unittest in a fairly basic way, where I have a single file > that simply defines a class that inherits from unittest.TestCase and > then within that class I have a bunch of methods that start with > "test".  Within that file, at the b

Re: speed of numpy.power()?

2010-08-25 Thread David Cournapeau
On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann wrote: > Hi all, > > I'd like to hear from you on the benefits of using numpy.power(x,y) > over (x*x*x*x..) Without more context, I would say None if x*x*x*x*... works and you are not already using numpy. The point of numpy is mostly to work on

Re: speed of numpy.power()?

2010-08-25 Thread Carlos Grohmann
On 25 ago, 12:40, David Cournapeau wrote: > On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann > Thanks David and Hrvoje. That was the feedback I was looking for. I am using numpy in my app but in some cases I will use math.pow(), as some tests with timeit showed that numpy.power was slower for (x

Re: problem with simple multiprocessing script on OS X

2010-08-25 Thread Darren Dale
On Aug 24, 4:32 pm, Thomas Jollans wrote: > On Tuesday 24 August 2010, it occurred to Darren Dale to exclaim: > > > > > > > On Aug 23, 9:58 am, Darren Dale wrote: > > > The following script runs without problems on Ubuntu and Windows 7. > > > h5py is a package wrapping the hdf5 library (http://co

Re: speed of numpy.power()?

2010-08-25 Thread Robert Kern
On 8/25/10 8:59 AM, Carlos Grohmann wrote: Hi all, I'd like to hear from you on the benefits of using numpy.power(x,y) over (x*x*x*x..) I looks to me that numpy.power takes more time to run. You will want to ask numpy questions on the numpy mailing list: http://www.scipy.org/Mailing_Lists

Re: speed of numpy.power()?

2010-08-25 Thread Peter Pearson
On Wed, 25 Aug 2010 06:59:36 -0700 (PDT), Carlos Grohmann wrote: > > I'd like to hear from you on the benefits of using numpy.power(x,y) > over (x*x*x*x..) > Using the "dis" package under Python 2.5, I see that computing x_to_the_16 = x*x*x*x*x*x*x*x*x*x*x*x*x*x*x*x uses 15 multiplies. I

Can PySerial's write method be called by multiple threads?

2010-08-25 Thread Joel Koltner
I have a multi-threaded application where several of the threads need to write to a serial port that's being handled by pySerial. If pySerial thread-safe in the sense that pySerial.write behaves atomically? I.e., if thread 1 executes, serport.write("Hello, world!") and thread 2 executes serpor

Re: Can PySerial's write method be called by multiple threads?

2010-08-25 Thread Thomas Jollans
On Wednesday 25 August 2010, it occurred to Joel Koltner to exclaim: > I have a multi-threaded application where several of the threads need to > write to a serial port that's being handled by pySerial. If pySerial > thread-safe in the sense that pySerial.write behaves atomically? I.e., if > thre

Re: Can PySerial's write method be called by multiple threads?

2010-08-25 Thread MRAB
On 25/08/2010 19:36, Joel Koltner wrote: I have a multi-threaded application where several of the threads need to write to a serial port that's being handled by pySerial. If pySerial thread-safe in the sense that pySerial.write behaves atomically? I.e., if thread 1 executes, serport.write("Hello,

Re: Can PySerial's write method be called by multiple threads?

2010-08-25 Thread Joel Koltner
"Thomas Jollans" wrote in message news:mailman.36.1282762569.29448.python-l...@python.org... I expect that it gives away the GIL to call the resident write() function, to allow other threads to run while it's sitting there, blocking. I haven't looked at the code, so maybe it doesn't hand over t

split string into multi-character "letters"

2010-08-25 Thread Jed
Hi, I'm seeking help with a fairly simple string processing task. I've simplified what I'm actually doing into a hypothetical equivalent. Suppose I want to take a word in Spanish, and divide it into individual letters. The problem is that there are a few 2-character combinations that are considere

Re: Declare self.cursor

2010-08-25 Thread John Nagle
On 8/24/2010 10:15 AM, Dani Valverde wrote: Hello! I am working on a GUI to connect to a MySQL database using MySQLdb (code in attached file). I define the cursor in lines 55-66 in the OnLogin function within the LoginDlg class. /db= MySQLdb.connect(host='localhost', user=Username , passwd=pwd,

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread John Passaniti
On Aug 24, 8:00 pm, Hugh Aguilar wrote: > The C programmers reading this are likely wondering why I'm being > attacked. The reason is that Elizabeth Rather has made it clear to > everybody that this is what she wants: [http://tinyurl.com/2bjwp7q] Hello to those outside of comp.lang.forth, where H

Re: Can PySerial's write method be called by multiple threads?

2010-08-25 Thread John Nagle
On 8/25/2010 11:36 AM, Joel Koltner wrote: I have a multi-threaded application where several of the threads need to write to a serial port that's being handled by pySerial. If pySerial thread-safe in the sense that pySerial.write behaves atomically? I.e., if thread 1 executes, serport.write("Hell

Re: split string into multi-character "letters"

2010-08-25 Thread Vlastimil Brom
2010/8/25 Jed : > Hi, I'm seeking help with a fairly simple string processing task. > I've simplified what I'm actually doing into a hypothetical > equivalent. > Suppose I want to take a word in Spanish, and divide it into > individual letters.  The problem is that there are a few 2-character > com

Re: split string into multi-character "letters"

2010-08-25 Thread Jussi Piitulainen
Jed writes: > alphabet = ['a','b','c','ch','d','u','r','rr','o'] #this would > include the whole alphabet but I shortened it here > theword = 'churro' > > I would like to split the string 'churro' into a list containing: > > 'ch','u','rr','o' All non-overlapping matches, each as long as can be,

Re: split string into multi-character "letters"

2010-08-25 Thread MRAB
On 25/08/2010 20:46, Jed wrote: Hi, I'm seeking help with a fairly simple string processing task. I've simplified what I'm actually doing into a hypothetical equivalent. Suppose I want to take a word in Spanish, and divide it into individual letters. The problem is that there are a few 2-charact

Re: split string into multi-character "letters"

2010-08-25 Thread Tim Chase
On 08/25/10 14:46, Jed wrote: Hi, I'm seeking help with a fairly simple string processing task. I've simplified what I'm actually doing into a hypothetical equivalent. Suppose I want to take a word in Spanish, and divide it into individual letters. The problem is that there are a few 2-character

Re: split string into multi-character "letters"

2010-08-25 Thread Thomas Jollans
On Wednesday 25 August 2010, it occurred to Jed to exclaim: > Hi, I'm seeking help with a fairly simple string processing task. > I've simplified what I'm actually doing into a hypothetical > equivalent. > Suppose I want to take a word in Spanish, and divide it into > individual letters. The probl

Re: Can PySerial's write method be called by multiple threads?

2010-08-25 Thread Joel Koltner
Hi John, "John Nagle" wrote in message news:4c75768a$0$1608$742ec...@news.sonic.net... You don't need a queue, though; just use your own "write" function with a lock. Hmm... that would certainly work. I suppose it's even more efficient than a queue in that the first thing the queue is

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread John Passaniti
On Aug 24, 9:05 pm, Hugh Aguilar wrote: > What about using what I learned to write programs that work? > Does that count for anything? It obviously counts, but it's not the only thing that matters. Where I'm employed, I am currently managing a set of code that "works" but the quality of that cod

Re: split string into multi-character "letters"

2010-08-25 Thread Alexander Kapps
Jed wrote: Hi, I'm seeking help with a fairly simple string processing task. I've simplified what I'm actually doing into a hypothetical equivalent. Suppose I want to take a word in Spanish, and divide it into individual letters. The problem is that there are a few 2-character combinations that

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Joshua Maurice
On Aug 25, 1:44 pm, John Passaniti wrote: > On Aug 24, 9:05 pm, Hugh Aguilar wrote: > > > What about using what I learned to write programs that work? > > Does that count for anything? > > It obviously counts, but it's not the only thing that matters.  Where > I'm employed, I am currently managin

Re: speed of numpy.power()?

2010-08-25 Thread Dave Angel
Peter Pearson wrote: On Wed, 25 Aug 2010 06:59:36 -0700 (PDT), Carlos Grohmann wrote: > I'd like to hear from you on the benefits of using numpy.power(x,y) over (x*x*x*x..) Using the "dis" package under Python 2.5, I see that computing x_to_the_16 = x*x*x*x*x*x*x*x*x*x*x*x*x*x

Overload print

2010-08-25 Thread Ross Williamson
Hi All Is there anyway in a class to overload the print function? >> class foo_class(): >> pass >> cc = foo_class() >> print cc Gives: <__main__.foo_class instance at > Can I do something like: >> class foo_class(): >> def __print__(self): >> print "hello" >> cc = foo

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread John Bokma
John Passaniti writes: > On Aug 24, 8:00 pm, Hugh Aguilar wrote: >> The C programmers reading this are likely wondering why I'm being >> attacked. The reason is that Elizabeth Rather has made it clear to >> everybody that this is what she wants: [http://tinyurl.com/2bjwp7q] > > Hello to those ou

Re: Overload print

2010-08-25 Thread Glenn Hutchings
On 25 Aug, 22:18, Ross Williamson wrote: > Is there anyway in a class to overload the print function? > > >> class foo_class(): > >>      pass > >> cc = foo_class() > >> print cc > > Gives: > > <__main__.foo_class instance at > > > Can I do something like: > > >> class foo_class(): > >>     de

Re: Overload print

2010-08-25 Thread Chris Rebert
On Wed, Aug 25, 2010 at 2:18 PM, Ross Williamson wrote: > Hi All > > Is there anyway in a class to overload the print function? > >>> class foo_class(): >>>      pass > >>> cc = foo_class() >>> print cc > > Gives: > > <__main__.foo_class instance at > > > Can I do something like: > >>> class f

Re: Overload print

2010-08-25 Thread D'Arcy J.M. Cain
On Wed, 25 Aug 2010 16:18:15 -0500 Ross Williamson wrote: > Hi All > > Is there anyway in a class to overload the print function? Your terminology threw me off for a moment. You don't want to override print. You want to override the default representation of an object. > > >> class foo_class

Re: Overload print

2010-08-25 Thread Alexander Kapps
Ross Williamson wrote: Hi All Is there anyway in a class to overload the print function? In Python <= 2.x "print" is a statement and thus can't be "overloaded". That's exactly the reason, why Python 3 has turned "print" into a function. class foo_class(): def __print__(self):

Re: Overload print

2010-08-25 Thread Chris Kaynor
On Wed, Aug 25, 2010 at 2:23 PM, Glenn Hutchings wrote: > On 25 Aug, 22:18, Ross Williamson > wrote: > > Is there anyway in a class to overload the print function? > > > > >> class foo_class(): > > >> pass > > >> cc = foo_class() > > >> print cc > > > > Gives: > > > > <__main__.foo_class in

matplotlib pyplot contourf with 1-D array (vector)

2010-08-25 Thread becky_s
All, I’m having a problem with the matplotlib.pyplot.contourf function. I have a 1-D array of latitudes (mesolat), a 1-D array of longitudes (mesolon), and a 1-D array of rainfall values (rain) at those corresponding lat, lon points. After importing the necessary libraries, and reading in these

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-25 Thread becky_s
On Aug 25, 4:57 pm, becky_s wrote: > All, > > I’m having a problem with the matplotlib.pyplot.contourf function.  I > have a 1-D array of latitudes (mesolat), a 1-D array of longitudes > (mesolon), and a 1-D array of rainfall values (rain) at those > corresponding lat, lon points.  After importing

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread John Passaniti
On Aug 25, 5:01 pm, Joshua Maurice wrote: > I agree. Sadly, with managers, especially non-technical > managers, it's hard to make this case when the weasel > guy says "See! It's working.". Actually, it's not that hard. The key to communicating the true cost of software development to non-technic

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-25 Thread Joshua Maurice
On Aug 25, 4:01 pm, John Passaniti wrote: > On Aug 25, 5:01 pm, Joshua Maurice wrote: > > > I agree. Sadly, with managers, especially non-technical > > managers, it's hard to make this case when the weasel > > guy says "See! It's working.". > > Actually, it's not that hard.  The key to communicat

Re: split string into multi-character "letters"

2010-08-25 Thread Terry Reedy
On 08/25/10 14:46, Jed wrote: I would like to split the string 'churro' into a list containing: 'ch','u','rr','o' Dirt simple, straightforward, easily generalized solution: def sp_split(s): n,i,ret = len(s), 0, [] while i < n: s2 = s[i:i+2] if s2 in ('ch', 'll', 'r

Re: Newbie: Win32 COM problem

2010-08-25 Thread Mark Hammond
On 25/08/2010 10:33 PM, Paul Hemans wrote: File "C:\development\PyXLS\pyXLS.py", line 13, in createSheet def createBook(self): AttributeError: WrapXLS instance has no attribute '_book' pythoncom error: Python error invoking COM method. Can anyone help? That line seems an unlikely sourc

Re: Newbie: Win32 COM problem

2010-08-25 Thread Paul Hemans
Yes, that was it. I just needed to restart the host process. Thanks "Mark Hammond" wrote in message news:mailman.51.1282784920.29448.python-l...@python.org... > On 25/08/2010 10:33 PM, Paul Hemans wrote: >>File "C:\development\PyXLS\pyXLS.py", line 13, in createSheet >> def createBook(s

OBAMA created by the CIA - Proofs by Wayne Madsen, the Investigative Journalist - Obama's StepMother Ruth Niedesand and two StepBrothers are JEW

2010-08-25 Thread nanothermite911fbibustards
OBAMA created by the CIA - Proofs by Wayne Madsen, the Investigative Journalist - Obama's StepMother Ruth Niedesand and two StepBrothers are JEW OBAMA family are CIA agents or employees http://www.presstv.ir/detail/140093.html http://www.voltairenet.org/article166741.html Special Report The Stor

Path / Listing and os.walk problem.

2010-08-25 Thread Alban Nona
Hi So here is my problem: I have my render files that are into a directory like this: c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0001.exr c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0002.exr c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0003.exr c:\log\renderfiles\HPO7_SEQ004_031