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

2005-08-24 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: Newbie question: Sub-interpreters for CAD program

2005-08-24 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

Re: Exploring outlook using python

2005-08-24 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

Fighting Spam with Python

2005-08-24 Thread David MacQuigg
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 the Open-Mail project. I'm w

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

2005-08-24 Thread Casey Hawthorne
>contained in the range [start, end) Does range(start, end) generate negative integers in Python if start >= 0 and end >= start? -- Regards, Casey -- http://mail.python.org/mailman/listinfo/python-list

Re: global interpreter lock

2005-08-24 Thread Mike Meyer
Bryan Olson <[EMAIL PROTECTED]> writes: > Mike Meyer wrote: > > Bryan Olson writes: > >>Mike Meyer wrote: > >> > The rule I follow in choosing my tools is "Use the least complex tool > >> > that will get the job done." > >>Even if a more complex tool could do the job better? > > In that case,

Ud_lG play for free Ud_lG

2005-08-24 Thread Jeff Hanson
Dear Casino Player, YOU HAVE BEEN PREAPPROVED. Receive $100 FREE at the Online Casino Of The Year 2002 when you open a new account. DOWNLOAD AWARD WINNING CASINO GAMES or VISIT THEIR WEBSITE FOR MORE INFORMATION. http://webmaster.windowscasino.com/SmartDownload.asp?affid=14409 WINDOWS CASINO

wanna stop by my homemade glory hole?

2005-08-24 Thread Casse
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 fro

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

2005-08-24 Thread Steve Holden
Bryan Olson wrote: > The doc for the find() method of string objects, which is > essentially the same as the string.find() function, states: > > find(sub[, start[, end]]) >Return the lowest index in the string where substring sub >is found, such that sub is contained in the ra

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

2005-08-24 Thread Bryan Olson
The doc for the find() method of string objects, which is essentially the same as the string.find() function, states: find(sub[, start[, end]]) Return the lowest index in the string where substring sub is found, such that sub is contained in the range [start, end). Optio

Re: Jargons of Info Tech industry

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

Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-24 Thread Bryan Olson
Robert Kern wrote: > By "+1" he means, "I like it." He's not correcting you. Ah, O.K. Thanks. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list

Re: subpackage import problem

2005-08-24 Thread Eric Huss
On Sun, 21 Aug 2005, Robert Kern wrote: > Eric Huss wrote: > > I'm having a problem with packages within packages. Here's an example: > > > > foo/ > > foo/__init__.py: empty file > > foo/sub/__init__.py: > > from foo.sub.B import B > > foo/sub/A.py: > > class A: > > pass > > f

Re: Newbie question: Sub-interpreters for CAD program

2005-08-24 Thread Peter Hansen
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. > > Cool. If you do write it and release it, I'd be interested in finding out > about it. > > You probably ought to consider starting with

Re: while c = f.read(1) [comment on news hosting]

