<FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size=2><DIV>V Pythone 2.6 by mali byt uz k dispozicii funkcie print() a format()</DIV><DIV>&nbsp;</DIV><DIV>Ak uz to mate nainstalovane a mate s tym skusenosti, ako&nbsp;sa urobi v buducnosti&nbsp;napriklad toto?:</DIV><DIV>&nbsp;</DIV><DIV>&nbsp; <FONT face="Default Monospace,Courier New,Courier,monospace">print " spam='%s'&nbsp;&nbsp;&nbsp; egs='%s'" % (spam, eggs)</FONT></DIV><DIV>&nbsp;</DIV><DIV>Ja som to pochopil podla <A href="http://docs.python.org/whatsnew/2.6.html" target=blank>http://docs.python.org/whatsnew/2.6.html</A>&nbsp;tak, ze sa to bude musiet zapisovat&nbsp;bud cez pozicne argumenty nejako takto</DIV><DIV>&nbsp;</DIV><DIV>&nbsp;&nbsp;<FONT face="Default Monospace,Courier New,Courier,monospace">print (" spam='{0}'&nbsp;&nbsp;&nbsp; egs='{1}'".format(spam, eggs))</FONT></DIV><DIV>&nbsp;</DIV><DIV>alebo, cez pomenovane argumenty asi takto</DIV><DIV>&nbsp;</DIV><DIV><FONT face="Default Monospace,Courier New,Courier,monospace"><FONT face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif">&nbsp; </FONT>print (" spam='{spam}'&nbsp;&nbsp;&nbsp; egs='{eggs}'".format(spam=spam, eggs=eggs))</FONT></DIV><DIV>&nbsp;</DIV><DIV>Vyzera to o dost zlozitejsie ako povodny zapis :-)</DIV><DIV>&nbsp;</DIV><DIV><FONT color=#990099>-----python-bounces@py.cz wrote: -----<BR><BR></FONT><BLOCKQUOTE style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">To: Konference PyCZ &lt;python@py.cz&gt;<BR>From: Pavel Kosina &lt;geon@post.cz&gt;<BR>Sent by: python-bounces@py.cz<BR>Date: 02.10.2008 18:21<BR>Subject: [python] python 2.6 released<BR><BR><FONT face="Default Monospace,Courier New,Courier,monospace" size=2>Asi jdu s křížkem po funuse, protože všechny hlavní portály o tom již <BR>informovali: Python 2.6 je vydán.<BR>Python 2.6 je spíše takovou dočasnou přechodkou mezi 2.5 a 3.0, jak píše <BR>A.M. Kuchling:<BR><BR>The major theme of Python 2.6 is preparing the migration path to Python <BR>3.0, a major redesign of the language. Whenever possible, Python 2.6 <BR>incorporates new features and syntax from 3.0 while remaining compatible <BR>with existing code by not removing older features or syntax. When it&#8217;s <BR>not possible to do that, Python 2.6 tries to do what it can, adding <BR>compatibility functions in a future_builtins <BR>&lt;<A href="http://docs.python.org/library/future_builtins.html" target=blank>http://docs.python.org/library/future_builtins.html</A>&gt; module and a /-3/ <BR>&lt;<A href="http://docs.python.org/using/cmdline.html#cmdoption-3" target=blank>http://docs.python.org/using/cmdline.html#cmdoption-3</A>&gt; switch to warn <BR>about usages that will become unsupported in 3.0.<BR><BR><A href="http://docs.python.org/whatsnew/2.6.html" target=blank>http://docs.python.org/whatsnew/2.6.html</A><BR><A href="http://www.python.org/download/" target=blank>http://www.python.org/download/</A><BR><BR>-- <BR>geon<BR>Pavel Kosina<BR><BR>_______________________________________________<BR>Python mailing list<BR>Python@py.cz<BR><A href="http://www.py.cz/mailman/listinfo/python" target=blank>http://www.py.cz/mailman/listinfo/python</A></FONT></BLOCKQUOTE><BR></DIV></FONT>