[Tutor] Division

Gregor Lingl glingl@aon.at
Sun, 2 Dec 2001 17:59:24 +0100


This is a multi-part message in MIME format.

------=_NextPart_000_00A7_01C17B5B.13645F30
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi!

As I'm starting to give a new course 'Introduction to
programming' in Jan 2002. It's for young students in the
age of 15/16. (Of course) I shall use Python.
I'd consider it an advantage not to confuse my students
in the beginning with the specialities the overlaoding of=20
the division-operator (although I had to do so for several times
until now). But neither with the import from future
statement.

So my question is: Is there a way to start the Python-Interpreter
with new division enabled, so one needs not to write=20
'from __future__ import division' at the beginning of every program
file which uses division (using some switch, editing some startup=20
file or similar)?

Although this is not an issue of major importance, I'm curious about
it.

Thanks in advance
Gregor
=20


------=_NextPart_000_00A7_01C17B5B.13645F30
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3D"Courier New" size=3D2>Hi!</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>As I'm starting to give a new =
course=20
'Introduction to</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>programming' in Jan 2002. It's =
for young=20
students in the</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>age of 15/16. (Of course) I =
shall=20
use&nbsp;Python.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>I'd consider it an advantage =
not to confuse=20
my students</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>in the beginning with the =
specialities the=20
overlaoding of </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>the division-operator (although =
I had to do=20
so&nbsp;for several times</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>until now). But neither with =
the import=20
from future</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>statement.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>So my question is: Is there a =
way to start=20
the Python-Interpreter</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>with new division enabled, so =
one needs not=20
to write </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>'from __future__ import =
division' at the=20
beginning of every program</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>file which uses division (using =
some=20
switch, editing some startup </FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>file or similar)?</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Although this is not an issue =
of major=20
importance, I'm curious about</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>it.</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Thanks in advance</FONT></DIV>
<DIV><FONT face=3D"Courier New" size=3D2>Gregor</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3D"Courier New" =
size=3D2></FONT>&nbsp;</DIV></BODY></HTML>

------=_NextPart_000_00A7_01C17B5B.13645F30--