Re: sending emails using python

2006-09-07 Thread Sybren Stuvel
sridhar enlightened us with: > iam having user account on an exchangeserver. > with that can i send an email using python? > > if iam using the following code iam getting error > > > fromAddress = '[EMAIL PROTECTED]' > toAddress = '[EMAIL PROTECTED]' > msg = "Subject: Hello\n\nThis is the body of t

Question about subclassing and overriding methods

2006-09-07 Thread Frank Millman
Hi all Assume a simple class - class Test(object): def __init__(self,x): self.x = x def getx(self): print self.x Test(1).getx() Test(2).getx() Test(3).getx() As expected, the results are 1,2,3 Assume a slight variation, where given a particular condition I want a partic

Re: python vs java

2006-09-07 Thread Bruno Desthuilliers
Jason wrote: > Bruno Desthuilliers wrote: >> With a GUI ? If so, you probably want to check out wxPython or PyGTK >> (wxPython will also buy you MacOS X IIRC, and wil perhaps be easier to >> install on Windows). > > Just a warning: wxPython does operate slightly differently between Mac > OS X, Lin

Re: Question about subclassing and overriding methods

2006-09-07 Thread Frank Millman
Frank Millman wrote: > Hi all > > Assume a simple class - > > class Test(object): > def __init__(self,x): > self.x = x > def getx(self): > print self.x > > Test(1).getx() > Test(2).getx() > Test(3).getx() > > As expected, the results are 1,2,3 > > Assume a slight variation,

Re: Question about subclassing and overriding methods

2006-09-07 Thread Bruno Desthuilliers
Frank Millman wrote: > Hi all > > Assume a simple class - > > class Test(object): > def __init__(self,x): > self.x = x > def getx(self): > print self.x > > Test(1).getx() > Test(2).getx() > Test(3).getx() > > As expected, the results are 1,2,3 > > Assume a slight variat

Re: threading support in python

