Tim Rowe a écrit :
2009/2/4 Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr:
# somemodule.py
import os
if os.uname()[0] == Linux:
On an MS Windows system, os.uname()[0] raises an AttributeError
Thanks for the correction - as you may have guessed, I have not used
windows for
2009/2/5 Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid:
Thanks for the correction - as you may have guessed, I have not used windows
for years !-)
And I can't get Linux running (more precisely, I can't /keep/
X-Windows running). Isn't it a good job that Python is
Firstly hi, I don't know any of you yet but am picking up Python and
will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4
years of a comp tech degree, long story) and am learning Python, 'cos I
saw some code and it just looks a really nice language to work with. I
come from
On Feb 4, 10:47 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
Firstly hi, I don't know any of you yet but am picking up Python and
will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4
years of a comp tech degree, long story) and am learning Python, 'cos I
saw
Mike Driscoll wrote:
On Feb 4, 10:47 am, Catherine Heathcote
catherine.heathc...@gmail.com wrote:
Firstly hi, I don't know any of you yet but am picking up Python and
will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4
years of a comp tech degree, long story) and am learning
Catherine Heathcote wrote:
Firstly hi, I don't know any of you yet but am picking up Python and
will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4
years of a comp tech degree, long story) and am learning Python, 'cos
I saw some code and it just looks a really nice language
Quoth Catherine Heathcote catherine.heathc...@gmail.com:
all goes well. I have an idea for a small project, an overly simplistic
interactive fiction engine (well more like those old choose your own
adventure books, used to love those!) that uses XML for its map files.
The main issues I see
Catherine Heathcote a écrit :
Firstly hi, I don't know any of you yet but am picking up Python and
will be lurking here a lot lol. I am a hobbiest coder (did 3 out of 4
years of a comp tech degree, long story) and am learning Python, 'cos I
saw some code and it just looks a really nice
2009/2/4 Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr:
# somemodule.py
import os
if os.uname()[0] == Linux:
On an MS Windows system, os.uname()[0] raises an AttributeError -- sys
doesn't seem to contain uname. Is that a Linux thing? Would os.name
work on Linux? Or would one
On Feb 5, 11:14 am, Tim Rowe digi...@gmail.com wrote:
...
On an MS Windows system, os.uname()[0] raises an AttributeError -- sys
doesn't seem to contain uname. Is that a Linux thing? Would os.name
work on Linux? Or would one have to use exception handling and catch
the Windows case?
It
2009/2/5 afri...@yahoo.co.uk:
On Feb 5, 11:14 am, Tim Rowe digi...@gmail.com wrote:
...
On an MS Windows system, os.uname()[0] raises an AttributeError -- sys
doesn't seem to contain uname. Is that a Linux thing? Would os.name
work on Linux? Or would one have to use exception handling and
On Feb 5, 11:45 am, Tim Rowe digi...@gmail.com wrote:
[snip]
Python in a Nutshell states that os.uname exists only on certain
platforms, and in the code sample wraps it in a try statement. That
seems to be the safe way to go -- except (and I don't know much about
this) wouldn't code have to
12 matches
Mail list logo