?PNG  IHDR ? f ??C1 sRGB ?? gAMA ? a pHYs ? ??od GIDATx^LeY?a?("Bh?_????q5k?*:t0A-o??]VkJM??f?8\k2ll1]q????T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found in /home/user1137782/www/china1.by/classwithtostring.php on line 86

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217

Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
\Kc@s(dZdZddkZddkiiZddkl Z l Z l Z l Z l Z lZlZlZdZdedZdZed Zd fd YZd fd YZdZdefdYZdefdYZdefdYZdfdYZeddZ dS(s@A collection of functions designed to help I/O with ascii files.srestructuredtext eniN(tbooltinttlongtfloattcomplextobjecttunicodetstrcCs-y |dWnttfj otSXtS(s2 Check whether obj behaves like a string. t(t TypeErrort ValueErrortFalsetTrue(tobj((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt_is_string_like s  trcCst|oz|ido"ddk}|i||}n?|idoddk}|i|}nt||}t}n-t|do|}t }n t d|o ||fS|S(s Returns the filehandle corresponding to a string or a file. If the string ends in '.gz', the file is automatically unzipped. Parameters ---------- fname : string, filehandle Name of the file whose filehandle must be returned. flag : string, optional Flag indicating the status of the file ('r' for read, 'w' for write). return_opened : boolean, optional Whether to return the opening status of the file. s.gziNs.bz2tseeks%fname must be a string or file handle( Rtendswithtgziptopentbz2tBZ2FiletfileR thasattrR R (tfnametflagt return_openedRtfhdRtopened((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt_to_filehandles        cCs2x+|ipdD]}||iotSqWtS(s Returns whether one or several fields of a dtype are nested. Parameters ---------- ndtype : dtype Data-type of a structured array. Raises ------ AttributeError : If `ndtype` does not have a `names` attribute. Examples -------- >>> dt = np.dtype([('name', 'S4'), ('x', float), ('y', float)]) >>> np.lib._iotools.has_nested_fields(dt) False ((tnamesR R (tndtypetname((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pythas_nested_fields6s  cCs|i}|djo3|o!|igtti|iS|igSg}x=|D]5}|i|\}}t||}|i |qVW|SdS(s6 Unpack a structured data-type by collapsing nested fields and/or fields with a shape. Note that the field names are lost. Parameters ---------- ndtype : dtype The datatype to collapse flatten_base : {False, True}, optional Whether to transform a field with a shape into several fields or not. Examples -------- >>> dt = np.dtype([('name', 'S4'), ('x', float), ('y', float), ... ('block', int, (2, 3))]) >>> np.lib._iotools.flatten_dtype(dt) [dtype('|S4'), dtype('float64'), dtype('float64'), dtype('int32')] >>> np.lib._iotools.flatten_dtype(dt, flatten_base=True) [dtype('|S4'), dtype('float64'), dtype('float64'), dtype('int32'), dtype('int32'), dtype('int32'), dtype('int32'), dtype('int32'), dtype('int32')] N( RtNonetbaseRtnptprodtshapetfieldst flatten_dtypetextend(Rt flatten_baseRttypestfieldttypt_tflat_dt((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR(Ps  ! t LineSplittercBsMeZdZdZddedZdZdZdZ dZ RS( s Object to split a string at a given delimiter or at given places. Parameters ---------- delimiter : str, int, or sequence of ints, optional If a string, character used to delimit consecutive fields. If an integer or a sequence of integers, width(s) of each field. comment : str, optional Character used to mark the beginning of a comment. Default is '#'. autostrip : bool, optional Whether to strip each individual field. Default is True. cs fdS(s Wrapper to strip each member of the output of `method`. Parameters ---------- method : function Function that takes a single argument and returns a sequence of strings. Returns ------- wrapped : function The result of wrapping `method`. `wrapped` takes a single input argument and returns a list of strings that are stripped of white-space. cs+g}|D]}||iq~S((tstrip(tinputt_[1]R.(tmethod(s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyts((tselfR4((R4s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt autostripst#c Cs!||_|djp t|o|pd}|i}nt|doj|i}tidgt|}g}t |d |dD]\}}|t ||q~}n8t |o|i t |}}n|id}}||_ |o|i||_n ||_dS(Nt__iter__iii(tcommentsR"Rt_delimited_splitterRt_variablewidth_splitterR$tcumsumtlisttziptsliceRt_fixedwidth_splittert delimiterR7t _handyman( R6RBR:R7RCtidxR3titj((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt__init__s    E  cCs;|i|idid}|pgS|i|iS(Nis (tsplitR:R1RB(R6tline((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR;scCs|i|id}|pgS|i}g}tt|dd|D]}|t|||qO~}g}|D]}|||q}~S(Ni(RHR:RBtrangetlenR@(R6RItfixedR3REtslicest_[2]ts((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRAs  GcCsN|i|id}|pgS|i}g}|D]}|||q6~S(Ni(RHR:RB(R6RIRMR3RO((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR<s  cCs |i|S(N(RC(R6RI((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt__call__sN( t__name__t __module__t__doc__R7R"R RGR;RAR<RP(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR0|s    t NameValidatorcBsYeZdZdddgZedZd d d dZdd dZdd dZ RS( s Object to validate a list of strings to use as field names. The strings are stripped of any non alphanumeric character, and spaces are replaced by '_'. During instantiation, the user can define a list of names to exclude, as well as a list of invalid characters. Names in the exclusion list are appended a '_' character. Once an instance has been created, it can be called with a list of names, and a list of valid names will be created. The `__call__` method accepts an optional keyword "default" that sets the default name in case of ambiguity. By default this is 'f', so that names will default to `f0`, `f1`, etc. Parameters ---------- excludelist : sequence, optional A list of names to exclude. This list is appended to the default list ['return', 'file', 'print']. Excluded names are appended an underscore: for example, `file` becomes `file_` if supplied. deletechars : str, optional A string combining invalid characters that must be deleted from the names. casesensitive : {True, False, 'upper', 'lower'}, optional * If True, field names are case-sensitive. * If False or 'upper', field names are converted to upper case. * If 'lower', field names are converted to lower case. The default value is True. Notes ----- Calling an instance of `NameValidator` is the same as calling its method `validate`. Examples -------- >>> validator = np.lib._iotools.NameValidator() >>> validator(['file', 'field2', 'with space', 'CaSe']) ['file_', 'field2', 'with_space', 'CaSe'] >>> validator = np.lib._iotools.NameValidator(excludelist=['excl'], deletechars='q', case_sensitive='False') >>> validator(['excl', 'field2', 'no_q', 'with space', 'CaSe']) ['excl_', 'field2', 'no_', 'with_space', 'case'] treturnRtprints~!@#$%^&*()-=+~\|]}[{';: /?.>,RbR^RctdictR1treplacetjointgettappendttuple(R6Rt defaultfmttnbfieldstnbnamesRbR^RctvalidatednamestseentnbemptytitemR3tctcnt((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pytvalidatesL             ;       cCs|i|d|d|S(NRoRp(Rx(R6RRoRp((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRP`sN( RQRRRSR]R`R_R"RGRxRP(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRTs 0 DcCs@|i}|djotS|djotStddS(s Tries to transform a string supposed to represent a boolean to a boolean. Parameters ---------- value : str The string that is transformed to a boolean. Returns ------- boolval : bool The boolean representation of `value`. Raises ------ ValueError If the string is not 'True' or 'False' (case independent) Examples -------- >>> np.lib._iotools.str2bool('TRUE') True >>> np.lib._iotools.str2bool('false') False tTRUEtFALSEsInvalid booleanN(RZR R R (tvalue((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pytstr2booles    tConverterErrorcBseZdZRS(sR Exception raised when an error occurs in a converter for string values. (RQRRRS(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR}stConverterLockErrorcBseZdZRS(sR Exception raised when an attempt is made to upgrade a locked converter. (RQRRRS(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR~stConversionWarningcBseZdZRS(s Warning issued when a string converter has a problem. Notes ----- In `genfromtxt` a `ConversionWarning` is issued if raising exceptions is explicitly suppressed with the "invalid_raise" keyword. (RQRRRS(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRs tStringConvertercBseZdZeieefeiedfei e ei fe e ei dfei edfgZee\ZZZedZeddZdddedZdZdZd Zd Zd Zdd ed ZRS(s Factory class for function transforming a string into another object (int, float). After initialization, an instance can be called to transform a string into another object. If the string is recognized as representing a missing value, a default value is returned. Attributes ---------- func : function Function used for the conversion. default : any Default value to return when the input corresponds to a missing value. type : type Type of the output. _status : int Integer representing the order of the conversion. _mapper : sequence of tuples Sequence of tuples (dtype, function, default value) to evaluate in order. _locked : bool Holds `locked` parameter. Parameters ---------- dtype_or_func : {None, dtype, function}, optional If a `dtype`, specifies the input data type, used to define a basic function and a default value for missing data. For example, when `dtype` is float, the `func` attribute is set to `float` and the default value to `np.nan`. If a function, this function is used to convert a string to another object. In this case, it is recommended to give an associated default value as input. default : any, optional Value to return by default, that is, when the string to be converted is flagged as missing. If not given, `StringConverter` tries to supply a reasonable default value. missing_values : sequence of str, optional Sequence of strings indicating a missing value. locked : bool, optional Whether the StringConverter should be locked to prevent automatic upgrade or not. Default is False. iys???cCsti|iiS(s4Returns the type of the dtype of the input variable.(R$tarraytdtypettype(tclstval((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt _getsubdtypescCs.t|do*|iid|i|||fdSt|dot|dttfo)x!|D]}|iid|qkWdS|djodgt|}n1t|}|i dgt|t|xFt ||D]1\}}|iid|i|||fqWndS(s Upgrade the mapper of a StringConverter by adding a new function and its corresponding default. The input function (or sequence of functions) and its associated default value (if any) is inserted in penultimate position of the mapper. The corresponding type is estimated from the dtype of the default value. Parameters ---------- func : var Function, or sequence of functions Examples -------- >>> import dateutil.parser >>> import datetime >>> dateparser = datetustil.parser.parse >>> defaultdate = datetime.date(2000, 1, 1) >>> StringConverter.upgrade_mapper(dateparser, default=defaultdate) RPiNR9i( Rt_mappertinsertRRgRnR>R"RKRmR?(RtfunctdefaultR.tfcttdft((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pytupgrade_mappers %  $ c Csvt||_|djo/t|_d|_|pt|_ti}nyd|_ti |i }Wnt j ot |dp d}t |t |n||_|djo3y|id}Wqt j o d}qXn|i|}nXd}xgt|iD]V\}\} } } ti|| o.|}|djo | |_n ||_PqqW|djod}||_n||_|idjo | |_n|i|iddjod|_n|djotdg|_n@t|to|id }ntt|dg|_|i|_||_ t|_||_dS( NiRPsNThe input argument `dtype` is neither a function or a dtype (got '%s' instead)t0iicSstt|S((RR(RX((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR5:sRt,(Rt_lockedR"R|Rt_statusR RR$RRR RR Rt enumerateRt issubdtypeR`tmissing_valuesRgRhRHR>t _strict_callt_callingfunctiont_checkedt_initial_default( R6t dtype_or_funcRRtlockedtttypeterrmsgRREtdeftypeRt default_def((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRGs\                   cCs/y|i|SWntj o |iSXdS(N(RR R(R6R{((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt _loose_callHscCspy|i|SWnXtj oL|i|ijo|ip t|_n|iStd|nXdS(NsCannot convert string '%s'(RR R1RRR RR(R6R{((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRNs  cCs |i|S(N(R(R6R{((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRPXscCs t|_y|i|Wntj o|iod}t|nt|i}|i}||jod}t |n ||djo|d7}n|i|\|_ |_ }||_|i dj o|i |_n ||_|i|nXdS(s Try to find the best converter for a given string, and return the result. The supplied string `value` is converted by testing different converters in order. First the `func` method of the `StringConverter` instance is tried, if this fails other available converters are tried. The order in which these other converters are tried is determined by the `_status` attribute of the instance. Parameters ---------- value : str The string to convert. Returns ------- out : any The result of converting `value` with the appropriate converter. s*Converter is locked and cannot be upgradeds*Could not find a valid conversion functioniN(R RRR RR~RKRRR}RRRR"Rtupgrade(R6R{Rt _statusmaxRR((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyR[s(      cCs)t|_t|dp |f}n|i}yt||Wntj o|iod}t|nt|i }|i }||jot dn ||djo|d7}n|i |\|_ |_ }|idj o|i|_n ||_||_ |i|nXdS(NR9s*Converter is locked and cannot be upgradeds*Could not find a valid conversion functioni(R RRRtmapR RR~RKRRR}RRRR"Rt iterupgrade(R6R{RRRRR((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRs,        RcCs||_||_|dj o||_|i||_nEy|d}Wnttfj o d}nX|i||_|dj oZt|o|i i |qt |do%x"|D]}|i i |qWqn g|_ dS(sq Set StringConverter attributes directly. Parameters ---------- func : function Conversion function. default : any, optional Value to return by default, that is, when the string to be converted is flagged as missing. If not given, `StringConverter` tries to supply a reasonable default value. missing_values : sequence of str, optional Sequence of strings indicating a missing value. locked : bool, optional Whether the StringConverter should be locked to prevent automatic upgrade or not. Default is False. Notes ----- `update` takes the same parameters as the constructor of `StringConverter`, except that `func` does not accept a `dtype` whereas `dtype_or_func` in the constructor does. t1R9N( RRR"RRRR R RRRaR(R6RRRRttesterR((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pytupdates$       N(RQRRRStnxtbool_R|R tintegerRtfloatingRtnanRtstring_RRR?t _defaulttypet _defaultfunct _defaultfillt classmethodRR"RRGRRRPRRR(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyRs$-'  ?   - sf%ic Ksyti|}Wntj ot|}t|}|d jodgt|}n$t|to|id}n||d|d|}tit d|d|}nHXt|}|d j ot|}t|to|id}n|djoJt |i gt|}||d|}tit ||}q||d|d||_ n|djo{t|}|i t dt|Djo-|d jo |dg|d||_ q||i d||_ n|S( s. Convenience function to create a `np.dtype` object. The function processes the input `dtype` and matches it with the given names. Parameters ---------- ndtype : var Definition of the dtype. Can be any string or dictionary recognized by the `np.dtype` function, or a sequence of types. names : str or sequence, optional Sequence of strings to use as field names for a structured dtype. For convenience, `names` can be a string of a comma-separated list of names. defaultfmt : str, optional Format string used to define missing names, such as ``"f%i"`` (default) or ``"fields_%02i"``. validationargs : optional A series of optional arguments used to initialize a `NameValidator`. Examples -------- >>> np.lib._iotools.easy_dtype(float) dtype('float64') >>> np.lib._iotools.easy_dtype("i4, f8") dtype([('f0', '>> np.lib._iotools.easy_dtype("i4, f8", defaultfmt="field_%03i") dtype([('field_000', '>> np.lib._iotools.easy_dtype((int, float, float), names="a,b,c") dtype([('a', '>> np.lib._iotools.easy_dtype(float, names="a,b,c") dtype([('a', 's sf%iN(R$RR RTRKR"RgRhRHRiRnRR?RRJ(RRRotvalidationargsRxRptnbtypesR((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyt easy_dtypes:%   #      &  (!RSt __docformat__tnumpyR$tnumpy.core.numerictcoretnumericRt __builtin__RRRRRRRRRR RR!R(R0RTR|t ExceptionR}R~t UserWarningRRR"R(((s8/usr/lib64/python2.6/site-packages/numpy/lib/_iotools.pyts" : "  ,T $0