2006-09-07 Thread Antoon Pardon
On 2006-09-06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Paul Rubin wrote: >> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: >> > (1) I think is here to stay, if you're going to tell programmers that >> > their destructors can't make program-visible changes (e.g. closing the >> > database con

Re: sending emails using python

2006-09-07 Thread Tim Williams
On 07/09/06, Sybren Stuvel <[EMAIL PROTECTED]> wrote: > sridhar enlightened us with: > > iam having user account on an exchangeserver. > > with that can i send an email using python? > > > > if iam using the following code iam getting error > > > > Traceback (most recent call last): > > File > >

Convert to big5 to unicode

2006-09-07 Thread GM
Dear all, Could you all give me some guide on how to convert my big5 string to unicode using python? I already knew that I might use cjkcodecs or python 2.4 but I still don't have idea on what exactly I should do. Please give me some sample code if you could. Thanks a lot Regards, Gary -- http

Re: Question about subclassing and overriding methods

2006-09-07 Thread Frank Millman
Bruno Desthuilliers wrote: > Frank Millman wrote: > > This "replacement" happens at instance initialisation time - ie, after > the class object have been created. If you don't want this to happen, > either skip the call to Test.__init__ in Test2.__init__, or make this > call with False as second p

Re: string search and modification

2006-09-07 Thread Jim Britain
On 06 Sep 2006 13:23:43 -0700, Paul Rubin wrote: >Jim Britain <[EMAIL PROTECTED]> writes: >> I would like to match [123.123.123.123] (including the qualifying >> brackets), but be able to simply return the contents, without the >> brackets. > > > >>> p=r'\[((\d{1,3}\.){3

Re: getting quick arp request

2006-09-07 Thread Ben Sizer
kondal wrote: > > Something is limiting the TCP/IP connections from my python program at > > 10 maximum at the same time. > > I do not see this limit in my code. > > I did not bumped over the 4226 error. > > > > => Where does this limit come from. > > => How can I overcome it. > > You can just edit

de/-encoding problem?

2006-09-07 Thread seppl43
Hello, I'm writing a SOAP-client using SOAPpy for a JAVA-Application (JIRA). When I try to send attachments, the incoming files are not decoded correctly. They have about 1.5% more bytes. What I'm doing is this: file_obj = file(,'rb') cont = file_obj.read() cont64 = base64.encodestring(cont) cha

Re: sending emails using python

2006-09-07 Thread Steve Holden
Sybren Stuvel wrote: > sridhar enlightened us with: > >>iam having user account on an exchangeserver. >>with that can i send an email using python? >> >>if iam using the following code iam getting error >> >> >>fromAddress = '[EMAIL PROTECTED]' >>toAddress = '[EMAIL PROTECTED]' >>msg = "Subject: H

Re: No ValueError for large exponents?

2006-09-07 Thread Duncan Booth
Robin Becker <[EMAIL PROTECTED]> wrote: > enigmadude wrote: >> As many have heard, IronPython 1.0 was released. When I was looking >> through the listed differences between CPython and IronPython, the >> document mentioned that using large exponents such as 10 ** >> 735293857239475 will cause CPyt

Re: No ValueError for large exponents?

2006-09-07 Thread Georg Brandl
enigmadude wrote: > As many have heard, IronPython 1.0 was released. When I was looking > through the listed differences between CPython and IronPython, the > document mentioned that using large exponents such as 10 ** > 735293857239475 will cause CPython to hang, whereas IronPython will > raise a

Re: IronPython 1.0 released today!

2006-09-07 Thread Super Spinner
Congrats on reaching 1.0, Jim. BTW, here's a John Udell screencast of Jim demo'ing IronPython. Among other things, it shows IronPython integrating with Visual Studio, Monad, C#, VB.NET, and WPF. It's a great video. http://weblog.infoworld.com/udell/2006/08/30.html#a1515 -- http://mail.python.o

Re: 22, invalid agument error

2006-09-07 Thread Justin Ezequiel
Infinite Corridor wrote: > Justin Ezequiel wrote: > > > > tried sockobj.bind(('127.0.0.1',40007)) and did not get an error > > I didn't get an error either, but the whole thing hangs up, and I am > forced to abort the program. This has happend quite a few times > already. > Did it work for you norm

Re: Convert to big5 to unicode

2006-09-07 Thread xiejw
Install the codecs. In Debain, you can do : apt-get install python-cjkcodecs Then, it is easy to encode ( I use 'gb2312' ) : str = '我们' u = unicode(str,'gb2312') The convertion is done and you can get the string of UTF-8: str_utf8 = u.encode("utf-8") You can get the original string: str_gb

Re: CONSTRUCT -

2006-09-07 Thread Georg Brandl
Steve Holden wrote: >> I am not a (python) domain expert. >> >> Thus I am asking here for available standard-solutions, before I >> implement an own solution. >> > There is no standard solution for the problem you mention. Because it's not a problem for most people ;) Georg -- http://mail.pyt

Accessing Add/Remove Programs Details

2006-09-07 Thread Phoe6
Hi all, I have to uninstall an application and I don't find the uninstaller, the option available to me is to access Add/Remove Programs, select the application and remove from there. I am trying to automate this task using Python: 1) Get the Application Name 2) Access the Add/Remove Program det

Re: [ANN] IronPython 1.0 released today!

2006-09-07 Thread Chris
Diez B. Roggisch wrote: > Chris wrote: > >> Jim Hugunin wrote: >>> I'm extremely happy to announce that we have released IronPython 1.0 >>> today! >>> http://www.codeplex.com/IronPython >> >> >> I'm no code guru but it sounds interesting. So can I import numpy, >> scipy, matplotlib, wxpython etc

RE: Accessing Add/Remove Programs Details

2006-09-07 Thread Tim Golden
[Phoe6] | I have to uninstall an application and I don't find the uninstaller, | the option available to me is to access Add/Remove Programs, | select the | application and remove from there. | | I am trying to automate this task using Python: | 1) Get the Application Name | 2) Access the Add/R

Freetype 2 Bindings

2006-09-07 Thread Leon
Hi, Has anybody experimented with this python binding for Freetype2 (http://www.satzbau-gmbh.de/staff/abel/ft2/index.html) ? I'm hoping to learn more about using text in pyOpenGl by creating textures from glyphs generated by Freetype2. I downloaded and installed the bindings, and with the download

help with unicode email parse

2006-09-07 Thread neoedmund
i want to get the subject from email and construct a filename with the subject. but tried a lot, always got error like this: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 4: ordinal not in range(128) msg = email.message_from_string( text ) title = decode_hea

Re: getting quick arp request

2006-09-07 Thread Steve Holden
Ben Sizer wrote: > kondal wrote: > >>>Something is limiting the TCP/IP connections from my python program at >>>10 maximum at the same time. >>>I do not see this limit in my code. >>>I did not bumped over the 4226 error. >>> >>>=> Where does this limit come from. >>>=> How can I overcome it. >> >>

Re: sending emails using python

2006-09-07 Thread Max M
sridhar wrote: > iam having user account on an exchangeserver. > with that can i send an email using python? > > if iam using the following code iam getting error > > > fromAddress = '[EMAIL PROTECTED]' > toAddress = '[EMAIL PROTECTED]' > msg = "Subject: Hello\n\nThis is the body of the message.

Re: help with unicode email parse

2006-09-07 Thread Diez B. Roggisch
neoedmund schrieb: > i want to get the subject from email and construct a filename with the > subject. > but tried a lot, always got error like this: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 4: > ordinal not in range(128) > > > msg = email.message_from_string(

Re: getting quick arp request

2006-09-07 Thread Richard Brodie
"Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Is it relevant to point out that the ARP protocol is a connectionless > network-layer > protocol. Not really, since the program uses normal TCP socket connections. The feature is working exactly as designed - to slow

Re: sending emails using python

2006-09-07 Thread Steve Holden
Max M wrote: > sridhar wrote: > >>iam having user account on an exchangeserver. >>with that can i send an email using python? >> >>if iam using the following code iam getting error >> >> >>fromAddress = '[EMAIL PROTECTED]' >>toAddress = '[EMAIL PROTECTED]' >>msg = "Subject: Hello\n\nThis is the bo

Re: getting quick arp request

2006-09-07 Thread Steve Holden
Richard Brodie wrote: > "Steve Holden" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > >>Is it relevant to point out that the ARP protocol is a connectionless >>network-layer >>protocol. > > > Not really, since the program uses normal TCP socket connections. > The feature i

Re: Convert to big5 to unicode

2006-09-07 Thread John Machin
xiejw topposted: > Install the codecs. In Debain, you can do : > apt-get install python-cjkcodecs With Windows & 2.4, no extra installation step is required. | Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32 | >>> bc = '\xb1i' | >>> unicode(bc, 'big5') | u'\u5f35'

Re: sending emails using python

2006-09-07 Thread Sybren Stuvel
Steve Holden enlightened us with: > This is untrue for the Python smtplib, though correct according to > the RFCs. The SMTP.data() method uses a locally-declared function > called quotedata() to ensure the correct line endings, so using "\n" > will result in the same message as using "\r\n". Ah, w

Re: sending emails using python

2006-09-07 Thread Sybren Stuvel
Tim Williams enlightened us with: > Can you send email via it using outlook express or a similar > POP3/IMAP mail client? Wouldn't you use a SMTP client to send email? Sybren -- Sybren Stüvel Stüvel IT - http://www.stuvel.eu/ -- http://mail.python.org/mailman/listinfo/python-list

Re: help with unicode email parse

2006-09-07 Thread John Machin
neoedmund wrote: > i want to get the subject from email and construct a filename with the > subject. > but tried a lot, always got error like this: > UnicodeDecodeError: 'ascii' codec can't decode byte 0xe9 in position 4: > ordinal not in range(128) > > > msg = email.message_from_string( text

Re: string search and modification

2006-09-07 Thread John Machin
Jim Britain wrote: > > Final integration: > > def identifyHost(self): > for line in self.fileContents: > if re.search("throttling", line.lower()): > p=r'\[((\d{1,3}\.){3}\d{1,3})\]' > ip=re.search(p,line) A prudent pessimist might test

Re: sending emails using python

2006-09-07 Thread Brendon Towle
On Sep 7, 2006, at 3:50 AM, "sridhar" <[EMAIL PROTECTED]>wrote: > iam having user account on an exchangeserver. > with that can i send an email using python? > > if iam using the following code iam getting error > > > fromAddress = '[EMAIL PROTECTED]' > toAddress = '[EMAIL PROTECTED]' > msg =

Re: sending emails using python

2006-09-07 Thread Tim Williams
On 07/09/06, Sybren Stuvel <[EMAIL PROTECTED]> wrote: > Tim Williams enlightened us with: > > Can you send email via it using outlook express or a similar > > POP3/IMAP mail client? > > Wouldn't you use a SMTP client to send email? Outlook Express *is* a mail client that uses SMTP as the outbound

Re: IronPython on Mono howto

2006-09-07 Thread Nick Craig-Wood
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Okay, here we go: [snip] Thanks for those good instructions - they worked well! I tried running a test program under mono/linux. I found I needed to add import sys sys.path.append("/usr/lib/python2.4") As per the FAQ to the code. Setting thi

Re: getting quick arp request

2006-09-07 Thread seb
Thank you all for the reply, ** More tests : *** 1) I tried to input the D-word with the parameters and I did not see anychanged (checked with process explorer. The limit of the simultaneous connexion is always 10. 2) I have applied the patch from http://www.lvllord.de/?l

Re: Where are the source files for the Python FAQs?

2006-09-07 Thread A.M. Kuchling
On Thu, 07 Sep 2006 04:43:38 GMT, Eriol <[EMAIL PROTECTED]> wrote: > Dave Kuhlman wrote: > >> Can someone tell me the location of the reST source files for the >> Python FAQs.  I have not been able to find them. > > https://svn.python.org/www/trunk/pydotorg/doc/faq/ Caution: I intend t

Re: iso creation for python backup script

2006-09-07 Thread Neil Cerutti
On 2006-09-07, John Purser <[EMAIL PROTECTED]> wrote: > Windows itself (2000+) comes with it's own backup solution that > might even support burning to disk. I haven't used MS in a > year or so but it might be worth looking at. That worked OK for me until the backup solution bundled with XP turne

Re: python vs java

2006-09-07 Thread Felipe Almeida Lessa
2006/9/7, Bruno Desthuilliers <[EMAIL PROTECTED]>: > I don't think one could pretend writing a cross-platform application > without testing it on all targeted platforms. E.g: while creating a free software, you may not have an Apple computer but you may want to be *possible* to run your program th

Re: getting quick arp request

2006-09-07 Thread Daniel Nogradi
> 2) > Still without the above patch on windows, the software "angry ip scan" > for example managed to output a lot of more socket connection. How is > it possible ? This "angry ip scan" thing is written in Java, perhaps you can find it out from the source: http://svn.sourceforge.net/viewvc/ipsca

mac address

2006-09-07 Thread DarkBlue
Hello Is it possible to get the mac address of a device with python 2.4 using code which works in wxp and linux rather than requiring some code for windows and some other code for linux ? Db -- http://mail.python.org/mailman/listinfo/python-list

Re: getting quick arp request

2006-09-07 Thread Ben Sizer
seb wrote: > I am not fully confident to apply the patch from > http://www.lvllord.de/?lang=en&url=downloads .on computers other than > mine. Fully understandable. > Is there another solution ? I believe it is possible to overwrite the .dll that SP2 gives you with the older one. Obviously you lo

How to build extensions on Windows?

2006-09-07 Thread Kevin D.Smith
I've written a simple Python extension for UNIX, but I need to get it working on Windows now. I'm having some difficulties figuring out how to do this. I've seen web pages that say that MS Visual Studio is required, and other that say that's not true, that MinGW will work. Then there is Mike

Re: sending emails using python

2006-09-07 Thread Grant Edwards
On 2006-09-07, Sybren Stuvel <[EMAIL PROTECTED]> wrote: > Tim Williams enlightened us with: >> Can you send email via it using outlook express or a similar >> POP3/IMAP mail client? > > Wouldn't you use a SMTP client to send email? I would, but I don't use exchange server. :) The one exchange ser

