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

2007-09-18 Thread exhuma.twn
On Sep 18, 9:22 pm, "Matt McCredie" <[EMAIL PROTECTED]> wrote: > 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 ap

Re: super() doesn't get superclass

2007-09-18 Thread Paul Rudin
Ben Finney <[EMAIL PROTECTED]> writes: > Possibly the name 'next_in_mro', while ugly, would at least match the > actual behaviour of this function. In common lisp there's (call-next-method ...) -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANN] Metatest 0.1.0

2007-09-18 Thread Jonathan Fine
Ben Finney wrote: > [Jonathan, please don't send me copies of messages sent to the > discussion thread. I follow comp.lang.python via a non-mail interface, > and it's irritating to get unwanted copies of messages via email.] [Thank you for letting me know your preference. For myself, I often app

Re: Deserializing specific objects from a file

2007-09-18 Thread Marc 'BlackJack' Rintsch
On Tue, 18 Sep 2007 16:02:38 -0700, Aaron J. M. wrote: > There are many objects that I want be able to move in and out of > memory at runtime; namely the game levels. I only want one level in > memory at a time, so I want to be able to unpickle specific Level > objects as the player moves between

Re: Web Programming thru python

2007-09-18 Thread Tim Roberts
python_lover <[EMAIL PROTECTED]> wrote: > >Please help how to execute a py file with xitami. > >I installed xitami , downloaded lrwp file. > >accessing the first web application program >... >through browser like "http://localhost/first.py > >it is dispaying the source code of the first.py. > >Plea

Puzzled in the coding of Chinese

2007-09-18 Thread Xing
Dear list members, I am a newcomer in the world of Python. But I am attracted by Python's power in handling text! Now I apply it to handle Chinese but the Chinese character cann't be displayed on the screen. What displayed on the screen is the 16bits codes. I am so puzzled! I believe thi

Re: Processing drag & drop on the desktop

2007-09-18 Thread Pierre Quentel
On 17 sep, 17:08, Larry Bates <[EMAIL PROTECTED]> wrote: > Pierre Quentel wrote: > > Hi all, > > > I would like to create an application on a Windows machine, such that > > when a document is dragged and dropped on the application icon on the > > desktop, the document is processed by the applicatio

Drag image

2007-09-18 Thread ndoe
i want show image from button? and the image can be drag and rezise ? any body help me!!! i try to make it but is not sucsseful yet -- http://mail.python.org/mailman/listinfo/python-list

Re: super() doesn't get superclass

2007-09-18 Thread Ben Finney
Dennis Lee Bieber <[EMAIL PROTECTED]> writes: > Try to interpret it as: My point exactly. If a function is named 'super' and operates on classes, it's a pretty strong implication that it's about superclasses. Any explanation that begins "Try to interpret it as" and then goes on to explain t

Re: super() doesn't get superclass

2007-09-18 Thread Michele Simionato
On Sep 18, 12:15 am, Ben Finney <[EMAIL PROTECTED]> wrote: > Howdy all, > > After banging my head against super() trying to reliably get > attributes of a superclass, I gained a little enlightenment when this > turned up in a search: > > "Python's Super is nifty, but you can't use it > (Pre

Re: can Python be useful as functional?

2007-09-18 Thread Bryan Olson
Rustom Mody asked: > [...] why does > > (yield(x) for x in si(l) if x % p != 0) > > not work? I would have expected generator expression to play better > with generators. You have a statement, "yield(x)", where the construct requires an expression. -- --Bryan -- http://mail.python.org/mailma

Re: Using pseudonyms

2007-09-18 Thread Alex Martelli
Aahz <[EMAIL PROTECTED]> wrote: > For that matter, there are plenty of people who are better known by some > nickname that is not their legal name. Yep. For example, some people whose legal name is "Alessandro" (which no American is ever going to be able to spell right -- ONE L, TWO S's, NOT an

Help, I'm going mad with this

2007-09-18 Thread azrael
Meanwhile I tried about 5 different implementations of the otsu threshold algorithm. I'll go mad. Please help me. I don't know what to do. I even tried to implement it from c and java, but no way. nothing. I've been reading about 5 ppt presentations and 4 pdf's and I failed. Can someone look at thi

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

2007-09-18 Thread Bryan Olson
Jim Langston wrote: > Assignment operators in C++ should attempt to prevent two pointers poining > to the same memory location. Consier a simple class (untested): > > class Foo > { > public: >char* Data; >int DataSize; >Foo( int Size ): DataSize( Size ) { Data = new char[Size]; } >

Re: no more reload() in py3k

2007-09-18 Thread Terry Reedy
I believe Guido said on the Py3 dev list that reload should have been moved to one of the modules (maybe inspect) rather than removed completely (and that he missed it also). So this appears to be an alpha1 glitch. tjr -- http://mail.python.org/mailman/listinfo/python-list

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-18 Thread Terry Reedy
"TheFlyingDutchman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | On Sep 2, 5:38 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> | wrote: | > > No.http://www.artima.com/weblogs/viewpost.jsp?thread=211430 | > | > Ops, I meant:http://www.artima.com/forums/threaded.jsp?forum=106&thread=

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

2007-09-18 Thread W. Watson
Ah, I missed your link to Chap 11. That looks very helpful. W. Watson wrote: > Thanks. I've arranged for an inter-library loan(ILL), and probably will > not get his book for several days yet. I've had the book before, but was > really unable to get the time to pursue it (the ILL). I have his web

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

2007-09-18 Thread W. Watson
Thanks. I've arranged for an inter-library loan(ILL), and probably will not get his book for several days yet. I've had the book before, but was really unable to get the time to pursue it (the ILL). I have his web site bookmarked. I do not yet plan to buy his book, web or hardbound yet. Maybe I

Re: Custom PYTHONPATH not being seen by -m

2007-09-18 Thread Steve Holden
Vince Castellano wrote: > Hello, > > I am running RHEL5, with Python 2.4.3. I do not experience this > problem on my other machines, which are 2.5. > > The following should demonstrate my issue: > > [16:38][vince:~]$ python -m srctools.symbol_replace -h > python: module srctools.symbol_replace n

Re: Sets in Python

2007-09-18 Thread Dustan
On Sep 18, 7:39 pm, sapsi <[EMAIL PROTECTED]> wrote: > Hello, > I recently tried using the set function in Python and was surprised to > find that > > a=[ 1, 2,3, [1,2] ] > > doesn't work with 'set', throwing TyperError (unhashable exception). I > found out that this is because lists can't be hashe

Re: [ANN] Metatest 0.1.0

2007-09-18 Thread Ben Finney
[Jonathan, please don't send me copies of messages sent to the discussion thread. I follow comp.lang.python via a non-mail interface, and it's irritating to get unwanted copies of messages via email.] Jonathan Fine <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > Jonathan Fine <[EMAIL PROTECTE

no more reload() in py3k

2007-09-18 Thread timaranz
Hi all, this is possibly a python-dev question but I'll ask here first. Situation: I work on an application that takes 10-20 seconds to startup plus opening a document. To avoid having to restart the entire application each edit-debug cycle we rely heavily on the reload command. A typical method

Re: Sets in Python

2007-09-18 Thread Asun Friere
On Sep 19, 10:39 am, sapsi <[EMAIL PROTECTED]> wrote: > My question is, > 1) Why can't lists be hashed? They are mutable. -- http://mail.python.org/mailman/listinfo/python-list

Re: Will Python 3.0 remove the global interpreter lock (GIL)

2007-09-18 Thread TheFlyingDutchman
On Sep 2, 5:38 pm, "Eduardo O. Padoan" <[EMAIL PROTECTED]> wrote: > > No.http://www.artima.com/weblogs/viewpost.jsp?thread=211430 > > Ops, I meant:http://www.artima.com/forums/threaded.jsp?forum=106&thread=211200 > > --http://www.advogato.org/person/eopadoan/ > Bookmarks:http://del.icio.us/edcrypt

Re: Sets in Python

2007-09-18 Thread Raymond Hettinger
On Sep 18, 5:39 pm, sapsi <[EMAIL PROTECTED]> wrote: > I recently tried using the set function in Python and was surprised to > find that > > a=[ 1, 2,3, [1,2] ] > > doesn't work with 'set', throwing TyperError (unhashable exception). I > found out that this is because lists can't be hashed. > So,t

Re: Sets in Python

2007-09-18 Thread Evil Bert
sapsi wrote: > 2) This is not related, but is there i neat way (without pop and list > comprehension) to convert a set into a list? I say neat because i'm > guessing using list comprehension might turn out be slow and there > might be other methods which are faster. a = set([1, 2, 3, 4]) b = list(

Sets in Python

2007-09-18 Thread sapsi
Hello, I recently tried using the set function in Python and was surprised to find that a=[ 1, 2,3, [1,2] ] doesn't work with 'set', throwing TyperError (unhashable exception). I found out that this is because lists can't be hashed. So,this implies 'a' cannot be a set in python which i think is

Multiline command line parsing

2007-09-18 Thread Brad Johnson
I am implementing a Python command line from scratch in a Win32 application. Examples online ("How do I tell incomplete input from invalid input" in the Extending and Embedding Python FAQ) show how to implement this from scratch using C code. The examples don't work. This brief snippit illustrate

Re: [ANN] Metatest 0.1.0

2007-09-18 Thread Jonathan Fine
Ben Finney wrote: > Jonathan Fine <[EMAIL PROTECTED]> writes: > >>Here's how to write some tests using Metatest. We can think of the >>tests as an executable specification. >> >>from metatest.py.mymod import plus, Point >> >># Function plus adds two numbers. >>plus(2, 2) == 4 >>plu

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

2007-09-18 Thread Karthik Gurusamy
On Sep 17, 4:14 pm, [EMAIL PROTECTED] wrote: > Hello, > > I want to write a terminal program in pygtk. It will run a subprocess, > display everything it writes in its standard output and standard > error, and let the user write text into its standard input. > > The question is, how can I know if th

Custom PYTHONPATH not being seen by -m

2007-09-18 Thread Vince Castellano
Hello, I am running RHEL5, with Python 2.4.3. I do not experience this problem on my other machines, which are 2.5. The following should demonstrate my issue: [16:38][vince:~]$ python -m srctools.symbol_replace -h python: module srctools.symbol_replace not found [16:40][vince:~]$ python Python 2

Re: Metatest 0.1.0

2007-09-18 Thread Jonathan Fine
Kay Schluehr wrote: >>Sounds interesting. Is this code, or examples of its use, available? > > > Sure, it's part of EasyExtend. See also www.fiber-space.de OK. So the ULR for the documentation of consoletest is: http://www.fiber-space.de/EasyExtend/doc/consoletest/consoletest.html It has a r

Regular Expressions

2007-09-18 Thread Lamonte Harris
I'm trying to get the Javascript output on when I match the given value in a var, I want to output that value that I tried to match: Example JS: x = '';//some INNERHTML in a document if(x.innerHTML.match(/(.*)/i)) { valuefound = RegEx.$1; } I've been reading my python book and tutorials and g

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

2007-09-18 Thread Terry Reedy
"Summercool" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] In Python, names are names. They get associated with or bound to objects. b= means associate name b with the object resulting from evaulating the expression. So b = a means associate b with the object 'currently' bou

Re: Using pseudonyms

2007-09-18 Thread Ben Finney
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > For the record, I usually don't give a damn about what > name/nickname/whatever peoples use. With the caveat "... so long as they consistently use one name in a given context", I concur. -- \"I saw a sign: 'Rest Area 25 Miles'. That's p

Re: [ANN] Metatest 0.1.0

2007-09-18 Thread Ben Finney
Jonathan Fine <[EMAIL PROTECTED]> writes: > Here's how to write some tests using Metatest. We can think of the > tests as an executable specification. > > from metatest.py.mymod import plus, Point > > # Function plus adds two numbers. > plus(2, 2) == 4 > plus(2, '', _ex=TypeError

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

2007-09-18 Thread Ben Finney
"Colin J. Williams" <[EMAIL PROTECTED]> writes: > .rect.width = .foo(.rect.x + .rect.y) * .boo() > > Does this preceding "." create parsing problems? Perhaps not for the computer, but certainly for the human. A leading "." is far too easy to miss when visually scanning the code, and fails the "e

Re: super() doesn't get superclass

2007-09-18 Thread Ben Finney
Hrvoje Niksic <[EMAIL PROTECTED]> writes: > class X(Y): > def foo(self): > super(X, self).foo() > > ...there is in fact no guarantee that super() calls a superclass of > X. However, it is certainly guaranteed that it will call a superclass > of type(self). Not even that. It could call *an

Re: super() doesn't get superclass

2007-09-18 Thread Ben Finney
Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > Ben Finney a écrit : > > Evan Klitzke <[EMAIL PROTECTED]> writes: > >> On Tue, 2007-09-18 at 14:15 +1000, Ben Finney wrote: > >>> [the 'super' function] doesn't return the superclass, it returns > >>> the next class in the MRO, whether that's a sup

Deserializing specific objects from a file

2007-09-18 Thread Aaron J. M.
I'm building a game and am starting to seriously think about serialization, though I haven't done much serialization before except for a few experiments with the pickle module. There are many objects that I want be able to move in and out of memory at runtime; namely the game levels. I only want

Re: Pseudo-Private Class Attributes

2007-09-18 Thread Robert Kern
Ricardo Aráoz wrote: > That is self.__attributes > > Been reading about the reasons to introduce them and am a little > concerned. As far as I understand it if you have a class that inherits > from two other classes which have both the same name for an attribute > then you will have a name clash b

Pseudo-Private Class Attributes

2007-09-18 Thread Ricardo Aráoz
That is self.__attributes Been reading about the reasons to introduce them and am a little concerned. As far as I understand it if you have a class that inherits from two other classes which have both the same name for an attribute then you will have a name clash because all instance attributes "w

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

2007-09-18 Thread John Machin
On Sep 19, 4:51 am, "Michael J. Fromberger" <[EMAIL PROTECTED]> wrote: > . > .# This expression matches "header" lines, defining a new section. > .new_re = re.compile(r'\[([\w ]+)\]\s*$') Directory names can contain more different characters than those which match [\w ] ... and which ones

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

2007-09-18 Thread Lew
Roel Schroeven wrote: > Laurent Pointal schreef: >> Summercool a écrit : >>> >>> The meaning of a = b in object oriented languages. >>> >> >> >> Oups, reading the subject I thought it was a Xah Lee post. > > me too ... Nah, this dude's all r

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

2007-09-18 Thread Lew
Summercool wrote: > when a writing or a book reads "a is a Hash object; a is an Array > object; or a is an Animal object" it is just a short form to say that > "a is a reference to that object." > > b = a means "whatever a is referencing to, now b is referencing it > too". > > so that's why a[1]

buy any tthing from the web free without creditcards.. true .. simple .. legal

2007-09-18 Thread blade
first : click on this link and make a new account http://www.AWSurveys.com/HomeMain.cfm?RefID=alshab write some very short reviews on soms very few sites -= earn your money keep earning money till the amount u need for a certain thing u want to buy creat a new free account on paypal.com tran

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

2007-09-18 Thread Richard Townsend
On Tue, 18 Sep 2007 13:18:36 -0700, "W. Watson" <[EMAIL PROTECTED]> wrote: >Tk is it. I'm really not interested in the others at this point. > John Grayson's book 'Python and Tkinter Programming' has a chapter on plotting Graphs and Charts. You can even download that chapter as a PDF file: http:

Re: How do you limit the # of lines Read?

2007-09-18 Thread James Matthews
for i in range(): line = file.readline() On 9/18/07, John Machin <[EMAIL PROTECTED]> wrote: > > On Sep 19, 6:59 am, [EMAIL PROTECTED] wrote: > > I am working on a loop for my code and was wondering if there is a way > > to limit the number of lines read through? I'd hate to cut the test > > fi

Re: How do you limit the # of lines Read?

2007-09-18 Thread John Machin
On Sep 19, 6:59 am, [EMAIL PROTECTED] wrote: > I am working on a loop for my code and was wondering if there is a way > to limit the number of lines read through? I'd hate to cut the test > file in order to run the code in the testing phase. Can you add a > value in the parenthesis of the readlin

Re: Extracting xml from html

2007-09-18 Thread George Sakkis
On Sep 18, 3:31 pm, [EMAIL PROTECTED] wrote: > On Sep 17, 4:51 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > > > En Mon, 17 Sep 2007 17:31:19 -0300, <[EMAIL PROTECTED]> escribi?: > > > > I am attempting to extract some XML from an HTML document that I get > > > returned from a form bas

Re: How do you limit the # of lines Read?

2007-09-18 Thread Paul McNett
[EMAIL PROTECTED] wrote: > I am working on a loop for my code and was wondering if there is a way > to limit the number of lines read through? I'd hate to cut the test > file in order to run the code in the testing phase. Can you add a > value in the parenthesis of the readline() function? > > t

Re: How do you limit the # of lines Read?

2007-09-18 Thread Marc 'BlackJack' Rintsch
On Tue, 18 Sep 2007 13:59:47 -0700, koutoo wrote: > I am working on a loop for my code and was wondering if there is a way > to limit the number of lines read through? I'd hate to cut the test > file in order to run the code in the testing phase. Can you add a > value in the parenthesis of the r

Re: can Python be useful as functional?

2007-09-18 Thread Lorenzo Stella
On 18 Set, 18:51, Grant Edwards <[EMAIL PROTECTED]> wrote: > Perhaps Lorenzo Stella is referring to Python's lack of > tail-recursion optimization? There are languages that > guarantee unlimited tail-recursion with a limited stack. That's it. Rustom Mody: your implementation lacks exactly where

How would I go about checking if a authentication login actually exists.

2007-09-18 Thread Lamonte Harris
Okay, I've written this script to check if a password works right, but how do I know if an authentication actually exists? import urllib2 def passIT(link): f = open("valid2.txt","a") f.write(link) f.close file = open("p2.txt") passes = file.readlines() file.close for x in pa

How do you limit the # of lines Read?

2007-09-18 Thread koutoo
I am working on a loop for my code and was wondering if there is a way to limit the number of lines read through? I'd hate to cut the test file in order to run the code in the testing phase. Can you add a value in the parenthesis of the readline() function? t = string.readline() # Limit this so

Re: Metatest 0.1.0

2007-09-18 Thread Kay Schluehr
On Sep 18, 7:11 pm, Jonathan Fine <[EMAIL PROTECTED]> wrote: Jonathan Fine schrieb: > 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 t

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

2007-09-18 Thread W. Watson
Tk is it. I'm really not interested in the others at this point. Grant Edwards wrote: > On 2007-09-18, W. Watson <[EMAIL PROTECTED]> wrote: > >> What would be appropriate? What are the choices? I'm pretty new to Python, >> but am familiar with the XWindow widget set. > > There's no such thing a

Re: can Python be useful as functional? (off topic)

2007-09-18 Thread Jonathan Fine
Steve Holden wrote: > 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 him for a million dollars, to which she readily > agreed. So he followed this by asking her if she'd sleep with h

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: > What would be appropriate? What are the choices? I'm pretty new to Python, > but am familiar with the XWindow widget set. There's no such thing as "the XWindow widget set". There are at least 8-10 different X Windows widget sets. The ones t

Re: can Python be useful as functional?

2007-09-18 Thread Steve Holden
Paul Rudin wrote: > 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

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

2007-09-18 Thread kyosohma
On Sep 18, 12:23 pm, "W. Watson" <[EMAIL PROTECTED]> wrote: > 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

Re: Wait For Application Start

2007-09-18 Thread Francesco Guerrieri
On 9/18/07, Michael Bentley <[EMAIL PROTECTED]> wrote: > > > > import os.path > > import time > > > > while True: > > if os.path.exists(YOUR_FILE): > > break > > time.sleep(30) > > or > > while not os.path.exists(YOUR_FILE): > time.sleep(1) I thought of that, but I found more

Re: Newbie question

2007-09-18 Thread Laurent Pointal
[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 newbies on finding the help.

Re: Extracting xml from html

2007-09-18 Thread kyosohma
On Sep 18, 1:56 am, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [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: > > >

Re: Extracting xml from html

2007-09-18 Thread kyosohma
On Sep 17, 4:51 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Mon, 17 Sep 2007 17:31:19 -0300, <[EMAIL PROTECTED]> escribi?: > > > 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

Re: Wait For Application Start

2007-09-18 Thread Michael Bentley
On Sep 18, 2007, at 5:40 AM, Francesco Guerrieri wrote: > 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? >> W

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 st

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

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 ? >

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? > than

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 mos

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: >

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: 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: AV

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 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

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,

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 -- http://

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

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 hav

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 mos

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: 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

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 t

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: 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 t

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, inv

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 w

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 > *unlim

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 e

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 philosoph

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]>

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 pseu

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 wh

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 Edward

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 confu

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,

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

  1   2   >