Digest Number 1687

Estevão Cavinato cavvinas at zaz.com.br
Fri Feb 9 11:41:11 EST 2001


Unsusbcribe
----- Original Message -----
From: <python-list at yahoogroups.com>
To: <python-list at yahoogroups.com>
Sent: Friday, February 09, 2001 2:22 PM
Subject: Digest Number 1687


> ------------------------ Yahoo! Groups Sponsor ---------------------~-~>
> eGroups is now Yahoo! Groups
> Click here for more details
> http://click.egroups.com/1/11231/0/_/1452/_/981735747/
> ---------------------------------------------------------------------_->
>
> There are 25 messages in this issue.
>
> Topics in this digest:
>
>       1. Re: Closing a file before or after return?
>            From: Steve Purcell <stephen_purcell at yahoo.com>
>       2. MySQL + SQL Statements + Quote escaping
>            From: Christian Theune <ct at gocept.com>
>       3. Re: How to return from shutdown command
>            From: D-Man <dsh8290 at rit.edu>
>       4. RE: What is better, JPython or Jython?
>            From: Simon Brunning <SBrunning at trisystems.co.uk>
>       5. RE: What is better, JPython or Jython?
>            From: Kemp Randy-W18971 <Randy.L.Kemp at motorola.com>
>       6. Re: What is better, JPython or Jython?
>            From: Zamurai <zamurai at gmx.net>
>       7. RE: I love Python
>            From: Kemp Randy-W18971 <Randy.L.Kemp at motorola.com>
>       8. Re: python-dev summary, Jan. 16-31
>            From: Andrew Kuchling <akuchlin at mems-exchange.org>
>       9. RE: What is better, JPython or Jython?
>            From: "Dave Brueck" <dbrueck at edgix.com>
>      10. Re: Python developers of the world unite ;)
>            From: "Lyle Johnson" <ljohnson at resgen.com>
>      11. Re: Is comp.lang.python.announce dead?
>            From: barry at digicool.com (Barry A. Warsaw)
>      12. Re: urllib.open('http://www.redherring.com/')
>            From: Andrew Kuchling <akuchlin at mems-exchange.org>
>      13. Re: How to copy class objects?
>            From: matthias.oberlaender at daimlerchrysler.com
>      14. Re: smtp mail with attachment
>            From: barry at digicool.com (Barry A. Warsaw)
>      15. Re: I love Python
>            From: Daniel Klein <danielk at aracnet.com>
>      16. Re: python-dev summary, Jan. 16-31
>            From: Oleg Broytmann <phd at phd.pp.ru>
>      17. Re: python-dev summary, Jan. 16-31
>            From: "Sandipan Gangopadhyay" <sandipan at vsnl.com>
>      18. Re: nested scopes
>            From: aahz at panix.com (Aahz Maruch)
>      19. Re: urllib.open('http://www.redherring.com/')
>            From: aahz at panix.com (Aahz Maruch)
>      20. Executing Sytem Commands
>            From: mix77 at usa.net
>      21. Re: global, was Re: None assigment
>            From: Joshua Marshall <jmarshal at mathworks.com>
>      22. Re: Executing Sytem Commands
>            From: Oleg Broytmann <phd at phd.pp.ru>
>      23. Re: urllib.open('http://www.redherring.com/')
>            From: apederse at my-deja.com
>      24. RE: python-dev summary, Jan. 16-31
>            From: Simon Brunning <SBrunning at trisystems.co.uk>
>      25. Re: I love Python
>            From: Pedro Vale Lima <eq3pvl at eq.uc.pt>
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 1
>    Date: Fri, 9 Feb 2001 15:35:53 +0100
>    From: Steve Purcell <stephen_purcell at yahoo.com>
> Subject: Re: Closing a file before or after return?
>
> Gustaf Liljegren wrote:
> > Have a look at this function. It checks if a particular user (mail
adress)
> > exist in a .htpasswd file. The user name is what comes before ':' on
each
> > line.
> >
> > # Check if user exists
> > def user_exist(user):
> >   f = open('.htpasswd', 'r')
> >   for line in f.readlines():
> >     i = string.find(line, ':')
> >     if line[:i] == user:
> >       return 1
> >
> > I'd like to close the file too, but I don't know where to put that
> > statement. Of course, the file should be closed in both cases -- not
just
> > when the user is found.
>
> How about try/finally:
>
>   def user_exist(user):
>     f = open('.htpasswd', 'r')
>     try:
>       for line in f.readlines():
>         i = string.find(line, ':')
>         if line[:i] == user:
>           return 1
>     finally:
>       f.close()
>
> A neater way would just be:
>
>
>   def user_exist(user):
>     f = open('.htpasswd', 'r')
>     found = 0
>     for line in f.readlines():
>       i = string.find(line, ':')
>       if line[:i] == user:
>         found = 1
>         break
>     return found
>
>
> -Steve
>
> --
> Steve Purcell, Pythangelist
> Get testing at http://pyunit.sourceforge.net/
> Available for consulting and training.
> "Even snakes are afraid of snakes." -- Steven Wright
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 2
>    Date: Fri, 09 Feb 2001 15:33:02 +0100
>    From: Christian Theune <ct at gocept.com>
> Subject: MySQL + SQL Statements + Quote escaping
>
> Hi there.
>
> i just tuned into python and it's really cool. I like it.
> Before I came to python i used to write scripts in php.
> There was a function called "addslashes" it escaped quotes and
> slashes to make strings sql-safe.
>
> Is there any function like that in python? I didnt found on.
>
> Thanks so far.
>
> Christian
>
>
> ---
> Christian Theune
> 0178 48 33 981 - ct at gocept.com - www.gocept.com
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 3
>    Date: Fri, 9 Feb 2001 09:34:56 -0500
>    From: D-Man <dsh8290 at rit.edu>
> Subject: Re: How to return from shutdown command
>
>
> If you have just shutdown the system, how is the script supposed to
> continue running?  ;-)
>
> -D
>
> On Fri, Feb 09, 2001 at 03:01:54PM +1100, Craig Findlay wrote:
> | I want to execute a Unix shutdown command from a python script, but
> | have control return to the script, and I'm having trouble doing it.
> |
> | I've tried:
> |
> | commands.getstatusoutput('shutdown -h +1')
> | and
> | commands.getstatusoutput('/bin/sh -c "shutdown -h +1" \&')
> |
> | but neither of these commands return.
> |
> | Any help greatly appreciated!
> |
> | Craig
> |
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 4
>    Date: Fri, 9 Feb 2001 14:45:05 -0000
>    From: Simon Brunning <SBrunning at trisystems.co.uk>
> Subject: RE: What is better, JPython or Jython?
>
> > From: Zamurai [SMTP:zamurai at gmx.net]
> > It seems that JPython and Jython are quite similar, but what are the
> > differences between both? And which one is better?
>
> Jython supersedes JPython, so use the latter.
>
> Cheers,
> Simon Brunning
> TriSystems Ltd.
> sbrunning at trisystems.co.uk
>
>
>
>
> -----------------------------------------------------------------------
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by anyone
else
> is unauthorised. If you are not the intended recipient, any disclosure,
> copying, distribution, or any action taken or omitted to be taken in
> reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
> accept liability for statements made which are clearly the senders own.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 5
>    Date: Fri, 9 Feb 2001 08:54:50 -0600
>    From: Kemp Randy-W18971 <Randy.L.Kemp at motorola.com>
> Subject: RE: What is better, JPython or Jython?
>
> Which is better: a boat or a car?  It all depends on whether you are
traveling by land or sea.  Which is better:  python or jpython?  Are you
using it with Java or not?
>
> -----Original Message-----
> From: Warren Postma [mailto:embed at geocities.com]
> Sent: Friday, February 09, 2001 8:12 AM
> To: python-list at python.org
> Subject: Re: What is better, JPython or Jython?
>
>
> Check the labels. See which one says "30% more Python inside, Free". And
buy
> that one.
>
> Warren
>
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 6
>    Date: Fri, 9 Feb 2001 15:38:40 +0100
>    From: Zamurai <zamurai at gmx.net>
> Subject: Re: What is better, JPython or Jython?
>
> Thank you for Informations!
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 7
>    Date: Fri, 9 Feb 2001 09:02:21 -0600
>    From: Kemp Randy-W18971 <Randy.L.Kemp at motorola.com>
> Subject: RE: I love Python
>
> I noticed this message was sent three times.  There is an ancient legend
that if everyone in the world says "I love Python" three times, Perl will
disappear.
>
> -----Original Message-----
> From: Zamurai [mailto:zamurai at gmx.net]
> Sent: Friday, February 09, 2001 7:37 AM
> To: python-list at python.org
> Subject: Re: I love Python
>
>
> "debugboy" <aaa at bbb.com> wrote:
> > Test
>
> I love Python too ;-)
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 8
>    Date: 09 Feb 2001 09:55:52 -0500
>    From: Andrew Kuchling <akuchlin at mems-exchange.org>
> Subject: Re: python-dev summary, Jan. 16-31
>
> Oleg Broytmann <phd at phd.pp.ru> writes:
> >    Any chance you'll continue the summaries?
>
> Not really.  All of this is sparked by my wanting to reduce the load,
> really; I recently realized that I haven't hacked on *any* of my
> projects (Oedipus, amkCrypto, etc.) lately.  Therefore I've dropped
> out of my book club (one night a week), dropped the summaries, (two
> nights every two weeks, or 15% of my evenings), and after 2.1final is
> released I'll probably unsubscribe from python-dev, too.
>
> So, to rescuing the summaries... For the information of potential
> volunteers, I'll summarize the process.  Writing them isn't difficult
> and can easily be done while watching TV -- I usually pull the mail
> archive on my laptop and do just that.  They're just time-consuming,
> taking up two evenings at a time.
>
> 1) Grab a copy of the mailbox archive for the month.
>
> 2) Load it up into mutt (or other MUA of choice), and delete messages
>    outside of the two-week period being summarized.
>
> 3) Sort the remaining messages by thread, and go through finding the
>    interesting threads.  What makes a thread interesting?
>
>         * Threads discussing how to fix a particular bug,
>           or tracing down a bug's root cause, can be quite lengthy but
>           usually aren't interesting.
>
>         * Minute discussions of language syntax are rarely interesting,
>           and I think even Guido tunes them out after a while.
>
>         * New proposals that spark off a discussion are interesting.
>         * Discussions surrounding a PEP are interesting.
>
> 4) <time consuming but fun step> Read through each interesting thread,
>    pulling out interesting quotes and summarizing the flow of the
>    argument.  This is fun because you can introduce your own biases; I
>    think this is why people become journalists.
>
> 5) <time consuming and tedious step> For each quote, find the URL for
>    that message in the archives on mail.python.org, and link to it.
>    This is painful; recently I've started spidering the archives with wget
>    and grepping them in order to avoid ferreting through the indexes
>    over my modem connection.
>
>    Thinking about it now, it would have been much easier on me to just
>    do what Linux Weekly News does, and make a local copy of each
>    message.  That means you wouldn't have to worry about links
>    breaking (moving Mailman to mail.python.org required regenerating
>    the archives, and the links in the October & November summaries are
>    now all broken), and the author wouldn't have to hunt for the right
>    message URL.  You'd lose the easy ability to follow the thread, of
>    course.
>
> 6) The summary is written as plain ASCII, and it gets posted, and
>    mailed to LWN and LinuxToday.  The HTML version is then just a
>    matter of escaping <&>, turning the URLs into <A> tags with an Emacs
>    macro, and putting <pre> tags around it; no fancy XML DTD...
>
> --amk
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 9
>    Date: Fri, 9 Feb 2001 08:08:39 -0700
>    From: "Dave Brueck" <dbrueck at edgix.com>
> Subject: RE: What is better, JPython or Jython?
>
> Heehee... the question wasn't Python vs Jython.
>
> > -----Original Message-----
> > From: python-list-admin at python.org
> > [mailto:python-list-admin at python.org]On Behalf Of Kemp Randy-W18971
> > Sent: Friday, February 09, 2001 7:55 AM
> > To: python-list at python.org
> > Subject: RE: What is better, JPython or Jython?
> >
> >
> > Which is better: a boat or a car?  It all depends on whether you
> > are traveling by land or sea.  Which is better:  python or
> > jpython?  Are you using it with Java or not?
> >
> > -----Original Message-----
> > From: Warren Postma [mailto:embed at geocities.com]
> > Sent: Friday, February 09, 2001 8:12 AM
> > To: python-list at python.org
> > Subject: Re: What is better, JPython or Jython?
> >
> >
> > Check the labels. See which one says "30% more Python inside,
> > Free". And buy
> > that one.
> >
> > Warren
> >
> >
> >
> > --
> > http://mail.python.org/mailman/listinfo/python-list
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 10
>    Date: Fri, 9 Feb 2001 09:04:33 -0600
>    From: "Lyle Johnson" <ljohnson at resgen.com>
> Subject: Re: Python developers of the world unite ;)
>
> > See the Catalog-SIG:  http://www.python.org/sigs/catalog-sig/
>
> Speaking of the catalog-sig, what is the current status? I remember
> subscribing to the mailing list awhile back (mainly as a lurker and not an
> active participant) but it doesn't seem like there's been much activity
> lately. In fact, if the mailing list archives are up-to-date, there
haven't
> been any posts since November.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 11
>    Date: Fri, 9 Feb 2001 10:26:04 -0500
>    From: barry at digicool.com (Barry A. Warsaw)
> Subject: Re: Is comp.lang.python.announce dead?
>
>
> >>>>> "gradha" ==   <gradha at iname.com> writes:
>
>     gradha> Just today I fetched the news and got around 10 "announce"
>     gradha> messages, in this newsgroup instead of
>     gradha> comp.lang.python.announce. Does this mean that the latter
>     gradha> is officially dead?
>
> c.l.py.a is absolutely live again, and as mentioned in a different
> follow, there is a team of moderators who are helping to approve
> messages for the newsgroup.
>
> There was a separate and temporary outage of the moderation gateway as
> we changed mail daemons on mail.python.org (for reasons I won't go
> into).  That problem should be fixed now.
>
> Please post your announcements to c.l.py.a!  Also, register your
> programs with Parnassus and those announcements can be automatically
> forwarded to the newsgroup.
>
> -Barry
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 12
>    Date: 09 Feb 2001 10:07:10 -0500
>    From: Andrew Kuchling <akuchlin at mems-exchange.org>
> Subject: Re: urllib.open('http://www.redherring.com/')
>
> apederse at my-deja.com writes:
> > to me it looks like the problem lies whithin python itself? is there any
> > point in reporting such bugs when everyone will soon be using python 2.0
> > anyway?
>
> I don't believe urllib or httplib were massively rewritten for 2.0
> (nor will they be in 2.1), so if it's a bug, it's probably still
> there.  On the other hand, if you try it with 2.0 and it works fine,
> then there won't be much interest; a 1.5.3 release is not going to
> happen.
>
> --amk
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 13
>    Date: 9 Feb 2001 15:05:39 GMT
>    From: matthias.oberlaender at daimlerchrysler.com
> Subject: Re: How to copy class objects?
>
> In <960b75$a2e$1 at news.sns-felb.debis.de>
> matthias.oberlaender at daimlerchrysler.com wrote:
> > This is the question I'd like to be answered:
> >
> > Is there some easy way to copy a class object?
> >
> > Here is the background:
> >
> > In order to generate classes from templates I'd prefer the following
method
> > over writing additional wrapper function
> >
> > class X:
> >
> >   sratchdir = "/tmp/"
> >
> >   <blabla    (methods using scratchdir)>
> >
> > # I want a new class Xnew differing from X in that its instances use a
> > different scratch directory.
> > Xnew = copyclass(X)
> > # Now set scratchdir to something else
> > Xnew.scratchdir = '/home/me/tmp'
> >
> >
> >
> Quite a few people have already tried to help me. Thanks!
> But it seems it is sowewhat dangerous to give background information,
because
> it often distracts people from the real question, which is:
>
> How can I copy a class object?
> =========================
>
> Somebody suggested the copy module. But copy.copy does not apply to
classes!
>
> Ok, don't tell me that I don't need such a feature for the toy problem
given.
> It's solely for illustration. The real intent is much different.
> I can't accept subclassing, because I don't want instances of X and Xnew
have
> any base classes in common. So new.classobj won't work either!  Ok?
>
> -- Matthias
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 14
>    Date: Fri, 9 Feb 2001 10:32:22 -0500
>    From: barry at digicool.com (Barry A. Warsaw)
> Subject: Re: smtp mail with attachment
>
>
> >>>>> "SH" == Scott Hathaway <slhath at home.com.nospam> writes:
>
>     SH> How do I send an email with an attachment with python (I need
>     SH> a cross platform solution for Windows and Unix)?
>
> Other people have made good suggestions in separate followups.  I just
> add that I'm working on a new library to deal with MIME documents
> (well, any rfc822 style message, but MIME is the really interesting
> bit).  I will be using this library in the next release of Mailman,
> and hope eventually to get it into Python's standard library.  For
> now, you can find out more at:
>
>     http://barry.wooz.org/software/pyware.html
>
> Look for `mimelib'.  I will likely have a 0.2 release sometime soon.
>
> -Barry
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 15
>    Date: Fri, 09 Feb 2001 07:35:32 -0800
>    From: Daniel Klein <danielk at aracnet.com>
> Subject: Re: I love Python
>
> On Fri, 9 Feb 2001 09:02:21 -0600, Kemp Randy-W18971
> <Randy.L.Kemp at motorola.com> wrote:
>
> >I noticed this message was sent three times.  There is an ancient legend
that if everyone in the world says "I love Python" three times, Perl will
disappear.
>
> What's Perl? Hey, it worked!
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 16
>    Date: Fri, 9 Feb 2001 18:39:44 +0300 (MSK)
>    From: Oleg Broytmann <phd at phd.pp.ru>
> Subject: Re: python-dev summary, Jan. 16-31
>
> On 9 Feb 2001, Andrew Kuchling wrote:
> > Oleg Broytmann <phd at phd.pp.ru> writes:
> > >    Any chance you'll continue the summaries?
> >
> > Not really.  All of this is sparked by my wanting to reduce the load,
> > really; I recently realized that I haven't hacked on *any* of my
> > projects (Oedipus, amkCrypto, etc.) lately.  Therefore I've dropped
>
>    Ah, ok, ok, that's right. Code is even more important! Good luck!
>
> Oleg.
> ----
>      Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
>            Programmers don't die, they just GOSUB without RETURN.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 17
>    Date: Fri, 9 Feb 2001 21:07:51 +0530
>    From: "Sandipan Gangopadhyay" <sandipan at vsnl.com>
> Subject: Re: python-dev summary, Jan. 16-31
>
> +3. Saving electrons here ;-)
>
> Though my colleagues and I use a number of other languages, python is
> central in the architectures we work with. We strive to code in other
> languages to match upto the python style and philosophy. We believe in it.
> Watching it grow and evolve (via the dev summary) is, in my opinion, an
> important process in our own development as programmers.
>
> Regards,
>
> Sandipan
>
> ----- Original Message -----
> From: <mmillikan at vfa.com>
> Newsgroups: comp.lang.python
> To: <python-list at python.org>
> Sent: Friday, February 09, 2001 7:34 PM
> Subject: Re: python-dev summary, Jan. 16-31
>
>
> > +1
> >
> > Mark millikan
> > --
> > http://mail.python.org/mailman/listinfo/python-list
> >
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 18
>    Date: 9 Feb 2001 07:40:21 -0800
>    From: aahz at panix.com (Aahz Maruch)
> Subject: Re: nested scopes
>
> In article <96059d$din$1 at news.mathworks.com>,
> Joshua Marshall  <jmarshal at mathworks.com> wrote:
> >
> >Still this is a different issue than lexical scoping.  Consider:
> >
> >   class T:
> >      def m(self):
> >         print self.x
> >
> >   T.x = 'foo'
> >
> >   T().m()
> >
> >Here, T().m() prints "foo".  Lexically, x is not defined in m's scope.
> >I believe it was a good decision to require going through self to
> >access class/object fields.
>
> Note that you don't necessarily want to go through self to access class
> fields.  Here you're relying on the search through the class hierarchy
> to access T.x with self.x.  (I'm pretty sure you know this, but I don't
> want any newcomers getting confused.)
> --
>                       --- Aahz (Copyright 2001 by aahz at pobox.com)
>
> Androgynous poly kinky vanilla queer het    <*>
http://www.rahul.net/aahz/
> Hugs and backrubs -- I break Rule 6
>
> "Actually, I've found that Usenet has helped a lot with my terror of
> social stupidity.  Seeing people I really like and respect behave like
> idiots in public has been very beneficial."  --Rachael Lininger
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 19
>    Date: 9 Feb 2001 07:36:49 -0800
>    From: aahz at panix.com (Aahz Maruch)
> Subject: Re: urllib.open('http://www.redherring.com/')
>
> In article <95th67$36j$1 at nnrp1.deja.com>,  <apederse at my-deja.com> wrote:
> >
> >I have some problems with urllib. Any URL works just fine except
> >http://www.redherring.com/ which returns nothing, no headers, no
> >nothing. (Red Herring works fine from any browser). I have tried to
> >rule out any possible causes, such as cache and problems regarding
> >headerfields by emulating a real browser request from netscape and
> >konqueror (using fancyURLopener) and I have monitored network traffic
> >using tcpdump.  Using tcpdump it looks like there is a request sendt
> >to vip.redherring.com and a response coming back.  Could anyone look
> >into this problem and see if this is related my particular computer and
> >network configurations or if it is a problem lying within urllib or
> >python.
>
> I've just tried with a straight telnet session, and that also fails.
> So, it's not just Python.
> --
>                       --- Aahz (Copyright 2001 by aahz at pobox.com)
>
> Androgynous poly kinky vanilla queer het    <*>
http://www.rahul.net/aahz/
> Hugs and backrubs -- I break Rule 6
>
> "Actually, I've found that Usenet has helped a lot with my terror of
> social stupidity.  Seeing people I really like and respect behave like
> idiots in public has been very beneficial."  --Rachael Lininger
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 20
>    Date: Fri, 09 Feb 2001 17:49:33 +0200
>    From: mix77 at usa.net
> Subject: Executing Sytem Commands
>
> How do you execute a sytem command  like "mv file1 file2" in Python?
> P.S. I'm working under Linux 2.x (redhat 7 distribution with default
> linux kernel).
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 21
>    Date: 9 Feb 2001 15:51:51 GMT
>    From: Joshua Marshall <jmarshal at mathworks.com>
> Subject: Re: global, was Re: None assigment
>
> Michael Hudson <mwh21 at cam.ac.uk> wrote:
> > Michael Hudson <mwh21 at cam.ac.uk> writes:
>
> >> Which version are you using?  They all print 4 for me, and all but
> >> foo() do modify the value of `b'.  foo() doesn't because what follows
> >> an
>
> > OTOH, that was a version that had the PEP 227 code checked into it.
> > With an older version, I see what you see.  Wierd.
>
> Sounds like a bug fix.
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 22
>    Date: Fri, 9 Feb 2001 19:04:55 +0300 (MSK)
>    From: Oleg Broytmann <phd at phd.pp.ru>
> Subject: Re: Executing Sytem Commands
>
> On Fri, 9 Feb 2001 mix77 at usa.net wrote:
> > How do you execute a sytem command  like "mv file1 file2" in Python?
>
>    Exactly like system. It is in module "os". So well:
>
> import os
> os.system("xsetbg foo.jpg")
>
> Oleg.
> ----
>      Oleg Broytmann            http://phd.pp.ru/            phd at phd.pp.ru
>            Programmers don't die, they just GOSUB without RETURN.
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 23
>    Date: Fri, 09 Feb 2001 15:53:08 GMT
>    From: apederse at my-deja.com
> Subject: Re: urllib.open('http://www.redherring.com/')
>
> In article <3ditmj99pd.fsf at ute.cnri.reston.va.us>,
>   Andrew Kuchling <akuchlin at mems-exchange.org> wrote:
> > apederse at my-deja.com writes:
> > > to me it looks like the problem lies whithin python itself? is there
> any
> > > point in reporting such bugs when everyone will soon be using python
> 2.0
> > > anyway?
> >
> > I don't believe urllib or httplib were massively rewritten for 2.0
> > (nor will they be in 2.1), so if it's a bug, it's probably still
> > there.  On the other hand, if you try it with 2.0 and it works fine,
> > then there won't be much interest; a 1.5.3 release is not going to
> > happen.
> >
> > --amk
> >
> >
>
> a 1.5.3 release is a bit drastic ...a simple bugfix will do!
>
> /Asle
>
>
> Sent via Deja.com
> http://www.deja.com/
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 24
>    Date: Fri, 9 Feb 2001 16:11:08 -0000
>    From: Simon Brunning <SBrunning at trisystems.co.uk>
> Subject: RE: python-dev summary, Jan. 16-31
>
> > From: Andrew Kuchling [SMTP:akuchlin at mems-exchange.org]
> > * Announce PEP drafts and status changes to c.l.py.announce
> > * Write a set of introductory pages for Python development (this has
been
> >   brought up before).
> > * A read-only alias for python-dev would be useful for several people,
but
> >
> >   may require serious Mailman hackery (I don't know).
>
> Sounds to me like if these three could be achieved, 99.9% of c.l.py would
be
> more than happy. I know that *I* would.
>
> Cheers,
> Simon Brunning
> TriSystems Ltd.
> sbrunning at trisystems.co.uk
>
>
>
>
> -----------------------------------------------------------------------
> The information in this email is confidential and may be legally
privileged.
> It is intended solely for the addressee. Access to this email by anyone
else
> is unauthorised. If you are not the intended recipient, any disclosure,
> copying, distribution, or any action taken or omitted to be taken in
> reliance on it, is prohibited and may be unlawful. TriSystems Ltd. cannot
> accept liability for statements made which are clearly the senders own.
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
> Message: 25
>    Date: Fri, 09 Feb 2001 16:20:10 +0000
>    From: Pedro Vale Lima <eq3pvl at eq.uc.pt>
> Subject: Re: I love Python
>
> Zamurai wrote:
>
> > "debugboy" <aaa at bbb.com> wrote:
> > > Test
> >
> > I love Python too ;-)
>
> Yeah, but have you asked Python if he loves you?
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
> ________________________________________________________________________
> ________________________________________________________________________
>
>
>





More information about the Python-list mailing list