[Tutor] Changing modes?

R. A. rob@jam.rr.com
Fri, 02 Mar 2001 11:23:21 -0600


You may change your mode at the following URL:

http://mail.python.org/mailman/listinfo/tutor

Rob

Robert L Hicks wrote:
> 
> I would like to change from digest to individual mode on this list...
> 
> - Bob
> 
> > From: tutor-request@python.org
> > Reply-To: tutor@python.org
> > Date: Fri, 02 Mar 2001 12:01:09 -0500
> > To: tutor@python.org
> > Subject: Tutor digest, Vol 1 #625 - 16 msgs
> >
> > Send Tutor mailing list submissions to
> > tutor@python.org
> >
> > To subscribe or unsubscribe via the World Wide Web, visit
> > http://mail.python.org/mailman/listinfo/tutor
> > or, via email, send a message with subject or body 'help' to
> > tutor-request@python.org
> >
> > You can reach the person managing the list at
> > tutor-admin@python.org
> >
> > When replying, please edit your Subject line so it is more specific
> > than "Re: Contents of Tutor digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Re: My two cents worth re Python Newbies (Deirdre Saoirse)
> > 2. Re: My two cents worth re Python Newbies (Sheila King)
> > 3. Re: My two cents worth re Python Newbies (Deirdre Saoirse)
> > 4. Re: My two cents worth re Python Newbies (Remco Gerlich)
> > 5. Re: Tip : building Apache modules under Compaq Tru-64 Unix
> > (formerly Digital Unix / OSF1) (Deirdre Saoirse)
> > 6. Re: Memory Gotchas? (Kalle Svensson)
> > 7. Customising TK Apps. (Sharriff Aina)
> > 8. Database connectivity (GCS)
> > 9. Re: Database connectivity (Lindsay Davies)
> > 10. RE: Memory Gotchas? (alan.gauld@bt.com)
> > 11. RE: dictionary (alan.gauld@bt.com)
> > 12. Re: Customising TK Apps. (Danny Yoo)
> > 13. TK icons, and a dumb question. :-) (Chris McCormick)
> > 14. Re: Database connectivity (Brad Chandler)
> > 15. RE: Memory Gotchas? (Tim Johnson)
> >
> > --__--__--
> >
> > Message: 1
> > Date: Thu, 1 Mar 2001 23:13:57 -0800 (PST)
> > From: Deirdre Saoirse <deirdre@deirdre.net>
> > To: Sheila King <sheila@thinkspot.net>
> > cc: <tutor@python.org>
> > Subject: Re: [Tutor] My two cents worth re Python Newbies
> >
> > On Thu, 1 Mar 2001, Sheila King wrote:
> >
> >> (1) if you don't have the patience to reply to a post, because it is in a FAQ
> >> or could be found by a search, then simply don't reply.
> >
> > There are a number of reasons I don't reply to specific posts:
> >
> > 1) Often, especially lately, I've simply been too busy.
> >
> > 2) The user asks a Windows-specific question that I don't know the answer
> > to.
> >
> > 3) I'd need to actually open an interpreter and futz for a couple minutes
> > and, while I could easily answer some questions, that takes too much
> > interruption.
> >
> > On the other hand, I don't see questions going unanswered (at least not
> > for long), so I think that the system works pretty well.
> >
> > --
> > _Deirdre              deirdre@deirdre.net         http://www.deirdre.net
> > "I love deadlines. I like the whooshing sound they make as they fly by."
> > - Douglas Adams
> >
> >
> >
> > --__--__--
> >
> > Message: 2
> > From: Sheila King <sheila@thinkspot.net>
> > To: Deirdre Saoirse <deirdre@deirdre.net>
> > Cc: <tutor@python.org>
> > Subject: Re: [Tutor] My two cents worth re Python Newbies
> > Date: Thu, 01 Mar 2001 23:25:42 -0800
> >
> > On Thu, 1 Mar 2001 23:13:57 -0800 (PST), Deirdre Saoirse <deirdre@deirdre.net>
> > wrote about Re: [Tutor] My two cents worth re Python Newbies:
> >
> > :On the other hand, I don't see questions going unanswered (at least not
> > :for long), so I think that the system works pretty well.
> >
> > Well, that's kind of what I was saying, only much more succinct.
> >
> > --
> > Sheila King
> > http://www.thinkspot.net/sheila/
> > http://www.k12groups.org/
> >
> >
> >
> > --__--__--
> >
> > Message: 3
> > Date: Thu, 1 Mar 2001 23:22:57 -0800 (PST)
> > From: Deirdre Saoirse <deirdre@deirdre.net>
> > To: Sheila King <sheila@thinkspot.net>
> > cc: <tutor@python.org>
> > Subject: Re: [Tutor] My two cents worth re Python Newbies
> >
> > On Thu, 1 Mar 2001, Sheila King wrote:
> >
> >> On Thu, 1 Mar 2001 23:13:57 -0800 (PST), Deirdre Saoirse
> >> <deirdre@deirdre.net>
> >> wrote about Re: [Tutor] My two cents worth re Python Newbies:
> >>
> >> :On the other hand, I don't see questions going unanswered (at least not
> >> :for long), so I think that the system works pretty well.
> >>
> >> Well, that's kind of what I was saying, only much more succinct.
> >
> > That's the problem with having had Horrible Hugh as an English teacher: he
> > could cut 50% out of anyone's writing without changing the meaning.
> >
> > And here I am trying to get my Master's degree in novel writing.
> >
> > I'm ruined, I say. :)
> >
> > --
> > _Deirdre              deirdre@deirdre.net         http://www.deirdre.net
> > "I love deadlines. I like the whooshing sound they make as they fly by."
> > - Douglas Adams
> >
> >
> >
> > --__--__--
> >
> > Message: 4
> > Date: Fri, 2 Mar 2001 08:30:48 +0100
> > From: Remco Gerlich <scarblac@pino.selwerd.nl>
> > To: tutor@python.org
> > Subject: Re: [Tutor] My two cents worth re Python Newbies
> >
> > On Wed, Feb 28, 2001 at 12:43:53PM +1000, Arthur Watts wrote:
> >> The majority of posts to the Tutor mailing lists are from people who
> >> have tried to resolve a particular problem before resorting to the list.
> >> Some, however, are simply 'noise'. I find the patient, thoughtful replies
> >> given by the good souls on this list to be a real eye-opener, and I commend
> >> you for your warmth and dedication when responding to newbie enquiries. My
> >> own view is that the list should be for people who are able to :
> >>
> >> a. Read
> >> b. Use a Net search engine
> >> c. Navigate to www.python.org
> >> d. Use the skills detailed above to find other Python resources
> >
> > My own view is that the list should be for people who are new to Python and
> > want to learn it, and that's all.
> >
> > Someone on comp.lang.python asked what a text editor was and got some good
> > replies. On the other hand sometimes extremely difficult questions will be
> > answered real quickly as well. That's what I like about the Python community.
> >
> >> I realise that some may brand me elitist, but I am far from it : I
> >> still have a lot to learn re. Python and other Open Source products. The key
> >> is that I am prepared to actually cut some code or attempt to configure a
> >> product before I fire off a posting re. a particular issue.  We need to
> >> welcome thinking people to the Python community, and filter out those who
> >> have a problem with RTFM.
> >
> > This is where I totally disagree. What we need to do is help people learn
> > Python. That's what this list does. If they have a problem with thinking or
> > RTFM, we can teach them. If you don't want to waste time explaining stuff
> > that is obvious to you, then don't.
> >
> > Filtering out people because they're not intelligent enough according to you
> > is the most elitist idea I've heard this week.
> >
> > The *last* thing the community needs is people who point out "RTFM" to every
> > question they see...
> >
> > --
> > Remco Gerlich
> >
> >
> > --__--__--
> >
> > Message: 5
> > Date: Thu, 1 Mar 2001 23:34:41 -0800 (PST)
> > From: Deirdre Saoirse <deirdre@deirdre.net>
> > To: Arthur Watts <arthur.watts@gbst.com>
> > cc: "'tutor@python.org'" <tutor@python.org>
> > Subject: Re: [Tutor] Tip : building Apache modules under Compaq Tru-64 Unix
> > (formerly Digital Unix / OSF1)
> >
> > On Fri, 2 Mar 2001, Arthur Watts wrote:
> >
> >> Those of us with Tru-64 often run into some interesting problems
> >> when buiilding Open Source software, particularly software which does
> >> not come with a configure script. The recent upgrade to v5.0 of Tru-64
> >> caught out a lot of the configure scripts, but this tip is for those
> >> who have to 'wing it' completely.
> >
> > Thanks. I remember when I was using 32 and 64 bit IRIX and the info was
> > hard to find to get certain things to work.
> >
> > --
> > _Deirdre              deirdre@deirdre.net         http://www.deirdre.net
> > "I love deadlines. I like the whooshing sound they make as they fly by."
> > - Douglas Adams
> >
> >
> >
> > --__--__--
> >
> > Message: 6
> > Date: Fri, 2 Mar 2001 11:38:01 +0100
> > From: Kalle Svensson <kalle@gnupung.net>
> > To: tutor@python.org
> > Subject: Re: [Tutor] Memory Gotchas?
> >
> >
> > --5mCyUwZo2JvN/JJP
> > Content-Type: text/plain; charset=us-ascii
> > Content-Disposition: inline
> > Content-Transfer-Encoding: quoted-printable
> >
> > Sez Tim Johnson:
> >> Hello All:
> >> I would appreciate being pointed towards documentation on Python
> >> memory allocation.
> >> =20
> >> I'm especially interested in avoiding coding mistakes which could lead to
> >> memory leaks.
> >
> > Well, there are basically two kinds of memory leaks in python programs.
> >
> > 1) Circular references
> > [a good description here, anyone?]
> > Basically, they are not a very big problem with the GC in 2.0, but may well
> > bite you in 1.5.2.
> > More about them in the FAQ: http://www.python.org/doc/FAQ.html#6.14
> > A module by Tim Peters to detect them:
> > http://www.python.org/ftp/python/contrib-09-Dec-1999/System/Cyclops.py
> >
> > 2) Memory leaks in C modules.
> > This can be due to bad reference counting (not Py_DECREF()ing enough) or
> > just ordinary C memory leaks (malloc() without free()).
> > Also note that the opposite is also possible, leading to segmentation fault=
> > s.
> >
> > HTH,
> > Kalle
> > --=20
> > Email: kalle@gnupung.net     | You can tune a filesystem, but you
> > Web: http://www.gnupung.net/ | can't tune a fish. -- man tunefs(8)
> > PGP fingerprint: 0C56 B171 8159 327F 1824 F5DE 74D7 80D7 BF3B B1DD
> >
> > --5mCyUwZo2JvN/JJP
> > Content-Type: application/pgp-signature
> > Content-Disposition: inline
> >
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.0.4 (GNU/Linux)
> > Comment: For info see http://www.gnupg.org
> >
> > iD8DBQE6n3gJdNeA1787sd0RAsEMAKC6VQg8qoeVjrBS3pqK89mNb1mq4ACgvUT4
> > cU4keSE4qwolO2QltClo784=
> > =NNeH
> > -----END PGP SIGNATURE-----
> >
> > --5mCyUwZo2JvN/JJP--
> >
> >
> > --__--__--
> >
> > Message: 7
> > Date: Fri, 2 Mar 2001 06:07:41 -0500
> > From: Sharriff Aina <NHYTRO@compuserve.com>
> > To: "INTERNET:tutor@python.org" <tutor@python.org>
> > Subject: [Tutor] Customising TK Apps.
> >
> > Hi Python- Tutor list!
> >
> > I was wondering if one is able to customize TK applications, for example
> > the little "tk" that appears in the frame bar of a TK application, my =
> >
> > introductory Python book from O=B4reily does not explain this feature.
> >
> >
> > Thanks
> >
> >
> > Sharriff
> >
> >
> >
> > --__--__--
> >
> > Message: 8
> > Date: Fri, 2 Mar 2001 12:09:53 +0100
> > From: GCS <gcs@agentsinside.com>
> > To: tutor@python.org
> > Subject: [Tutor] Database connectivity
> >
> > Hello,
> >
> > Can someone point me out with a good documentation how to connect to Postgres?
> > I can not find any of them in the library reference. Is it supported?
> >
> > Regards, Laszlo
> >
> >
> > --__--__--
> >
> > Message: 9
> > Date: Fri, 2 Mar 2001 11:32:12 +0000
> > To: tutor@python.org
> > From: Lindsay Davies <Lindsay.Davies@moonshine.co.uk>
> > Subject: Re: [Tutor] Database connectivity
> >
> > On 2/3/01, GCS wrote about '[Tutor] Database connectivity':
> >> Hello,
> >>
> >> Can someone point me out with a good documentation how to connect to
> >> Postgres?
> >> I can not find any of them in the library reference. Is it supported?
> >
> > Here are some pointers...
> >
> > http://www.python.org/topics/database/DatabaseAPI-2.0.html
> > http://www.python.org/topics/database/
> > http://www.druid.net/pygresql/
> > http://popy.sourceforge.net/
> >
> > Best wishes,
> >
> > Lindsay
> >
> >
> >
> > --__--__--
> >
> > Message: 10
> > From: alan.gauld@bt.com
> > To: tim@johnsons-web.com, tutor@python.org
> > Subject: RE: [Tutor] Memory Gotchas?
> > Date: Fri, 2 Mar 2001 11:24:29 -0000
> >
> >> I would appreciate being pointed towards documentation on Python
> >> memory allocation.
> >
> > Well, in principle you shouldn't need to worry since
> > the garbage collector will do it for you. If you try
> > to be too clever and anticipate what the GC does you
> > run the risk of writing code that won't work as expected
> > in later versiuons of Python. Its usually better to
> > just trust the GC...
> >
> > But if you must find out whats happening under the hood
> > you can look at the Python Reference Manual about the
> > Garbage Collector. ISTR it has pretty good descriptions
> > of just what is colleted and when.
> >
> >> I'm especially interested in avoiding coding mistakes which
> >> could lead to memory leaks.
> >
> > AFAIK, aside from circular references, there aren't too many
> > possibilities. Its not like C/C++
> >
> > Alan g.
> >
> >
> > --__--__--
> >
> > Message: 11
> > From: alan.gauld@bt.com
> > To: toxx@post.com, tutor@python.org
> > Subject: RE: [Tutor] dictionary
> > Date: Fri, 2 Mar 2001 11:20:35 -0000
> >
> >> i have file which contain dictionary. and i wrote some code
> >> and import the dictionary from that file
> >
> > I assume you have a file containing some kind of
> > paired information rather than a python dictionary?
> > Maybe it looks like:
> > ------------
> > SomeKey: A string that matches the key
> > AnotherKey: A string that matcher another key
> > ...etc.
> > ------------
> >
> > You have written a file that reads this file
> > - maybe into a Python dictionary? I'll assume
> > so...
> >
> >
> >> and i want to add entry to existing
> >> dictionary and after this to save the
> >> change to original file.
> >
> > Add to the dictionary as normal Python:
> >
> > filedict['BrandNew'] = 'Yet another string'
> >
> > Then save the entire dictionary by closing the file,
> > opening it in read mode and writing out your dictionary:
> >
> > close(infile)
> > outfile = open('MyDictionaryFile.txt','w')
> > for key in filedict.getkeys():
> > outfile.writeline(key + filedict[key])
> > close(outfile)
> >
> > Or am I making lots of wrong assumptions?
> >
> > Alan g.
> >
> >
> > --__--__--
> >
> > Message: 12
> > Date: Fri, 2 Mar 2001 04:24:37 -0800 (PST)
> > From: Danny Yoo <dyoo@hkn.eecs.berkeley.edu>
> > To: Sharriff Aina <NHYTRO@compuserve.com>
> > cc: "INTERNET:tutor@python.org" <tutor@python.org>
> > Subject: Re: [Tutor] Customising TK Apps.
> >
> > On Fri, 2 Mar 2001, Sharriff Aina wrote:
> >
> >> I was wondering if one is able to customize TK applications, for example
> >> the little "tk" that appears in the frame bar of a TK application, my=20
> >> introductory Python book from O=B4reily does not explain this feature.
> >
> > I took a quick look at a Tkinter-based game called PySol:
> >
> > http://wildsau.idv.uni-linz.ac.at/mfx/pysol/
> >
> > They have source code available, which is great, because it's one of the
> > most impressive demonstrations of Tkinter use that I've seen.  (Plus a
> > great time waster.  *grin*)
> >
> >
> > In the PySol source code, it appears that they use the call:
> >
> > wm_set_icon(top, app.dataloader.findIcon())
> >
> > (in src/main.py)
> >
> > and their definition of wm_set_icon() is this:
> >
> > ### src/tk/tkutil.py
> > def wm_set_icon(window, filename):
> > if not filename:
> > return
> > if os.name =3D=3D "posix":
> > window.wm_iconbitmap("@" + filename)
> > window.wm_iconmask("@" + filename)
> > ###
> >
> >
> > wm_iconbitmap() and wm_iconmask() do appear to be real functions, from a
> > quick interpreter check:
> >
> > ###
> >>>> x =3D Tkinter.Tk()
> >>>> x.wm_iconbitmap
> > <method Wm.wm_iconbitmap of Tk instance at 80929d8>
> >>>> x.wm_iconmask =20
> > <method Wm.wm_iconmask of Tk instance at 80929d8>
> > ###
> >
> >
> > This is all a large guess though, because I'm inexperienced with Tk stuff. =
> > =20
> > It does seem to be doing something, though, because in Linux, that part of
> > the code seems responsible for changing the icon.
> >
> > Can you check to see that PySol does change its icon appropriately on a
> > Windows system too?  If so, then we're on the right track.  If not, you'll
> > still have a fun solitare game installed on your system.  *grin*
> >
> >
> > Good luck!
> >
> >
> >
> > --__--__--
> >
> > Message: 13
> > Date: Fri, 2 Mar 2001 07:01:32 -0800 (PST)
> > From: Chris McCormick <livelikemad@yahoo.com>
> > To: tutor@python.org
> > Subject: [Tutor] TK icons, and a dumb question. :-)
> >
> > Someone was asking about the window icon in Tkinter.
> > I'm a newbie, so I don't know how to do it myself, but
> > there's a great reference called the Tkinter Life
> > Preserver at the Python site: -->
> > http://www.python.org/doc/life-preserver
> >
> > It has a section on the Tk window manager class
> > (Tkinter.Wm).  I think this is what you need to learn.
> > It's at
> > http://www.python.org/doc/life-preserver/WindowMgr.html.
> >
> > Then come back and tell us all how to do it. :-)
> >
> > Oh, and a dumb question - if you get the list in
> > digest format, is there any way to resond to a
> > particular thread/e-mail?
> >
> > - Chris (who is still working on getting reasonable
> > animation out of Tkinter, dagnabit)
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Get email at your own domain with Yahoo! Mail.
> > http://personal.mail.yahoo.com/
> >
> >
> > --__--__--
> >
> > Message: 14
> > From: "Brad Chandler" <mbc2@netdoor.com>
> > To: <tutor@python.org>
> > Subject: Re: [Tutor] Database connectivity
> > Date: Fri, 2 Mar 2001 09:45:07 -0600
> >
> > ----- Original Message -----
> > From: "GCS" <gcs@agentsinside.com>
> > To: <tutor@python.org>
> > Sent: Friday, March 02, 2001 5:09 AM
> > Subject: [Tutor] Database connectivity
> >
> >
> >> Hello,
> >>
> >> Can someone point me out with a good documentation how to connect to
> > Postgres?
> >> I can not find any of them in the library reference. Is it supported?
> >>
> >> Regards, Laszlo
> >
> > I use PyGreSQL and have been very pleased with it.  There are several others
> > out there and I've tried one other (I can't remember the name) but couldn't
> > get it to work.  If you installed Python from source, you should have no
> > problem compiling PyGreSQL.  But if you installed from an rpm, you might
> > need the development rpm as well (if there is one).  You might also need the
> > PostgreSQL source, I'm not sure.  I installed both python and postgres from
> > source so I'm not sure how it PyGreSQL would compile if had I used RPMs.
> >
> > Brad
> >
> >
> >
> > --__--__--
> >
> > Message: 15
> > From: Tim Johnson <tim@johnsons-web.com>
> > To: alan.gauld@bt.com,
> > tim@johnsons-web.com,
> > tutor@python.org
> > Subject: RE: [Tutor] Memory Gotchas?
> > Date: Fri, 2 Mar 2001 07:57:54 -0900
> >
> > Hi Alan:
> > On Fri, 02 Mar 2001, alan.gauld@bt.com wrote:
> > <snip>
> >> But if you must find out whats happening under the hood
> >> you can look at the Python Reference Manual about the
> >> Garbage Collector. ISTR it has pretty good descriptions
> >> of just what is colleted and when.
> > Thanks...............
> >>> I'm especially interested in avoiding coding mistakes which
> >>> could lead to memory leaks.
> >>
> >> AFAIK, aside from circular references, there aren't too many
> >> possibilities. Its not like C/C++
> > Yippee!!
> > Regards :)
> > --
> > Tim Johnson
> > -----------
> > "Of all manifestations of power,
> > restraint impresses the most."
> > -Thucydides
> >
> >
> >
> > --__--__--
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor@python.org
> > http://mail.python.org/mailman/listinfo/tutor
> >
> >
> > End of Tutor Digest
> 
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor

-- 

The Useless Python Repository has received an XHTML face-lift!
http://www.lowerstandard.com/python/pythonsource.html