Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code:102) in /var/www/iplanru/data/www/intesco.ru/d59ed/index.php(1) : eval()'d code(2) : eval()'d code on line 4
WMc
@ s d d d g Z d d k Td d k Z e e i 7Z d d k l Z l Z d d k l Z d d k l Z
d d k Z e
d Z e d
j o5d d k l Z l Z e d d
e Z e d d d d Z e e e e j p t d e d d f d YZ x/ e d d e d d d f D] Z e GHq,Wd e d d f d YZ e d d i d d GHe d e i d! Z e i GHd d k Z e d d Z e e i GHn d S(" t dequet defaultdictt
namedtuplei( t *N( R R ( t
itemgetter( t iskeywordc B s e | e o | i d d i } n e e e | } x | f | D]w } e d | D p e d | n e | o e d | n | d i
o e d | qO qO We } x` | D]X } | i d o e d | n | | j o e d
| n | i
| q We | } e | i d d d
d !} d i d | D } d i d e | D } d e } x. e | D] \ }
} | d | |
f 7} qW| o | GHn e d e d d | d e d e } y | | UWn, e j
o } e | i d | n X| | }
e e d o% e i d
i i d d |
_ n |
S( s> Returns a new subclass of tuple with named fields.
>>> Point = namedtuple('Point', 'x y')
>>> Point.__doc__ # docstring for the new class
'Point(x, y)'
>>> p = Point(11, y=22) # instantiate with positional args or keywords
>>> p[0] + p[1] # indexable like a plain tuple
33
>>> x, y = p # unpack like a regular tuple
>>> x, y
(11, 22)
>>> p.x + p.y # fields also accessable by name
33
>>> d = p._asdict() # convert to a dictionary
>>> d['x']
11
>>> Point(**d) # convert from a dictionary
Point(x=11, y=22)
>>> p._replace(x=100) # _replace() is like str.replace() but targets named fields
Point(x=100, y=22)
t ,t c s s, x% | ] } | i p
| d j Vq Wd S( t _N( t isalnum( t .0t c( ( s! /usr/lib/python2.6/collections.pys + s sW Type names and field names can only contain alphanumeric characters and underscores: %rs2 Type names and field names cannot be a keyword: %ri s9 Type names and field names cannot start with a number: %rR s/ Field names cannot start with an underscore: %rs$ Encountered duplicate field name: %rt 't i is , c s s x | ] } d | Vq Wd S( s %s=%%rN( ( R
t name( ( s! /usr/lib/python2.6/collections.pys <