ut the working
directory of the interpreter?
--
Felix Dietrich
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
t that into the open() statement?
>
> What I've tried (none worked):
>
> file = open(rd1, 'r')
> file = open('rd1', 'r')
What do you mean by "none worked"? Did python respond with an error?
How did you figure that the calls to /open
argparse is here
> https://docs.python.org/3/library/argparse.html
True, but the /optparse/ module does not appear to be part of Python
2.6. ("new in version 3.2")
richard kappler writes:
>>> This is python 2.6.6 running on a Linux machine.
--
Felix Dietrich
___
/os.chdir/, /os.getcwd/, /os.expanduser/ specifically.
/sys.path/ is also related to the current working directory and relative
paths and it will come in handy when you import your own modules not
residing in any of the default directories while running the script with
a different working directory than its location.
--
Felix Dietrich
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Mark Lawrence writes:
> On 29/05/2015 01:16, Felix Dietrich wrote:
>
>> True, but the /optparse/ module does not appear to be part of Python
>> 2.6. ("new in version 3.2")
>
> If you mean argparse you're correct, but it's in 2.7. My point is
> th
to
be easily called from a directory in your PATH environment variable:
$ chmod u+x LED_model_utf8.py
$ ./LED_model_utf8.py LED_model_utf8.py LED_IV.txt
--
Felix Dietrich
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
rong with the formatting and Python is
> sensitive to that, so seeing your actual code would be a good idea.
Could you also provide a small set of sample data that fails, maybe
$ head LED_IV.txt > sample.txt
will be enough.
--
Felix Dietrich
__
)
You might want to catch StopIteration here so that you can handle the
case that the shop runs out of the initial stack of pizzas. ;)
--
Felix Dietrich
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
expected. Maybe something is wrong with your local copy of
the xml-file.
--
Felix Dietrich
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
hould be reserved for
"constants",
- first letter capitalisation should be reserved for (something called)
classes,
- give them meaningful names
Here's some reading about the suggested python-code styling conventions
(you don't need to read that now):
http://www.python.org
ur program does not read
another line of input and therefore the value of /line/ never changes
and gets no chance to become the empty string.
--
Felix Dietrich
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
11 matches
Mail list logo