<br><font size=2 face="sans-serif">No tym som si prave neni isty, pretoze
na http://docs.python.org/whatsnew/2.6.html sa pise:</font>
<br><font size=3>"In Python 3.0, the <i>%</i> operator is supplemented
by a more powerful string formatting method, </font><font size=3><tt>format()</tt></font><font size=3>..."</font>
<br><font size=3>Takze neviem, ci bude %-operator existovat sucasne s funkciou
format().</font>
<br><font size=3> </font><font size=2 face="sans-serif"><br>
</font>
<br>
<br>
<br>
<table width=100%>
<tr>
<td><img src=cid:_1_04EEC6B004EEC2C80026CBD4C12574DA>
<td width=100%>
<table width=100%>
<tr valign=top>
<td width=100%><font size=2 face="sans-serif"><b>Re: [python] python 2.6
released</b></font></table>
<br>
<table width=100%>
<tr>
<td><font size=2 color=#e26200 face="sans-serif"><b>Tomas Brabenec </b></font>
<td><font size=2 color=#929292 face="sans-serif">to:</font>
<td><font size=2 face="sans-serif">Konference PyCZ</font>
<td>
<div align=right><font size=1 face="sans-serif">06.10.2008 07:53</font></div></table>
<br>
<table width=100%>
<tr>
<td>
<table width=100%>
<tr>
<td><font size=2 color=#929292 face="sans-serif">Sent by:</font>
<td width=100%><font size=2 color=#e26200 face="sans-serif"><b>python-bounces@py.cz</b></font></table>
<br><font size=1 face="sans-serif"><b>Please respond to Konference PyCZ</b></font>
<td>
<div align=right></div></table>
<br></table>
<br>
<br>
<hr>
<br>
<br>
<br><font size=2><tt>Já teda nevim, ale mohlo by to byt preci takhle:<br>
<br>
print(""" spam='%s' egs='%s' """ % (spam,egs))<br>
<br>
Nebo se pletu ?<br>
<br>
Tomas<br>
<br>
<br>
On 4.10.2008 21:03, RMiklos@pss.sk wrote:<br>
> V Pythone 2.6 by mali byt uz k dispozicii funkcie print() a format()<br>
> Ak uz to mate nainstalovane a mate s tym skusenosti, ako sa urobi
v <br>
> buducnosti napriklad toto?:<br>
> print " spam='%s' egs='%s'" % (spam, eggs)<br>
> Ja som to pochopil podla http://docs.python.org/whatsnew/2.6.html
tak, <br>
> ze sa to bude musiet zapisovat bud cez pozicne argumenty nejako takto<br>
> print (" spam='{0}' egs='{1}'".format(spam, eggs))<br>
> alebo, cez pomenovane argumenty asi takto<br>
> print (" spam='{spam}' egs='{eggs}'".format(spam=spam, eggs=eggs))<br>
> Vyzera to o dost zlozitejsie ako povodny zapis :-)<br>
> -----python-bounces@py.cz wrote: -----<br>
><br>
> To: Konference PyCZ <python@py.cz><br>
> From: Pavel Kosina <geon@post.cz><br>
> Sent by: python-bounces@py.cz<br>
> Date: 02.10.2008 18:21<br>
> Subject: [python] python 2.6 released<br>
><br>
> 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,<br>
> jak píše<br>
> A.M. Kuchling:<br>
><br>
> The major theme of Python 2.6 is preparing the migration
path to<br>
> 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<br>
> compatible<br>
> with existing code by not removing older features or
syntax. When<br>
> it’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>
> <http://docs.python.org/library/future_builtins.html>
module and a<br>
> /-3/<br>
> <http://docs.python.org/using/cmdline.html#cmdoption-3>
switch to<br>
> warn<br>
> about usages that will become unsupported in 3.0.<br>
><br>
> http://docs.python.org/whatsnew/2.6.html<br>
> http://www.python.org/download/<br>
><br>
> -- <br>
> geon<br>
> Pavel Kosina<br>
><br>
> _______________________________________________<br>
> Python mailing list<br>
> Python@py.cz<br>
> http://www.py.cz/mailman/listinfo/python<br>
><br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> Python mailing list<br>
> Python@py.cz<br>
> http://www.py.cz/mailman/listinfo/python<br>
_______________________________________________<br>
Python mailing list<br>
Python@py.cz<br>
http://www.py.cz/mailman/listinfo/python</tt></font>
<br>