Re: How to build extensions on Windows?

2006-09-07 Thread Lawrence Oluyede
Kevin D. Smith <[EMAIL PROTECTED]> wrote: > Then there is Mike Fletcher's web page > (http://www.vrplumber.com/programming/mstoolkit/) that describes in > detail how to build extensions, but most of the links to external > software are no longer valid. I think it's safe to say that I am > comp

Re: sending emails using python

2006-09-07 Thread Hari Sekhon
Grant Edwards wrote: On 2006-09-07, Sybren Stuvel <[EMAIL PROTECTED]> wrote: Tim Williams enlightened us with: Can you send email via it using outlook express or a similar POP3/IMAP mail client? Wouldn't you use a SMTP client to send email?

Re: change property after inheritance

2006-09-07 Thread Steven Bethard
David Isaac wrote: > Le mercredi 06 septembre 2006 16:33, Alan Isaac a écrit : >>> Suppose a class has properties and I want to change the >>> setter in a derived class. If the base class is mine, I can do this: >>> http://www.kylev.com/2004/10/13/fun-with-python-properties/ >>> Should I? (I.e., i

Re: IronPython on Mono howto

2006-09-07 Thread skip
sanxiyn> For those of us who have never used IronPython or Mono, is sanxiyn> there a quick start document laying about somewhere? It wasn't sanxiyn> clear to me where to even look. sanxiyn> Okay, here we go: ... Thanks. Worked like a charm. Like others I noticed the appare

