Re: Why I chose Python over Ruby

2006-03-06 Thread Marcin Mielżyński
Roy Smith wrote: > In article <[EMAIL PROTECTED]>, > Bil Kleb <[EMAIL PROTECTED]> wrote: > >> The parensless calls also allow one to write beautiful >> DSLs with Ruby. > > What's a DSL? Domain Specific Language. It is easy to tweak Rubys syntax and semantics into something that looks like anot

Re: Opening files without closing them

2006-03-05 Thread Marcin Mielżyński
Marcin Mielżyński wrote: > Sandra-24 wrote: >> I was reading over some python code recently, and I saw something like >> this: >> >> contents = open(file).read() >> >> And of course you can also do: >> >> open(file, "w").write(obj) >

Re: Opening files without closing them

2006-03-05 Thread Marcin Mielżyński
Sandra-24 wrote: > I was reading over some python code recently, and I saw something like > this: > > contents = open(file).read() > > And of course you can also do: > > open(file, "w").write(obj) > > Why do they no close the files? Is this sloppy programming or is the > file automatically clos

Re: Why I chose Python over Ruby

2006-03-05 Thread Marcin Mielżyński
Francois wrote: > I discovered Python a few months ago and soon decided to invest time in > learning it well. While surfing the net for Python, I also saw the hype > over Ruby and tried to find out more about it, before I definitely > embarked on studying and practicing Python. I recently found two