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
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
[...]
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).
3 matches
Mail list logo