Re: Wrapping a class set method

2005-07-27 Thread Paolino
snoe wrote: > I have a suspicion that there's an easier way to do this than > explicitly adding a Project.pickleme() call to the beginning of all of > my set/add methods. > So is there a way to wrap methods for this type of functionality or is > there another way of doing this, maybe without usi

Re: Wrapping a class set method

2005-07-27 Thread Paolino
snoe wrote: > I have a suspicion that there's an easier way to do this than > explicitly adding a Project.pickleme() call to the beginning of all of > my set/add methods. > So is there a way to wrap methods for this type of functionality or is > there another way of doing this, maybe without usi

Re: SciPy and NetCDF

2005-07-27 Thread Robert Kern
Scott Kilpatrick wrote: > So wherever pycdf does a: > > from Numeric import * > > what is the equivalent for SciPy? i.e. where is the full Numeric module > in SciPy? Scipy also does a from Numeric import * Numeric isn't contained within Scipy; Scipy uses Numeric like pycdf does. -- Robert

Re: searching string url

2005-07-27 Thread googlinggoogler
Thanks for the rapid replys, I cracked the problem 15 seconds after posting here, doh! Anyway to the orginally replier - I wish it was homework ;-), that would mean I wouldnt be trying to find myself a job as a recent graduate... I decided to crawl something similar to the yellow pages (do you hav

Re: Building Python with Tcl/Tk on Cygwin_NT-5.1

2005-07-27 Thread Dean N. Williams
[snip] >I didn't get this error. Did you forgot to install one of the >libdb${version}-devel packages: > >$ cygcheck -cd | grep 'libdb.*-devel' >libdb2-devel2.7.7-4 >libdb3.1-devel 3.1.17-2 >libdb4.1-devel 4.1.25-1 >libdb4.2-devel 4.2.52

Re: SciPy and NetCDF

2005-07-27 Thread Scott Kilpatrick
Oh ok, so if my sysadmin installs SciPy, then to get the netCDF support we need he just needs to then install pycdf? I really appreciate the help. Scott -- http://mail.python.org/mailman/listinfo/python-list

Re: SciPy and NetCDF

2005-07-27 Thread Robert Kern
Scott Kilpatrick wrote: > Oh ok, so if my sysadmin installs SciPy, then to get the netCDF support > we need he just needs to then install pycdf? 1. Install Numeric. 2. Install Scipy. 3. Install pycdf. Numeric is not, yet, bundled into Scipy. -- Robert Kern [EMAIL PROTECTED] "In the fields of h

Re: getting Arrays and variables from R [fixed]

2005-07-27 Thread Nicolas Lebas
Finally i found the solution in Rpy-list : there is a bug in python2.4-rpy_0.4.1. An alternative solution which works fine it's to use the R get(str) function instead of using directly the variable (i.e r.tab) like that : r.get('tab') Nicolas Lebas a écrit : > hello, > > i don't know if thi

Re: SciPy and NetCDF

2005-07-27 Thread Rocco Moretti
Scott Kilpatrick wrote: > So wherever pycdf does a: > > from Numeric import * > > what is the equivalent for SciPy? i.e. where is the full Numeric module > in SciPy? Python packages are in a pretty flat hierarchy. There really isn't a "SciPy Numeric" and a "pycdf Numeric" - Numeric, as an indep

Re: [Beginner] Calling a function by its name in a string

2005-07-27 Thread Peter Hansen
Tito wrote: > Thank you both for your quick answers. > > What I wanted is to parameterize a function with another member > function, like this: > > def printFunctionForEach(collection, functionName): > for elem in collection: > print eval("elem." + functionName + "()") Note: "member funct

Are you interested in Saving money on projects?

2005-07-27 Thread globalbid
Hi, I have a website www.FreelancingProject.com and I would like to invite freelancer, programmer's or web designer's to sign up and receive a nice sign up bonus! Our goal is to connect professional freelancers to webmasters providing both freelancers and webmasters the opportunity to expand thei

OT: finding a job (was Re: searching string url)

2005-07-27 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > Anyway to the orginally replier - I wish it was homework ;-), that > would mean I wouldnt be trying to find myself a job as a recent > graduate... I decided to crawl something similar to the yellow pages Sounds like a useful task, and a good way to learn more about Pytho

Re: Why Tcl/Tk?

