GOZERBOT 0.8 BETA released

2008-02-06 Thread bthate
gozerbot 0.8 is coming real soon in a chat channel near you and thus we have made a BETA of the upcoming 0.8 release available. new in 0.8: * third party addons for plugins * ipv6 udp * reboot without disconnects * owneruserhost is now a list * lots of bug fixes please test

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread bearophileHUGS
Stefan Behnel: This doesn't look like Mono to me: IronPython 1.1 (1.1) on .NET 2.0.50727.42 You are right! I think this shows that IronPython isn't faster than CPython at all :-) (And it uses more memory). Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the most simple, quicket, yet most powerful python Web-Framework?

2008-02-06 Thread Bruno Desthuilliers
xkenneth a écrit : All, I'm trying to build a simple web application, but i still need things like sessions and Ajax. I tried to create a Zope product, but I honestly can't think of anything more cryptic. Indeed !-) I really don't enjoy learning all of the magic code and debugging

Re: polling for output from a subprocess module

2008-02-06 Thread Thomas Bellman
Ivo [EMAIL PROTECTED] wrote: Thomas Bellman wrote: However, the os.read() function will only read what is currently available. Note, though, that os.read() does not do line-based I/O, so depending on the timing you can get incomplete lines, or multiple lines in one read. be carefull

Re: package import

2008-02-06 Thread Diez B. Roggisch
Sean Allen wrote: ok, what am i doing wrong? in current working directory i have: t.py sub/t1.py t.py is: import sub.t1 i get: ImportError: No module named sub.t1 t.py is import sub i get: ImportError: No module named sub.t1 -- i am obviously missing

Re: Show Image with WebKit

2008-02-06 Thread Marcos Alcazar
Gabriel, I already tried In ower list in Argentina... I reveived a lot of answers of people who wants to help me, but we can't find the solution to my problem, because of that I'm asking here. Anyway, thank's to try to aproach me to ower community in PyAr. Ah, the thread is Guardar y recuperar

Re: Running files with the associated program...

2008-02-06 Thread E-Lo
On Feb 6, 6:09 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 05 Feb 2008 22:34:59 -0200, E-Lo [EMAIL PROTECTED] escribió: How can I start a file (on Windows) with the associated program, http://docs.python.org/lib/os-process.html#l2h-2760 startfile(path[, operation]) Start a file

Re: breaking out of outer loops

