Re: Exploring outlook using python

2005-08-25 Thread Do Re Mi chel La Si Do
Hum... If it's Outlook, look for COM/Dispatch, with PyWin32 If it's Outlook-Express, search a MAPI module, like said Peter Hansen. @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question: Sub-interpreters for CAD program

2005-08-25 Thread Terry Hancock
On Wednesday 24 August 2005 09:12 pm, Peter Hansen wrote: Terry Hancock wrote: I have a strong EE and hardware background (hence my need to write a CAD program that doesn't piss me off), but not a CS background. You probably ought to consider starting with something existing like the Gnu

Re: Bug in string.find; was: Re: Proposed PEP: New style indexing,was Re: Bug in slice type

2005-08-25 Thread en.karpachov
On Thu, 25 Aug 2005 00:05:18 -0400 Steve Holden wrote: What on earth makes you call this a bug? And what are you proposing that find() should return if the substring isn't found at all? please don't suggest it should raise an exception, as index() exists to provide that functionality.

Re: while c = f.read(1)

2005-08-25 Thread Antoon Pardon
Op 2005-08-24, Magnus Lycka schreef [EMAIL PROTECTED]: Antoon Pardon wrote: I think he did, because both expression are not equivallent unless some implicite constraints make them so. Values where both expressions differ are: start1=67, stop1=9, start2=10, stop2=29 Ouch! That didn't

Re: Should I move to Amsterdam?

2005-08-25 Thread Adriaan Renting
Thank you for your praise of my little country, but depending on your definition, the Netherlands might not be as civil as you assume. A lot of my foreign collegues commplain about how rude the dutch can be. Countries like sweden or japan seem to have much better manners. As to which countries

Re: Command Line arguments

2005-08-25 Thread Tim Roberts
michael [EMAIL PROTECTED] wrote: I have a question about Windows based python (2.4 and later). For example, if I make a script called test.py like so: import sys print sys.argv then run it: python test.py this is a test I see a list with ['test.py', 'this', 'is', 'a', 'test'] All is

same menu point is activated

2005-08-25 Thread OllieZ
Hi all Im trying to learn wxpython by some samples and Ive come across this. After change EVT_MENU lines from EVT_MENU(self, ID_OPEN, self.OnOpen) to self.Bind(wx.EVT_MENU, self.OnOpen) It can run, but the menu points all trigger the openfile dialog. Seems like the last bind rules them all. What

Re: Jargons of Info Tech industry

2005-08-25 Thread CBFalconer
Mike Schilling wrote: Mike Meyer [EMAIL PROTECTED] wrote in message Mike Schilling [EMAIL PROTECTED] writes: l v [EMAIL PROTECTED] wrote in message Xah Lee wrote: (circa 1996), and email should be text only (anti-MIME, circa 1995), I think e-mail should be text only. I have both my email

Setting the encoding in pysqlite2

2005-08-25 Thread Michele Simionato
An easy question, but I don't find the answer in the docs :-( I have a sqlite3 database containing accented characters (latin-1). How do I set the right encoding? For instance if I do this: #-*- encoding: latin-1 -*- from pysqlite2 import dbapi2 as sqlite import os DBFILE=/tmp/example.db def

Re: Externally-defined properties?

2005-08-25 Thread Michele Simionato
Well, I have used factories of properties external to the class many times, and they work pretty well. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: Setting the encoding in pysqlite2

2005-08-25 Thread Renzo
Michele Simionato ha scritto: An easy question, but I don't find the answer in the docs :-( I have a sqlite3 database containing accented characters (latin-1). How do I set the right encoding? For instance if I do this: Hi, i usually use this string method: encode([encoding[,errors]]) An

Re: Should I move to Amsterdam?

2005-08-25 Thread Paul Dale
But yes, the Netherlands is a highly civilised country - up there with Denmark and Canada, and above the UK, France or Germany, IMNERHO. I'm not going to bother comparing it to the US! How strange that you put Canada so high on your list. --

How to start PEP process?

2005-08-25 Thread Kenneth McDonald
Should I just put a Proposed PEP message here? Or is there a more formal way? Thanks, Ken -- http://mail.python.org/mailman/listinfo/python-list

Re: Email client in Pyhton

2005-08-25 Thread knaren
Thanks micheal, for help. I think this could solve most of problem. -- K Naren,MeTel Team. http://www.midascomm.com/ -- http://mail.python.org/mailman/listinfo/python-list

How to start a DTS Package on MS-SQL-Server?

2005-08-25 Thread Adrian Pettitt
I found this subject line in a post to this list on Jan 30, 2004. Does anybody know if this is possible? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: pipes like perl

2005-08-25 Thread max(01)*
many thanks to all the fellows who cared to answer! bye max -- http://mail.python.org/mailman/listinfo/python-list

overload builtin operator

2005-08-25 Thread Shaun
Hi, I'm trying to overload the divide operator in python for basic arithmetic. eg. 10/2 ... no classes involved. I am attempting to redefine operator.__div__ as follows: # my divide function def safediv(a,b): return ... # reassign buildin __div__ import operator

Re: loop in python

2005-08-25 Thread km
Hi all, What you are comparing is either IO times (the print loop program), where Perl beats C - which means that Perl's IO have been written at a very low level instead of relying on the stdlib's IO - i'd like to know what aspects are really coded in very low level for python ? regards,

newbie question: convert a list to one string

2005-08-25 Thread martijn
H! I'm searching for the fastest way to convert a list to one big string. For example: test = ['test','test2','test3'] print unlist(test) test test2 test3 (string) I know I can make a loop like below but is that the fastest/best option ? def unlist(test): output='' for v in test: output

Get datatype of a column

2005-08-25 Thread Jitu
Hi does anyone know how to get a column type from a database using jdbc and python? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start PEP process?

2005-08-25 Thread Martin v. Löwis
Kenneth McDonald wrote: Should I just put a Proposed PEP message here? Or is there a more formal way? See PEP 1. Regards, Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: How to start PEP process?

2005-08-25 Thread Robert Kern
Kenneth McDonald wrote: Should I just put a Proposed PEP message here? Proposed Python Enhancement Proposal? A bit redundant, don't you think? :-) I think pre-PEP is the usual term. Or is there a more formal way? Not until you get to the post-pre-PEP stage. By all means, please do post

wanna stop by my homemade glory hole?

2005-08-25 Thread Jennifer
my husband is installing an extra bathroom poolside. there is a perfect size hole (unless you have a huge cock) to stick your dick through into the adjoing room. come around the side of my house(perfect if you look like a repair man) enter into the unfisnished bathroom and I'll service you

Re: newbie question: convert a list to one string

2005-08-25 Thread Robert Kern
[EMAIL PROTECTED] wrote: H! I'm searching for the fastest way to convert a list to one big string. For example: test = ['test','test2','test3'] print unlist(test) test test2 test3 (string) I know I can make a loop like below but is that the fastest/best option ? def

Re: Doubt C and Python

2005-08-25 Thread Ben Sizer
Grant Edwards wrote: On 2005-08-23, praba kar [EMAIL PROTECTED] wrote: What why it is more efficient. Kindly let me know with some details. Have you read _any_ of the thread? A number of people have already explained in detail why programming in Pything is more efficient. Please read

Re: newbie question: convert a list to one string

2005-08-25 Thread martijn
Thanks that's what i need. -- http://mail.python.org/mailman/listinfo/python-list

MySQLdb module, method executemany with anything other than strings?

2005-08-25 Thread olekristianvillabo
The method cursor.executemany is there in order to avoid multiple calls to cursor.execute(). I have tried, with success, to do like every single example (that I have found on the www) on the subject shows, to use a insert statement on the form: statement = INSERT INTO table (colA,colB,colC)

Re: newbie question: convert a list to one string

2005-08-25 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: H! I'm searching for the fastest way to convert a list to one big string. For example: test = ['test','test2','test3'] '-'.join(test) -- Maciej Fiedzia Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Stewardesses is the longest word

Re: newbie question: convert a list to one string

2005-08-25 Thread Sion Arrowsmith
[EMAIL PROTECTED] wrote: I'm searching for the fastest way to convert a list to one big string. The join() method of strings. The string instance in question being the separator you want, so: .join(test) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | Frankly I have no

Re: loop in python

2005-08-25 Thread James
I am going to be a bit blunt. Don't get offended. Also the first thing any newbie to python asks me is abt raw speed in comparison with similar languages like perl when i advocate python to perl. Judging by your other posts, you are a newbie yourself. You are not really in a position to

Re: pipes like perl

2005-08-25 Thread Piet van Oostrum
infidel [EMAIL PROTECTED] (i) wrote: i .readlines() won't return until it hits end-of-file, but the man i command waits for user input to scroll the content, like the more or i less commands let you view pages of information on a terminal. man shouldn't wait for user input if its output is a

Re: Should I move to Amsterdam?

2005-08-25 Thread Sybren Stuvel
Martin P. Hellwig enlightened us with: Personal transportation sucks in the Netherlands, if you live in the Randstad (the area of the above mentioned cities) and you have to travel across the Randstad, you go with the bike and/or bus/tram/metro/train because that is the fastest way of

Re: Should I move to Amsterdam?

2005-08-25 Thread Sybren Stuvel
Adriaan Renting enlightened us with: A lot of my foreign collegues commplain about how rude the dutch can be. Countries like sweden or japan seem to have much better manners. I also think the Dutch aren't all that communicative. I was queueing in a store when they announced to have the new CD

Re: loop in python

2005-08-25 Thread Sybren Stuvel
James enlightened us with: One does not compare speed when they use Perl/Python/Ruby/Tcl. They are all more or less in the same performance ball park. I don't want to offend you or anything, but doesn't the second sentence mean that someone DID do a speed comparison? Sybren -- The problem

Re: Should I move to Amsterdam?

2005-08-25 Thread Piet van Oostrum
Martin P. Hellwig [EMAIL PROTECTED] (MPH) wrote: MPH Of course this is all done with public transport and/or bike, not without MPH reason. MPH Personal transportation sucks in the Netherlands, if you live in the MPH Randstad (the area of the above mentioned cities) and you have to travel MPH

RE Despair - help required

2005-08-25 Thread Yoav
I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) and I get a return of NoneType, and I have no idea why. I know that I missing something here, but I really can't figure out why (I bet it's something obvious). I also tried this RE on KODOS and it works fine there, so I