3 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
1) why don't python / idle use numbered lines in their scripting, like basic? how do you keep track of large batches of code without them? 2) in IDLE, how do you save a program such that it can be run, say from windows the "run" function? 3) are most of you doing your script editing in IDLE or s

Re: IronPython 1.0 - Bugs or Features?

2006-09-07 Thread Claudio Grondi
Super Spinner wrote: > IronPython is a .NET language, so does that mean that it invokes the > JIT before running actual code? If so, then "simple short scripts" > would take longer with IronPython "busy starting itself" loading .NET > and invoking the JIT. This effect would be less noticable, the

Re: 3 Simple Questions About Python/IDLE

2006-09-07 Thread Claudio Grondi
Omar wrote: > 1) why don't python / idle use numbered lines in their scripting, like > basic? how do you keep track of large batches of code without them? > > 2) in IDLE, how do you save a program such that it can be run, say from > windows the "run" function? > > 3) are most of you doing your s

Re: Refactor a buffered class...

2006-09-07 Thread George Sakkis
Michael Spencer wrote: > George Sakkis wrote: > > Michael Spencer wrote: > > > >> Here's a small update to the generator that allows optional handling of > >> the head > >> and the tail: > >> > >> def chunker(s, chunk_size=3, sentry=".", keep_first = False, keep_last = > >> False): > >> buff

