Watching serial port activity.

2006-05-29 Thread xkenneth
Hi, I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the transactions occur? I'm trying to reverse engineer a microcontroller serial routine and I'd like to see

Re: Any other config parsing modules besides ConfigParser ?

2006-05-29 Thread skip
Arthur Are there any other good config parser modules for python? I am Arthur looking for something a bit more versatiles than ConfigParser. You'll need to evaluate the candidates, but this might be a useful place to start looking: http://wiki.python.org/moin/ConfigParserShootout

Re: How to use tk.call ?

2006-05-29 Thread James Stroud
[EMAIL PROTECTED] wrote: I can't find how too use tk.call, can anyone give me a clue as to how to solve my problem? py from Tkinter import * py tk = Tk() py tk.tk tkapp object at 0x403f54b8 py tk.tk.call built-in method call of tkapp object at 0x403f54b8 Also, any widget should have a tk

Re: Watching serial port activity.

2006-05-29 Thread Grant Edwards
On 2006-05-30, xkenneth [EMAIL PROTECTED] wrote: I'm writing a couple python applications that use the serial port (RS-232) quite extensively. Is there any way I can monitor all activity on the serial port and have it printed as the transactions occur? I'm trying to reverse engineer a

wait() on Popen4 object from thread?

2006-05-29 Thread Grant Edwards
I'm having problems calling the Popen4 object wait() method from a thread. The folloing program produces an error on some machines (but seems to work on others) --8-- import time import threading import popen2 def monitorThread():

Re: Very good Python Book. Free download : Beginning Python: From Novice to Professional

2006-05-29 Thread John Bokma
Luis M. González [EMAIL PROTECTED] wrote: I didn't know it wasn't a free ebook. I realized it once I downloaded it. But it's such a good book that I decided to buy a hard copy. This way I will support its author, while getting a very good book on Python. :-D Sounds much better. -- John

Re: How to calc easier the long filesize from nFileSizeLow and nFileSizeHigh