Re: Should I move to Amsterdam?

2005-08-25 Thread dimitri pater
The problem with the world is stupidity. Not saying there should be acapital punishment for stupidity, but why don't we just take the safety labels off of everything and let the problem solve itself? Frank Zappa Geef mij wat vloerbedekking onder deze vette zwevende sofa sorry, very off-topic,

Re: Command Line arguments

2005-08-25 Thread michael
On Thu, 25 Aug 2005 00:46:41 -0700, Tim Roberts wrote: michael [EMAIL PROTECTED] wrote: I have a question about Windows based python (2.4 and later). For example, if I make a script called test.py like so: import sys print sys.argv then run it: python test.py this is a test I see a list

Re: RE Despair - help required

2005-08-25 Thread Robert Kern
Yoav wrote: I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) and I get a return of NoneType, and I have no idea why. I know that I missing something here, but I really can't figure out why (I bet it's something obvious). I also tried this RE on KODOS and it works

Re: RE Despair - help required

2005-08-25 Thread Sybren Stuvel
Yoav enlightened us with: I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) and I get a return of NoneType, and I have no idea why. Because you don't match a carriage return \r. I know that I missing something here, but I really can't figure out why (I bet it's

Re: Command Line arguments

2005-08-25 Thread michael
On Thu, 25 Aug 2005 00:46:41 -0700, Tim Roberts wrote: michael [EMAIL PROTECTED] wrote: I have a question about Windows based python (2.4 and later). For example, if I make a script called test.py like so: import sys print sys.argv then run it: python test.py this is a test I see a list

Re: Doubt C and Python

2005-08-25 Thread michael
On Tue, 23 Aug 2005 06:15:03 +0100, praba kar wrote: Dear All, I want to know the link between c and python. Some people with C background use Python instead of programming in C.why? regards Prabahar Just my $.02 I am a long time c/c++

Re: MySQLdb module, method executemany with anything other than strings?

2005-08-25 Thread Steve Holden
[EMAIL PROTECTED] wrote: The method cursor.executemany is there in order to avoid multiple calls to cursor.execute(). I have tried, with success, to do like every single example (that I have found on the www) on the subject shows, to use a insert statement on the form: statement = INSERT

Re: Should I move to Amsterdam?

2005-08-25 Thread Steve Holden
Sybren Stuvel wrote: Martin P. Hellwig enlightened us with: [...] On the way back, we used the ICE (intercity express) through Germany. It got delayed, so we missed our train to Amsterdam by 15 minutes. The delay was in Köln, because the pope paid a visit - well known to the Deutsche

Re: Doubt C and Python

2005-08-25 Thread Uwe Schmitt
On Tue, 23 Aug 2005 06:15:03 +0100, praba kar wrote: Dear All, I want to know the link between c and python. Some people with C background use Python instead of programming in C.why? regards Prabahar Just my $.02 I am a long

Re: while c = f.read(1)

2005-08-25 Thread Steve Holden
Antoon Pardon wrote: Op 2005-08-24, Magnus Lycka schreef [EMAIL PROTECTED]: Antoon Pardon wrote: I think he did, because both expression are not equivallent unless some implicite constraints make them so. Values where both expressions differ are: start1=67, stop1=9, start2=10, stop2=29

Re: MySQLdb module, method executemany with anything other than strings?

2005-08-25 Thread olekristianvillabo
I just realised that myself about two minutes ago, but thanks anyway! -- http://mail.python.org/mailman/listinfo/python-list

Re: HTML/text formatting question

2005-08-25 Thread Edvard Majakari
Dr. Who [EMAIL PROTECTED] writes: This seems clunky and my next step was going to be to define generic functions which would generate the surrounding html tags only when passed the proper argument. I was wondering if there was a better way to do this with a standard Python library. It

Re: Python 2.1 Bible Source

2005-08-25 Thread Colin Gillespie
SuppressedPen wrote: Hi Everyone! Just started with Python 2 weeks ago and I can't put it down it's to easy and to powerful, I'm sure the goons will be after us for having it soon, Hi Hi. Was wondering if anyone might know where I can find the source code for PYTHON 2.1 BIBLE book.

Re: Getting rid of close failed: [Errno 0] No Error on Win32

2005-08-25 Thread Yoav
Ok , I tried: try: os.popen3(...) except: as someone suggested here. And on FreeBSD I don't get the error message, and it works great. However, on Win32 I do get the annoying message. Any idea why? And How I can make it go away? thanks. Yoav wrote: I am using os.popen3 to call a

Re: same menu point is activated

2005-08-25 Thread Greg Krohn
OllieZ wrote: Hi all Im trying to learn wxpython by some samples and Ive come across this. After change EVT_MENU lines from EVT_MENU(self, ID_OPEN, self.OnOpen) to self.Bind(wx.EVT_MENU, self.OnOpen) It should be: self.Bind(wx.EVT_MENU, self.OnOpen, id=ID_OPEN)

Re: variable hell

2005-08-25 Thread Diez B. Roggisch
Nx wrote: I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2upto aN whatever is in the list. Explain this some reason. This smells, and the way to go would be to use a dict mapping a_n to whatever is in the list - not

Re: variable hell

2005-08-25 Thread Robert Kern
Nx wrote: Hi I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2upto aN whatever is in the list. Really? Why? -- Robert Kern [EMAIL PROTECTED] In the fields of hell where the grass grows high Are the graves of dreams

Re: variable hell

2005-08-25 Thread Fredrik Lundh
Nx [EMAIL PROTECTED] wrote: I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2upto aN whatever is in the list. why? /F -- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-25 Thread Sybren Stuvel
Nx enlightened us with: I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2upto aN whatever is in the list. You're probably doing things the wrong way. What is your ultimate goal with this? There is probably a better way of doing

Re: variable hell

2005-08-25 Thread Peter Maas
Nx schrieb: Hi I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2upto aN whatever is in the list. How to create the variables dynamically ? I am looking for something like pseudo code line follows : a%s =

Re: RE Despair - help required

2005-08-25 Thread Fredrik Lundh
Yoav wrote: I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) and I get a return of NoneType, and I have no idea why. I know that I missing something here, but I really can't figure out why instead of struggling with weird REs, why not use Python's standard filename