Re: sending emails using python

2006-09-07 Thread Tim Williams
On 07/09/06, Hari Sekhon <[EMAIL PROTECTED]> wrote: > > Grant Edwards wrote: > On 2006-09-07, Sybren Stuvel > <[EMAIL PROTECTED]> wrote: > > > Tim Williams enlightened us with: > > > Can you send email via it using outlook express or a similar > POP3/IMAP mail client? > > Wouldn't you use a SM

Re: How to build extensions on Windows?

2006-09-07 Thread Sybren Stuvel
Kevin D Smith enlightened us with: > I've written a simple Python extension for UNIX, but I need to get > it working on Windows now. I'm having some difficulties figuring > out how to do this. I had to do the same, and I didn't get much result. My solution: install Cygwin, use the Python that co

Re: [ANN] IronPython 1.0 released today!

2006-09-07 Thread Felipe Almeida Lessa
2006/9/5, Jim Hugunin <[EMAIL PROTECTED]>: > I'm extremely happy to announce that we have released IronPython 1.0 today! > http://www.codeplex.com/IronPython Does IronPython runs Twisted? -- Felipe. -- http://mail.python.org/mailman/listinfo/python-list

Re: 3 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
thanks. i have saved and double clicked as suggested. when I save and double click a simple "hello program", the b&w python shell briefly comes up, then disappears. is this how it should work? -- http://mail.python.org/mailman/listinfo/python-list

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Diez B. Roggisch
Omar schrieb: > thanks. > > i have saved and double clicked as suggested. when I save and double > click a simple "hello program", the b&w python shell briefly comes up, > then disappears. is this how it should work? Yes. because when your program terminates, the shell terminates. Or would you

