Re: Beginner advice

2008-03-31 Thread Marc 'BlackJack' Rintsch
On Mon, 31 Mar 2008 07:23:00 +0200, Paul Scott wrote: 3. pyXMLRPClib - active? Something better? There is an `xmlrpclib` in the standard library, so there is no need for an external package here. I even think that pyXMLRPClib is the one that's integrated in the standard library, so the

Re: Why prefer != over for Python 3.0?

2008-03-31 Thread Torsten Bronger
Hallöchen! Bjoern Schliessmann writes: Torsten Bronger wrote: Emacs is generally not regarded as being convenient, however, it has very strong input methods. I type \gtrless and get ?, or \forall and get ?. Doesn't KNode support UTF-8? I wonder where the point of this is. :) Why use

Re: question

2008-03-31 Thread Marc 'BlackJack' Rintsch
On Sun, 30 Mar 2008 20:34:30 -0400, Steve Holden wrote: [EMAIL PROTECTED] wrote: Presume. Silence first, then a broken triad vamps. How long til you recognize it? One sec., i'll attach a binary. Good grief, is this idibot still around? [leaves c.l.py for another month] Oh come on,

Re: Why prefer != over for Python 3.0?

2008-03-31 Thread Paul Rubin
Torsten Bronger [EMAIL PROTECTED] writes: However, I'm quite sure that when Unicode has arrived almost everywhere, some languages will start considering such characters in their core syntax. Python 3.0 allows for Unicode letters in identifiers, and there's still room for improvement. I

Re: standard input, for s in f, and buffering

2008-03-31 Thread Marc 'BlackJack' Rintsch
On Sun, 30 Mar 2008 21:02:44 +, Jorgen Grahn wrote: I realize this has to do with the extra read-ahead buffering documented for file.next() and that I can work around it by using file.readline() instead. The problem is, for s in f is the elegant way of reading files line by line. With

Re: Beginner advice

2008-03-31 Thread Paul Scott
On Mon, 2008-03-31 at 06:45 +, Marc 'BlackJack' Rintsch wrote: There is an `xmlrpclib` in the standard library, so there is no need for an external package here. I even think that pyXMLRPClib is the one that's integrated in the standard library, so the external one might be dead. Ah,

Re: Licensing

2008-03-31 Thread Duncan Booth
Paul Boddie [EMAIL PROTECTED] wrote: Note that the Python Cookbook says this about licensing: Except where otherwise noted, recipes in the Python Cookbook are published under the Python license. The link is incorrect, but I presume they mean this licence: http://www.python.org/psf/license/

Re: Finding Full Path to Process EXE

2008-03-31 Thread Tim Golden
[EMAIL PROTECTED] wrote: That's not a problem - I'm only interested in Win2k+. Thanks for the caveat. On a similar note, is there a way (preferably using WMI) to get the full path to the executable that has a port open (the same thing that fport does, just implemented in Python)? It looks

Re: Prototype OO

2008-03-31 Thread sam
Diez B. Roggisch napisał(a): no inheritance model in Javascript. Or why does each JS-lib provide it's own version of an extend-function [1]? Ok -- thank you! The only point you might have is the somwhat unfortunate distinction between lambda and function in python - but this is on a

Re: Beginner advice

2008-03-31 Thread Artmi
On Mar 31, 9:15 am, Paul Scott [EMAIL PROTECTED] wrote: On Mon, 2008-03-31 at 06:45 +, Marc 'BlackJack' Rintsch wrote: There is an `xmlrpclib` in the standard library, so there is no need for an external package here. I even think that pyXMLRPClib is the one that's integrated in the

[ANN] Vellum 0.4 (it builds things, mostly books)

2008-03-31 Thread Zed A. Shaw
Hi All, I'd like to just announce that I've cranked out a fun little Python project named Vellum. It is an attempt at a Python make alternative written in about 200 lines of Python: http://www.zedshaw.com/projects/vellum/ It currently actually works, and can take a YAML or Python file as the

Re: Prototype OO

2008-03-31 Thread sam
Steven D'Aprano napisał(a): I can see that Python and Javascript inheritance model is almost the same. Both languages are dynamically typed. And it seems that using classes in Python makes some things more complicated then it is necessary (eg functions, methods and lambdas are differen beeing