variable hell

2005-08-25 Thread Nx
Hi I am unpacking a list into variables, for some reason they need to be unpacked into variable names like a0,a1,a2upto aN whatever is in the list. How to create the variables dynamically ? I am looking for something like pseudo code line follows : a%s = str(value) here below

Re: RE Despair - help required

2005-08-25 Thread Yoav
Thanks guys. Issue solved. I am also going to give Microsoft a call about it. Any other issues you want me to raise while I am talking to them? Cheers. Robert Kern wrote: Yoav wrote: I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) and I get a return of NoneType,

Re: RE Despair - help required

2005-08-25 Thread Yoav
Don't think it will do much good. I need to get them from a file and extract the last folder in the path. For example: if I get c:\dos\util I want to extract the string \util Fredrik Lundh wrote: Yoav wrote: I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) and I

Re: overload builtin operator

2005-08-25 Thread Reinhold Birkenfeld
Shaun wrote: Hi, I'm trying to overload the divide operator in python for basic arithmetic. eg. 10/2 ... no classes involved. I am attempting to redefine operator.__div__ as follows: # my divide function def safediv(a,b): return ... # reassign buildin

Re: Doubt C and Python

2005-08-25 Thread Grant Edwards
On 2005-08-25, Ben Sizer [EMAIL PROTECTED] wrote: Grant Edwards wrote: On 2005-08-23, praba kar [EMAIL PROTECTED] wrote: What why it is more efficient. Kindly let me know with some details. Have you read _any_ of the thread? A number of people have already explained in detail why

