Re: Quickie - Regexp for a string not at the beginning of the line

2012-10-25 Thread anon
On Thu, 25 Oct 2012 18:08:53 -0700 (PDT), Rivka Miller wrote in <73f60cf3-d932-4366-a405-676748856...@q16g2000yqc.googlegroups.com>: >no one has really helped yet. We regret that you are not a satisfied customer. Please take your receipt to the cashier and you will receive double your money bac

Re: ANN: eGenix mxODBC Zope Database Adapter 2.0.2

2012-02-10 Thread anon hung
Thanks a bunch for the whole team! Best, anonhung On 2/9/12, eGenix Team: M.-A. Lemburg wrote: > > ANNOUNCEMENT > > mxODBC Zope Database Adapter > > Version 2.0.2 > >

Re: frozendict

2012-02-09 Thread anon hung
> I've been trying for a few days (only a little bit at a time) to come up > with a way of implementing a frozendict that doesn't suck. I'm gradually > converging to a solution, but I can't help but think that there's some > subtlety that I'm probably missing which is why it's not already provided.

Re: Issue with Scrapping Data from a webpage- Noob Question

2012-02-09 Thread anon hung
> Hi Fellow Pythoners, > > I'm trying to collect table data from an authenticated webpage (Tool) to > which I have access. > > I will have the required data after 'click'ing a submit button on the tool > homepage. > When I inspect the submit button i see > > > Thus the tool's homepage is of the fo

Re: standalone python web server

2012-02-08 Thread anon hung
>> I am building a small intranet website and I would like to use Python. I >> was wondering if there was a easy and medium performance python based web >> server available. I would like to run it on port :8080 since I wont have >> root access also I prefer something easy to deploy meaning I would

Fwd: turbogears 1

2012-02-08 Thread anon hung
>>> Hey guys, someone asked me to maintain his old website, trouble is, >>> it's in python, more trouble is it's in turbogears 1. I'm not fluent in >>> python but all right, I can learn, but this turbogears thing.. >>> >>> First of all, is it still alive? Looks like turbogears 2 is the most

Re: turbogears 1

2012-02-08 Thread anon hung
>>> Hey guys, someone asked me to maintain his old website, trouble is, >>> it's in python, more trouble is it's in turbogears 1. I'm not fluent in >>> python but all right, I can learn, but this turbogears thing.. >>> >>> First of all, is it still alive? Looks like turbogears 2 is the most

Re: turbogears 1

2012-02-08 Thread anon hung
>> Hey guys, someone asked me to maintain his old website, trouble is, >> it's in python, more trouble is it's in turbogears 1. I'm not fluent >> in python but all right, I can learn, but this turbogears >> thing.. >> >> First of all, is it still alive? Looks like turbogears 2 is the most >

Re: Komodo 7 release (Python development tools)

2012-02-08 Thread anon hung
>> My name is Todd. I'm the lead developer for Komodo IDE (Interactive >> Development Environment) and Komodo Edit (a free, open-source editor) at >> ActiveState. I wanted to announce that the newest version, Komodo 7, has >> been released: > > This is a pretty good release announcement, but a few

turbogears 1

2012-02-07 Thread anon hung
Hey guys, someone asked me to maintain his old website, trouble is, it's in python, more trouble is it's in turbogears 1. I'm not fluent in python but all right, I can learn, but this turbogears thing.. First of all, is it still alive? Looks like turbogears 2 is the most recent version but

loop through arrays and find maximum

2011-12-05 Thread questions anon
I would like to calculate the max and min across many netcdf files. I know how to create one big array and then concatenate and find the numpy.max but when I run this on 1000's of arrays I have a memory error. What I would prefer is to loop through the arrays and produce the maximum without having

Re: mask one array using another array

2011-11-21 Thread questions anon
thank you, that makes sense. I should have posted this on another list (which I have now). and the change required is: If your new array is x, you can use: numpy.ma.masked_array(x, mask=mask.mask) On Tue, Nov 22, 2011 at 11:48 AM, MRAB wrote: > On 21/11/2011 21:42, questions anon wr

mask one array using another array

2011-11-21 Thread questions anon
I am trying to mask one array using another array. I have created a masked array using mask=MA.masked_equal(myarray,0), that looks something like: [1 - - 1, 1 1 - 1, 1 1 1 1, - 1 - 1] I have an array of values that I want to mask whereever my mask has a a '-'. how do I do this? I

Re: memory error

2011-09-28 Thread questions anon
= plt.axes([l+w+0.025, b, 0.025, h], ) cbar=plt.colorbar(CS, cax=cax, drawedges=True) #save map as *.png and plot netcdf file plt.savefig((os.path.join(OutputFolder, ncvariablename+date_string+'UTC.png'

memory error

2011-09-13 Thread questions anon
Hello All, I keep coming across a memory error when processing many netcdf files. I assume it has something to do with how I loop things and maybe need to close things off properly. In the code below I am looping through a bunch of netcdf files (each file is hourly data for one month) and within ea

Re: escape character / csv module

2010-07-01 Thread anon
V N wrote: string "\x00" has a length of 1. When I use the csv module to write that to a file csv_f = csv.writer(file("test.csv","wb"),delimiter="|") csv_f.writerow(["\x00","zz"]) The output file looks like this: |zz Is it possible to force the writer to write that string? This will do what

Re: A question about making a sort-of-counter.

2010-03-30 Thread anon
Justin Park wrote: Suppose I have a list. a = list() And suppose allowed digits as the element are 1,2,3,4,5. What can I do in order to iterate over all possible values for each element? For instance, the sequence of the list I want to have would be [1,1,1,1,1] [1,1,1,1,2] [1,1,1,1,3] [5,

Re: One function calling another defined in the same file being exec'd

2010-01-07 Thread anon
Rather than exec the files, why not import them? I can get both your examples to work using the 'imp' module. http://docs.python.org/3.1/library/imp.html#module-imp I used python 2.6.4. Note that 3.1 also has 'importlib' module. import imp # the name of the python file written by a user name

Re: Threading change, 2.5.4 -> 2.6.1

2010-01-07 Thread anon
Gib Bogle wrote: The code below runs with Python 2.5.4, but gives the following error messages with Python 2.6.1. What needs to be done to make it work? Thanks. C:\Summer09\Tutorials>python url_queue.pyw Traceback (most recent call last): File "url_queue.pyw", line 3, in import threading Fi

Re: Importing a class, please help...

2006-02-05 Thread anon
te in message news:[EMAIL PROTECTED] > anon wrote: >> Would somebody please drop me a hint, please? >> > Yeah, the definition of "JAR" is Java ARchive, why the hell would a Python > script be able to read a JAR in the first place (truth is it is, a JAR > file is no

Importing a class, please help...

2006-02-05 Thread anon
Hi, Newbie to Python and I have a question please. I am using Windows XP, SPE 0.8.2.a and Python24. I have done this: import sys print sys.path no problem there, sys imports just fine. I have a folder that I called c\JavaProjects\PythonTesting and it shows up in the output from sys.path ab

[Newbie] How do I get better at Python programming?

2005-03-28 Thread Anon
I've gotten off to a good start for programming using Python (my first programming language). I can do the basics (different kinds of loops, variables, functions), but I'm not too good with classes yet. I've written some really small programs just for kicks (most involve statistics of differe

SAX parsing problem

2005-03-15 Thread anon
So I've encountered a strange behavior that I'm hoping someone can fill me in on. i've written a simple handler that works with one small exception, when the parser encounters a line with '&' in it, it only returns the portion that follows the occurence. For example, parsing a file with the lin