Problem with method overriding from base class

2008-03-31 Thread Dominique.Holzwarth
Hello everyone I have defined some sort of 'interface class' and a factory function that creates instance objects of specific classes, which implement that interface: Interface definition: *** import GUI.webGUI

Re: Finding Full Path to Process EXE

2008-03-31 Thread misceverything
On Mar 31, 2:50 am, Tim Golden [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: That's not a problem - I'm only interested in Win2k+. Thanks for the caveat. On a similar note, is there a way (preferably using WMI) to get the full path to the executable that has a port open (the same

Re: Problem with method overriding from base class

2008-03-31 Thread Duncan Booth
[EMAIL PROTECTED] wrote: Factory: ** * def factory(type, *p): if type == common.databaseEntryTypes[0]: return module1.Class1(*p); elif type == common.databaseEntryTypes[1]: return

wxPython; adding a grid to a panel

2008-03-31 Thread Moynes James
I am a Python newbie hoping for some help with wxPython. I am trying to build a frame which will display a wx.grid and a number of other widgets (text controls, static text and buttons). In all the example scripts I have seen, a gird is added directly to a frame; is it possible to place a grid in

Re: Passing function objects to timeit

2008-03-31 Thread Peter Otten
George Sakkis wrote: On Mar 30, 9:03 am, Peter Otten [EMAIL PROTECTED] wrote: Steven D'Aprano wrote: On Sun, 30 Mar 2008 01:27:18 -0300, Gabriel Genellina wrote: Second try: ... Horrible, I know. Those wrapper1,wrapper2,wrapper3... keep growing with each call. But it's the only way I

Re: Prototype OO

2008-03-31 Thread Steve Holden
sam wrote: Steven D'Aprano napisał(a): I can see that Python and Javascript inheritance model is almost the same. Both languages are dynamically typed. And it seems that using classes in Python makes some things more complicated then it is necessary (eg functions, methods and lambdas are

ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Hi All, I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: Python C API version mismatch for module dbi: This Python has API version 1013, module dbi has version 1012. Please suggest, how to resolve this error to proceed further. Regards, Pradeep Rai

Re: Where can I find :

2008-03-31 Thread Jorgen Grahn
On Sun, 30 Mar 2008 16:41:31 -0700, Dennis Lee Bieber [EMAIL PROTECTED] wrote: On 30 Mar 2008 23:07:02 GMT, Jorgen Grahn [EMAIL PROTECTED] declaimed the following in comp.lang.python: He *might* simply be talking about if, for, while, break and so on -- things which control program flow.

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Steve Holden
Pradeep Rai wrote: Hi All, I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: Python C API version mismatch for module dbi: This Python has API version 1013, module dbi has version 1012. Please suggest, how to resolve this error to proceed

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Jeroen Ruigrok van der Werven
-On [20080331 12:29], Pradeep Rai ([EMAIL PROTECTED]) wrote: I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: Python C API version mismatch for module dbi: This Python has API version 1013, module dbi has version 1012. Did you copy everything from

Re:Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
-On [20080331 12:29], Pradeep Rai ([EMAIL PROTECTED]) wrote: I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: Python C API version mismatch for module dbi: This Python has API version 1013, module dbi has version 1012. Did you copy everything from

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Yes, i have copied everything from site-packages of the old one to the new one. Regards, Pradeep -On [20080331 12:29], Pradeep Rai ([EMAIL PROTECTED]) wrote: I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: Python C API version mismatch

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Hi Steve, Can you guide me how to install a 2.5 version of dbi for it to work ? Thanks !! Pradeep Pradeep Rai wrote: Hi All, I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following error: Python C API version mismatch for module dbi: This Python has

Class Image.Image?

2008-03-31 Thread W. Watson
I put a print statement in some Python code to determine the class (__class__) of a variable and the result was Image.Image. Why not just Image; otherwise, what's it telling me? -- Wayne Watson (Nevada City, CA) Web Page: speckledwithStars.net

Re: Prototype OO

2008-03-31 Thread sam
Steve Holden napisał(a): 1. You have different syntax for named and unnamed (lambdas) functions. Functions and methods are different things in Python even if they have same syntax. But all these are still a pieces of code that you use repeatedly to make some task. A knife and scissors

Re: Class Image.Image?

2008-03-31 Thread Diez B. Roggisch
W. Watson wrote: I put a print statement in some Python code to determine the class (__class__) of a variable and the result was Image.Image. Why not just Image; otherwise, what's it telling me? Because it is the class Image in the module/package Image. Diez --

Re: Beginner advice

2008-03-31 Thread Graham Ashton
On Mar 31, 8:15 am, Paul Scott [EMAIL PROTECTED] wrote: Thanks for the feedback, now I just need some justification on the GTK/GUI stuff - wxWidgets, GTK+ Glade or other? pyGTK is great. I used it quite heavily a year or so ago. GTK is a nice tool kit from the user's perspective too; you can

Re: Beginner advice

2008-03-31 Thread Paul Scott
On Mon, 2008-03-31 at 04:02 -0700, Graham Ashton wrote: pyGTK is great. I used it quite heavily a year or so ago. GTK is a nice tool kit from the user's perspective too; you can make some rather attractive and usable applications with it, and the GUI builder is a boon. Obviously it integrates

DOYOULIKECOMPUTER

2008-03-31 Thread nishanthy012
http://myprofile0116.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Jeroen Ruigrok van der Werven
-On [20080331 13:13], Pradeep Rai ([EMAIL PROTECTED]) wrote: Yes, i have copied everything from site-packages of the old one to the new one. Don't do that. :) site-packages is version dependent, you can get away with it with most Python-only modules, I guess, but with dbi you found out what can

Re: Why prefer != over for Python 3.0?

2008-03-31 Thread Bjoern Schliessmann
Torsten Bronger wrote: Doesn't KNode support UTF-8? Well, it should, but automatic encoding detection doesn't always seem to work (or does it even have one?). I'm looking for a different (faster) newsreader anyway. Who wants to minimize the number of keypresses? We're not Perl after all.

distutils as an application installer?

2008-03-31 Thread PurpleServerMonkey
Was hoping someone could take a quick look at my distutils problem and give it a quick sanity check. Basically I have a server application (for Linux) that I want to install to /usr/local/server directory, this location would have subdirectories for the daemon scripts, log files, plugins etc.

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Steve Holden
No, sorry. regards Steve Pradeep Rai wrote: Hi Steve, Can you guide me how to install a 2.5 version of dbi for it to work ? Thanks !! Pradeep Pradeep Rai wrote: Hi All, I have upgraded python v2.5.2 from python v2.4.3. The upgradation results into following

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Jeroen Ruigrok van der Werven
-On [20080331 12:56], Pradeep Rai ([EMAIL PROTECTED]) wrote: Can you guide me how to install a 2.5 version of dbi for it to work ? Same way you installed dbi for 2.4 just make sure the called python executable is the 2.5 one. -- Jeroen Ruigrok van der Werven asmodai(-at-)in-nomine.org

Re: ERROR: Python C API version mismatch for module dbi

2008-03-31 Thread Pradeep Rai
Thanks !! I will try do so. Regards, Pradeep -On [20080331 12:56], Pradeep Rai ([EMAIL PROTECTED]) wrote: Can you guide me how to install a 2.5 version of dbi for it to work ? Same way you installed dbi for 2.4 just make sure the called python executable is the 2.5 one. -- Jeroen

Re: counting using variable length string as base

2008-03-31 Thread Graeme Glass
On Mar 27, 11:01 am, Peter Otten [EMAIL PROTECTED] wrote: Grimsqueaker wrote: That seems to give me the items in the list back in an iterator. Am I using it incorrectly? With Dan's functions in cartesian.py you can do the following: from cartesian import * def count(digits): ...

Re: Problem with sqlite

2008-03-31 Thread Gerhard Häring
aiwarrior wrote: [...] What i'm going to study is whether it's possible to evaluate if a table already exists, and if so act accordingly. [...] You can use a statement like CREATE TABLE IF NOT EXISTS tbl(col1, col2);. If you just want to check, you can query SQLite's schema metadata with

Re: Class Image.Image?

2008-03-31 Thread W. Watson
Easy enough. 5Q+5Q. Diez B. Roggisch wrote: W. Watson wrote: I put a print statement in some Python code to determine the class (__class__) of a variable and the result was Image.Image. Why not just Image; otherwise, what's it telling me? Because it is the class Image in the

How to write a wxPython video player directly with Gstreamer

2008-03-31 Thread SPE - Stani's Python Editor
In the hope it will be useful for others I've posted on my blog example source code of how to integrate gstreamer directly in wxpython: wxPython ships by default with the wx.MediaCtrl for very basic playback of music or videos. As I would like to do more advanced video manipulation, I was curious

Multi Threading Problem with Python + Django + PostgreSQL.

2008-03-31 Thread Pradip
Hello every body. I am new to this forum and also in Python. Read many things about multi threading in python. But still having problem. I am using Django Framework with Python having PostgreSQL as backend database with Linux OS. My applications are long running. I am using threading. The problem

Re: Passing function objects to timeit

2008-03-31 Thread George Sakkis
On Mar 31, 6:15 am, Peter Otten [EMAIL PROTECTED] wrote: George Sakkis wrote: On Mar 30, 9:03 am, Peter Otten [EMAIL PROTECTED] wrote: Steven D'Aprano wrote: On Sun, 30 Mar 2008 01:27:18 -0300, Gabriel Genellina wrote: Second try: ... Horrible, I know. Those

Re: wxPython; adding a grid to a panel

2008-03-31 Thread Gilles Ganault
On Mon, 31 Mar 2008 11:01:19 +0100, Moynes James [EMAIL PROTECTED] wrote: In the script below I have added two panels to a frame. I want to display the grid in one panel (and later on add other widgets to the other panel), but I cannot get the grid to display properly. I'm learning wxPython as

Re: wxPython; adding a grid to a panel

2008-03-31 Thread Mike Driscoll
Moynes, On Mar 31, 5:01 am, Moynes James [EMAIL PROTECTED] wrote: I am a Python newbie hoping for some help with wxPython. I am trying to build a frame which will display a wx.grid and a number of other widgets (text controls, static text and buttons). In all the example scripts I have seen,

Re: wxPython; adding a grid to a panel

2008-03-31 Thread Mike Driscoll
On Mar 31, 8:33 am, Gilles Ganault [EMAIL PROTECTED] wrote: On Mon, 31 Mar 2008 11:01:19 +0100, Moynes James [EMAIL PROTECTED] wrote: In the script below I have added two panels to a frame. I want to display the grid in one panel (and later on add other widgets to the other panel), but I

Smalltalk-style senders and implementors

2008-03-31 Thread brooklineTom
I'm wondering if anyone has coded up a way to do Smalltalk-style runtime senders and implementors for python methods. For senders, I think the idea is to traverse the module space and collect, for each method, the names of any methods or functions it calls. In Smalltalk, the workhorse is

CTypes, 64 bit windows, 32 bit dll

2008-03-31 Thread rdahlstrom
So I have a 64 bit Windows 2003 system, running python 2.5.1.1. I can import a Windows .dll (msvcrt or whatever) using ctypes, but when attempting to import another application-specific .dll (tibrv.dll if anyone is familiar with it), I receive the error WindowsError: [Error 193] %1 is not a valid

Re: How to insert multiple rows in SQLite Dbase

2008-03-31 Thread afandi
On Mar 30, 4:46 am, Gerhard Häring [EMAIL PROTECTED] wrote: Gabriel Genellina wrote: [...] and execute: cur.executemany(insert into log (IP, EntryDate, Requestt, ErrorCode) values (:ip, :date, :request, :errorcode), values) It's probably worth mentioning that pysqlite's executemany()

Re: CTypes, 64 bit windows, 32 bit dll

2008-03-31 Thread rdahlstrom
On Mar 31, 10:22 am, rdahlstrom [EMAIL PROTECTED] wrote: So I have a 64 bit Windows 2003 system, running python 2.5.1.1. I can import a Windows .dll (msvcrt or whatever) using ctypes, but when attempting to import another application-specific .dll (tibrv.dll if anyone is familiar with it), I

Re: wxPython listctrl

2008-03-31 Thread Mike Driscoll
On Mar 29, 4:27 pm, Gif [EMAIL PROTECTED] wrote: I was wondering if there is a way to extract an icon from a file (executable) and then add it in a listctrl. I also 'd like to know if i can shorten the icon in order to fit in a listctrl item. I've managed to get the icon from an icon file and

Re: Multi Threading Problem with Python + Django + PostgreSQL.

2008-03-31 Thread Nikita the Spider
In article [EMAIL PROTECTED], Pradip [EMAIL PROTECTED] wrote: Hello every body. I am new to this forum and also in Python. Read many things about multi threading in python. But still having problem. I am using Django Framework with Python having PostgreSQL as backend database with Linux

Re: Licensing

2008-03-31 Thread Paul Boddie
On 31 Mar, 09:36, Duncan Booth [EMAIL PROTECTED] wrote: I don't have a printed copy, but Google Books has it (not sure which edition I found) and page xix says: Given the nature of the cookbook, we wanted the recipes to be usable under any circumstances where Python could be used. In other

Re: Build complete, now I just need to install it...

2008-03-31 Thread axl
On 31 Mar, 00:32, Gabriel Genellina [EMAIL PROTECTED] wrote: En Sun, 30 Mar 2008 12:04:10 -0300, axl [EMAIL PROTECTED]   escribió: Which changes are those? I can build Python straight from the svn sources. I upgraded the project files to VS2008 format, changed some obsolete settings, hacked

Re: Creating Class Objects in Loop

2008-03-31 Thread D'Arcy J.M. Cain
On Sun, 30 Mar 2008 21:34:00 -0700 John Nagle [EMAIL PROTECTED] wrote: What's actually happening to you is that you've run into one of the dumber features of Python - default values for parameters which are mutable, like lists, result in rather unexpected behavior. The problem is that

Re: License of Python

2008-03-31 Thread iu2
On 31 מרץ, 02:32, Bjoern Schliessmann usenet- [EMAIL PROTECTED] wrote: iu2 wrote: Due to Competitors... I don't want to expost the language I use A serious competitor that wants to find out _will_ find out, no matter what you try. Regards, Björn -- BOFH excuse #341: HTTPD Error 666

Re: Where can I find :

2008-03-31 Thread Laurent Pointal
Le Sat, 29 Mar 2008 20:15:59 -0700, pythonnubie a écrit : Hi All : Does anyone know where I can find either a book or a website that explains beginning python by actually building a project line by line and explaining it indepth . I am primarily interested in understading

Re: wxPython listctrl

2008-03-31 Thread Gif
thanks Mike, i'll post there. -- http://mail.python.org/mailman/listinfo/python-list

Re: Summary of threading for experienced non-Python programmers?

2008-03-31 Thread John Nagle
Hrvoje Niksic wrote: Unfortunately, this is not the case for files at all, even on Unix. (On Windows, select doesn't work on files at all, it only accepts sockets.) select doesn't work on Windows pipes, either. I had to go to a multithreaded program to work around that.

Re: Summary of threading for experienced non-Python programmers?

2008-03-31 Thread Donn Cave
In article [EMAIL PROTECTED], Paul Rubin http://[EMAIL PROTECTED] wrote: Select blocks until the data is ready, while with AIO the i/o happens completely in the background and your process gets an interrupt when the i/o completes. Also, with select based i/o, usually the kernel reads data

Automatically fill in forms on line

2008-03-31 Thread Jackie Wang
Dear all, I want to automatically complete the following task: 1. Go to http://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form Street Address: . e.g. 1316 State Highway 102; 3. Fill in a ZIPcode in the form Zip Code: . e.g. 04609; 4. Click the bottom search; 5. In the

Re: CTypes, 64 bit windows, 32 bit dll

2008-03-31 Thread mimi.vx
On Mar 31, 4:22 pm, rdahlstrom [EMAIL PROTECTED] wrote: So I have a 64 bit Windows 2003 system, running python 2.5.1.1. I can import a Windows .dll (msvcrt or whatever) using ctypes, but when attempting to import another application-specific .dll (tibrv.dll if anyone is familiar with it), I

[OT] troll poll

2008-03-31 Thread Daniel Fetchinson
[Heavily off-topic fun stuff] Hi folks, This is a quick poll to have scientific data on our beloved troll community: Whose trolling behaviour is more professional? (check one) [ ] - Xah Lee [ ] - castironpi More specifically, who can create a bigger mess on c.l.py? (check one) [ ] - Xah

Re: How to get an XML DOM while offline?

2008-03-31 Thread william tanksley
Diez B. Roggisch [EMAIL PROTECTED] wrote: The most pragmatic solution would be to rip the doctype out using simple string methods and/or regexes. Thank you, Diez and Paul; I took Diez's solution, and it works well enough for me. Diez -Wm --

Of qooxdoo, qwt, and Python

2008-03-31 Thread John Henry
I was searching for a way to redevelop a desktop Pythoncard based program into a web-application. I understand what need to be done for all of the non-GUI code. For the GUI capabilities, I stumbled across a package call qooxdoo (http://qooxdoo.org/). It appears to provide the GUI capabilities I

Looking for indent advice howto in emacs python-mode

2008-03-31 Thread Steven W. Orr
Here's what I want to do: if ( ( v == 1 ) or ( v == 2 ) or ( v == 3 ) ): pass but emacs (left to its own devices, does this. if ( ( v == 1 ) or ( v == 2 ) or ( v == 3 ) ): pass It works great for me in C-mode. Does anyone know how to jimmie up python-mode so it

ANN: eGenix MoinMoin action plugins for renaming and searchreplace

2008-03-31 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com Action Plugins for MoinMoin This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/MoinMoin-Action-Plugins-1.0.html

Re: troll poll

2008-03-31 Thread Mensanator
On Mar 31, 12:04 pm, Daniel Fetchinson [EMAIL PROTECTED] wrote: [Heavily off-topic fun stuff] Hi folks, This is a quick poll to have scientific data on our beloved troll community: Whose trolling behaviour is more professional? (check one) [  ] - Xah Lee [  ] - castironpi More

Re: Automatically fill in forms on line

2008-03-31 Thread Steve Holden
Jackie Wang wrote: Dear all, I want to automatically complete the following task: 1. Go to http://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form Street Address: . e.g. 1316 State Highway 102; 3. Fill in a ZIPcode in the form Zip Code: . e.g. 04609; 4. Click the

Re: Automatically fill in forms on line

2008-03-31 Thread Mike Driscoll
On Mar 31, 11:50 am, Jackie Wang [EMAIL PROTECTED] wrote: Dear all, I want to automatically complete the following task: 1. Go tohttp://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form Street Address: . e.g. 1316 State Highway 102; 3. Fill in a ZIPcode in the form Zip

Re: Prototype OO

2008-03-31 Thread Gabriel Genellina
En Mon, 31 Mar 2008 07:59:13 -0300, sam [EMAIL PROTECTED] escribió: Steve Holden napisał(a): 1. You have different syntax for named and unnamed (lambdas) functions. Functions and methods are different things in Python even if they have same syntax. But all these are still a pieces of code

Newbie Question - Overloading ==

2008-03-31 Thread xkenneth
So i generally write quite a few classes, and in most I need to overload the == operator. If i have two classes, like below: Class A: attribute a attribute b Class B: attribute a attribute c So if I've overloaded their respective __eq__ functions, and I want to test whether or not the

python scripts to standalone executable

2008-03-31 Thread Amit Gupta
Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1. Have anyone used the freeze utility and any experiences to share from that? 2. Is there any enterprise-level exe-builder for

Re: Newbie Question - Overloading ==

2008-03-31 Thread Amit Gupta
On Mar 31, 10:23 am, xkenneth [EMAIL PROTECTED] wrote: class A: def __eq__(self,other): return self.a == other.a and self.b == other.b class B: def __eq__(self,other): return self.a == other.a and self.c == other.c Thanks! Regards, Kenneth Miller Can't say

Is this a good time to start learning python?

2008-03-31 Thread Rui Maciel
Recently I woke up inclined to take up the task of learning another programming language. I've already dipped my toes in Perl (I've read online tutorials and wrote a couple of irrelevant pet projects) but, as the computers at my workplace only sport the python interpreter, it probably means that

Re: How to insert multiple rows in SQLite Dbase

2008-03-31 Thread Gabriel Genellina
En Mon, 31 Mar 2008 11:22:40 -0300, afandi [EMAIL PROTECTED] escribió: On Mar 30, 4:46 am, Gerhard Häring [EMAIL PROTECTED] wrote: The deluxe version with generators could look like this: def parse_logfile(): logf = open(...) for line in logf: if ...: row =

Re: Automatically fill in forms on line

2008-03-31 Thread Jason Scheirer
On Mar 31, 9:50 am, Jackie Wang [EMAIL PROTECTED] wrote: Dear all, I want to automatically complete the following task: 1. Go tohttp://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form Street Address: . e.g. 1316 State Highway 102; 3. Fill in a ZIPcode in the form Zip

Re: python scripts to standalone executable

2008-03-31 Thread John Henry
On Mar 31, 10:24 am, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1. Have anyone used the freeze utility and any experiences to share

Re: Automatically fill in forms on line

2008-03-31 Thread Jason Scheirer
On Mar 31, 10:35 am, Jason Scheirer [EMAIL PROTECTED] wrote: On Mar 31, 9:50 am, Jackie Wang [EMAIL PROTECTED] wrote: Dear all, I want to automatically complete the following task: 1. Go tohttp://www.ffiec.gov/Geocode/default.aspx; 2. Fill in an address in the form Street Address: .

Re: python scripts to standalone executable

2008-03-31 Thread Amit Gupta
On Mar 31, 10:37 am, John Henry [EMAIL PROTECTED] wrote: On Mar 31, 10:24 am, Amit Gupta [EMAIL PROTECTED] wrote: Hi I am looking for a some tool that can convert python scripts to executable on Linux. I found freeeze.py as the only option so far. Couple of queries on freeze: 1.

Re: Newbie Question - Overloading ==

2008-03-31 Thread Jean-Paul Calderone
On Mon, 31 Mar 2008 10:23:24 -0700 (PDT), xkenneth [EMAIL PROTECTED] wrote: So i generally write quite a few classes, and in most I need to overload the == operator. If i have two classes, like below: Class A: attribute a attribute b Class B: attribute a attribute c So if I've overloaded their

Re: [OT] troll poll

2008-03-31 Thread Paul Rubin
Daniel Fetchinson [EMAIL PROTECTED] writes: [ ] - Xah Lee [ ] - castironpi I've lost track but has it been established that they are not the same person? -- http://mail.python.org/mailman/listinfo/python-list

How to build a body like this use SOAPPy?

2008-03-31 Thread qgg
repeat arrWords soapenv:Body v1:WordsRequest arrWords Nameaa/Name Num11/Num /arrWords arrWords Namebb/Name Num22/Num /arrWords intActionId99/intActionId

Re: [OT] troll poll

2008-03-31 Thread Marc 'BlackJack' Rintsch
On Mon, 31 Mar 2008 10:04:31 -0700, Daniel Fetchinson wrote: [Heavily off-topic fun stuff] This is a quick poll to have scientific data on our beloved troll community: Whose trolling behaviour is more professional? (check one) [X] - Xah Lee [ ] - castironpi He dedicates some time to

Python and Db

2008-03-31 Thread David Anderson
Hi! I'm don't know almost nothing about bds, Can You suggest me an Simple but efficient Bd to work with python apps? Can You suggest me any tutorials? Thanx -- http://mail.python.org/mailman/listinfo/python-list

Re: Of qooxdoo, qwt, and Python

2008-03-31 Thread olive
On 31 mar, 18:05, John Henry [EMAIL PROTECTED] wrote: I was searching for a way to redevelop a desktop Pythoncard based program into a web-application. I understand what need to be done for all of the non-GUI code. For the GUI capabilities, I stumbled across a package call qooxdoo

Re: troll poll

2008-03-31 Thread Carl Banks
On Mar 31, 1:41 pm, Paul Rubin http://[EMAIL PROTECTED] wrote: Daniel Fetchinson [EMAIL PROTECTED] writes: [ ] - Xah Lee [ ] - castironpi I've lost track but has it been established that they are not the same person? Has it been established that castironpi is a person at all? Carl

Re: Newbie Question - Overloading ==

2008-03-31 Thread xkenneth
Yeah, this is what I'm talking about: def __eq__(self, other) :   try :      return   except AttributeError:      return False That seems a bit nasty to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: why does socket.makefile require non-blocking mode?

2008-03-31 Thread Forest
On Sat, 29 Mar 2008 08:18:23 -0300, Guilherme Polo wrote: I don't know why you think timeout is forbidden too, it is not. I can't tell for sure whether it is or isn't, because of this language in the socket module docs: s.settimeout(0.0) is equivalent to s.setblocking(0); s.settimeout(None) is

Re: distutils as an application installer?

2008-03-31 Thread Gabriel Genellina
En Mon, 31 Mar 2008 08:32:15 -0300, PurpleServerMonkey [EMAIL PROTECTED] escribió: Was hoping someone could take a quick look at my distutils problem and give it a quick sanity check. Basically I have a server application (for Linux) that I want to install to /usr/local/server directory,

RE: Is this a good time to start learning python?

2008-03-31 Thread Reedick, Andrew
-Original Message- From: [EMAIL PROTECTED] [mailto:python- [EMAIL PROTECTED] On Behalf Of Rui Maciel Sent: Monday, March 31, 2008 12:41 PM To: python-list@python.org Subject: Is this a good time to start learning python? Recently I woke up inclined to take up the task of learning

Re: Newbie Question - Overloading ==

2008-03-31 Thread Duncan Booth
xkenneth [EMAIL PROTECTED] wrote: Now obviously, if I test an instance of either class equal to each other, an attribute error will be thrown, how do I handle this? I could rewrite every __eq__ function and catch attribute errors, but that's tedious, and seemingly unpythonic. Also, I don't

Re: CTypes, 64 bit windows, 32 bit dll

2008-03-31 Thread rdahlstrom
On Mar 31, 12:53 pm, mimi.vx [EMAIL PROTECTED] wrote: On Mar 31, 4:22 pm, rdahlstrom [EMAIL PROTECTED] wrote: So I have a 64 bit Windows 2003 system, running python 2.5.1.1. I can import a Windows .dll (msvcrt or whatever) using ctypes, but when attempting to import another

Re: counting using variable length string as base

2008-03-31 Thread Gabriel Genellina
En Mon, 31 Mar 2008 09:30:00 -0300, Graeme Glass [EMAIL PROTECTED] escribió: On Mar 27, 11:01 am, Peter Otten [EMAIL PROTECTED] wrote: a b c aa ab ac ba bb bc ca cb cc aaa aab aac aba abb abc aca acb acc baa bab bac bba bbb bbc bca bcb bcc Here is a cool solution we came up with during

Re: [OT] troll poll

2008-03-31 Thread Duncan Booth
Paul Rubin http://[EMAIL PROTECTED] wrote: Daniel Fetchinson [EMAIL PROTECTED] writes: [ ] - Xah Lee [ ] - castironpi I've lost track but has it been established that they are not the same person? Has it actually been established that castironpi is actually a person? I thought it was

Re: deleting a line from a file

2008-03-31 Thread Mark Wooding
Paul Rubin http wrote: You could do it in place in all those systems afaik, either opening the file for both reading and writing, or using something like mmap. Basically you'd leave the file unchanged up to line N, then copy lines downward starting from line N+1. At the end you'd use ftrunc

Re: Newbie Question - Overloading ==

2008-03-31 Thread Carl Banks
On Mar 31, 1:23 pm, xkenneth [EMAIL PROTECTED] wrote: So i generally write quite a few classes, and in most I need to overload the == operator. If i have two classes, like below: Class A: attribute a attribute b Class B: attribute a attribute c So if I've overloaded their respective

Re: Of qooxdoo, qwt, and Python

2008-03-31 Thread John Henry
olive wrote: On 31 mar, 18:05, John Henry [EMAIL PROTECTED] wrote: I was searching for a way to redevelop a desktop Pythoncard based program into a web-application. I understand what need to be done for all of the non-GUI code. For the GUI capabilities, I stumbled across a package

Re: Is this a good time to start learning python?

2008-03-31 Thread Gabriel Genellina
En Mon, 31 Mar 2008 13:40:40 -0300, Rui Maciel [EMAIL PROTECTED] escribió: Recently I woke up inclined to take up the task of learning another programming language. I've already dipped my toes in Perl (I've read online tutorials and wrote a couple of irrelevant pet projects) but, as the

Re: Python and Db

2008-03-31 Thread Gabriel Genellina
En Mon, 31 Mar 2008 14:50:27 -0300, David Anderson [EMAIL PROTECTED] escribió: Hi! I'm don't know almost nothing about bds, Can You suggest me an Simple but efficient Bd to work with python apps? Can You suggest me any tutorials? See the Python wiki at:

  1   2   3   >