Re: Newbie question: Sub-interpreters for CAD program

2005-08-25 Thread Peter Hansen
Terry Hancock wrote: On Wednesday 24 August 2005 09:12 pm, Peter Hansen wrote: Or even http://www.pythoncad.org/ which, although probably for mechanical CAD work (I haven't looked at it, don't really know), is surely a good place to get ideas of what Python can do in this area. No, I doubt

Re: RE Despair - help required

2005-08-25 Thread rafi
Yoav wrote: Don't think it will do much good. I need to get them from a file and extract the last folder in the path. For example: if I get c:\dos\util I want to extract the string \util like frederik says (I use '/' as I am using Unix): import os os.path.split ('c:/foo/bar')

Re: RE Despair - help required

2005-08-25 Thread Reinhold Birkenfeld
Yoav wrote: Don't think it will do much good. I need to get them from a file and extract the last folder in the path. For example: if I get c:\dos\util I want to extract the string \util Then os.path.basename should be for you. Reinhold --

RE: RE Despair - help required

2005-08-25 Thread Marc Boeren
Hi, Don't think it will do much good. I need to get them from a file and extract the last folder in the path. For example: if I get c:\dos\util I want to extract the string \util Still, os.path is your friend: import os filepath = r'C:\dos\util' base, last = os.path.split(filepath)