Returned mail: see transcript for details

2006-09-07 Thread Automatic Email Delivery Software
This message was undeliverable due to the following reason(s): Your message could not be delivered because the destination server was unreachable within the allowed queue period. The amount of time a message is queued before it is returned depends on local configura- tion parameters. Most likely

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Larry Bates
Omar wrote: > thanks. > > i have saved and double clicked as suggested. when I save and double > click a simple "hello program", the b&w python shell briefly comes up, > then disappears. is this how it should work? > Yes, that is how it should work. Program is doing what you told it to. print

PyGTK - Rollover Buttons

2006-09-07 Thread Gepi Solo
Hi, I'm a python newbie, coming from PHP & Perl. I'm developing client-server applications with a GUI. I'm trying to realize rollover buttons with images as background. I mean... I want to create a class which permit to create buttons with various shapes, (for instance something like this: O

the same strings, different utf-8 repr values?

2006-09-07 Thread slowness . chen
I have two files: test.py: -- # -*- encoding : utf8 -*- print 'in this file', repr('中文') # tt.txt is saved as utf8 encoding f = file('tt.txt') line1 = f.readline().strip() print 'another file', repr(line1) ---

Re: change property after inheritance

2006-09-07 Thread George Sakkis
Steven Bethard wrote: > David Isaac wrote: > > Le mercredi 06 septembre 2006 16:33, Alan Isaac a écrit : > >>> Suppose a class has properties and I want to change the > >>> setter in a derived class. If the base class is mine, I can do this: > >>> http://www.kylev.com/2004/10/13/fun-with-python-p

xmingw and f2py

2006-09-07 Thread Flavio
Hi, has anyone tried to build extensions for win32 on Linux using xmingw? I need to use f2py to compile code for the win32 platform and I want to do this in Linux. I googled aroung but could not find any documentation on this. For those who dont know xmingw is a port to linux of mingw. any hel

Re: sending emails using python

