[ANN] Metatest 0.1.0

2007-09-18 Thread Jonathan Fine
Hello This announcement also appears on the Metatest web site http://metatest.sourceforge.net === *** Metatest - a Python test framework Metatest is a simple and elegant Python framework for writing tests. Metatest is mostly about writing tests and by design is not tied to any particular

London Python meetup, Wednesday, October the 10th

2007-09-18 Thread Simon Brunning
ThoughtWorks UK (my employer) have given us the use of a room this time, so I'm looking for volunteer speakers, too. Details here: http://announce.londonpython.org.uk/2007/09/18/london-python-meetup-wednesday-october-the-10th/. -- Cheers, Simon B. [EMAIL PROTECTED] --

Re: can Python be useful as functional?

2007-09-18 Thread Rustom Mody
On 9/18/07, Alex Martelli [EMAIL PROTECTED] wrote: Rustom Mody [EMAIL PROTECTED] wrote: Can someone help? Heres the non-working code def si(l): p = l.next() yield p (x for x in si(l) if x % p != 0) There should be an yield or return somewhere but cant figure it out

header intact

2007-09-18 Thread Hariom lakhotia
-- Forwarded message -- From: [EMAIL PROTECTED] [EMAIL PROTECTED] Date: 17 Sep 2007 18:41 Subject: Your confirmation is required to join the Python-list mailing list To: [EMAIL PROTECTED] Mailing list subscription confirmation notice for mailing list Python-list We have received

Re: can Python be useful as functional?

2007-09-18 Thread Kay Schluehr
On 18 Sep., 03:30, Evan Klitzke [EMAIL PROTECTED] wrote: My question is: how can we call a language functional if it's major implementation has a limited stack? Or is my code wrong? Python does not optimize tail recursion. Never mind. In the provided example the call to sieve() is not in

Re: Extracting xml from html

2007-09-18 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: I am attempting to extract some XML from an HTML document that I get returned from a form based web page. For some reason, I cannot figure out how to do this. Here's a sample of the html: html body lots of screwy text including divs and spans Row status=o

uninstall python2.5 on debian

2007-09-18 Thread dimitri pater
Hello, both python2.3 and python2.5 are installed on my Debian webserver. For some reason, I would like to uninstall Python2.5 which was installed from source (make install) and keep 2.3. I have tried make uninstall and searched the web, but that did not help me. I guess rm -Rf python2.5 is not a

Getting indented code snippets into blogger