2005-07-27 Thread William Park
Jerry He <[EMAIL PROTECTED]> wrote: > I'm a little curious, why does most scripting > languges(i.e. python and ruby) use Tcl/Tk rather than > wx or Fox as its standard GUI? Although I did notice > that the Vpython IDE that uses Tkinker starts up a lot > faster than the DrPython IDE that uses wxpyth

Job available: SF Bay Area (was Re: OT: finding a job)

2005-07-27 Thread Aahz
In article <[EMAIL PROTECTED]>, Peter Hansen <[EMAIL PROTECTED]> wrote: > >Mass-mailed resumes with generic cover letters are a good way to kill >trees but not a particular effective way to get noticed by an employer, >at least not noticed in a good way... Excellent advice! Speaking of which,

Rich Graphics?

2005-07-27 Thread Chris Spencer
I'm trying to write a Gui in Python for manipulating rich graphical representations, similar to something like Inkscape. I've tried tkinter, wxPython, pyGtk, and while they all do traditional widgets well enough, none of them really handle anti-aliased, transparent, transformed shapes typical o

Re: [path-PEP] Path inherits from basestring again

2005-07-27 Thread Ron Adam
Michael Hoffman wrote: > Ron Adam wrote: > >> In all current cases, (that I know of), of differing types, '+' raises >> an error. > > > Not quite: > > >>> "hello " + u"world" > u'hello world' > >>> 4.5 + 5 > 9.5 > >> Question: Is a path object mutable? > > > No. > > This should answer t

Re: [Beginner] Calling a function by its name in a string

2005-07-27 Thread Steven D'Aprano
On Wed, 27 Jul 2005 14:18:25 -0400, Bill Mill wrote: > On 7/27/05, Tito <[EMAIL PROTECTED]> wrote: >> Hi all: >> >> Is there a metalanguage capability in Python (I know there are many) to >> call a function having its name in a string? >> >> Something like: >> __call__("foo") >> >> instead of:

Re: anything to do

2005-07-27 Thread Steven Bethard
[EMAIL PROTECTED] wrote: > is there any place which lists jobs to be done...you know minor jobs > and requests thats nobody has found time to do. Not all of these are pure Python, so you may have to wade through a bit to avoid the C ones, but a good place to look is the Python trackers on source

Re: can list comprehensions replace map?

2005-07-27 Thread Raymond Hettinger
[David Isaac] > > I have been generally open to the proposal that list comprehensions > > should replace 'map', but I ran into a need for something like > > map(None,x,y) > > when len(x)>len(y). I cannot it seems use 'zip' because I'll lose > > info from x. How do I do this as a list comprehensio

Re: can list comprehensions replace map?

2005-07-27 Thread Steven Bethard
David Isaac wrote: > I ran into a need for something like map(None,x,y) > when len(x)>len(y). I cannot it seems use 'zip' because I'll lose > info from x. I almost never run into this situation, so I'd be interested to know why you need this. Here's one possible solution: py> import itertools

Trimming X/HTML files

2005-07-27 Thread Thomas SMETS
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dear, I need to parse XHTML/HTML files in all ways : ~ _ Removing comments and javascripts is a first issue ~ _ Retrieving the list of fields to submit is my following item (todo) Any idea where I could find this already made ... ? \T, -BEGIN

Re: Earthquake Forecasting Program July 11, 2005

2005-07-27 Thread Lemming
On Wed, 13 Jul 2005 23:39:46 GMT, "Hank Oredson" <[EMAIL PROTECTED]> wrote: >In particular I am interested in the EM dataset. Hank, with respect ... Posted to nine newsgroups; fluffy responses when you ask specific questions; evasion when you repeatedly ask for real data ... I regret to say, YHB

Re: Path inherits from basestring again

2005-07-27 Thread Jordan Rastrick
Personally, I *like* the current distinction between + as a regular string join, which gives the already much discussed benefit of allowing paths to be dropped in seamlessly and painlessly anywhere strings are currently used, and then having in addition the / operator for "concatenate with a path s

Re: Rich Graphics?

2005-07-27 Thread D H
Cairo is an option, for Linux only though at the moment. There is a python binding: http://cairographics.org/bindings You can use it in combination with pygtk: http://cvs.cairographics.org/pycairo/examples/svg/ See also the backends used by matplotlib, a python plotting module. -- http://mail.py

Re: [path-PEP] Path inherits from basestring again

2005-07-27 Thread Peter Hansen
Ron Adam wrote: > Michael Hoffman wrote: >> Ron Adam wrote: >>> In all current cases, (that I know of), of differing types, '+' >>> raises an error. >> >> Not quite: >> >>> "hello " + u"world" >> u'hello world' >> >>> 4.5 + 5 >> 9.5 >> > In the case of numeric types, it's an addition and not a j