Re: loop in python

2005-08-25 Thread Peter Hansen
Sybren Stuvel wrote: James enlightened us with: One does not compare speed when they use Perl/Python/Ruby/Tcl. They are all more or less in the same performance ball park. I don't want to offend you or anything, but doesn't the second sentence mean that someone DID do a speed comparison?

Re: variable hell

2005-08-25 Thread Benji York
Peter Maas wrote: suffix = 'var' vars()['a%s' % suffix] = 45 avar 45 Quoting from http://docs.python.org/lib/built-in-funcs.html#l2h-76 about the vars built in: The returned dictionary should not be modified: the effects on the corresponding symbol table are undefined. -- Benji York

Re: RE Despair - help required

2005-08-25 Thread Robert Kern
Yoav wrote: Don't think it will do much good. I need to get them from a file and extract the last folder in the path. For example: if I get c:\dos\util I want to extract the string \util You mean like this: import os os.path.sep + os.path.split(rc:\dos\util)[-1] -- Robert Kern [EMAIL

New Arrival to Python

2005-08-25 Thread Norm Goertzen
Hi Everyone, I'm totally captivated by Python so far. I want to develop professional-looking Win32 applications with the least effort. I have many years experience with PowerBuilder, PowerBuilder Foundation Class, and SQL Anywhere. I would really like to leverage as many of these skills as

Re: Jargons of Info Tech industry

2005-08-25 Thread Denis Kasak
CBFalconer wrote: Mike Schilling wrote: Mike Meyer [EMAIL PROTECTED] wrote in message Mike Schilling [EMAIL PROTECTED] writes: l v [EMAIL PROTECTED] wrote in message Xah Lee wrote: (circa 1996), and email should be text only (anti-MIME, circa 1995), I think e-mail should be text only. I

Re: Fighting Spam with Python

2005-08-25 Thread Larry Bates
Before you do too much work you should probably check out: http://spambayes.sourceforge.net/ There has already been a lot of work done on this project. FYI, Larry David MacQuigg wrote: Are you as mad about spam as I am? Are you frustrated with the pessimism and lack of progress these last