2008-02-06 Thread Antoon Pardon
On 2008-01-29, Jeremy Sanders [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Any elegant way of breaking out of the outer for loop than below, I seem to have come across something, but it escapes me for i in outerLoop: for j in innerLoop: if condition: break

Retreiving objects from other processes

2008-02-06 Thread Natan Yellin
Hello, Sorry if this is a stupid question... I have some experience with C but very little with Python. I'd like to have one python program retrieve a reference or copy of an object from another python process on the same computer. I know I can use RPyC, but that seems like overkill. Is there

Re: Retreiving objects from other processes

2008-02-06 Thread Diez B. Roggisch
Natan Yellin wrote: Hello, Sorry if this is a stupid question... I have some experience with C but very little with Python. I'd like to have one python program retrieve a reference or copy of an object from another python process on the same computer. I know I can use RPyC, but that seems

Re: boolean decisions

2008-02-06 Thread Robin Becker
[EMAIL PROTECTED] wrote: Statestep (which includes Python code generation) might be something to look at. It's designed to help the user create simplified rules to begin with rather than derive them post hoc (it's really for much bigger problems where enumerating individual rules like you've

Need Smart Phone with new features? please click here

2008-02-06 Thread Farooq
www.enmac.com.hk GSM Mobile Phones, Digital iPods, Digital Clocks, Digital Pens, Digital Quran. Enjoy these products with Islamic Features (Complete Holy Quran with Text and Audio, Tafaseer books, Ahadees Books, Daily Supplications, Universal Qibla Direction, Prayer Timing and much more) visit our

TheSchwartz in Python?

2008-02-06 Thread js
Hi, I'm looking for a job queue manager in Python, like TheSchwartz.[1]. I found there's TheSchawrtz server, RPC server powered by Gearman, to which Python/Ruby can connect [2], but setting up two languages env is a little cumbersome to me. Is there any alternative to that in Python? The

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Matthew_WARREN
Internet [EMAIL PROTECTED]

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Matthew_WARREN
|--- | Internet | | [EMAIL PROTECTED]| | | |

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Steve Holden
I try not to top-post in this group, but the strange formatting of the message makes this advisable, as I am sure many people won't even persist in reading down as far as the content. Can I make a wild-assed guess that you are a Lotus Notes user reading python-list? Please try and find a way

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Matthew_WARREN
I try not to top-post in this group, but the strange formatting of the message makes this advisable, as I am sure many people won't even persist in reading down as far as the content. Can I make a wild-assed guess that you are a Lotus Notes user reading python-list? Please try and find

Re: Data Manipulation - Rows to Columns

2008-02-06 Thread bearophileHUGS
This is smells of homework. Here are few alternative solutions of mine that I don't like. I presume a good teacher will refuse them all, because no one of them uses the right tool :-) And every one of them has some small problem (even if they work here). data = \ itemTABLE/table colorblack/color

Re: Must COMMIT after SELECT (was: Very weird behavior in MySQLdb execute)

2008-02-06 Thread Frank Aune
On Tuesday 05 February 2008 18:58:49 John Nagle wrote: So you really do have to COMMIT after a SELECT, if you are reusing the database connection. CGI programs usually don't have this issue, because their connections don't live long, but long-running FCGI (and maybe Twisted) programs do.

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Steve Holden
[EMAIL PROTECTED] wrote: I try not to top-post in this group, but the strange formatting of the message makes this advisable, as I am sure many people won't even persist in reading down as far as the content. Can I make a wild-assed guess that you are a Lotus Notes user reading

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Hrvoje Niksic
[EMAIL PROTECTED] writes: However I do understand where your coming from. You are right, I'm a Lotus Notes user. If I didn't have to use it I wouldn't. If I had access to the list from where I currently work any other way I would use that. Have you tried www.gmane.org? --

RE: Multiple interpreters retaining huge amounts of memory

2008-02-06 Thread Bronner, Gregory
What objects need to be shared across interpreters? My thought was to add an interpreter number to the PyThreadState structure, to increment it when Py_NewInterpreter is called, and to keep track of the interpreter that creates each object. On deletion, all memory belonging to these objects

RE: Why not a Python compiler?

2008-02-06 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Luis M. González Sent: Tuesday, February 05, 2008 6:44 PM To: python-list@python.org Subject: Re: Why not a Python compiler? Pypy is a very ambitious project and it aims, amongst many

Re: Must COMMIT after SELECT (was: Very weird behavior in MySQLdb execute)

2008-02-06 Thread Paul Boddie
On 6 Feb, 16:04, Frank Aune [EMAIL PROTECTED] wrote: Whenever I did a SELECT() on the first connection, the cursor would stop seeing new entries commited in the log table by the other connection. I always assumed you needed COMMIT() after adding new content to the database, not after every

Re: Tkinter fonts setting

2008-02-06 Thread jim-on-linux
On Tuesday 05 February 2008 15:22, Unnamed One wrote: First question - is it possible to set font to default OS font for window text? It would be preferable, while on my Windows XP system Tkinter sets small Helvetica-style font by default. Secondly, can I set font globally (or specify

Re: Why not a Python compiler?

2008-02-06 Thread Grant Edwards
On 2008-02-06, Reedick, Andrew [EMAIL PROTECTED] wrote: Pypy is a very ambitious project and it aims, amongst many other goals, to provide a fast just-in-time python implementation. They even say that the secret goal is being faster than c, which is nonsense, isn´t it? (I still didn´t get

Re: Tkinter fonts setting

2008-02-06 Thread Unnamed One
jim-on-linux wrote: On Tuesday 05 February 2008 15:22, Unnamed One wrote: First question - is it possible to set font to default OS font for window text? It would be preferable, while on my Windows XP system Tkinter sets small Helvetica-style font by default. Secondly, can I set font

RE: Why not a Python compiler?

2008-02-06 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Grant Edwards Sent: Wednesday, February 06, 2008 10:35 AM To: python-list@python.org Subject: Re: Why not a Python compiler? On 2008-02-06, Reedick, Andrew [EMAIL PROTECTED] wrote: Pypy

Re: Traversing python datatypes via http

2008-02-06 Thread Larry Bates
Mark wrote: Is it possible to traverse say python lists via http:// say there is a list in the memory can we traverse the list using list/next list/prev list/first list/last is there a pythonic library to do that? thanks It sounds like what you want would be implemented using XMLRPC

Re: TheSchwartz in Python?

2008-02-06 Thread Larry Bates
js wrote: Hi, I'm looking for a job queue manager in Python, like TheSchwartz.[1]. I found there's TheSchawrtz server, RPC server powered by Gearman, to which Python/Ruby can connect [2], but setting up two languages env is a little cumbersome to me. Is there any alternative to that in

Re: TheSchwartz in Python?

2008-02-06 Thread Steve Holden
Larry Bates wrote: js wrote: Hi, I'm looking for a job queue manager in Python, like TheSchwartz.[1]. I found there's TheSchawrtz server, RPC server powered by Gearman, to which Python/Ruby can connect [2], but setting up two languages env is a little cumbersome to me. Is there any

Re: Why not a Python compiler?

2008-02-06 Thread Steve Holden
Reedick, Andrew wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Grant Edwards Sent: Wednesday, February 06, 2008 10:35 AM To: python-list@python.org Subject: Re: Why not a Python compiler? On 2008-02-06, Reedick, Andrew [EMAIL

Re: Why not a Python compiler?

2008-02-06 Thread Carl Friedrich Bolz
Reedick, Andrew wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Luis M. González Sent: Tuesday, February 05, 2008 6:44 PM To: python-list@python.org Subject: Re: Why not a Python compiler? Pypy is a very ambitious project and it

Formatting arrays using myarrayy.tolist()

2008-02-06 Thread Max Abrahams
I've got an array that looks like this: p.xv[20:25] array([[ 1.60783821e-01, 1.04174046e+01, -1.74045566e-03, 6.02421398e-01, 2.16078382e+00, -1.60783821e-02], [ 1.66704816e-01, 1.04390422e+01, -1.90421758e-03, 5.81767402e-01, 2.16670482e+00,

Re: Why not a Python compiler?

2008-02-06 Thread Luis M. Gonzalez
Hi Carl, Well, lets suppose that being faster than C is the real goal... Are you confident that it will be reached? How far is it at this moment? I've been following the project but the scarcity of news is getting me anxious... Cheers, Luis On Feb 6, 2008 2:14 PM, Carl Friedrich Bolz [EMAIL

Server side cookie problems

2008-02-06 Thread rodmc
Hi, I am trying to set a cookie on a client computer using the Cookie module however all I get is the text being printed in the browser window. Can anyone point me in the right direction so that the cookie data is set without it appearing in the browser? A shortened version of the code is below,

Re: smtpd module

2008-02-06 Thread Gabriel Genellina
En Wed, 06 Feb 2008 05:36:05 -0200, Stefan Witzel [EMAIL PROTECTED] escribi�: the documentation of the smtpd module in the Python Library Reference is very short, I think. Are there any examples available? Especially I'm interested in the DebuggingServer. Yes, the documentation is rather

Installing PyQt

2008-02-06 Thread Marcus Strube
Hi I was trying to install PyQt, but things don't work as promised. I'm working on OS X 10.5, didn't install another version of Python - so it's 2.5.1 -, installed the latest qt-mac-opensource-4.3.3.dmg and the latest sip 4.7.3. But when I then try to run python configure.py for PyQt 4.3.3

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Gabriel Genellina
En Wed, 06 Feb 2008 12:39:55 -0200, [EMAIL PROTECTED] escribió: If I had access to the list from where I currently work any other way I would use that. Have you Web access? You can read *and* post messages using: Google Groups http://groups.google.com/group/comp.lang.python/ Gmane

Re: Installing PyQt

2008-02-06 Thread Diez B. Roggisch
Marcus Strube schrieb: Hi I was trying to install PyQt, but things don't work as promised. I'm working on OS X 10.5, didn't install another version of Python - so it's 2.5.1 -, installed the latest qt-mac-opensource-4.3.3.dmg and the latest sip 4.7.3. But when I then try to run python

Re: Why not a Python compiler?

2008-02-06 Thread Carl Friedrich Bolz
Hi Luis, Luis M. Gonzalez wrote: Well, lets suppose that being faster than C is the real goal... How about we call it a very long-term dream? Are you confident that it will be reached? We have ideas how to get there, but it is really rather long-term. There will be a lot of research needed

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Martin v. Löwis
I wrote a lil module using paramiko's module to send a file via sftp.. it works great using the username and password. I would prefer to use id_dsa.pub to have an autologon and not save the password anywhere on the disk.. I cant find a good example of this. Can anyone help ? When you have

Re: Installing PyQt

2008-02-06 Thread Phil Thompson
On Wednesday 06 February 2008, Marcus Strube wrote: Hi I was trying to install PyQt, but things don't work as promised. I'm working on OS X 10.5, didn't install another version of Python - so it's 2.5.1 -, installed the latest qt-mac-opensource-4.3.3.dmg and the latest sip 4.7.3. But when I

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Isaac Gouy
On Feb 5, 11:47 am, Stefan Behnel [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative: http://shootout.alioth.debian.org/sandbox/benchmark.php?test=alllang... This

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Isaac Gouy
On Feb 6, 12:04 am, [EMAIL PROTECTED] wrote: Stefan Behnel: This doesn't look like Mono to me: IronPython 1.1 (1.1) on .NET 2.0.50727.42 You are right! No. I think this shows that IronPython isn't faster than CPython at all :-) (And it uses more memory). --

Re: Tkinter fonts setting

2008-02-06 Thread Gabriel Genellina
En Wed, 06 Feb 2008 14:02:35 -0200, Unnamed One [EMAIL PROTECTED] escribi�: jim-on-linux wrote: On Tuesday 05 February 2008 15:22, Unnamed One wrote: First question - is it possible to set font to default OS font for window text? It would be preferable, while on my Windows XP system

Re: Formatting arrays using myarrayy.tolist()

2008-02-06 Thread Colin J. Williams
Max Abrahams wrote: I've got an array that looks like this: p.xv[20:25] array([[ 1.60783821e-01, 1.04174046e+01, -1.74045566e-03, 6.02421398e-01, 2.16078382e+00, -1.60783821e-02], [ 1.66704816e-01, 1.04390422e+01, -1.90421758e-03, 5.81767402e-01,

Re: Multiple interpreters retaining huge amounts of memory

2008-02-06 Thread Martin v. Löwis
What objects need to be shared across interpreters? My thought was to add an interpreter number to the PyThreadState structure, to increment it when Py_NewInterpreter is called, and to keep track of the interpreter that creates each object. On deletion, all memory belonging to these

Re: Formatting arrays using myarrayy.tolist()

2008-02-06 Thread gmaximus6
sorry, i should've been more specific, this is a numpy array. -- http://mail.python.org/mailman/listinfo/python-list

Re: Server side cookie problems

2008-02-06 Thread Gabriel Genellina
En Wed, 06 Feb 2008 15:27:53 -0200, rodmc [EMAIL PROTECTED] escribi�: Hi, I am trying to set a cookie on a client computer using the Cookie module however all I get is the text being printed in the browser window. Can anyone point me in the right direction so that the cookie def

Professional Grant Proposal Writing Workshop (May 2008: Salt Lake City, Utah)

2008-02-06 Thread Anthony Jones
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held in Salt Lake City, Utah, May12 -14, 2008. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand means that seats will fill up

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Mike Hjorleifsson
Thanks for the response, is there an example bit of code somewhere i could digest ? On Feb 6, 1:35 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: I wrote a lil module using paramiko's module to send a file via sftp.. it works great using the username and password. I would prefer to use

Re: Broke my IDLE!

2008-02-06 Thread kdwyer
Just to clarify my earlier comment... IDLE (on Windows, at least) creates a folder called .idlerc in the current directory when it is called. If you amend the key bindings two files, config-keys.cfg and config-main.cfg are created. config- keys.cfg contains the amended key bindings and

Re: Formatting arrays using myarrayy.tolist()

2008-02-06 Thread Alan G Isaac
URL:http://www.scipy.org/Cookbook/InputOutput hth, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: Why chdir command doesn't work with client.get_transport() ?

2008-02-06 Thread Charles_hans
Thank you, Matt, for your valuable advice! My application is converting (to sftp/ssh) a script which used ftp/telnet to load/copy/zip files with labels to/from a ClearCase server. ClearCase is a version control software similar to MS Source Safe or PVCS. The command 'ct setview aViewName' is

Adding properties to an instance

2008-02-06 Thread dg . google . groups
Hi all, So I understand that properties belong to a class not an instance, but nonetheless I want to add properties to an instance. I have a class which when an instance is created runs some fairly complicated code and produces a set of names which I'd like to be able to access via properties. At

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Martin v. Löwis
Mike Hjorleifsson wrote: Thanks for the response, is there an example bit of code somewhere i could digest ? I did c.connect(hostname,username=loewis) with ssh-agent, and it worked just fine. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding properties to an instance

2008-02-06 Thread Jared Grubb
Here's one way of doing what you're asking... I would suggest using __getattribute__ and __setattr__ to dispatch the methods to the custom class you invent that holds all those properties. For example (I simplified your makeprops into __init__ just to keep the example short, but you can probably

Re: Adding properties to an instance

2008-02-06 Thread Jared Grubb
Er, instead of getattr(self,...) you gotta do object.__getattr__(self,...) and same for setattr and delattr. Dumb error on my part. (Otherwise you get infinite recursion!) On Feb 6, 2008 12:43 PM, Jared Grubb [EMAIL PROTECTED] wrote: Here's one way of doing what you're asking... I would suggest

Code block function syntax, anonymous functions decorator

2008-02-06 Thread castironpi
def run3( block ): for _ in range( 3 ): block() run3(): normal_suite() Introduces new syntax; arbitrary functions can follow 'colon'. Maintains readability, meaning is consistent. Equivalent to: def run3( block ): for _ in range( 3 ): block() @run3 def anonfunc():

Is there a way to use .NET DLL from Python

2008-02-06 Thread Huayang Xia
Hello All, I have several .NET DLL (I have no source code for them), is there anyway to use them from python instead of from C#. Thanks, Huayang -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Shane Geiger
The following links *may* put you on the right path: Calling DLL functions from Python ( http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146847 ), a fairly complete description with some helper class code. Another example ( http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/181063 )

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Fuzzyman
On Feb 5, 7:47 pm, Stefan Behnel [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative: http://shootout.alioth.debian.org/sandbox/benchmark.php?test=alllang... This

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Fuzzyman
On Feb 5, 6:52 pm, Steve Holden [EMAIL PROTECTED] wrote: Jeff wrote: IronPythonruns on top of .NET. I would be suspect of any claims that it is faster than cPython, just as I would of claims that Stackless or Jython are faster. Well don't be. There are benchmarks that clearly

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Carsten Haese
On Wed, 2008-02-06 at 13:39 -0800, Fuzzyman wrote: On Feb 5, 7:47 pm, Stefan Behnel [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative:

Re: package import

2008-02-06 Thread Sean Allen
Thanks. Found that 10 minutes after I sent. On Feb 6, 2008, at 4:57 AM, Diez B. Roggisch wrote: Sean Allen wrote: ok, what am i doing wrong? in current working directory i have: t.py sub/t1.py t.py is: import sub.t1 i get: ImportError: No module named sub.t1 t.py is import

Re: Adding properties to an instance

2008-02-06 Thread Gabriel Genellina
En Wed, 06 Feb 2008 18:06:48 -0200, [EMAIL PROTECTED] escribió: So I understand that properties belong to a class not an instance, but nonetheless I want to add properties to an instance. I have a class which when an instance is created runs some fairly complicated code and produces a set

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Stefan Behnel
Isaac Gouy wrote: On Feb 5, 11:47 am, Stefan Behnel [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative:

Re: IronPython vs CPython: faster in 1.6 times?

2008-02-06 Thread Stefan Behnel
Fuzzyman wrote: On Feb 5, 7:47 pm, Stefan Behnel [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: Mike C. Fletcher: Not sure if Mono also provides a speedup. There is a set of good benchmarks here, the answer is negative:

RE: Why not a Python compiler?

2008-02-06 Thread Jorge Godoy
Reedick, Andrew wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Grant Edwards Nothing can travel faster than the speed of light _in_a_vacuum_. There are situtaitons where things can (and regularly do) travel faster than light:

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Luis M. González
On Feb 6, 6:27 pm, Huayang Xia [EMAIL PROTECTED] wrote: Hello All, I have several .NET DLL (I have no source code for them), is there anyway to use them from python instead of from C#. Thanks, Huayang I used to put my .dll files into the .DLL folder, so I could simply import them as I

Re: TheSchwartz in Python?

2008-02-06 Thread js
Cool, but sched saves job in memory... cron can't be an option. It's just a scheduler not a job queue. On Feb 7, 2008 1:36 AM, Larry Bates [EMAIL PROTECTED] wrote: js wrote: Hi, I'm looking for a job queue manager in Python, like TheSchwartz.[1]. I found there's TheSchawrtz server, RPC

Looking for library to estimate likeness of two strings

2008-02-06 Thread [EMAIL PROTECTED]
Are there any Python libraries implementing measurement of similarity of two strings of Latin characters? I'm writing a script to guess-merge two tables based on people's names, which are not necessarily spelled the same way in both tables (especially the given names). I would like some function

getting all user defined attributes of a class

2008-02-06 Thread Amit Gupta
Hi How do I get user defined attributes of a class? e.g Class A(object) : self.x = 1 -- I want something like: for userattrib in A.getAllUserAttribute() : print userattrib My question is, is there a builtin function, called getAllUserAttributes? Thanks --

Re: Adding properties to an instance

2008-02-06 Thread [EMAIL PROTECTED]
On 6 fév, 21:06, [EMAIL PROTECTED] wrote: Hi all, So I understand that properties belong to a class not an instance, but nonetheless I want to add properties to an instance. While this is technically possible (I tried a couple years ago), it requires hacking the __getattribute__ method, which

Re: getting all user defined attributes of a class

2008-02-06 Thread Marc 'BlackJack' Rintsch
On Wed, 06 Feb 2008 14:07:23 -0800, Amit Gupta wrote: Class A(object) : self.x = 1 This is not valid Python code. I want something like: for userattrib in A.getAllUserAttribute() : print userattrib My question is, is there a builtin function, called getAllUserAttributes? No

Re: Looking for library to estimate likeness of two strings

2008-02-06 Thread Tim Chase
Are there any Python libraries implementing measurement of similarity of two strings of Latin characters? It sounds like you're interested in calculating the Levenshtein distance: http://en.wikipedia.org/wiki/Levenshtein_distance which gives you a measure of how different they are. A

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Huayang Xia
On Feb 6, 4:59 pm, Luis M. González [EMAIL PROTECTED] wrote: On Feb 6, 6:27 pm, Huayang Xia [EMAIL PROTECTED] wrote: Hello All, I have several .NET DLL (I have no source code for them), is there anyway to use them from python instead of from C#. Thanks, Huayang I used to put my

Re: Paramiko SFTP autologon using id_dsa.pub

2008-02-06 Thread Mike Hjorleifsson
sorry i meant a code example that i pass the id_dsa.pub file contents too so i am not reliant on the host system to have the ssh-agent. On Feb 6, 3:09 pm, Martin v. Löwis [EMAIL PROTECTED] wrote: Mike Hjorleifsson wrote: Thanks for the response, is there an example bit of code somewhere i

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Huayang Xia
Or maybe we can do it in IronPython? -- http://mail.python.org/mailman/listinfo/python-list

Re: TheSchwartz in Python?

2008-02-06 Thread Steve Holden
js wrote: Cool, but sched saves job in memory... cron can't be an option. It's just a scheduler not a job queue. Note that at and batch *are* job queues. regards Steve -- Steve Holden+1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/ --

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Gabriel Genellina
Huayang Xia wrote: I have several .NET DLL (I have no source code for them), is there anyway to use them from python instead of from C#. En Wed, 06 Feb 2008 19:37:02 -0200, Shane Geiger [EMAIL PROTECTED] escribió: Calling DLL functions from Python

Re: getting all user defined attributes of a class

2008-02-06 Thread Amit Gupta
On Feb 6, 2:15 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 06 Feb 2008 14:07:23 -0800, Amit Gupta wrote: Class A(object) : self.x = 1 This is not valid Python code. I want something like: for userattrib in A.getAllUserAttribute() : print userattrib My

Re: TheSchwartz in Python?

2008-02-06 Thread Damjan
Cool, but sched saves job in memory... cron can't be an option. It's just a scheduler not a job queue. You could probably make lpd do what you want to do. -- damjan -- http://mail.python.org/mailman/listinfo/python-list

mysqldb: Rows READ or Processed

2008-02-06 Thread mcl
I have looked through Python Database API Specification v2.0, but can not find any reference to the number of records processed in a select query. I know I can get the number of records returned with cursor.rowcount, but I want to know the number of records processed. I suppose the info is in

Re: Adding properties to an instance

2008-02-06 Thread dg . google . groups
On Feb 6, 10:54 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: I'd suggest a small improvement: _A as a class name isn't very nice. Replace the inner class statement with: _A = type(self.__class__.__name__ + '_autoprops', (self.__class__,), {}) Ah yes, that's much nicer. A problem with this

Re: Is there a way to use .NET DLL from Python

2008-02-06 Thread Christian Heimes
Huayang Xia wrote: Is there anyway to import class (to generate objects) from .NET DLL? You can use PythonDotNET if you want to access .NET assemblies in CPython (the standard Python implementation written in C). Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: getting all user defined attributes of a class

2008-02-06 Thread Diez B. Roggisch
Amit Gupta schrieb: On Feb 6, 2:15 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 06 Feb 2008 14:07:23 -0800, Amit Gupta wrote: Class A(object) : self.x = 1 This is not valid Python code. I want something like: for userattrib in A.getAllUserAttribute() : print

Re: Looking for library to estimate likeness of two strings

2008-02-06 Thread Jeff Schwab
Tim Chase wrote: Are there any Python libraries implementing measurement of similarity of two strings of Latin characters? It sounds like you're interested in calculating the Levenshtein distance: http://en.wikipedia.org/wiki/Levenshtein_distance which gives you a measure of how

Re: Code block function syntax, anonymous functions decorator

2008-02-06 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: def run3( block ): for _ in range( 3 ): block() run3(): normal_suite() Introduces new syntax; arbitrary functions can follow 'colon'. Maintains readability, meaning is consistent. Equivalent to: def run3( block ): for _ in range( 3 ):

Re: Adding properties to an instance

2008-02-06 Thread dg . google . groups
On Feb 6, 11:09 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: While this is technically possible (I tried a couple years ago), it requires hacking the __getattribute__ method, which is something I would not recommand, not only because it can be tricky, but mostly because this is a very

Re: getting all user defined attributes of a class

2008-02-06 Thread Amit Gupta
On Feb 6, 2:55 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Amit Gupta schrieb: On Feb 6, 2:15 pm, Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Wed, 06 Feb 2008 14:07:23 -0800, Amit Gupta wrote: Class A(object) : self.x = 1 This is not valid Python code. I want

python beginner problem(?)

2008-02-06 Thread Alan Illeman
Win2k Pro - installed python: ok Example 2.1 from DiveIntoPython tutorial copied and pasted into Pythonwin - Python IDE and GUI Framework for Windows. -- def buildConnectionString(params): Build a connection string from a dictionary

Re: Formatting arrays using myarrayy.tolist()

2008-02-06 Thread Robert Kern
[EMAIL PROTECTED] wrote: sorry, i should've been more specific, this is a numpy array. It's usually best to ask numpy questions on the numpy mailing list for this reason. http://www.scipy.org/Mailing_Lists -- Robert Kern I have come to believe that the whole world is an enigma, a

Re: Looking for library to estimate likeness of two strings

2008-02-06 Thread Robert Kern
Jeff Schwab wrote: Tim Chase wrote: Are there any Python libraries implementing measurement of similarity of two strings of Latin characters? It sounds like you're interested in calculating the Levenshtein distance: http://en.wikipedia.org/wiki/Levenshtein_distance which gives you a

Re: Code block function syntax, anonymous functions decorator

2008-02-06 Thread Jean-Paul Calderone
On Wed, 06 Feb 2008 23:59:27 +0100, Diez B. Roggisch [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] schrieb: def run3( block ): for _ in range( 3 ): block() run3(): normal_suite() Introduces new syntax; arbitrary functions can follow 'colon'. Maintains readability, meaning is

OT: Speed of light [was Re: Why not a Python compiler?]

2008-02-06 Thread Steven D'Aprano
On Wed, 06 Feb 2008 10:14:10 -0600, Reedick, Andrew wrote: 'c' is also the speed of light. 'c' is the speed of light _in_a_vacuum_. True. And since nothing can travel faster than light... Nothing can travel faster than the speed of light _in_a_vacuum_. There are situtaitons

Re: mysqldb: Rows READ or Processed

2008-02-06 Thread Steve Holden
mcl wrote: I have looked through Python Database API Specification v2.0, but can not find any reference to the number of records processed in a select query. I know I can get the number of records returned with cursor.rowcount, but I want to know the number of records processed. If you

Re: python beginner problem(?)

2008-02-06 Thread Steve Holden
Alan Illeman wrote: Win2k Pro - installed python: ok Example 2.1 from DiveIntoPython tutorial copied and pasted into Pythonwin - Python IDE and GUI Framework for Windows. -- def buildConnectionString(params): Build a

Re: mysqldb: Rows READ or Processed

2008-02-06 Thread Carsten Haese
On Wed, 2008-02-06 at 18:53 -0500, Steve Holden wrote: If you mean the number of (say) rows updated by a SQL UPDATE statement, the DB API does not provide any way to access that information It doesn't? Isn't that what cursor.rowcount does? -- Carsten Haese http://informixdb.sourceforge.net

  1   2   >