2007-09-18 Thread Paddy
I got tired of Bloggers inadequate comment editor so wrote this for transforming code snippets: = ''' blogspace.py Turns leading spaces into HTML nbsp tokens which shows as correct indentation on Blogger comment fields (and maybe other blogs). Donald. 'Paddy' McCarthy

Re: adodb with mysql - connection string syntax for filepath

2007-09-18 Thread Mridula Ramesh
Hi. Firstly, thank you both very much for the response! Cliff, I did some more reading up about it after you corrected me re MySQL not being a _language_ but another means of storing data (would you believe NONE of the connection tutorials actually said that?!) Anyway, now I have MySQL on my

Re: The meaning of a = b in object oriented languages

2007-09-18 Thread Summercool
On Sep 17, 11:04 pm, Lloyd Linklater [EMAIL PROTECTED] wrote: SpringFlowers AutumnMoon wrote: Is that the case: if a is an object, then b = a is only copying the reference? That and it adds a counter. a = [foo, bar] b = a b[0] = bite me p a, b a = different p a, b *** In the

Re: The meaning of a = b in object oriented languages

2007-09-18 Thread Gabriel Genellina
En Tue, 18 Sep 2007 03:57:36 -0300, Summercool [EMAIL PROTECTED] escribi�: i think the line a = different means a is now set to a pointer to the String object with content different. or that a is now a reference to the String object. and b is still a reference to the Array object. so

super, apply, or __init__ when subclassing?

2007-09-18 Thread exhuma.twn
This is something that keeps confusing me. If you read examples of code on the web, you keep on seeing these three calls (super, apply and __init__) to reference the super-class. This looks to me as it is somehow personal preference. But this would conflict with the There one way to do it

Re: can Python be useful as functional?

2007-09-18 Thread Duncan Booth
Rustom Mody [EMAIL PROTECTED] wrote: On 9/18/07, Alex Martelli [EMAIL PROTECTED] wrote: Rustom Mody [EMAIL PROTECTED] wrote: Can someone help? Heres the non-working code def si(l): p = l.next() yield p (x for x in si(l) if x % p != 0) There should be an yield or

Re: can Python be useful as functional?

2007-09-18 Thread Bruno Desthuilliers
Lorenzo Stella a écrit : Hi all, I haven't experienced functional programming very much, but now I'm trying to learn Haskell and I've learned that: 1) in functional programming LISTS are fundmental; Not exactly. They are used quite a lot, yes, but that's also the case in other paradigms.

Re: Python 3K or Python 2.9?

2007-09-18 Thread Bruno Desthuilliers
Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: But what, given that I'm an AOL user still thinking it's kewl to hide behind a pseudo, what else would you expect ? What exactly is a pseudo, pray tell? Sorry : a pseudonym (a nickname). --

Re: super, apply, or __init__ when subclassing?

2007-09-18 Thread Ben Finney
exhuma.twn [EMAIL PROTECTED] writes: This is something that keeps confusing me. If you read examples of code on the web, you keep on seeing these three calls (super, apply and __init__) to reference the super-class. This looks to me as it is somehow personal preference. But this would

Re: adding a static class to another class

2007-09-18 Thread Bruno Desthuilliers
Nathan Harmston a écrit : Hi, I guess my description was a bit rubbish in retrospec, I dont even think the title of my email made senseit doesnt to me now: class Manager(object): def __init__(self): pass def dosomething(self): return RESULTS class Foo(object): def

Re: The meaning of a = b in object oriented languages

2007-09-18 Thread Laurent Pointal
Summercool a écrit : The meaning of a = b in object oriented languages. zip Oups, reading the subject I thought it was a Xah Lee post. ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: The meaning of a = b in object oriented languages

2007-09-18 Thread Roel Schroeven
Laurent Pointal schreef: Summercool a écrit : The meaning of a = b in object oriented languages. zip Oups, reading the subject I thought it was a Xah Lee post. me too ... -- The saddest aspect of life right now is that science

Re: can Python be useful as functional?

2007-09-18 Thread Paul Rudin
Lorenzo Stella [EMAIL PROTECTED] writes: Hi all, I haven't experienced functional programming very much, but now I'm trying to learn Haskell and I've learned that: 1) in functional programming LISTS are fundmental; 2) any cycle in FP become recursion. I also know that Python got some useful

Re: can Python be useful as functional?

2007-09-18 Thread Kay Schluehr
On 18 Sep., 10:13, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Lorenzo Stella a écrit : Hi all, I haven't experienced functional programming very much, but now I'm trying to learn Haskell and I've learned that: 1) in functional programming LISTS are fundmental; Not exactly.

raw string

2007-09-18 Thread Konstantinos Pachopoulos
Hi, i am trying to execute the following query on a DB: qe.execQuery(rSELECT * FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM Commiter) However, whether i put the r in the front or not, i always get an error about the \n. What's wrong? --

Re: super, apply, or __init__ when subclassing?

2007-09-18 Thread Duncan Booth
exhuma.twn [EMAIL PROTECTED] wrote: So, knowing that in python there is one thing to do something, these three different calls must *do* domething different. But what exactly *is* the difference? Exampel 1: - class B(A): def __init__(self,

Re: raw string

2007-09-18 Thread James Stroud
Konstantinos Pachopoulos wrote: Hi, i am trying to execute the following query on a DB: qe.execQuery(rSELECT * FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM Commiter) However, whether i put the r in the front or not, i always get an error about the \n.

Re: UnicodeEncodeError in Windows

2007-09-18 Thread geoff_ness
On Sep 18, 7:36 am, Gabriel Genellina [EMAIL PROTECTED] wrote: En Mon, 17 Sep 2007 07:38:16 -0300, geoff_ness [EMAIL PROTECTED] escribi?: def buildString(warrior): Build a string from a warrior's stats Returns string for output to warStat. return

Re: How can I know how much to read from a subprocess

2007-09-18 Thread A.T.Hofkamp
On 2007-09-17, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It seems that another solution is gobject.io_add_watch, but I don't see how it tells me how much I can read from the file - if I don't know that, I won't know the argument to give to the read() method in order to get all the data:

Re: Looking for web software in Python.

2007-09-18 Thread Diez B. Roggisch
Kevin Ar18 wrote: Are any of the following pieces of web software available in Python (under a non-copyleft license like BSD or MIT or Python license)? Mailing list - with web accessable archive and list maintenance. Source control Wiki System For the last two, look at TRAC. But I'm

Re: Looking for web software in Python.

2007-09-18 Thread js
http://wiki.python.org/moin/WebApplications?highlight=%28%28PythonWikiEngines%29%29 Hope this helps On 9/18/07, Kevin Ar18 [EMAIL PROTECTED] wrote: Are any of the following pieces of web software available in Python (under a non-copyleft license like BSD or MIT or Python license)?

Re: super() doesn't get superclass

2007-09-18 Thread Carl Banks
On Tue, 18 Sep 2007 15:38:46 +1000, Ben Finney wrote: Evan Klitzke [EMAIL PROTECTED] writes: If you're using multiple inheritance, and you're _not_ using super everywhere, then your code is broken anyway. This seems to support the notion that 'super' is unusable. If I inherit from code

Re: newbie: self.member syntax seems /really/ annoying

2007-09-18 Thread Colin J. Williams
BJörn Lindqvist wrote: On 9/12/07, Dave Hansen [EMAIL PROTECTED] wrote: The name self is just a convention. You can give it any name you wish. Using s is common. Not it's not common. And the name self is a convention codified in PEP8 which you shouldn't violate. And I agree with the OP

string replace shortcut

2007-09-18 Thread vedrandekovic
Hello, I am trying to replace some string with list objects: my_text1=function1 function2 from my_module_with_functions_1 import * from my_module_with_functions_2 import * # functions in module my_module_with_functions_1 : my_func1 it's value function1 my_func2 it's value function2 #

Re: Looking for web software in Python.

2007-09-18 Thread Duncan Booth
Kevin Ar18 [EMAIL PROTECTED] wrote: Are any of the following pieces of web software available in Python (under a non-copyleft license like BSD or MIT or Python license)? Mailing list - with web accessable archive and list maintenance. Source control Wiki System Again, only

Re: Extracting xml from html

2007-09-18 Thread Paul Boddie
On 17 Sep, 23:14, [EMAIL PROTECTED] wrote: I have lxml installed and I appear to also have libxml2dom installed. I know lxml has decent docs, but I don't see much for yours. Is this the only place to go:http://www.boddie.org.uk/python/libxml2dom.html ? Unfortunately yes, with regard to

Using python to create windows apps that everyone can use?

2007-09-18 Thread Thomas Harding
Hi guys, sorry to post another topic on this, as I am aware that it has already been posted a few times, but not with specifically what I am looking for. I want an app that makes a gui interface for python (similar to Microsoft visual studio or qt designer, not a code based one) and/or an app

Re: can Python be useful as functional?

2007-09-18 Thread Neil Cerutti
On 2007-09-18, Kay Schluehr [EMAIL PROTECTED] wrote: On 18 Sep., 10:13, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Lorenzo Stella a écrit : Hi all, I haven't experienced functional programming very much, but now I'm trying to learn Haskell and I've learned that: 1) in functional

Wait For Application Start

2007-09-18 Thread Robert Rawlins - Think Blue
Hello Guys, I'm kick starting my application using the inittab to ensure its re-spawned if it dies. However I need to ensure several other applications and service are up and running before my application is started, things such as dbus and a couple of other hardware stacks. A concept I've

Re: raw string

2007-09-18 Thread [EMAIL PROTECTED]
On Sep 18, 5:20 am, Konstantinos Pachopoulos [EMAIL PROTECTED] wrote: Hi, i am trying to execute the following query on a DB: qe.execQuery(rSELECT * FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '' LINES TERMINATED BY '\n' FROM Commiter) However, whether i put the r in the front or not, i

Re: super, apply, or __init__ when subclassing?

2007-09-18 Thread Bruno Desthuilliers
exhuma.twn a écrit : This is something that keeps confusing me. If you read examples of code on the web, you keep on seeing these three calls (super, apply and __init__) to reference the super-class. This looks to me as it is somehow personal preference. But this would conflict with the There

Re: can Python be useful as functional?

2007-09-18 Thread Bruno Desthuilliers
Kay Schluehr a écrit : On 18 Sep., 10:13, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: Lorenzo Stella a écrit : Hi all, I haven't experienced functional programming very much, but now I'm trying to learn Haskell and I've learned that: 1) in functional programming LISTS are

Memory Problem

2007-09-18 Thread Christoph Scheit
Hi, I have a short script/prog in order to read out binary files from a numerical simulation. This binary files still need some post-processing, which is summing up results from different cpu's, filtering out non-valid entrys and bringing the data in some special order. Reading the binary data

Re: Wait For Application Start

2007-09-18 Thread Francesco Guerrieri
On 9/18/07, Robert Rawlins - Think Blue [EMAIL PROTECTED] wrote: This seems like a very logical method, but I'm not sure how to implement it into my python code? Is there a simple way to make it wait for that file? Without the need to build my own conditional loop? I'm not sure why how you

Re: Memory Problem

2007-09-18 Thread Marc 'BlackJack' Rintsch
On Tue, 18 Sep 2007 14:06:22 +0200, Christoph Scheit wrote: Then the data is added to a table, which I use for the actual Post-Processing. The table is actually a Class with several Columns, each column internally being represented by array. Array or list? # create reader breader =

Re: string replace shortcut

2007-09-18 Thread Gabriel Genellina
En Tue, 18 Sep 2007 08:44:32 -0300, [EMAIL PROTECTED] escribi�: Hello, I am trying to replace some string with list objects: my_text1=function1 function2 from my_module_with_functions_1 import * from my_module_with_functions_2 import * # functions in module my_module_with_functions_1

Re: super, apply, or __init__ when subclassing?

2007-09-18 Thread Gabriel Genellina
En Tue, 18 Sep 2007 04:33:11 -0300, exhuma.twn [EMAIL PROTECTED] escribi�: This is something that keeps confusing me. If you read examples of code on the web, you keep on seeing these three calls (super, apply and __init__) to reference the super-class. This looks to me as it is somehow

Re: super, apply, or __init__ when subclassing?

2007-09-18 Thread exhuma.twn
On Sep 18, 2:45 pm, Bruno Desthuilliers bruno. [EMAIL PROTECTED] wrote: exhuma.twn a écrit : This is something that keeps confusing me. If you read examples of code on the web, you keep on seeing these three calls (super, apply and __init__) to reference the super-class. This looks to me

Re: Looking for web software in Python.

2007-09-18 Thread [EMAIL PROTECTED]
On Sep 17, 9:53 pm, Kevin Ar18 [EMAIL PROTECTED] wrote: Are any of the following pieces of web software available in Python (under a non-copyleft license like BSD or MIT or Python license)? Mailing list - with web accessable archive and list maintenance. Source control Wiki System Again,

Re: Coming from Perl

2007-09-18 Thread Steve Holden
Amer Neely wrote: Bryan Olson wrote: Amer Neely wrote: I don't have shell access but I can run 'which python' from a Perl script, and I will try the different shebang line you suggested. And after trying it, Amer Neely reported: I tried `which python` and `whereis python` and got 0 back as

Re: adodb with mysql - connection string syntax for filepath

2007-09-18 Thread Steve Holden
Mridula Ramesh wrote: Hi. Firstly, thank you both very much for the response! Cliff, I did some more reading up about it after you corrected me re MySQL not being a _language_ but another means of storing data (would you believe NONE of the connection tutorials actually said that?!)

Re: Memory Problem

2007-09-18 Thread Christoph Scheit
On Tuesday 18 September 2007 15:10, Marc 'BlackJack' Rintsch wrote: On Tue, 18 Sep 2007 14:06:22 +0200, Christoph Scheit wrote: Then the data is added to a table, which I use for the actual Post-Processing. The table is actually a Class with several Columns, each column internally being

Re: Saving parameters between Python applications?

2007-09-18 Thread Stodge
os.path.expanduser isn't an option; I need each console/window to maintain different values which I wouldn't get from saving to a user's home directory. Unless I used a different file for each console/window but that just gets me into the same situation I'm already in. I think the only option is

Re: super() doesn't get superclass

2007-09-18 Thread Bruno Desthuilliers
Ben Finney a écrit : Evan Klitzke [EMAIL PROTECTED] writes: On Tue, 2007-09-18 at 14:15 +1000, Ben Finney wrote: Why does the documentation of 'super' say that it returns the superclass when *that's not true*? It doesn't return the superclass, it returns the next class in the MRO, whether

Simple elementtree question

2007-09-18 Thread Peters Bart (GEN)
I have the exact same problem, rdf and elementtree -- http://mail.python.org/mailman/listinfo/python-list

using xlrd

2007-09-18 Thread hassen62
Hi, I have installed Xlrd 0.6.1 Win 32. I have a file xls say file.xls located as follows:c:/file.xls. This file is composed with two columns of 5 lines. These columns are headed with Col1 and Col2, also the 5 rows are named with Row1,...,Row2. I have a silly question: What I can write to read

Re: Memory Problem

2007-09-18 Thread Gabriel Genellina
En Tue, 18 Sep 2007 10:58:42 -0300, Christoph Scheit [EMAIL PROTECTED] escribi�: I have to deal with several millions of data, actually I'm trying an example with 360 grid points and 1 time steps, i.e. 3 600 000 entries (and each row consits of 4 int and one float) Of course, the

Re: Memory Problem

2007-09-18 Thread Bruno Desthuilliers
Christoph Scheit a écrit : On Tuesday 18 September 2007 15:10, Marc 'BlackJack' Rintsch wrote: On Tue, 18 Sep 2007 14:06:22 +0200, Christoph Scheit wrote: Then the data is added to a table, which I use for the actual Post-Processing. The table is actually a Class with several Columns, each

[ANN] Metatest 0.1.0

2007-09-18 Thread Jonathan Fine
Hello This announcement also appears on the Metatest web site http://metatest.sourceforge.net === *** Metatest - a Python test framework Metatest is a simple and elegant Python framework for writing tests. Metatest is mostly about writing tests and by design is not tied to any particular

Tutorial or Example (or Tutorial) of Using Canvas to Produce a Plot

2007-09-18 Thread W. Watson
I'm looking for an example with canvas that produces, say, a complete x-y plot of some data. By that I mean, it should do something like the following: 1. Produce x-y axes. The x-axis should be blue and the y-axis should be green 2. Put a label on each axis (vertical and horizontal text) 3.

Re: Tutorial or Example (or Tutorial) of Using Canvas to Produce a Plot

2007-09-18 Thread Grant Edwards
On 2007-09-18, W. Watson [EMAIL PROTECTED] wrote: I'm looking for an example with canvas that produces, say, a complete x-y plot of some data. With what widget set? -- Grant Edwards grante Yow! I'm a nuclear at

Re: Saving parameters between Python applications?

2007-09-18 Thread Bruno Desthuilliers
Stodge a écrit : os.path.expanduser isn't an option; I need each console/window to maintain different values which I wouldn't get from saving to a user's home directory. Unless I used a different file for each console/window but that just gets me into the same situation I'm already in. I think

Re: super, apply, or __init__ when subclassing?

2007-09-18 Thread exhuma.twn
On Sep 18, 2:50 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: En Tue, 18 Sep 2007 04:33:11 -0300, exhuma.twn [EMAIL PROTECTED] escribi?: This is something that keeps confusing me. If you read examples of code on the web, you keep on seeing these three calls (super, apply and __init__) to

Using pseudonyms (was Re: Python 3K or Python 2.9?)

2007-09-18 Thread Aahz
In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: But what, given that I'm an AOL user still thinking it's kewl to hide behind a pseudo, what else would you expect ? What

Re: The meaning of a = b in object oriented languages

2007-09-18 Thread Aahz
In article [EMAIL PROTECTED], Laurent Pointal [EMAIL PROTECTED] wrote: Summercool a écrit : The meaning of a = b in object oriented languages. zip Oups, reading the subject I thought it was a Xah Lee post. ...and you're perpetuating the

Re: Saving parameters between Python applications?

2007-09-18 Thread Diez B. Roggisch
Stodge wrote: os.path.expanduser isn't an option; I need each console/window to maintain different values which I wouldn't get from saving to a user's home directory. Unless I used a different file for each console/window but that just gets me into the same situation I'm already in. I think

Re: Memory Problem

2007-09-18 Thread Christoph Scheit
Hi, Thank you all very much, so I will consider using a database. Anyway I would like how to detect cycles, if there are. # add row i and increment number of rows self.rows.append(DBRow(self, self.nRows)) self.nRows += 1 This looks suspicious, and may indicate that your structure

Re: Metatest 0.1.0

2007-09-18 Thread Kay Schluehr
On Sep 18, 3:55 pm, Jonathan Fine [EMAIL PROTECTED] wrote: Hello This announcement also appears on the Metatest web sitehttp://metatest.sourceforge.net === *** Metatest - a Python test framework Metatest is a simple and elegant Python framework for writing tests. Metatest is mostly

Re: How can I know how much to read from a subprocess

2007-09-18 Thread spam . noam
On Sep 18, 1:48 pm, A.T.Hofkamp [EMAIL PROTECTED] wrote: On 2007-09-17, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: It seems that another solution is gobject.io_add_watch, but I don't see how it tells me how much I can read from the file - if I don't know that, I won't know the argument to

Re: Saving parameters between Python applications?

2007-09-18 Thread Steve Holden
Stodge wrote: os.path.expanduser isn't an option; I need each console/window to maintain different values which I wouldn't get from saving to a user's home directory. Unless I used a different file for each console/window but that just gets me into the same situation I'm already in. I think

Re: Using pseudonyms (was Re: Python 3K or Python 2.9?)

2007-09-18 Thread Steve Holden
Aahz wrote: In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: But what, given that I'm an AOL user still thinking it's kewl to hide behind a pseudo, what else would you

Re: Using pseudonyms (was Re: Python 3K or Python 2.9?)

2007-09-18 Thread Aahz
In article [EMAIL PROTECTED], Steve Holden [EMAIL PROTECTED] wrote: Aahz wrote: In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: But what, given that I'm an AOL user still

Re: super() doesn't get superclass

2007-09-18 Thread Hrvoje Niksic
Bruno Desthuilliers [EMAIL PROTECTED] writes: If a class X is in the MRO of call Y, then X is a superclass of Y. I agree that the documentation for super is somewhat misleading (and obviously wrong), but it still *give access to* (at least one of) the superclass(es). I believe the confusion

Re: How can I know how much to read from a subprocess

2007-09-18 Thread Grant Edwards
On 2007-09-18, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: But even if it's fast enough, how do you know how many times you should call read(1)? If you do it too much, you'll be blocked until more output is available. You don't know. That's why you use non-blocking mode. -- Grant Edwards

Re: Using pseudonyms (was Re: Python 3K or Python 2.9?)

2007-09-18 Thread Bruno Desthuilliers
Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: But what, given that I'm an AOL user still thinking it's kewl to hide behind a pseudo, what else would you

Re: Using pseudonyms (was Re: Python 3K or Python 2.9?)

2007-09-18 Thread Bruno Desthuilliers
Aahz a écrit : In article [EMAIL PROTECTED], Steve Holden [EMAIL PROTECTED] wrote: Aahz wrote: In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: Aahz a écrit : In article [EMAIL PROTECTED], Bruno Desthuilliers [EMAIL PROTECTED] wrote: But what, given that I'm

Re: can Python be useful as functional?

2007-09-18 Thread Steve Holden
Lorenzo Stella wrote: [...] My question is: how can we call a language functional if it's major implementation has a limited stack? Or is my code wrong? So, which environment do you habitually use that provides an *unlimited* stack? You remind me of the conversation between the philosopher

Re: Writing to multiple excel worksheets

2007-09-18 Thread Tommy Nordgren
On 17 sep 2007, at 23.00, SPJ wrote: Hi, I have a list which I need to write to excel worksheet. The list is like: data = ['IP1','21','ftp','\n','IP1','22','ssh','\n','IP2','22','ssh','\n','IP 2','23','telnet','\n'] Now the task is to create a workbook with tabbed sheet for each of

Re: can Python be useful as functional?

2007-09-18 Thread Grant Edwards
On 2007-09-18, Steve Holden [EMAIL PROTECTED] wrote: Lorenzo Stella wrote: [...] My question is: how can we call a language functional if it's major implementation has a limited stack? Or is my code wrong? So, which environment do you habitually use that provides an *unlimited* stack?

Re: can Python be useful as functional?

2007-09-18 Thread Robin Becker
Steve Holden wrote: Lorenzo Stella wrote: .. So, which environment do you habitually use that provides an *unlimited* stack? You remind me of the conversation between the philosopher and an attractive lady whom he was seated next to at dinner. He asked her if she would sleep with

Re: can Python be useful as functional?

2007-09-18 Thread Paul Rudin
Robin Becker [EMAIL PROTECTED] writes: Steve Holden wrote: Lorenzo Stella wrote: .. So, which environment do you habitually use that provides an *unlimited* stack? You remind me of the conversation between the philosopher and an attractive lady whom he was seated next to at dinner. He

Re: Metatest 0.1.0

2007-09-18 Thread Jonathan Fine
Kay Schluehr wrote: http://metatest.sourceforge.net/doc/pyconuk2007/metatest.html From the HTML slides: Assertion tests are easy to write but report and run poorly. I tend to think this is a prejudice that leads to ever more ways to write tests perform test discoveries, invent

Re: Tutorial or Example (or Tutorial) of Using Canvas to Produce a Plot

2007-09-18 Thread W. Watson
What would be appropriate? What are the choices? I'm pretty new to Python, but am familiar with the XWindow widget set. I think it is available under Python, but if there's a more suitable choice, that's fine. I would think Tkinter would be the simplest choice. Yes, Tkinter would be preferable.

Re: Writing to multiple excel worksheets

2007-09-18 Thread Carsten Haese
On Tue, 2007-09-18 at 18:49 +0200, Tommy Nordgren wrote: Excel files are in a binary and proprietary format. True, but that doesn't mean you can't create them with free software. PyExcelerator (http://sourceforge.net/projects/pyexcelerator) can create Excel files. HTH, -- Carsten Haese

What's with long running processes ?

2007-09-18 Thread walterbyrd
I understand that Python has them, but PHP doesn't. I think that is because mod_php is built into apache, but mod_python is not usually in apache. If mod_python was built into apache, would python still have long running processes (LRP)? Do LRPs have to do with a Python interpreter running all

Re: adodb with mysql - connection string syntax for filepath

2007-09-18 Thread J. Clifford Dyer
On Tue, Sep 18, 2007 at 09:32:45AM -0400, Steve Holden wrote regarding Re: adodb with mysql - connection string syntax for filepath: Mridula Ramesh wrote: Hi. Firstly, thank you both very much for the response! Cliff, I did some more reading up about it after you corrected me re

Newbie question

2007-09-18 Thread koutoo
If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to using MID, LEFT, and RIGHT functions, that I have no idea how to do this in python? I have had trouble as well with most newbies on finding the help. But I have used the command line

Re: Newbie question

2007-09-18 Thread koutoo
On Sep 18, 1:31 pm, Shawn Milochik [EMAIL PROTECTED] wrote: On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to using MID, LEFT, and RIGHT functions, that I have no idea how

Re: Newbie question

2007-09-18 Thread Shawn Milochik
On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 18, 1:31 pm, Shawn Milochik [EMAIL PROTECTED] wrote: On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to

cvs module

2007-09-18 Thread Tim Arnold
Hi, I need to do some scripting that interacts with CVS. I've been just doing system calls and parsing the output to figure out what's going on, but it would be nice to deal with CVS directly. Does anyone know of a python module I can use to interface with CVS? thanks, --Tim Arnold --

Re: Newbie question

2007-09-18 Thread Bruno Desthuilliers
[EMAIL PROTECTED] a écrit : On Sep 18, 1:31 pm, Shawn Milochik [EMAIL PROTECTED] wrote: On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to using MID, LEFT, and RIGHT

Re: Newbie question

2007-09-18 Thread Arnaud Delobelle
On Sep 18, 7:33 pm, [EMAIL PROTECTED] wrote: On Sep 18, 1:31 pm, Shawn Milochik [EMAIL PROTECTED] wrote: On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to using MID,

Re: Newbie question

2007-09-18 Thread Shawn Milochik
On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to using MID, LEFT, and RIGHT functions, that I have no idea how to do this in python? I have had trouble as well with most

World's best guitars ever!!!!

2007-09-18 Thread nutsbreaker3
http://freeguitars.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question

2007-09-18 Thread koutoo
On Sep 18, 1:42 pm, Shawn Milochik [EMAIL PROTECTED] wrote: On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: On Sep 18, 1:31 pm, Shawn Milochik [EMAIL PROTECTED] wrote: On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I

Re: Newbie question

2007-09-18 Thread Francesco Guerrieri
On 9/18/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: If I have a file name: AVC1030708.14. How do I strip out certain characters from the file name? I am so used to using MID, LEFT, and RIGHT functions, that I have no idea how to do this in python? I have had trouble as well with most

Re: cvs module

2007-09-18 Thread Jonathan Fine
Tim Arnold wrote: Hi, I need to do some scripting that interacts with CVS. I've been just doing system calls and parsing the output to figure out what's going on, but it would be nice to deal with CVS directly. Does anyone know of a python module I can use to interface with CVS? thanks,

Re: What's with long running processes ?

2007-09-18 Thread Bruno Desthuilliers
walterbyrd a écrit : I understand that Python has them, but PHP doesn't. Really ? I think that is because mod_php is built into apache, but mod_python is not usually in apache. Language etc aside, what the difference between mod_php and mod_python (or mod_whatever) from apache's POV ? If

Re: can Python be useful as functional?

2007-09-18 Thread Bruno Desthuilliers
Grant Edwards a écrit : On 2007-09-18, Steve Holden [EMAIL PROTECTED] wrote: Lorenzo Stella wrote: [...] My question is: how can we call a language functional if it's major implementation has a limited stack? Or is my code wrong? So, which environment do you habitually use that provides an

Re: Newbie question

2007-09-18 Thread Greg Lindstrom
I see. It's so hard to imagine the world of python than from VB. It's like looking at VB is in 2 dimensions, where with Python, it's more 3D. The code is so simple, yet it's hard for me to envision how to do something so simple. I guess it's because the rules or the way of looking at

Free software!!!!

2007-09-18 Thread freesoftwareweb
http://freesoftwareupgrades.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing problems: A journey from a text file to a directory tree

2007-09-18 Thread Michael J. Fromberger
In article [EMAIL PROTECTED], Martin M. [EMAIL PROTECTED] wrote: Hi everybody, Some of my colleagues want me to write a script for easy folder and subfolder creation on the Mac. The script is supposed to scan a text file containing directory trees in the following format: [New

Re: Using python to create windows apps that everyone can use?

2007-09-18 Thread Matt McCredie
On 9/18/07, Thomas Harding [EMAIL PROTECTED] wrote: Hi guys, sorry to post another topic on this, as I am aware that it has already been posted a few times, but not with specifically what I am looking for. I want an app that makes a gui interface for python (similar to Microsoft visual studio

  1   2   3   >