Can a simple a==b 'hang' in and endless loop?

Terry Hancock hancock at anansispaceworks.com
Thu Jan 19 14:58:52 EST 2006


On Thu, 19 Jan 2006 17:42:40 -0000
Grant Edwards <grante at visi.com> wrote:

> On 2006-01-19, Fredrik Lundh <fredrik at pythonware.com>
> wrote:
> 
> >> > It is precisely this power that makes C such a
> >dangerous > > language to program in -- it's what makes
> >it so easy to crash > > your program, any other program
> >running on the same machine, >
> >> Nonsense.  Under Windows 3.0 that may be true, but on
> >any real > OS, you can't "crash any other program running
> >on the same > machien" in C, assembly, Python, or Lisp.
> >
> > given that it's trivial to create fork bombs and memory
> > monsters in all those languages, I think you might need
> > to define the term "real OS".
> >
> > (or do you run all your programs in a virtual sandbox ?)
> 
> I guess I never called that sort of DOS attack "crashing"
> another program.  If that's the sort of think he's talking
> about, those are just as trivial to do do in Python as
> they are in C.

But you do agree that you can shoot your dog in the foot
with it, though, I take it? ;-)

Yes, true multitasking operating systems and CPUs that
support them with protected memory spaces are a good thing.
My C experience mostly dates from machines that didn't have
those features.

Cheers,
Terry

-- 
Terry Hancock (hancock at AnansiSpaceworks.com)
Anansi Spaceworks http://www.AnansiSpaceworks.com




More information about the Python-list mailing list