Newbie pythoner, with bizzare problem

Donn Cave donn at oz.net
Sat Jul 22 11:26:26 EDT 2000


Quoth claird at starbase.neosoft.com (Cameron Laird):
| In article <m33dl2o39d.fsf at atrus.jesus.cam.ac.uk>,
| Michael Hudson  <mwh21 at cam.ac.uk> wrote:
...
|> 5 gets you 7 that you have added a 
|>
|> from os import *
|>
|> to your script.
|>
|> Don't do that.
| 			.
| 			.
| 			.
| I'd be willing to raise the odds on that bet.

Me too.

| You're also right that
|   from os import *
| is, of course, universally deprecated.

So where do so many new programmers learn to do this?
This is a serious question.  Is there some tutorial
out there that leads them astray?

| What surprises me, though, is that no one ever
| mentions the possibility of writing
|   inp = __builtin__.open("c:/autoexec.bat",'r')

What surprises me is that you mentioned it.  I mean,
it's interesting in an academic way, but it's not
clear to me how you would see that working in practice.

	Donn Cave, donn at oz.net



More information about the Python-list mailing list