Re: Limited XML tidy

2005-08-25 Thread Magnus Lie Hetland
In article [EMAIL PROTECTED], Toby White wrote: [snip] I do similar stuff in the new (upcoming) version of Atox (atox.sf.net), which works with potentially ill-formed, partial XML (in the form of PYX events) internally, and can take partial, ill-formed XML as input. The problem is that when the

Re: variable hell

2005-08-25 Thread Nx
Thanks for the many replies here is an example for what it will be used for , in this case fixed at 31 fieldvalues: inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25, s26,s27,s28,s29,s30,s31) MYINSERTSELECT = INSERT INTO

Re: Fighting Spam with Python

2005-08-25 Thread Peter Hansen
David MacQuigg wrote: Are you as mad about spam as I am? Are you frustrated with the pessimism and lack of progress these last two years? Do you have faith that an open-source project can do better than the big companies competing for a lock-in solution? If so, you might be interested in

Re: variable hell

2005-08-25 Thread bruno modulix
Nx wrote: Thanks for the many replies here is an example for what it will be used for , in this case fixed at 31 fieldvalues: inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25, s26,s27,s28,s29,s30,s31)

Re: variable hell

2005-08-25 Thread Carsten Haese
On Thu, 2005-08-25 at 10:43, Nx wrote: Thanks for the many replies here is an example for what it will be used for , in this case fixed at 31 fieldvalues: inputvalues=(s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,s24,s25,

Re: variable hell

2005-08-25 Thread Adriaan Renting
You might be able to do something along the lines of for count in range(0,maxcount): value = values[count] exec(eval('a%s=%s' % (count, value))) But I am also wonder: why? Peter Maas wrote: suffix = 'var' vars()['a%s' % suffix] = 45 avar 45 --

Re: New Arrival to Python

2005-08-25 Thread Alessandro Bottoni
Norm Goertzen wrote: I can just answer about books: -Programming Python, 2nd Edition; Mark Lutz Quite good. Exhaustive and authoritative. The 1st edition was questionable but the second one is very fine. -Python Standard Library; Fredrik Lundh Quite a need for a beginner. The HTML docu of

Re: variable hell

2005-08-25 Thread Carsten Haese
On Thu, 2005-08-25 at 11:04, I hastily wrote: On Thu, 2005-08-25 at 10:43, Nx wrote: Thanks for the many replies here is an example for what it will be used for , in this case fixed at 31 fieldvalues:

Re: RE Despair - help required

2005-08-25 Thread Sion Arrowsmith
In article [EMAIL PROTECTED], Yoav [EMAIL PROTECTED] wrote: Fredrik Lundh wrote: Yoav wrote: I am trying the following: re.search(r'\\[^\\]+(?=(?$))', c:\ret_files) instead of struggling with weird REs, why not use Python's standard filename manipulation library instead?

Re: variable hell

2005-08-25 Thread Nx
Why unpack inputvalues if your next step is to pack'em back again ? Or what did I miss ? The original values in this case are being read from a text file with one value including a linefeed per line and the original idea was, that having them read into a list was the best way to massage

Re: RE Despair - help required

2005-08-25 Thread Yoav
Thank you all guys. It seems like the simpler the solution, the more I am happy about it. Sorry, for the simple question, I am quite new to this lang. Cheers. Robert Kern wrote: Yoav wrote: Don't think it will do much good. I need to get them from a file and extract the last folder in the

prevent callback during initialization

2005-08-25 Thread William Gill
I am creating several tkinter widgets. In my classes they each have a change() method that is a callback to various IntVar, and StringVar objects. Everything works fine, but don't really want to trigger the callback when I am initializing each widget/control variable. I can use a flag like

Re: variable hell

2005-08-25 Thread [EMAIL PROTECTED]
Hey, if the man wants to write it that way, let the man write it that way. If it works for him, great... he's sure confused the heck out of all of us, and that translates into job security for him! As you can see, the name of the post is 'variable hell' and that is exactly what he is creating, so

Socket Support When Compiling Python 2.3.5 On Cygwin

2005-08-25 Thread tom
I compiled Python 2.3.5 from source on my Cygwin machine (XP), and I got the following error when I tried to initialize Zope: Traceback (most recent call last): File /opt/Zope-2.7.7/lib/python/ZEO/runzeo.py, line 42, in ? import socket File /opt/Python23//lib/python2.3/socket.py, line 44,

Re: loop in python

2005-08-25 Thread Sybren Stuvel
Peter Hansen enlightened us with: Yes, and has shown that they are in the same ballpark, and therefore one does not _need_ to compare speed any more. Ok. I'd worded it as there have been tests already, so there is no need to do your own, instead of one does not test. Sybren -- The problem

Re: Jargons of Info Tech industry

2005-08-25 Thread Mike Schilling
CBFalconer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Mike Schilling wrote: Mike Meyer [EMAIL PROTECTED] wrote in message Mike Schilling [EMAIL PROTECTED] writes: l v [EMAIL PROTECTED] wrote in message Xah Lee wrote: (circa 1996), and email should be text only (anti-MIME,

Experience regarding Python tutorials?

2005-08-25 Thread Shoeshine
Cheers everyone, I aim to learn a programming language and haven't yet decided on what's going to be. Here I'd like to hear some voices on where I should start, and pls don't hit me google. I have been doing some research, but I'd like to hear about some real life expiriencies on subject. Is

Re: a question about tkinter StringVars()

2005-08-25 Thread William Gill
Eric Brunel wrote: On Wed, 24 Aug 2005 15:07:27 GMT, William Gill [EMAIL PROTECTED] wrote: Working with tkinter, I have a createWidgets() method in a class. Within createWidgets() I create several StringVars() and assign them to the textvariable option of several widgets. Effectively my

Re: Fighting Spam with Python

2005-08-25 Thread David MacQuigg
On Thu, 25 Aug 2005 10:18:37 -0400, Peter Hansen [EMAIL PROTECTED] wrote: David MacQuigg wrote: Are you as mad about spam as I am? Are you frustrated with the pessimism and lack of progress these last two years? Do you have faith that an open-source project can do better than the big

Re: Experience regarding Python tutorials?

2005-08-25 Thread Peter Beattie
Shoeshine wrote on 25/08/2005 17:43: Cheers everyone, I aim to learn a programming language and haven't yet decided on what's going to be. Here I'd like to hear some voices on where I should start, and pls don't hit me google. I have been doing some research, but I'd like to hear about some

Re: variable hell

2005-08-25 Thread rafi
Adriaan Renting wrote: You might be able to do something along the lines of for count in range(0,maxcount): value = values[count] exec(eval('a%s=%s' % (count, value))) why using the eval? exec ('a%s=%s' % (count, value)) should be fine -- rafi Imagination is more important

Filetypes in email attachments.

2005-08-25 Thread justin . vanwinkle
Hello everyone, I'm writing a simple spam filter as a project, partly to learn python. I want to filter by filetype, however, the mime content type I get using .get_content_type gives limited and possibly bogus information, especially when trying to detect viruses or spam. I would like to use

Re: Experience regarding Python tutorials?

2005-08-25 Thread SamFeltus
Python is a very good place to start. However,Perl isn't a bad place to start either. Perl has a gazillion ways to express yourself. Perl is overly complicated (yet easy to get started with), so you are exposed to numerous ways to think. Perl gives you 8 million different sized and colored

Re: variable hell

2005-08-25 Thread Ron Garret
In article [EMAIL PROTECTED], Benji York [EMAIL PROTECTED] wrote: Peter Maas wrote: suffix = 'var' vars()['a%s' % suffix] = 45 avar 45 Quoting from http://docs.python.org/lib/built-in-funcs.html#l2h-76 about the vars built in: The returned dictionary should not be

Re: Protected message

2005-08-25 Thread webmaster
Your file is attached.-- http://mail.python.org/mailman/listinfo/python-list

Re: variable hell

2005-08-25 Thread Robert Kern
Ron Garret wrote: If you really want to make something like this work you can define a class that would work like this: vars = funkyclass() varname = 'x' vars[varname] = value vars.x But this is clearly a design mistake. Either you know the names of the variables when you write the

Just a thank... (ignore)

2005-08-25 Thread Shoeshine
Thanx for sharing... -it was of use. --- -Linux- -Becouse PC is a terible thing to waste... -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-25 Thread Rich Teer
On Thu, 25 Aug 2005, Mike Schilling wrote: Another advantage is that evewry internet-enabled computer today already comes with an HTML renderer (AKA browser), so that a message saved to a file can be read very easily. I think you're missing the point: email and Usenet are, historically have

  1   2   3   >