Re: any thing to do???

2005-07-27 Thread James Stroud
The world needs an open source tool for working with DNA sequences graphically. I know what needs to be done, but I am not finding much time to do it. I have already coded a graphical sequence editor and some cool tools for sequence analysis. For this project I am using Tkinter as the gui and b

Re: multiple inheritance super()

2005-07-27 Thread Mike Meyer
"Michele Simionato" <[EMAIL PROTECTED]> writes: >>I am mostly >>using old style (without type unification) init but this motivate the >>shift for the new style. Is there somewhere a document about this? > Yes, see http://www.python.org/2.3/mro.html by yours truly I'd also recommend reading http:/

Re: [OT] Problems with permissions etc

2005-07-27 Thread Mike Meyer
"Frank Millman" <[EMAIL PROTECTED]> writes: > While developing under linux, I use my own computer, as the only user, > so it has become my habit to login as root and do all my work as a > superuser. I know that this is not desirable, but it has become a > habit, which I am now trying to get out of

Re: any thing to do???

2005-07-27 Thread mustafa
James Stroud wrote: > The world needs an open source tool for working with DNA sequences > graphically. I know what needs to be done, but I am not finding much time to > do it. I have already coded a graphical sequence editor and some cool tools > for sequence analysis. For this project I am usi

retrieve data from 2 database

2005-07-27 Thread crespoh
Hi, How do I select data from two tables from two different databases and compare them? using dbi,odbc -- http://mail.python.org/mailman/listinfo/python-list

Re: searching string url

2005-07-27 Thread Mike Meyer
[EMAIL PROTECTED] writes: > Anyway to the orginally replier - I wish it was homework ;-), that > would mean I wouldnt be trying to find myself a job as a recent > graduate... I decided to crawl something similar to the yellow pages > (do you have them in the US?) for my select area and then find

Re: Earthquake Forecasting Program July 11, 2005

2005-07-27 Thread Hank Oredson
"Lemming" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 13 Jul 2005 23:39:46 GMT, "Hank Oredson" > <[EMAIL PROTECTED]> wrote: > >>In particular I am interested in the EM dataset. > > Hank, with respect ... > > Posted to nine newsgroups; fluffy responses when you ask specifi

Re: Are you interested in Saving money on projects?

2005-07-27 Thread mustafa
globalbid wrote: > Hi, > > I have a website www.FreelancingProject.com and I would like to invite > freelancer, programmer's or web designer's to sign up and receive a > nice sign up bonus! > > Our goal is to connect professional freelancers to webmasters providing > both freelancers and webmaste

Re: can list comprehensions replace map?

2005-07-27 Thread Paolino
Raymond Hettinger wrote: > [David Isaac] > >>>I have been generally open to the proposal that list comprehensions >>>should replace 'map', but I ran into a need for something like >>>map(None,x,y) >>>when len(x)>len(y). I cannot it seems use 'zip' because I'll lose >>>info from x. How do I do th

Re: [path-PEP] Path inherits from basestring again

2005-07-27 Thread Ron Adam
Peter Hansen wrote: > Ron Adam wrote: > >> Michael Hoffman wrote: >> >>> Ron Adam wrote: >>> In all current cases, (that I know of), of differing types, '+' raises an error. >>> >>> >>> Not quite: >>> >>> "hello " + u"world" >>> u'hello world' >>> >>> 4.5 + 5 >>> 9.5 >>> >> In the cas

how to get function signature

2005-07-27 Thread [EMAIL PROTECTED]
Hi, I was working on a dir like function that gives more information than the usual dir, but I am not satisfied with the way I get function arguments for callable members of an object. Take a look at it here: http://nerdierthanthou.nfshost.com/2005/07/mdir-for-python.html. I have seen PythonWin sh

Re: how to get function signature

2005-07-27 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Hi, > > I was working on a dir like function that gives more information than > the usual dir, but I am not satisfied with the way I get function > arguments for callable members of an object. Take a look at it here: > http://nerdierthanthou.nfshost.com/2005/07/mdir-for-

RE: trying to access Oracle

2005-07-27 Thread Albert Leibbrandt
>> I am trying to access Oracle using the cx_Oracle module. I can login to Oracle OK, but I >> am at a loss as to how I should then access the specific table I need so that I can join it to >> our county parcel layer using the “make table view” tool. I have scoured the internet looking >> f

<    1   2