Re: [gentoo-user] new machine : Python calculator

2012-09-20 Thread Philip Webb
120919 Marc Joliet wrote: 120918 Philip Webb purs...@ca.inter.net wrote: With Python running as interpreter, I would get much more capability, but I would need to enter the special line to load the math functions : is it possible to do it with some capitalised variable in .bashrc , which

Re: [gentoo-user] new machine : Python calculator

2012-09-20 Thread Marc Joliet
Am Thu, 20 Sep 2012 05:05:11 -0400 schrieb Philip Webb purs...@ca.inter.net: 120919 Marc Joliet wrote: 120918 Philip Webb purs...@ca.inter.net wrote: With Python running as interpreter, I would get much more capability, but I would need to enter the special line to load the math functions

Re: [gentoo-user] new machine : Python calculator

2012-09-20 Thread Marc Joliet
[...] def myprint(num, places=4, *args, **kargs): fmt_str = {:. + str(places) + f} print(fmt_str.format(num), *args, **kargs) OK, quick update because I just realised how weird it is to have positional arguments after a (potential) keyword argument (I really should go to bed).