[ANN] pyxser-1.5r --- Python Object to XML serializer/deserializer

2010-08-25 Thread Daniel Molina Wegener
Hello Python Community. I'm pleased to announce pyxser-1.5r, a python extension which contains functions to serialize and deserialize Python Objects into XML. It is a model based serializer. What can do this serializer? * Serialization of cross references. * Serialization of circular

ANN: Cython 0.13 released!

2010-08-25 Thread Craig Citro
It is with *great* pleasure that I email to announce the release of Cython version 0.13! This release sets another milestone on the path towards Python compatibility and brings major new features and improvements for the usability of the Cython language. Download it here:

Python Ireland presents Sept talks @ The Science Gallery (Wed, 8th Sept, 7pm)

2010-08-25 Thread Vicky Twomey-Lee
Hi All, What's on:- - Buildout by Diarmuid Bourke - Python for Cloud Computing by Alan Kennedy - Lightning talks - Pub TBD afterwards The event is open for all and it's free. More details at: http://www.python.ie/meetup/2010/sept_2010_talks__the_science_gallery/ Cheers, /// Vicky

web2py book 3rd ed

2010-08-25 Thread Massimo Di Pierro
The third edition of the web2py book is out: http://www.lulu.com/product/paperback/web2py-%283rd-edition%29/12199578 also available in pDF and online for free in html at http://web2py.com/book It includes documentation about many features not documented in the 2nd edition including: -

Re: ftplib limitations?

2010-08-25 Thread Stefan Schwarzer
Hi durumdara, On 2010-08-24 16:29, Stefan Schwarzer wrote: I experienced some problem. The server is Windows and FileZilla, the client is Win7 and Python2.6. When I got a file with size 1 303 318 662 byte, python is halt on retrbinary line everytime. So if I understand correctly, the

GAMES

2010-08-25 Thread 097
games GAME 1 http://freeonlingamesplay.blogspot.com/2010/08/game-1.html GAME 2 http://freeonlingamesplay.blogspot.com/2010/08/game-2.html GAME 3 http://freeonlingamesplay.blogspot.com/2010/08/game-3.html GAME 4 http://freeonlingamesplay.blogspot.com/2010/08/game-4.html GAME 5

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 `retrbinary` call?

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 vicente.so...@gmail.com wrote in message news:3d85d8f5-8ce0-470f-b6ec-c86c452a3...@a36g2000yqc.googlegroups.com... On Aug 24, 1:33 am, Martin v. Loewis mar...@v.loewis.de wrote: When I am logged-in in a session as an administrator, the BAT file on the Desktop, and I double-click on

Re: Iterative vs. Recursive coding

2010-08-25 Thread BartC
Steven D'Aprano st...@remove-this-cybersource.com.au 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

Re: ftplib limitations?

2010-08-25 Thread durumdara
Hi! On aug. 25, 08:07, Stefan Schwarzer sschwar...@sschwarzer.net 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

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: 1530296127

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 hughaguila...@yahoo.com writes: On Aug 24, 5:16 pm, Paul Rubin no.em...@nospam.invalid 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

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}

Re: problem with strptime and time zone

2010-08-25 Thread Alex Willmer
On Aug 25, 8:48 am, Lawrence D'Oliveiro l...@geek- central.gen.new_zealand 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

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 what I

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 hughaguila...@yahoo.com wrote: On Aug 24, 4:17 pm, Richard Owlett rowl...@pcnetinc.com 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

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 sschwar...@sschwarzer.net 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

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_ =

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

2010-08-25 Thread Anton Ertl
Alex McDonald b...@rivadpm.com 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

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

Re: staticmethod behaviour

2010-08-25 Thread Samu
On Aug 25, 3:03 pm, Samu samufuen...@gmail.com 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,

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 demo of

Re: problem with simple multiprocessing script on OS X