2006-05-29 Thread Roger Upole
Shift nFileSizeHigh by 32 and add FileSizeLow. Roger DurumDara [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi ! I get the file datas with FindFilesW. I want to calc the filesize from nFileSizeLow and nFileSizeHigh with easiest as possible, without again calling

Re: Watching serial port activity.

2006-05-29 Thread xkenneth
I'm using linux. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to use tk.call ?

2006-05-29 Thread jerry . levan
self.table.bind(Button-4,self.table.tk.call(self.table._w,'yview','scroll',-5,'units') I haven't used Table, but are you sure that what you are calling self.table here actually has mouse focus? James Yup, I click on the table, and then frantically work the mouse wheel to no effect... Jerry

Weekly Python Patch/Bug Summary

2006-05-29 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 375 open ( -3) / 3264 closed (+26) / 3639 total (+23) Bugs: 910 open ( +3) / 5851 closed (+20) / 6761 total (+23) RFE : 217 open ( -1) / 220 closed ( +3) / 437 total ( +2) New / Reopened Patches __ Minor

Re: TIming

2006-05-29 Thread Tim Roberts
WIdgeteye [EMAIL PROTECTED] wrote: HI, I am trying to write a little program that will run a program on scedule. I am having trouble understanding the datetime, time, sched modules. What I would like is something like this: If datetime = 06-13-2006:18:00:00 Then run this program I am not sure

Re: Ricerca Programmatore Python

2006-05-29 Thread Alex Martelli
Edward Elliott [EMAIL PROTECTED] wrote: Scott David Daniels wrote: I understand there is an Italian-language Python group, but _here_ the language is English, even if you begin by an apology in English. ... In consideration for such people, please limit yourself to English. I doubt

Re: TIming

2006-05-29 Thread WIdgeteye
On Tue, 30 May 2006 04:34:03 +, Tim Roberts wrote: WIdgeteye [EMAIL PROTECTED] wrote: HI, I am trying to write a little program that will run a program on scedule. I am having trouble understanding the datetime, time, sched modules. What I would like is something like this: If datetime =

Re: generating random passwords ... for a csv file with user details

2006-05-29 Thread Jon Clements
Something like: import csv in_csv=csv.reader( file('your INPUT filenamehere.csv') ) out_csv=csv.writer( file('your OUPUT filenamehere.csv','wb') ) ## If you have a header record on your input file, then out_csv.writerow( in_csv.next() ) ## Iterate over your input file for row in in_csv: # Row

Re: Python for my mum

2006-05-29 Thread carol . chisholm
Many thanks for the helpful links. I don't think she's going to start programming, but at least she can run her French grammar program. -- http://mail.python.org/mailman/listinfo/python-list

Re: Large Dictionaries

2006-05-29 Thread Thomas Ganss
Klaas schrieb: 4. Insert your keys in sorted order. This advice is questionable - it depends on the at least on the db vendor and probably sometimes on the sort method, if inserting pre-sorted values is better. My gut feeling on this matter is: IF the insert times of pre-sorted values is far

deleting item from ListCtrl by pop-up menu

2006-05-29 Thread sendhil kumar
hi all, i need more information on the EVT_LIST_DELETE_ITEM() for a list ctrl! iam not able to delete the selected list item from the popup menu...below i have given the part of the code ... im using popup menu... wher am i wrong any suggestions wud b of great help...

Need C# Coding for MD5 Algorithm...

2006-05-29 Thread Charleees
Hi all, I need C# code for Implementing MD5 Algorithm.. Hope all would have heard of MD5 Algorith... Does any one have the C# coding for that Algorithm.. please Send... ITs URgent. Thanks In Advance to all... With Regards, Sanjay.C --

Re: HTMLParser chokes on bad end tag in comment

2006-05-29 Thread Fredrik Lundh
Rene Pijlman wrote: The code below results in an exception (Python 2.4.2): HTMLParser.HTMLParseError: bad end tag: /foo' + 'bar, at line 4, column 6 Should it? The end tag it chokes on is in comment, isn't it? no. STYLE and SCRIPT elements contain character data, not parsed character

Re: Need C# Coding for MD5 Algorithm...

2006-05-29 Thread Ravi Teja
I need C# code for Implementing MD5 Algorithm. So ask in a C# group. Python's is here http://docs.python.org/lib/module-md5.html please Send... ITs URgent http://www.catb.org/~esr/faqs/smart-questions.html#urgent -- http://mail.python.org/mailman/listinfo/python-list

Re: html 2 plain text

2006-05-29 Thread garabik-news-2005-05
robin [EMAIL PROTECTED] wrote: hi, i remember seeing this simple python function which would take raw html and output the content (body?) of the page as plain text (no .. tags etc) i have been looking at htmllib and htmlparser but this all seems to complicated for what i'm looking for. i

Re: HTMLParser chokes on bad end tag in comment

2006-05-29 Thread Rene Pijlman
Fredrik Lundh: Rene Pijlman: [end tag in html comment in script element] The end tag it chokes on is in comment, isn't it? no. STYLE and SCRIPT elements contain character data, not parsed character data, so comments are treated as characters, and the first / ends the element. Ah, I see. I'll

saving settings

2006-05-29 Thread SuperHik
Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: saving settings

2006-05-29 Thread aum
On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... thanks! Yikes!!! I'd strongly suggest you

Last Call - proposals for talks in the business and application track at EP 2006

2006-05-29 Thread GHUM
In 2006, EuroPython will be from the 3rd to the 5th of July at CERN, near Geneva in Switzerland. In business applications we want to hear about how you made your fortune with Python. Show us YOUR interesting released Python applications. Describe your fabulous business models with Open Source

Re: HTMLParser chokes on bad end tag in comment

2006-05-29 Thread Miki
Hello Rene, You can also check out BeautifulSoup (http://www.crummy.com/software/BeautifulSoup/) which is less strict than the regular HTML parser. HTH, Miki http://pythonwise.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.count() as built-in

2006-05-29 Thread [EMAIL PROTECTED]
Oops. The messed-up version wasn't supposed to be messed-up. Two mistakes on one line. Which kinda proves my point :) I'd much rather use the count version than (1) or (2). (1) has the problem of having incorrect values the rest of the time in the loop and (2) is going to an extreme just to avoid

Re: html 2 plain text

2006-05-29 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: text=re.sub(r'(?s)\.+?\', '', html_text) (this will keep html entities, though) here's a variation that handles that too: http://effbot.org/zone/re-sub.htm#strip-html /F -- http://mail.python.org/mailman/listinfo/python-list

Any other config parsing modules besides ConfigParser ?

2006-05-29 Thread Arthur Pemberton
Are there any other good config parser modules for python? I am looking for something a bit more versatiles than ConfigParser. Thank you. -- To be updated... -- http://mail.python.org/mailman/listinfo/python-list

Re: itertools.count() as built-in

2006-05-29 Thread [EMAIL PROTECTED]
Zipping an xrange? I'm having trouble visualizing how you do that to avoid x*i+y. -Janto -- http://mail.python.org/mailman/listinfo/python-list

Re: dynamically loaded libraries

2006-05-29 Thread Diez B. Roggisch
mhearne808 wrote: I have a question about how dynamically loaded C++ modules work, which I will phrase as a hypothetical scenario involving the Numeric module. Please understand that I don't really care about Numeric per se, it's just a useful example of a module that defines a generally

Re: Any other config parsing modules besides ConfigParser ?

2006-05-29 Thread Paddy
ConfigObj? http://www.voidspace.org.uk/python/configobj.html - Pad. -- http://mail.python.org/mailman/listinfo/python-list

RE: Quote ? [was: John Bokma harassment]

2006-05-29 Thread Walter S. Leipold
Chris Uppal ([EMAIL PROTECTED]) wrote: Geoffrey Summerhayes wrote: After you kill Navarth, will it be nothing but gruff and deedle with a little wobbly to fill in the chinks? Where does that come from ? It sounds like a quote, and Navarth is a Jack Vance name (and /what/ a character),

Re: HTMLParser chokes on bad end tag in comment

2006-05-29 Thread Rene Pijlman
Miki: You can also check out BeautifulSoup (http://www.crummy.com/software/BeautifulSoup/) which is less strict than the regular HTML parser. Yes, thanks. Ik this case it was my sitechecker which checks for syntax and broken links, so it was supposed to find the syntax error. BeautifulSoup is not

Re: sort a dictionary by keys in specific order

2006-05-29 Thread Wolfgang Grafen
spohle wrote: hi i have a normal dictionary with key and value pairs. now i wanna sort by the keys BUT in a specific order i determine in a list !? any ideas dic = {'key1':'value1', 'key2':'value2', 'key3':'value3'} list = [key2, key3, key1] You could use the seqdict package at

Re: why not in python 2.4.3

2006-05-29 Thread Rocco
Also with ascii the function does not work. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to clear up a List in python?

2006-05-29 Thread Antoon Pardon
Op 2006-05-26, Steve Holden schreef [EMAIL PROTECTED]: vbgunz wrote: I guess Fredrik's message was more along the lines of ``don't try to help others after a week or two toying with the language because you might be offering disservice, despite your good intentions; leave this to more experienced

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Max M
Ben Finney wrote: anya [EMAIL PROTECTED] writes: Acctualy there is a solution: see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473810 Again, sending anything but plain text as the message body ensures that your message is unreadable to a large number of people using a

Ricerca Programmatore Python

2006-05-29 Thread Nic
Please accept my apologies for the use of the Italian language. * Salve a tutti, Scrivo per informarvi di una proposta di collaborazione. Sto cercando un programmatore per la realizzazione di un mini-software utile per analizzare e rappresentare multigrafi. Si richiede una ottima

Re: saving settings

2006-05-29 Thread SuperHik
aum wrote: On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... thanks! Yikes!!! I'd strongly

Re: Running Python scripts under a different user

2006-05-29 Thread Laszlo Nagy
From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs. This way you can develop your own security system, and restrict access to specific files/programs. You can write tools that can connect to your service.

summarize text

2006-05-29 Thread robin
hello list, does anyone know of a library which permits to summarise text? i've been looking at nltk but haven't found anything yet. any help would be very welcome. thank you all in advance, robin -- http://mail.python.org/mailman/listinfo/python-list

Re: John Bokma harassment

2006-05-29 Thread Boris Borcic
[EMAIL PROTECTED] wrote: We seem to have strayed a long way from Voltaire's I do not agree with what you say, but I will defend to the death your right to say it., but that was of course the age of enlightenment. Obviously this wisdom is getting stale and should be updated to something like

Re: saving settings

2006-05-29 Thread Diez B. Roggisch
SuperHik wrote: aum wrote: On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... thanks!

Re: (mostly-)POSIX regular expressions

2006-05-29 Thread Sébastien Boisgérault
John Machin wrote: On 29/05/2006 7:46 AM, Sébastien Boisgérault wrote: Paddy a écrit : maybe this: http://www.pcre.org/pcre.txt and ctypes might work for you? Well finally, it doesn't fit. What I need is a longest match policy in patterns like (a)|(b)|(c) and NOT a left-to-right

Re: John Bokma harassment

2006-05-29 Thread ilitzroth
There is so much noise we can't hear each other, but I will defend to the death a chance to get heard for whatever you might have to say that's intelligent (while not necessarily from your own mouth). You write a much cooler quote! Besides, it is not clear that Voltaire really said that. No?

Re: why not in python 2.4.3

2006-05-29 Thread Serge Orlov
Rocco wrote: Also with ascii the function does not work. Well, at least you fixed misconfiguration ;) Googling for 1F8B (that's two first bytes from your strange python 2.4 result) gives a hint: it's a beginning of gzip stream. Maybe urllib2 in python 2.4 reports to the server that it supports

Re: saving settings

2006-05-29 Thread Serge Orlov
SuperHik wrote: aum wrote: On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... thanks!

os.tilmes() problem

2006-05-29 Thread Anthony
i have a problem with the os.times() command, on different Python versions, i get different printout: Server1# python Python 2.3.4 (#1, Feb 2 2005, 11:44:13) [GCC 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)] on linux2 Type help, copyright, credits or license for more information. import time import

Re: summarize text

2006-05-29 Thread Tim Chase
does anyone know of a library which permits to summarise text? i've been looking at nltk but haven't found anything yet. any help would be very welcome. Well, summarizing text is one of those things that generally takes a brain-cell or two to do. Automating the process would require doing

Re: deleting item from ListCtrl by pop-up menu

2006-05-29 Thread Scott David Daniels
sendhil kumar wrote: hi all, i need more information on the EVT_LIST_DELETE_ITEM() for a list ctrl! iam not able to delete the selected list item from the popup menu...below i have given the part of the code ... im using popup menu... wher am i wrong any suggestions wud b of great

Re: Running Python scripts under a different user

2006-05-29 Thread Bernard Lebel
Thanks Laszlo, I'll check it out. Bernard On 5/29/06, Laszlo Nagy [EMAIL PROTECTED] wrote: From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs. This way you can develop your own security system, and

Re: John Bokma harassment

2006-05-29 Thread Pisin Bootvong
Boris Borcic wrote: [EMAIL PROTECTED] wrote: We seem to have strayed a long way from Voltaire's I do not agree with what you say, but I will defend to the death your right to say it., but that was of course the age of enlightenment. Obviously this wisdom is getting stale and should be

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Scott David Daniels
Max M wrote: 90% of users are non-technical users who use standard email readers, that can easily read html messages. In my experience the kind of user that receives emails with html and pictures often prefer it that way. So why bother with the lecture? I cannot remember when I have

Re: Large Dictionaries

2006-05-29 Thread Scott David Daniels
Thomas Ganss wrote: Klaas schrieb: 4. Insert your keys in sorted order. This advice is questionable - My gut feeling on this matter is: IF the insert times of pre-sorted values is far better than the times of unsorted values, there is a chance that the resulting tree is unbalanced:

Re: Running Python scripts under a different user

2006-05-29 Thread Laurent Pointal
Bernard Lebel a écrit : On 5/26/06, Laszlo Nagy [EMAIL PROTECTED] wrote: For Windows, you can use the 'runas.exe' program. But it requires a password too. From what you wrote, I think that you need to change architecture. You should write your own service rather than write tricky programs.

Re: saving settings

2006-05-29 Thread SuperHik
Diez B. Roggisch wrote: SuperHik wrote: aum wrote: On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it

Re: saving settings

2006-05-29 Thread Diez B. Roggisch
that doesn't shock me :p anyway you're talking about instalation while I'm talkig about single standalone file. Besides, if it was neccessary I bet MS would make that option (and it wouldn't be a problem since installation is not done from a sinlge file but from the CD (should be CD-RW in

Re: Ricerca Programmatore Python

2006-05-29 Thread Scott David Daniels
Nic wrote: Please accept my apologies for the use of the Italian language. ... lots of Italian ... To be convivial it is not enough to simply begin by acknowledging that you know the rule you are violating and then violating it. You would not like: Please accept my apologies for a

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Max M
Scott David Daniels wrote: Max M wrote: 90% of users are non-technical users who use standard email readers, that can easily read html messages. In my experience the kind of user that receives emails with html and pictures often prefer it that way. So why bother with the lecture? I

Re: unexpected behaviour for python regexp: caret symbol almost useless?

2006-05-29 Thread conan
Thank you, i have read this but somehow a missed it when the issue arose. -- http://mail.python.org/mailman/listinfo/python-list

Re: unexpected behaviour for python regexp: caret symbol almost useless?

2006-05-29 Thread conan
Thank you Paul. Since the only thing i'm doing is extracting this fields, and have no plans to include other stuff, a regexp is fine. However i will take into account 'pyparsing' when i need to do more complex parsing. As you can see in the example i send, i was trying to get info from a glade

Re: Ricerca Programmatore Python

2006-05-29 Thread Boris Borcic
Nic wrote: Please accept my apologies for the use of the Italian language. accepted -- http://mail.python.org/mailman/listinfo/python-list

Re: why not in python 2.4.3

2006-05-29 Thread Rocco
Thanks Serge. It's a gzip string. So the code is import urllib2 def takefeed(url): request=urllib2.Request(url) request.add_header('User-Agent', 'Mozilla/4.0 (compatible; MSIE 5.5;Windows NT') opener = urllib2.build_opener() data=opener.open(request).read()

Re: summarize text

2006-05-29 Thread gene tani
robin wrote: hello list, does anyone know of a library which permits to summarise text? i've been looking at nltk but haven't found anything yet. any help would be unclear what you're asking, maybe look at: http://www.cs.waikato.ac.nz/~ml/weka/index.html

omniorbpy: problems sending float values

2006-05-29 Thread Juergen
hi, I've got a problem sending floating point values to an corba server. With other datatyes like short or string it works fine. So having this idl file : module Example{ interface User{ void setV( in float x ); }; interface Target{

Re: omniorbpy: problems sending float values

2006-05-29 Thread Diez B. Roggisch
Juergen wrote: hi, I've got a problem sending floating point values to an corba server. With other datatyes like short or string it works fine. snip/ It works fine for me with floats, too. You'd better ask this on the omniorb ML, and don't forget to give some more details on the python

Re: itertools.count() as built-in

2006-05-29 Thread Duncan Smith
[EMAIL PROTECTED] wrote: Zipping an xrange? I'm having trouble visualizing how you do that to avoid x*i+y. -Janto Something like, lis = ['a', 'b', 'c', 'd'] y = 3 i = 7 for n, item in zip(xrange(y, len(lis)*i+y, i), lis): print n, item 3 a 10 b 17 c 24 d Duncan --

How to calc easier the long filesize from nFileSizeLow and nFileSizeHigh

2006-05-29 Thread DurumDara
Hi ! I get the file datas with FindFilesW. I want to calc the filesize from nFileSizeLow and nFileSizeHigh with easiest as possible, without again calling os.getsize(). How to I do it ? I need good result ! Thanx for help: dd -- http://mail.python.org/mailman/listinfo/python-list

Re: Any other config parsing modules besides ConfigParser ?

2006-05-29 Thread Cameron Laird
In article [EMAIL PROTECTED], Paddy [EMAIL PROTECTED] wrote: ConfigObj? http://www.voidspace.org.uk/python/configobj.html . . . Depending on what the original questioner meant by general, I'm always happy to recommend Python

Re: access serial port in python

2006-05-29 Thread Cameron Laird
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: hi i hav written a code in python to send an SMS from a nokia 3310 connected to my PC... i wanted to receive a msg on my PC. In order to do so, the PC must know when it has to read data frm the serial port ...thus an interrupt must be

Re: itertools.count() as built-in

2006-05-29 Thread Alex Martelli
Duncan Smith [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: Zipping an xrange? I'm having trouble visualizing how you do that to avoid x*i+y. -Janto Something like, lis = ['a', 'b', 'c', 'd'] y = 3 i = 7 for n, item in zip(xrange(y, len(lis)*i+y, i), lis):

Re: omniorbpy: problems sending float values

2006-05-29 Thread SuperHik
Juergen wrote: hi, I've got a problem sending floating point values to an corba server. With other datatyes like short or string it works fine. So having this idl file : module Example{ interface User{ void setV( in float x ); }; interface

Re: saving settings

2006-05-29 Thread Grant Edwards
On 2006-05-29, Diez B. Roggisch [EMAIL PROTECTED] wrote: It _might_ come as a shock to you, but when you install e.g. Word on another computer, there aren't any documents coming with it. Documents and settings aren't quite the same thing, but it's a valid point. Especially not the ones you

Is anybody knows about a linkable, quick MD5/SHA1 calculator library ?

2006-05-29 Thread DurumDara
Hi ! I need to speedup my MD5/SHA1 calculator app that working on filesystem's files. I use the Python standard modules, but I think that it can be faster if I use C, or other module for it. I use FSUM before, but I got problems, because I move into DOS area, and the parameterizing of outer

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Ten
On Monday 29 May 2006 11:28, Max M wrote: Ben Finney wrote: anya [EMAIL PROTECTED] writes: Acctualy there is a solution: see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473810 Again, sending anything but plain text as the message body ensures that your message is unreadable

Unlimited Free Music Downloads WOW! 100% Legal

2006-05-29 Thread BlackPassion39
-- http://mail.python.org/mailman/listinfo/python-list

Very good Python Book. Free download : Beginning Python: From Novice to Professional

2006-05-29 Thread Kriv
Hi friends, I found this eBook on the web. This book is very very good. I refer to them. http://rapidshare.de/files/21704644/Apress.Beginning.Python.From.Novice.to.Professional.Sep.2005.rar.html Thx John -- http://mail.python.org/mailman/listinfo/python-list

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Edward Elliott
Ten wrote: Sorry for the rant, good luck to the guy if he's solved his problem, but damn, that 90% so let's not bother doing things properly stuff makes my blood boil. You must really hate browsing the web then. :) -- Edward Elliott UC Berkeley School of Law (Boalt Hall) complangpython at

Re: Finding a lost PYTHONPATH with find

2006-05-29 Thread Edward Elliott
John J. Lee wrote: find / -maxdepth 3 -size -100k -type f -exec grep -sli pythonpath '{}' \; The minus in '-100k' (meaning less than 100k) seems to be undocumented, at least on my system. It should be standard in linux man pages, can't speak for other unices: TESTS Numeric

Re: summarize text

2006-05-29 Thread Barry
On 29 May 2006 07:52:33 -0700, gene tani [EMAIL PROTECTED] wrote: robin wrote: hello list, does anyone know of a library which permits to summarise text? i've been looking at nltk but haven't found anything yet. any help would beunclear what you're asking, maybe look at:

Re: itertools.count() as built-in

2006-05-29 Thread Raymond Hettinger
[EMAIL PROTECTED] wrote: Is there any chance of itertools.count() ever becoming one of the built-in functions? That's unlikely. The goal is to have fewer builtins rather than more. Utility and frequency are not the only considerations; otherwise glob.glob, sys.stderr, print.pprint, copy.copy,

Re: HTMLParser chokes on bad end tag in comment

2006-05-29 Thread Edward Elliott
Fredrik Lundh wrote: Should it? The end tag it chokes on is in comment, isn't it? no. STYLE and SCRIPT elements contain character data, not parsed character data, so comments are treated as characters, and the first / ends the element. Rather than take your word for it, I checked the W3C

Re: John Bokma harassment

2006-05-29 Thread John Bokma
[EMAIL PROTECTED] wrote: There is so much noise we can't hear each other, but I will defend to the death a chance to get heard for whatever you might have to say that's intelligent (while not necessarily from your own mouth). You write a much cooler quote! Besides, it is not clear that

Re: Very good Python Book. Free download : Beginning Python: From Novice to Professional

2006-05-29 Thread glutepuppet
On 29 May 2006 10:52:13 -0700, Kriv [EMAIL PROTECTED] wrote: Hi friends, I found this eBook on the web. This book is very very good. I refer to them. http://rapidshare.de/files/21704644/Apress.Beginning.Python.From.Novice.to.Professional.Sep.2005.rar.html Thx John WOW! What a great book!

Re: Very good Python Book. Free download : Beginning Python: From Novice to Professional

2006-05-29 Thread John Bokma
Kriv [EMAIL PROTECTED] wrote: Hi friends, I found this eBook on the web. This book is very very good. I refer to them. I doubt Apress will be happy with this. Don't post garbage like this, since instead of helping, you're doing the opposite. People interested in copyright infringement

Re: Ricerca Programmatore Python

2006-05-29 Thread Edward Elliott
Scott David Daniels wrote: I understand there is an Italian-language Python group, but _here_ the language is English, even if you begin by an apology in English. ... In consideration for such people, please limit yourself to English. I doubt he'll ever see your reprimand, looks like a

Re: Very good Python Book. Free download : Beginning Python: From Novice to Professional

2006-05-29 Thread nataraj
i won't have a free and guileless mind to code if i do this. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is anybody knows about a linkable, quick MD5/SHA1 calculator library ?

2006-05-29 Thread Fredrik Lundh
DurumDara wrote: I use the Python standard modules, but I think that it can be faster if I use C, or other module for it. Python's MD5 and SHA-1 code is written in C, and is quite fast: python -m timeit -s import sha; s = sha.new(); S = '*'*100 s.update(S) 100 loops, best of 3: 12.2

Re: HTMLParser chokes on bad end tag in comment

2006-05-29 Thread Fredrik Lundh
Edward Elliott wrote: Guess you learn something new every day. Too bad there's so much illegal code in the wild. :( if more people learned something new every day, the wild would look a lot different. /F -- http://mail.python.org/mailman/listinfo/python-list

create a text file

2006-05-29 Thread Stan Cook
I'm writing a script to list all of my music files' id3 tags to a comma delimited file. The only part I'm missing seems like it should be the simplest. I haven't used Python for the last couple of years. My question is this: When I use os.open(file_variable,w), I get an error message,

Re: create a text file

2006-05-29 Thread Fredrik Lundh
Stan Cook wrote: I'm writing a script to list all of my music files' id3 tags to a comma delimited file. The only part I'm missing seems like it should be the simplest. I haven't used Python for the last couple of years. My question is this: When I use os.open(file_variable,w), I get

Re: create a text file

2006-05-29 Thread Bruno Desthuilliers
Stan Cook a écrit : I'm writing a script to list all of my music files' id3 tags to a comma delimited file. The only part I'm missing seems like it should be the simplest. I haven't used Python for the last couple of years. My question is this: When I use os.open(file_variable,w), I

Re: starting some Python script from C#

2006-05-29 Thread tatamata
Hello. It seems that the following code works. And it seems that Process object can automatically run script by using python.exe, but only if standard output is not redirected... /* * Created by SharpDevelop. * User: Zlatko * Date: 28.5.2006 * Time: 9:38 * * To change this template use

Re: Need C# Coding for MD5 Algorithm...

2006-05-29 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Charleees wrote: I need C# code for Implementing MD5 Algorithm.. Hope all would have heard of MD5 Algorith... Does any one have the C# coding for that Algorithm.. please Send... ITs URgent. There's one in `System.Security.Cryptography`, no need to implement your own.

Another option - Re: saving settings

2006-05-29 Thread aum
On Mon, 29 May 2006 09:05:36 +0200, SuperHik wrote: Hi, I was wondering how to make a single .exe file, say some kind od clock, and be able to save some settings (alarm for example) into the same file? Basically make code rewrite it self... thanks! Another option I thought of: - get

Re: send an email with picture/rich text format in the body

2006-05-29 Thread Ben Finney
Max M [EMAIL PROTECTED] writes: Ben Finney wrote: anya [EMAIL PROTECTED] writes: Acctualy there is a solution: see http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473810 Again, sending anything but plain text as the message body ensures that your message is

Re: Beginner Python OpenGL difficulties

2006-05-29 Thread Mike C. Fletcher
[EMAIL PROTECTED] wrote: I'm beginning learning Python and OpenGL in Python. Python fine. But difficulties with OpenGL; presumably with the installation of OpenGL. OS = Linux FC5. Python program gl_test.py: from OpenGL.GLUT import * from OpenGL.GLU import * from OpenGL.GL import *

How to use tk.call ?

2006-05-29 Thread jerry . levan
Hi, I am trying to port one of my Tcl/Tk apps to Python ( 2.4.2/3). One task is to try to be able to use my wheel mouse to scroll a Tktable object. The tcl code looks like: #Support the MouseWheel bind $ui_vars(table) Button-4 { $ui_vars(table) yview scroll -5 units } bind

Re: Need C# Coding for MD5 Algorithm...

2006-05-29 Thread Edward Elliott
Dennis Lee Bieber wrote: As for the algorithm... http://www.faqs.org/rfcs/rfc1321.html Implement per that spec. It even includes a C-language implementation that you might be able to bastardize into C# Please don't. Crypto algorithms are hard enough to implement correctly as it is. Leave

  1   2   >