2005-08-24 Thread Robert Kern
Steve Holden wrote: > Well you could do worse than use the gmane.comp.python.general newsgroup > if you want to use an NNTP newsreader. I recently left the ISP who had > provided me with news services for years, and I am very happy with the > gmane service (though heaven only knows why they cho

Re: while c = f.read(1) [comment on news hosting]

2005-08-24 Thread Steve Holden
Greg McIntyre wrote: > Robert Kern wrote: > >>>Robert> Please quote the message you are replying to. We have no >>>Robert> idea what "the 2nd option" is. >>> >>>I think he means the second option you presented >>> >>> If you must read one character at a time, >>> >>> def reader(fileob

Re: while c = f.read(1)

2005-08-24 Thread Greg McIntyre
Robert Kern wrote: > > Robert> Please quote the message you are replying to. We have no > > Robert> idea what "the 2nd option" is. > > > > I think he means the second option you presented > > > > If you must read one character at a time, > > > > def reader(fileobj, blocksize=1): > >

Re: while c = f.read(1)

2005-08-24 Thread Greg McIntyre
John Machin wrote: > Sigh indeed. If you need to read it a character at a time to parse it, > the design is f***ed. There is always the potential to do 2k buffered reads and once in memory pick the contents apart character-wise. I assume something similar would happen for tokenising XML and HTML

Re: Newbie question: Sub-interpreters for CAD program

2005-08-24 Thread Terry Hancock
On Wednesday 24 August 2005 03:48 pm, sonicSpammersGoToHellSmooth wrote: > In my case I'd like to write a CAD program which allows the user to > write Python scripts, and to provide an API to do CAD stuff, manipulate > parameters, circuits, layouts, simulations, etc. The user should not > have acc

Command Line arguments

2005-08-24 Thread michael
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 good! BUT... If i make .py extensions

Re: Unix diff command under Window.

2005-08-24 Thread Neil Hodgson
Thomas Heller: > Yes. There's a script in your Python distribution: > Tools/scripts/diff.py > > See also the docs for the 'difflib' standard library module. Is the opposite code, a Python equivalent to 'patch' available? I have endless trouble receiving patch files that assume one of Windo

Re: use SciPy with Python 2.4.1?

2005-08-24 Thread Robert Kern
John Hunter wrote: >>"Robert" == Robert Kern <[EMAIL PROTECTED]> writes: > > > Robert> [EMAIL PROTECTED] wrote: > >> Is SciPy usable with Python 2.4.1? At > >> http://www.scipy.org/download/ it says that 2.3.3 is > >> recommended, and I don't see a binary for 2.4.1. > > R

Re: Exploring outlook using python

2005-08-24 Thread Larry Bates
You should download source for spambayes plug-in for Outlook (written in Python) located at: http://spambayes.sourceforge.net/windows.html You might finds LOTS of good information for your project. -Larry Bates Subir wrote: > Hi, > > I am new to this group. I am trying to build an applicatio

Re: The ONLY thing that prevents me from using Python

2005-08-24 Thread D H
Paul Rubin wrote: > Richie Hindle <[EMAIL PROTECTED]> writes: > >>I can't speak for linode.org, but I have a Xen VPS from rimuhosting.com >>and it's early days but so far I've been very impressed. It's $19/mo >>(normally $20 but they kindly gave me a 5% Open Source Developer discount) > > > Do

Re: Exploring outlook using python

2005-08-24 Thread Peter Hansen
Subir wrote: > I am new to this group. I am trying to build an application to see > all the contents of the outlook accounts (USING MAPI). Does anyone has > any information regarding this ? Did you try checking the list archives yet? Go to Google Groups (groups.google.com) and search in the co

Re: The ONLY thing that prevents me from using Python

2005-08-24 Thread Paul Rubin
Richie Hindle <[EMAIL PROTECTED]> writes: > I can't speak for linode.org, but I have a Xen VPS from rimuhosting.com > and it's early days but so far I've been very impressed. It's $19/mo > (normally $20 but they kindly gave me a 5% Open Source Developer discount) Do you get enough resources in th

Re: Sorta noob question - file vs. open?

2005-08-24 Thread Scott David Daniels
Peter A. Schott wrote: > I'll have to try this again. I obviously did something wrong in my code. I > was > getting errors about not being able to write a string because it wasn't > supported. It was driving me nuts for a while until I just gave up and went > back to open(). I expect somewhere

Re: Sorta noob question - file vs. open?

2005-08-24 Thread Peter Hansen
Peter A. Schott wrote: > Thanks to all who replied. If open is still preferred, I will > stick with that. FWIW, that's not an unqualified "preferred". To demonstrate by example, neither of the above is considered preferred, though they both work: outputFile = file('path.to.file') if i

Re: How to get a unique id for bound methods?

2005-08-24 Thread Russell E. Owen
In article <[EMAIL PROTECTED]>, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: >Russell E. Owen wrote: > >> Having looked at it again, it is familiar. I copied it when I wrote my >> own code. I avoided using at the time both because the initial >> underscore suggested it was a private method and beca

Newbie question: Sub-interpreters for CAD program

2005-08-24 Thread sonicSpammersGoToHellSmooth
Hi all, I'm a newbie to Python, so I have a question about writing an application that also has a scripting ability. I'm thinking of Eric3 as an example. It's written in Python, but it also has an interpreter window. The user doesn't have access (I don't think...) to all the internal stuff that

Re: Sorta noob question - file vs. open?

2005-08-24 Thread Peter A.Schott
I'll have to try this again. I obviously did something wrong in my code. I was getting errors about not being able to write a string because it wasn't supported. It was driving me nuts for a while until I just gave up and went back to open(). I'll do some more playing and if I continue to get e

Re: Decorator and Metaclasses Documentation

2005-08-24 Thread Chris Smith
> "Michele" == Michele Simionato <[EMAIL PROTECTED]> writes: Michele> There are also my lectures at Oxford: Michele> http://www.reportlab.org/~andy/accu2005/pyuk2005_simionato_wondersofpython.zip Michele>Michele Simionato You really need to get O'Reilly to publish your s

Re: use SciPy with Python 2.4.1?

2005-08-24 Thread John Hunter
> "Robert" == Robert Kern <[EMAIL PROTECTED]> writes: Robert> [EMAIL PROTECTED] wrote: >> Is SciPy usable with Python 2.4.1? At >> http://www.scipy.org/download/ it says that 2.3.3 is >> recommended, and I don't see a binary for 2.4.1. Robert> It is usable with Python 2.4.

Re: Warning when doubly linked list is defined gloablly

2005-08-24 Thread Terry Reedy
"chand" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi., > > In my api.py file 'g_opt_list' is defined globally > g_opt_list =[[],[],[],[],[],[],[]] > > I am using this global list in the fucntion > > def function (): >gloabl g_opt_list > > when I run the py file, I am getti

SocketServer and a Java applet listener

2005-08-24 Thread google
Dear newsgroup, I give up, I must be overseeing something terribly trivial, but I can't get a simple (Java) applet to react to incoming (python) SocketServer messages. Without boring you with the details of my code (on request available, though), here is what I do : I have a TCPServer and BaseRe

Re: pipes like perl

2005-08-24 Thread infidel
> but... i see it doesn't work for some commands, like "man python" (it > gets stuck on the "if" line)... .readlines() won't return until it hits end-of-file, but the "man" command waits for user input to scroll the content, like the "more" or "less" commands let you view "pages" of information on

PuLP and Mac OS X

2005-08-24 Thread njkirsch
Hello, I am working on a project that invovles the use of linear programming. The framework for the project has been written in Python. I recently came across PuLP http://www.jeannot.org/~js/code/index.en.html#PuLP , which creates output files to use with LP solvers. I was wondering if anyone ha

Re: setlocale() in a module/extension library

2005-08-24 Thread Damien Elmes
"Martin v. Löwis" <[EMAIL PROTECTED]> writes: > IOW: feel free to invoke setlocale in your library. It will likely > work in many cases, but may break in some. So you should atleast > document that this is what your library does. Thanks for the advice. I ended up implementing it in the library, w

Earn 12% daily of your investment!!!

2005-08-24 Thread Make12
I'm going to tell you about a TOP RATED AUTOSURF program that takes 5 mins of your day and then instantly credits your account 12% of what you put in. Its that easy and everyone is going crazy about it. I have personally done this and been paid. This is how it works. You have to have/get you

Re: Should I move to Amsterdam?

2005-08-24 Thread Martin P. Hellwig
Wade wrote: > http://www.slate.com/id/2124561/entry/2124562/ > > Nice little series by Seth Stevenson for Americans daydreaming about > emigration. Somewhere, anywhere ... maybe Amsterdam? > > I've never been to the Netherlands myself, but it sounds very > civilized. > > Extra Python connection,

Re: Email client in Pyhton

2005-08-24 Thread Nemesis
Mentre io pensavo ad una intro simpatica "[EMAIL PROTECTED]" scriveva: > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smtp lib. > Now i'm looking for some modules which can he

Re: use SciPy with Python 2.4.1?

2005-08-24 Thread Robert Kern
[EMAIL PROTECTED] wrote: > Is SciPy usable with Python 2.4.1? At http://www.scipy.org/download/ it > says that 2.3.3 is recommended, and I don't see a binary for 2.4.1. It is usable with Python 2.4.1 on Linux and OS X at least. IIRC, mingw-compiled extensions don't work with the standard Python 2.

Exploring outlook using python

2005-08-24 Thread Subir
Hi, I am new to this group. I am trying to build an application to see all the contents of the outlook accounts (USING MAPI). Does anyone has any information regarding this ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Revised PEP 349: Allow str() to return unicode strings

2005-08-24 Thread Dieter Maurer
Neil Schemenauer <[EMAIL PROTECTED]> writes on Mon, 22 Aug 2005 15:31:42 -0600: > ... > Some code may require that str() returns a str instance. In the > standard library, only one such case has been found so far. The > function email.header_decode() requires a str instance and the >

Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-24 Thread Robert Kern
Bryan Olson wrote: > Paul Rubin wrote: > > Bryan Olson writes: > > > >> seq[3 : -4] > >> > >>we write: > >> > >> seq[3 ; $ - 4] > > > > +1 > > I think you're wrong about the "+1". I defined '$' to stand for > the length of the sequence (not the address of the last > element). By

Re: pipes like perl

2005-08-24 Thread Donn Cave
In article <[EMAIL PROTECTED]>, "max(01)*" <[EMAIL PROTECTED]> wrote: > in perl i can do this: ... > but i do not know how to do it in python, because "if *command*:" gives > syntax error. > > moreover, if i use ... > it doesn't work, since "*do_something*" and *do_something_more* are > always

Re: Externally-defined properties?

2005-08-24 Thread Scott David Daniels
Terry Hancock wrote: > Frankly, I was surprised this worked at all, but I tried > creating a property outside of a class (i.e. at the module > level), and it seems to behave as a property: Not so surprising. Making a class begins by making a little namespace, then using it to build the class. If

Re: FileIO problem

2005-08-24 Thread bruno modulix
Laszlo Zsolt Nagy wrote: > Try this: > > gclas = raw_input("What is the class:") > def Princlas(): >count = 0 >while count != 1000: >count = count + 1 >return "Admin forceclass %s %s " % ( count , gclas ) have you tried your code ? Obviously, no, else you would have seen t

Re: Inline::Python, pyperl, etc.

2005-08-24 Thread Eli Stevens (WG.c)
Sybren Stuvel wrote: > Eli Stevens (WG.c) enlightened us with: > >>I've bumped into some snags with pyperl (can't import perl2.so? But >>it's right there in site-packages/ !), and I'm wondering if it's bitrot >>or a config error on my end. > > > If the .so file is as old as you described, it'

Re: execfile in global scope

2005-08-24 Thread Bengt Richter
On 24 Aug 2005 01:50:25 -0700, [EMAIL PROTECTED] wrote: >I need to execfile() from a function in order to set value for a global >variable from inside the executed file. I know there are "globals" and >"locals" optional arguments for execfile, but I just can't figure out >how to use them correctly

problems with hasattr() and custom __getattr__ inside urllib2

2005-08-24 Thread Gil Tal
Hi, I use urllib2 to download a redirected url and I get an exception from the bowels of urllib2. It seems that urllib2 implements some super sophisticated self check and tries to control the access to attributes using lots of calls to hasattr(the builtin function) and a custom __getattr__() on the

Re: while c = f.read(1)

2005-08-24 Thread Magnus Lycka
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 occur to me. How sloppy to just assume that time periods

Re: The ONLY thing that prevents me from using Python

2005-08-24 Thread Magnus Lycka
Andreas Kostyrka wrote: > I cannot comment on linode as I'm not a customer. The info on the website > seems ok. But the prices are somehow laughable: I'm currently paying > EUR39 for a dedicated host (with at least 200GB traffic, I'd had to look it > up > 60GB "storage", 256MB RAM and a 2.4GHz P4

Re: Should I move to Amsterdam?

2005-08-24 Thread Tom Anderson
On Wed, 24 Aug 2005, Armin Steinhoff wrote: > Adriaan Renting wrote: > > "Wade" <[EMAIL PROTECTED]> 08/24/05 2:31 pm >>> >> >> http://www.slate.com/id/2124561/entry/2124562/ Nice little series by >> Seth Stevenson for Americans daydreaming about emigration. Somewhere, >> anywhere ... maybe

Re: a question about tkinter StringVars()

2005-08-24 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. >> Effec

Re: Default function arguments behaving badly

2005-08-24 Thread [EMAIL PROTECTED]
That works perfectly - Thanks! I'm always getting tripped up by the mutability of lists, I should really learn to look out for it more... -- http://mail.python.org/mailman/listinfo/python-list

Re: Default function arguments behaving badly

2005-08-24 Thread Paul McNett
[EMAIL PROTECTED] wrote: > I'm having some trouble with a function I've written in Python: > def myFunction(l1,l2,result=[]): [snipped rest of function and explanation of what it does] > Does anyone know what is going on here? Is there an easy solution? It shined out like a supernova. It has to

Re: tkraise oddity

2005-08-24 Thread Eric Brunel
On 24 Aug 2005 06:57:07 -0700, twd <[EMAIL PROTECTED]> wrote: > I'm seeing some new and unexpected behaviour with tkinter + python2.4, > in a gnome+linux environment. The code below used to work (and > continues to work under windows). The intended behaviour is that a > window is created the the f

Re: Default function arguments behaving badly

2005-08-24 Thread rafi
[EMAIL PROTECTED] wrote: > Hi hi > I'm having some trouble with a function I've written in Python: > > def myFunction(l1,l2,result=[]): > index=0 > for i in l1: > result.append([]) > if type(i)==list: > myFunction(i,l2,result[index]) > else: >

Default function arguments behaving badly

2005-08-24 Thread [EMAIL PROTECTED]
Hi I'm having some trouble with a function I've written in Python: def myFunction(l1,l2,result=[]): index=0 for i in l1: result.append([]) if type(i)==list: myFunction(i,l2,result[index]) else: for j in l2: result[index].appe

Re: a question about tkinter StringVars()

2005-08-24 Thread Eric Brunel
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 code structure is:

Re: Unix diff command under Window.

2005-08-24 Thread jepler
Either it didn't exist at the time, or I didn't know about the diff.py that Thomas Heller mentioned in another response, so I wrote 'pyunidiff' http://unpy.net/~jepler/pyunidiff.py ah, I guess unix 'diff'-style output was added to difflib.py in 2003, while my pyunidiff dates to 2002. Jef

Re: Email client in Python

2005-08-24 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hi grp, > I new to this grp and python too. > i have started writing few python scripts myself. > > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smt

Re: Unix diff command under Window.

2005-08-24 Thread Dejan Rodiger
TonyHa said the following on 24.08.2005 15:50: > Hello, > > Does any one have using Python to write a Unix "diff" command for > Window? http://gnuwin32.sourceforge.net/ http://gnuwin32.sourceforge.net/packages.html Under Diffutils -- Dejan Rodiger - PGP ID 0xAC8722DC Delete wirus from e-mail a

Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-24 Thread Bryan Olson
Steven Bethard wrote: > Bryan Olson wrote: > >> Steven Bethard wrote: >> > Well, I couldn't find where the general semantics of a negative stride >> > index are defined, but for sequences at least[1]: >> > >> > "The slice of s from i to j with step k is defined as the sequence of >> >

Re: Email client in Pyhton

2005-08-24 Thread rafi
Mark Lutz in Programming Python, 2nd ed from O'Reilly covers the subject in chapter 11 using only the standards modules for mails and Tkinter. hth [EMAIL PROTECTED] wrote: > Hi grp, > I new to this grp and python too. > i have started writing few python scripts myself. > > now i am plannin

Re: py-serial + CSV

2005-08-24 Thread Michael Hoffman
McBooCzech wrote: > This (according to your suggestions) is my code which works for me > > import serial > s = serial.Serial(port=0,baudrate=4800, timeout=20) > while 1: > line = s.readline() > words = line.split(',') > if words[0]=="$GPRMC": > print words[1], words

Re: gtkmozembed in fedora core 3

2005-08-24 Thread Martin DeMello
Jonas Geiregat <[EMAIL PROTECTED]> wrote: > > If you can't find any rpm's there aren't any available. > You need to compile mozilla with (I think) support for gtkmozembed but I > guess that's done by default when you compile mozilla with > ac_add_options --enable-default-toolkit=gtk2 in your moz

Re: Email client in Pyhton

2005-08-24 Thread Jonas Geiregat
[EMAIL PROTECTED] wrote: > Hi grp, > I new to this grp and python too. > i have started writing few python scripts myself. > > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smt

a question about tkinter StringVars()

2005-08-24 Thread William Gill
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 code structure is: def createWidgets(self): ... var = StringVar() Entry(master,textvar

Re: Email client in Pyhton

2005-08-24 Thread Michael Ekstrand
On Wed, 24 Aug 2005 20:15:01 +0530 (IST) [EMAIL PROTECTED] wrote: > now i am planning to write a bear minimum email client in > pyhton. i found the smtp module of python could serve my > pupose. I can send message using mails using the smtp lib. > Now i'm looking for some modules which can help me

use SciPy with Python 2.4.1?

2005-08-24 Thread beliavsky
Is SciPy usable with Python 2.4.1? At http://www.scipy.org/download/ it says that 2.3.3 is recommended, and I don't see a binary for 2.4.1. -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in slice type

2005-08-24 Thread Bryan Olson
Kay Schluehr wrote: > Steven Bethard wrote: >>"The slice of s from i to j with step k is defined as the sequence of >>items with index x = i + n*k such that 0 <= n < (j-i)/k." >> >>This seems to contradict list behavior though. >> range(10)[9:-1:-2] == [] > > > No, both is correct. But

Re: Unix diff command under Window.

2005-08-24 Thread Thomas Heller
"TonyHa" <[EMAIL PROTECTED]> writes: > Hello, > > Does any one have using Python to write a Unix "diff" command for > Window? > > Tony Ha. Yes. There's a script in your Python distribution: Tools/scripts/diff.py See also the docs for the 'difflib' standard library module. I do not know whether

Email client in Pyhton

2005-08-24 Thread knaren
Hi grp, I new to this grp and python too. i have started writing few python scripts myself. now i am planning to write a bear minimum email client in pyhton. i found the smtp module of python could serve my pupose. I can send message using mails using the smtp lib. Now i'm looking for some modules

Re: Unix diff command under Window.

2005-08-24 Thread Benji York
TonyHa wrote: > Does any one have using Python to write a Unix "diff" command for > Window? No, but you can get the *actual* diff command for Windows: http://unxutils.sourceforge.net/ -- Benji York -- http://mail.python.org/mailman/listinfo/python-list

Re: py-serial + CSV

2005-08-24 Thread Grant Edwards
On 2005-08-24, Sybren Stuvel <[EMAIL PROTECTED]> wrote: >> import serial >> s = serial.Serial(port=0,baudrate=4800, timeout=20) >> while 1: >> line = s.readline() >> words = line.split(',') >> if words[0]=="$GPRMC": >> print words[1], words[3], words[5] >> >> I just won

Re: yapsnmp port issues

2005-08-24 Thread [EMAIL PROTECTED]
Solved the problem all by myself. Patch (and rationale) available on sourceforge. -- http://mail.python.org/mailman/listinfo/python-list

Re: Doubt C and Python

2005-08-24 Thread Grant Edwards
On 2005-08-23, praba kar <[EMAIL PROTECTED]> wrote: >>> Some people with C background use Python instead of >>> programming in C.why? >> >> Becuase it is much more efficient. >> >> -James > > What why it is more efficient. Kindly let me > know with some details. Have you read _any_ of the thre

Re: Should I move to Amsterdam?

2005-08-24 Thread Armin Steinhoff
Adriaan Renting wrote: > Well, I'm not sure if Amsterdam is nice, but the Netherlands is o.k., except > for the weather. > I'd like to descripbe it as 49 weeks of autumn, 1 week of spring, 1 week of > summer, 1 week of winter. > Currently my employer only has an opening for a Microwave Antenna de

Re: Should I move to Amsterdam?

2005-08-24 Thread Wouter van Ooijen (www.voti.nl)
>Nice little series by Seth Stevenson for Americans daydreaming about >emigration. Somewhere, anywhere ... maybe Amsterdam? > >I've never been to the Netherlands myself, but it sounds very >civilized. It used to be, until some lunatic (alledged to be a left-winger) killed an (alledged right-wing)

Re: The ONLY thing that prevents me from using Python

2005-08-24 Thread Andreas Kostyrka
On Wed, Aug 24, 2005 at 09:49:01AM +0100, Richie Hindle wrote: > > [Chris] > > Not to be a shill, but I'd be interested in testimonials on > > http://linode.org/ > > I wonder if virtualization is the next killer app. > > Certainly blows the WTF my ISP? question away... > > I can't speak for lino

Re: Unix diff command under Window.

2005-08-24 Thread Adriaan Renting
There probably is some free version somewhere, maybe even as part of CygWin. I've used Araxis Merge on Windows. It used to be shareware. It's nice enough that I bought it. >>>"TonyHa" <[EMAIL PROTECTED]> 08/24/05 3:50 pm >>> Hello, Does any one have using Python to write a Unix "diff" com

Re: Jargons of Info Tech industry

2005-08-24 Thread Dragan Cvetkovic
[EMAIL PROTECTED] (Richard Bos) writes: > l v <[EMAIL PROTECTED]> wrote: > >> Mike Schilling wrote: >> > A formatting-only subset of HTML would be useful for both e-mail and >> > Usenet >> > posts. >> >> I would *agree* (your news reader may bold that last word) > > It had bloody better not.

tkraise oddity

2005-08-24 Thread twd
I'm seeing some new and unexpected behaviour with tkinter + python2.4, in a gnome+linux environment. The code below used to work (and continues to work under windows). The intended behaviour is that a window is created the the first time the button is pushed, and then de-iconified and brought to th

[no subject]

2005-08-24 Thread bhjqsbgdhj
-- http://mail.python.org/mailman/listinfo/python-list

Unix diff command under Window.

2005-08-24 Thread TonyHa
Hello, Does any one have using Python to write a Unix "diff" command for Window? Tony Ha. -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-24 Thread Bryan Olson
Kay Schluehr wrote: > Bryan Olson wrote: > >>Steven Bethard wrote: >> > Well, I couldn't find where the general semantics of a negative stride >> > index are defined, but for sequences at least[1]: >> > >> > "The slice of s from i to j with step k is defined as the sequence of >> > items wi

Re: Proposed PEP: New style indexing, was Re: Bug in slice type

2005-08-24 Thread Bryan Olson
Paul Rubin wrote: > Bryan Olson writes: > >> seq[3 : -4] >> >>we write: >> >> seq[3 ; $ - 4] > > > +1 I think you're wrong about the "+1". I defined '$' to stand for the length of the sequence (not the address of the last element). >>When square-brackets appear within other sq

Re: Inheritance problem ?

2005-08-24 Thread tooper
Not always easy to follow but great ! Using __str__ instead of __repr__ makes it work also with old style (thanks to Simon Brunning for suggesting it, and with your link I even now understand why !) -- http://mail.python.org/mailman/listinfo/python-list

Re: global interpreter lock

2005-08-24 Thread Bryan Olson
Mike Meyer wrote: > Bryan Olson writes: > >>Mike Meyer wrote: >> > The rule I follow in choosing my tools is "Use the least complex tool >> > that will get the job done." >> >>Even if a more complex tool could do the job better? > > In that case, the simpler model isn't necessarily getting

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

2005-08-24 Thread Yoav
I am using os.popen3 to call a console process and get its output and stderr. However on Win32 (and not OS X) I also get the Errno message. It's printed to the screen, which I wish to keep clean. How can disable this notification? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Variables in REs

2005-08-24 Thread Yoav
Such a sweet and simple way. Thanks. tooper wrote: > Use os.sep to get / or \ or whatever character used to build pathes on > the os you're working on > -- http://mail.python.org/mailman/listinfo/python-list

Re: Inheritance problem ?

2005-08-24 Thread jitya
The stuff on Descriptor.htm was really good . Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Should I move to Amsterdam?

2005-08-24 Thread Adriaan Renting
Well, I'm not sure if Amsterdam is nice, but the Netherlands is o.k., except for the weather. I'd like to descripbe it as 49 weeks of autumn, 1 week of spring, 1 week of summer, 1 week of winter. Currently my employer only has an opening for a Microwave Antenna designer though, sorry no Python c

Re: how to deal with space between numbers

2005-08-24 Thread bruno modulix
Mohammed Altaj wrote: > > Thanks a lot for your valuable answer, i like the way you code , Thanks. > but i > would like to use my own, so if it is possible for you and if you have > time, please could you fix my code, so that i can do what i want. > Because i am using the this out put to anoth

Re: What's the matter with this code section?

2005-08-24 Thread bruno modulix
Johnny Lee wrote: > Here is the source: > (snip) > class TestCaseTest(TestCase): > def testRunning(self): > print "testRunning in TestCaseTest" > test = WasRun("testMethod") > assert(not test.wasRun) > test.run() > assert(

Re: jython debugger

2005-08-24 Thread Frank LaFond
The PyDev environment (http://pydev.sourceforge.net/) for Eclipse appears to have Jython debug support, though I just tried it now and it did not work for me. The release notes http://pydev.sourceforge.net/features.html seem to suggest it should, so perhaps I just haven't configured something p

Should I move to Amsterdam?

2005-08-24 Thread Wade
http://www.slate.com/id/2124561/entry/2124562/ Nice little series by Seth Stevenson for Americans daydreaming about emigration. Somewhere, anywhere ... maybe Amsterdam? I've never been to the Netherlands myself, but it sounds very civilized. Extra Python connection, besides the obvious one: Is "

Re: where does __class__ come from?

2005-08-24 Thread Adriaan Renting
I did mean the Language reference. chapter "Special method names". It contains a lot of the funky stuff like __dict__ and __getattr__. There is a little info in chapter 3.2 about __class__ : "__class__ is the instance's class." Adriaan Renting| Email: [EMAIL PROTECTED] ASTRON

  1   2   >