2010-08-25 Thread Darren Dale
On Aug 24, 5:29 pm, Benjamin Kaplan benjamin.kap...@case.edu wrote: On Tue, Aug 24, 2010 at 3:31 PM, Darren Dale dsdal...@gmail.com wrote: On Aug 23, 9:58 am, Darren Dale dsdal...@gmail.com wrote: The following script runs without problems on Ubuntu and Windows 7. h5py is a package wrapping

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 tho...@jollybox.de wrote: On Tuesday 24 August 2010, it occurred to Darren Dale to exclaim: On Aug 23, 9:58 am, Darren Dale dsdal...@gmail.com wrote: The following script runs without problems on Ubuntu and Windows 7. h5py is a package wrapping the

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, only that

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. --

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 (most

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 nanothermite911fbibusta...@gmail.com 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

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 --

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 nick_keighley_nos...@hotmail.com wrote: On 17 Aug, 18:34, Standish P stnd...@gmail.com wrote: How are these heaps being implemented ? Is there some illustrative code or a book

Re: speed of numpy.power()?

2010-08-25 Thread Hrvoje Niksic
Carlos Grohmann carlos.grohm...@gmail.com 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.

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 changed

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 margierogin...@gmail.com 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

Re: speed of numpy.power()?

2010-08-25 Thread David Cournapeau
On Wed, Aug 25, 2010 at 10:59 PM, Carlos Grohmann carlos.grohm...@gmail.com 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

Re: speed of numpy.power()?

2010-08-25 Thread Carlos Grohmann
On 25 ago, 12:40, David Cournapeau courn...@gmail.com 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

Re: problem with simple multiprocessing script on OS X

2010-08-25 Thread Darren Dale
On Aug 24, 4:32 pm, Thomas Jollans tho...@jollybox.de wrote: On Tuesday 24 August 2010, it occurred to Darren Dale to exclaim: On Aug 23, 9:58 am, Darren Dale dsdal...@gmail.com wrote: The following script runs without problems on Ubuntu and Windows 7. h5py is a package wrapping the

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 hope

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

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 thread

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 tho...@jollybox.de 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

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

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 hughaguila...@yahoo.com 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

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,

Re: split string into multi-character letters

2010-08-25 Thread Vlastimil Brom
2010/8/25 Jed jedmelt...@gmail.com: 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

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, and

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

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

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 problem

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

2010-08-25 Thread Joel Koltner
Hi John, John Nagle na...@animats.com 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

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 hughaguila...@yahoo.com 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

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 john.passan...@gmail.com wrote: On Aug 24, 9:05 pm, Hugh Aguilar hughaguila...@yahoo.com 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.  

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 =

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_class() print cc

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

2010-08-25 Thread John Bokma
John Passaniti john.passan...@gmail.com writes: On Aug 24, 8:00 pm, Hugh Aguilar hughaguila...@yahoo.com 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:

Re: Overload print

2010-08-25 Thread Glenn Hutchings
On 25 Aug, 22:18, Ross Williamson rosswilliamson@gmail.com 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():    

Re: Overload print

2010-08-25 Thread Chris Rebert
On Wed, Aug 25, 2010 at 2:18 PM, Ross Williamson rosswilliamson@gmail.com 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

Re: Overload print

2010-08-25 Thread D'Arcy J.M. Cain
On Wed, 25 Aug 2010 16:18:15 -0500 Ross Williamson rosswilliamson@gmail.com 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

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 zond...@gmail.com wrote: On 25 Aug, 22:18, Ross Williamson rosswilliamson@gmail.com wrote: Is there anyway in a class to overload the print function? class foo_class(): pass cc = foo_class() print cc Gives:

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 rda.se...@gmail.com 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.  

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 joshuamaur...@gmail.com 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

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 john.passan...@gmail.com wrote: On Aug 25, 5:01 pm, Joshua Maurice joshuamaur...@gmail.com 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

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',

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 source

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 skippy.hamm...@gmail.com 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

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

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

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Hi Daniel, there's a test failure which is related with r84307 on windows buildbot. == FAIL: test_cw_strings (ctypes.test.test_parameters.SimpleTypesTestCase)

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: Copy of issue 1027206; support in the socket module was provided, but this request remains: Also other modules should support unicode hostnames. (httplib already does) but urllib and urllib2 don't. -- components: Library (Lib),

[issue1559298] test_popen fails on Windows if installed to Program Files

2010-08-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden nosy: +tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1559298 ___

[issue1027206] unicode DNS names in socket, urllib, urlopen

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I have now committed file 18615 as r84313: thanks for the patch. I have split this issue into two: this one is only about the socket module, and #9679 carries any remaining features (it would be good if we have only one bug per bug

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: From msg60564: it's not clear to me what this request really means. It could mean that Python should support IRIs, but then, I'm not sure whether this support can be in urllib, or whether a separate library would be needed. --

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-25 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_sys is still failing on my system where LC_CTYPE only is set to utf-8 Oh yes, test_sys fails if LC_ALL or LC_CTYPE is a locale using a different encoding than ascii (eg. LC_ALL=fr_FR.utf8). Fixed by r84314. --

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Ask Solem
Ask Solem a...@opera.com added the comment: On closer look your patch is also ignoring SystemExit. I think it's beneficial to honor SystemExit, so a user could use this as a means to replace the current process with a new one. If we keep that behavior, the real problem here is that the result

[issue2528] Change os.access to check ACLs under Windows

2010-08-25 Thread Tim Golden
Changes by Tim Golden m...@timgolden.me.uk: -- assignee: - tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2528 ___ ___ Python-bugs-list

[issue9659] frozenset, when subclassed will yield warning upon call to super(...).__init__(iterable)

2010-08-25 Thread Carsten Klein
Carsten Klein carsten.kl...@axn-software.de added the comment: Thanks for the information. Where is this documented? I cannot find it in the official Python docs... TIA. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9659

[issue9680] Add in declaration order support for the dictionary passed in to the meta class __init__ and __new__ methods

2010-08-25 Thread Carsten Klein
New submission from Carsten Klein carsten.kl...@axn-software.de: Example class Meta(type): def __new__(cls, name, bases, locals): print repr(locals.keys()) class Test(object): __metaclass__ = Meta A = 1 B = 2 C = 3 D = 4 E = 5 The above will yield the

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Thanks, I will take a look sometime today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8781 ___

[issue6978] compiler.transformer dict key bug d[1,] = 1

2010-08-25 Thread Kees Bos
Kees Bos k@zx.nl added the comment: Added fix for python 2.7, which includes a test (testDictWithTupleKey) for the compiler test (Lib/test/test_compiler.py). -- status: pending - open Added file: http://bugs.python.org/file18642/compiler-bug-issue6978.patch

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: The underlying problem here is that SIZEOF_WCHAR_T is not defined in pyconfig.h on Windows. My patch assumed that it would be defined on all platforms where HAVE_WCHAR_H is defined (I had checked ./configure, but forgotten

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Adding other Windows developers to the nosy list. See msg114893 where your input would be helpful. -- nosy: +brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Daniel Stutzbach wrote: Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: The underlying problem here is that SIZEOF_WCHAR_T is not defined in pyconfig.h on Windows. My patch assumed that it would be defined on all

[issue8781] 32-bit wchar_t doesn't need to be unsigned to be usable (I think)

2010-08-25 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: On Windows, the Python headers define HAVE_USABLE_WCHAR_T and Py_UNICODE_SIZE 2, so we are already relying on sizeof(wchar_t) == 2 on Windows. My patch ran into trouble because it inadvertently disabled that assumption in a

[issue1589266] bdist_sunpkg distutils command

2010-08-25 Thread Holger Joukl
Holger Joukl jh...@gmx.de added the comment: Holger, sorry your work has to be rejected. No harm done - kind of paradoxical that my employer allowed me to release the code into the wild but hasn't been willing to let me sign the contribution form, in 4 years. So it's at least out in the

[issue9680] Add in declaration order support for the dictionary passed in to the meta class __init__ and __new__ methods

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The ordering of dictionary keys is a fundamental property of Python dictionaries (it's a hash table). PEP 3115 provides the functionality you are looking for, your metaclass just needs to be slightly more complicated. -- nosy:

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: There was a discussion about IRI on python-dev in the middle of a discussion about adding a coercable bytes type, but I can't find it. I believe the conclusion was that the best solution for IRI support was a new library that implements

[issue9679] unicode DNS names in urllib, urlopen

2010-08-25 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- keywords: -buildbot, patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9679 ___ ___

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-25 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: If we keep that behavior, the real problem here is that the result handler hangs if the process that reserved a job is gone, which is going to be handled by #9205. Should we mark it as a duplicate? I would tend to agree with your

[issue9610] buildbot: uncaptured python exception (smtpd), but no failure in regrtest

2010-08-25 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: It's very hard to tell what went wrong without an actual traceback message. What I don't understand is why smtpd module is mentioned in the message, since apparently test_ssl.py doesn't use it at all. --

[issue9674] make install DESTDIR=/home/blah fails when the prefix specified is /

2010-08-25 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: See also issue1676135. Seems that the posters were wrong in concluding that the double slashes wouldn't bother anyone using prefix=/ :) -- nosy: +r.david.murray ___ Python tracker

  1   2   >