Re: defining functions

2007-04-08 Thread rweth
Andre P.S Duarte wrote: > How do I define a function, then import it, without having to save it > in lib; like "C:\python25\lib". ? > The best way I have found (in windows ) for permanently extending your search path for modules is to create the file: package.pth and put your path/s in a line

Re: Cant access http://cheeseshop.python.org/ or wiki

2007-04-08 Thread rweth
cyb wrote: > For some reason I can ping these two sites fine, but when I try to go to > them I cannot get to them. Normal python.org homepage works just fine. > This is preventing me from getting setuptools and using pyOpenGL =( > > I'm using COmcast in savannah, GA "It's the finest cheese sho

Re: How to invoke parent's method?

2007-01-07 Thread rweth
rweth wrote: > many_years_after wrote: >> Hi, pythoners: >> >> My wxPython program includes a panel whose parent is a frame. The >> panel has a button. When I click the button , I want to let the frame >> destroy. How to implement it? Could the panel invoke

Re: How to invoke parent's method?

2007-01-07 Thread rweth
many_years_after wrote: > Hi, pythoners: > > My wxPython program includes a panel whose parent is a frame. The > panel has a button. When I click the button , I want to let the frame > destroy. How to implement it? Could the panel invoke the frame's > method? > Thanks. > I think it "could"

Re: search mail by date with imaplib

2007-01-06 Thread rweth
Jean-Paul Calderone wrote: > On Sat, 06 Jan 2007 11:49:17 -0800, rweth <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> Hi >>> I am looking for a code sample which searches mail by date with imaplib >>> >>> example: >>> get e

Re: File Closing Problem in 2.3 and 2.4, Not in 2.5

2007-01-06 Thread rweth
Martin v. Löwis wrote: > Carroll, Barry schrieb: >> What I want to know is: >> >> * has anyone else encountered a problem like this, * how was the >> problem corrected, * can the fix be retro-fitted to 2.5 and 2.4? > > From your description, I suspect an error in your code. Your description > indi

Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread rweth
Klaus Alexander Seistrup wrote: > Rweth wrote: > >>for aline in buf: >> bufHeal.append(aline.replace('\r\n', '\n')) > > What does one single aline look like? > >> s.body(id,afile) > > Does the 'afile' contain a fi

Re: search mail by date with imaplib

2007-01-06 Thread rweth
[EMAIL PROTECTED] wrote: > Hi > I am looking for a code sample which searches mail by date with imaplib > > example: > get email from 01.01.2007 to now > > how can I change imaplib search parameters? > So I had to do the same thing a few years back. I love python but seriously every author spend

Re: nntplib downloads content with extra linebreaks

2007-01-06 Thread rweth
Klaus Alexander Seistrup wrote: > Rweth wrote: > >> I am using nntplib to download archived xml messages from our >> internal newsgroup. This is working fine except the download >> of files to the connected server, has extra embedded lines in >> them

Re: Adding a directory to the Python System Path - Edit the registry?

2007-01-06 Thread rweth
[EMAIL PROTECTED] wrote: > Thanks Martin. > > I'll take a look at the documentation you pointed out. > > Scott > > Martin P. Hellwig wrote: >> [EMAIL PROTECTED] wrote: >>> I have been trying to find a way to add a directory to Python's sytem >>> path on my MS Windows XP computer. I did some sear

nntplib downloads content with extra linebreaks

2007-01-06 Thread rweth
I am using nntplib to download archived xml messages from our internal newsgroup. This is working fine except the download of files to the connected server, has extra embedded lines in them (all over the place), from the s.body(id,afile) # body method Is there any way to employ this library