2006-09-07 Thread Grant Edwards
On 2006-09-07, Tim Williams <[EMAIL PROTECTED]> wrote: >> Wouldn't you use a SMTP client to send email? >> >> I would, but I don't use exchange server. :) >> >> The one exchange server I used in the past didn't accept SMTP >> mail. >> >> errr, I used to admin Exchange, if it does accept SMTP the

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
thank you genteman. however, its not working :( I resaved it, but same thing. -- http://mail.python.org/mailman/listinfo/python-list

Method resolution for super(Class, obj).

2006-09-07 Thread ddtl
Hello everybody. Consider the following code: class A(object): def met(self): print 'A.met' class B(A): def met(self): print 'B.met' super(B,self).met() class C(A): def met(self): print 'C.met' super(C,self).met() class D(B,C): def met(self

Re: sending emails using python

2006-09-07 Thread Hari Sekhon
Grant Edwards wrote: On 2006-09-07, Tim Williams <[EMAIL PROTECTED]> wrote: Wouldn't you use a SMTP client to send email? I would, but I don't use exchange server. :) The one exchange server I used in the past didn't accept SMTP mail. errr, I used to admin Exchange, if

Wrapper for EMC SYMAPI library

2006-09-07 Thread Ellinghaus, Lance
Title: Wrapper for EMC SYMAPI library Has anyone ever created a python wrapper for the EMC SYMAPI library??? Any information would be very much appreciated!! Thank you, Lance Ellinghaus -- http://mail.python.org/mailman/listinfo/python-list

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Larry Bates
Omar wrote: > thank you genteman. > > however, its not working :( > > I resaved it, but same thing. > Please post some code so we can actually do something more than read your mind. You can also run the program from a shell instead of from idle to see what happens. -Larry Bates -- http://mail

Using Beautiful Soup to entangle bookmarks.html

2006-09-07 Thread Francach
Hi, I'm trying to use the Beautiful Soup package to parse through the "bookmarks.html" file which Firefox exports all your bookmarks into. I've been struggling with the documentation trying to figure out how to extract all the urls. Has anybody got a couple of longer examples using Beautiful Soup

Re: Using Beautiful Soup to entangle bookmarks.html

2006-09-07 Thread Diez B. Roggisch
Francach schrieb: > Hi, > > I'm trying to use the Beautiful Soup package to parse through the > "bookmarks.html" file which Firefox exports all your bookmarks into. > I've been struggling with the documentation trying to figure out how to > extract all the urls. Has anybody got a couple of longer

Re: IronPython on Mono howto

2006-09-07 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, skip wrote: > One thing I did find especially annoying though was that none of the editing > keys worked. DELETE, BACKSPACE, Ctrl-U. All just inserted themselves. > Ctrl-D didn't exit. (I had to "raise SystemExit" to exit.) > > Is this a known problem? Is it a Mono thi

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
sure... >>> print "hello world" hello world >>> t=raw_input('Hit return to continue') I'm saving it as "helloworld11", then double clicking the icon I saved it as. -- http://mail.python.org/mailman/listinfo/python-list

RE: mac address

2006-09-07 Thread Tim Golden
| Is it possible to get the mac address of a device | with python 2.4 using code which works in wxp and linux | rather than requiring some code for windows and some | other code for linux ? I'm fairly sure the answer's no. It wouldn't be beyond the wit of man to produce a library with conditiona

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
okay... I got to work using the SCITE editor with print "hello world" # here we are once again raw_input("press return") cool! -- http://mail.python.org/mailman/listinfo/python-list

Re: sending emails using python

2006-09-07 Thread Steve Holden
Hari Sekhon wrote: [...] > > BOFH? > Bas**rd Operator From Hell > lol > Indeed. regards Steve -- Steve Holden +44 150 684 7255 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://holdenweb.blogspot.com Recent Ramblings http://del.icio

Re: [ANN] IronPython 1.0 released today!

2006-09-07 Thread Aahz
In article <[EMAIL PROTECTED]>, Jim Hugunin <[EMAIL PROTECTED]> wrote: > >I'm extremely happy to announce that we have released IronPython 1.0 today! > http://www.codeplex.com/IronPython Congrats! -- Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/ I support the RKAB -

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread John Purser
Omar, The '>>>' were causing the problem I would guess. Those are the interactive interpreter's prompts, not python. Saving a python session like that is a starting place for creating code, not the finished product. You might also want to save the file as "helloworld11.py" before double clickin

Re: 4 Simple Questions About Python/IDLE

2006-09-07 Thread Omar
I'm working through a tutorial, http://swaroopch.info/text/Byte_of_Python:Control_Flow, and I sorta can't get through the tutorial without overcoming these little speedbumps. This is why I'm asking these questions. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to build extensions on Windows?

2006-09-07 Thread Kevin D.Smith
On 2006-09-07 09:28:42 -0400, [EMAIL PROTECTED] (Lawrence Oluyede) said: > Kevin D. Smith <[EMAIL PROTECTED]> wrote: >> Then there is Mike Fletcher's web page >> (http://www.vrplumber.com/programming/mstoolkit/) that describes in >> detail how to build extensions, but most of the links to extern

Re: Unicode string handling problem

2006-09-07 Thread Richard Schulman
Many thanks for your help, John, in giving me the tools to work successfully in Python with Unicode from here on out. It turns out that the Unicode input files I was working with (from MS Word and MS Notepad) were indeed creating eol sequences of \r\n, not \n\n as I had originally thought. The fil

Tkinter listbox:get

2006-09-07 Thread vedran_dekovic
Hi, I need help about Tkinter.I want,when somebody click on some item in listbox,then in new entry widget must write that item Regards, Vedran -- http://mail.python.org/mailman/listinfo/python-list

Random image downloader for newsgroups (first script)

2006-09-07 Thread Kim
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the image or save it. This is my first script so be gentle! Heres the script random group downloa

Random news downloader (first script!)

2006-09-07 Thread Kim
Random image downloader for specified newsgroup. Hi I'm writing a small script that will download random images from a specified newsgroup. I've imported yenc into the script but I can't open the image or save it. This is my first script so be gentle! Heres the script random group downloa

Re: Convert to big5 to unicode

2006-09-07 Thread Richard Schulman
On 7 Sep 2006 01:27:55 -0700, "GM" <[EMAIL PROTECTED]> wrote: >Could you all give me some guide on how to convert my big5 string to >unicode using python? I already knew that I might use cjkcodecs or >python 2.4 but I still don't have idea on what exactly I should do. >Please give me some sample c

Re: [ANN] IronPython 1.0 released today!

2006-09-07 Thread Lawrence Oluyede
Felipe Almeida Lessa <[EMAIL PROTECTED]> wrote: > Does IronPython runs Twisted? I really don't think so. They don't have many needed modules, like select :-) -- Lawrence - http://www.oluyede.org/blog "Nothing is more dangerous than an idea if it's the only one you have" - E. A. Chartier -- http

Re: How to build extensions on Windows?

2006-09-07 Thread Lawrence Oluyede
Kevin D. Smith <[EMAIL PROTECTED]> wrote: > So in other words, what you're saying is that the only issue I have > left is the exact issue that I described in my initial post that you > claimed isn't a problem... Great! I guess I'l get right down to work > compiling that extension now. What I m

Re: How to build extensions on Windows?

2006-09-07 Thread Jason
Kevin D. Smith wrote: > I've written a simple Python extension for UNIX, but I need to get it > working on Windows now. I'm having some difficulties figuring out how > to do this. I've seen web pages that say that MS Visual Studio is > required, and other that say that's not true, that MinGW will

Printing Documents

2006-09-07 Thread defcon8
How can I print html documents in Python on Windows? -- http://mail.python.org/mailman/listinfo/python-list

Re: python vs java

2006-09-07 Thread Jason
Felipe Almeida Lessa wrote: > 2006/9/7, Bruno Desthuilliers <[EMAIL PROTECTED]>: > > I don't think one could pretend writing a cross-platform application > > without testing it on all targeted platforms. > > E.g: while creating a free software, you may not have an Apple > computer but you may want

Re: Using Beautiful Soup to entangle bookmarks.html

2006-09-07 Thread waylan
Diez B. Roggisch wrote: > suppose it is well-formed, most probably even xml. Maybe not. Otherwise, why would there be a script like this one[1]? Anyway, I found that and other scripts that work with firefox bookmarks.html files with a quick search [2]. Perhaps you will find something there that i

Re: Method resolution for super(Class, obj).

2006-09-07 Thread Jason
ddtl wrote: > Hello everybody. > > Consider the following code: > > > class A(object): > def met(self): > print 'A.met' > class B(A): > def met(self): > print 'B.met' > super(B,self).met() > class C(A): > def met(self): > print 'C.met' > super(C,

Automate Web Configuration

2006-09-07 Thread D
I would like to write a program that will automate the configuation of a firewall or router via HTTPS. So, I need to import the applicable certificate, and be able to configure the unit as if I was typing/selecting the appropriate fields manually using a web browser. If there is a command-line bas

Re: Method resolution for super(Class, obj).

2006-09-07 Thread ddtl
On 7 Sep 2006 10:42:54 -0700, in comp.lang.python you wrote: >Let's examine what the mro order is for class D: D.mro() >[, , , >n__.A'>, ] > >When you call d.met(), the call dispatches to the D.met() method. >After printing out 'D.met', you use super() to get the next class in >the mro order,

Two ethernet cards/networks (still)

2006-09-07 Thread Bob Greschke
There is a lot to stuff that seems to skirt around this issue (most of which has to do with finding your IP address), but I can't find anything that explains how to write a client that (in my case) needs to collect some information from some equipment on a private network/Ethernet card, then tr

Re: Data sticking around too long

2006-09-07 Thread Stefan Schwarzer
Hello Matimus, On 2006-09-07 00:07, Matimus wrote: > Someone correct me if I'm wrong (sometimes I get the terms mixed up) > but I believe that what you are seeing is due to 'number' being an > immutable type. This means that its value cannot be changed and thus > each assignment is effectively cre

  1   2   3   >