MINI SHELL

Server : Apache/2.2.2 (Fedora)
System : Linux App1.pathumtani.go.th 2.6.20-1.2320.fc5smp #1 SMP Tue Jun 12 19:40:16 EDT 2007 i686
User : apache ( 48)
PHP Version : 5.2.9
Disable Function : NONE
Directory :  /proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/root/usr/lib/python2.4/site-packages/MySQLdb/converters.pyc
mò
ZkðAc@s^dZdklZlZlZlZlZdklZl	Z	dk
TdkTdkZdk
Z
d„Zd„Zd„ZeZd„Zd	„Zd
„Zd„Zd„Zd
„Zheie<eie<eie<eie<eie<eie<eie<eie<e
i e<ei!e<ei"e<ei#e<e$e%<e&e'<ei(e)<ei*e)<ei+e,<ei-e.<ei/e.<ei0e.<ei1e,<ei2e)<ei3e)<ei4e<ei5e6<ei7e8<ei9e:<ei;e<<ei=e	i>efe?e?fg<Z@ydkAlBZBeBe@ei0<WneCj
onXdS(s¨MySQLdb type conversion module

This module handles all the type conversions for MySQL. If the default
type conversions aren't what you need, you can make your own. The
dictionary conversions maps some kind of type to a conversion function
which returns the corresponding value:

Key: FIELD_TYPE.* (from MySQLdb.constants)

Conversion function:

    Arguments: string

    Returns: Python object

Key: Python type object (from types) or class

Conversion function:

    Arguments: Python object of indicated type or class AND 
               conversion dictionary

    Returns: SQL literal value

    Notes: Most conversion functions can ignore the dictionary, but
           it is a required parameter. It is necessary for converting
           things like sequences and instances.

Don't modify conversions if you can avoid it. Instead, make copies
(with the copy() method), modify the copies, and then pass them to
MySQL.connect().

(sstring_literalsescape_sequencesescape_dictsescapesNULL(s
FIELD_TYPEsFLAG(t*NcCs|idƒ}t|ŒS(Nt,(tstsplittvaluestSet(RR((t6/usr/lib/python2.4/site-packages/MySQLdb/converters.pytStr2Set+scCs
t|ƒS(s*Convert something into a string via str().N(tstrR(Rtd((Rt	Thing2Str/scCs
|iƒS(s¡Convert a unicode object to a string using the default encoding.
    This is only used as a placeholder for the real function, which
    is connection-dependent.N(Rtencode(RR	((RtUnicode2Str3scCsd|S(Ns%.15g(to(R
R	((Rt	Float2Str;scCstS(sConvert None to NULL.N(tNULL(R
R	((Rt	None2NULL>scCs
t||ƒS(sæConvert something into a SQL string literal.  If using
    MySQL-3.23 or newer, string_literal() is a method of the
    _mysql.MYSQL object, and this function will be overridden with
    that method when the connection is created.N(tstring_literalR
R	(R
R	((Rt
Thing2LiteralBscsɈi|iƒoˆ|i|ˆƒSnt|d„ˆiƒƒ}|o2ttdƒo"t|‡d†ˆiƒƒ}n|pˆti	|ˆƒSnˆ|dˆ|i<ˆ|d|ˆƒS(sL

    Convert an Instance to a string representation.  If the __str__()
    method produces acceptable output, then you don't need to add the
    class to conversions; it will be handled by the default
    converter. If the exact class is not found in d, it will use the
    first class it can find for which o is an instance.

    cCs#t|ƒtijo
t||ƒS(N(ttypetxttypest	ClassTypet
isinstanceR
(RR
((Rt<lambda>Zst
ObjectTypecs4t|ƒtijot||ƒoˆ|tj	S(N(RRRtTypeTypeRR
R	tInstance2Str(RR
(R	(RR^siN(
R	thas_keyR
t	__class__tfiltertkeystclthasattrRt
StringType(R
R	R ((R	RRLs
cCstid|ƒS(Ntc(tarrayR(R((Rt
char_arrayhscCst|iƒ|ƒS(N(RR
ttostringR	(R
R	((Rt	array2Strks(sDecimal(Dt__doc__t_mysqlRtescape_sequencetescape_dicttescapeRt	constantst
FIELD_TYPEtFLAGtsetsttimesRR$RR
RtLong2IntRRRRR%R'tIntTypetLongTypet	FloatTypetNoneTypet	TupleTypetListTypetDictTypetInstanceTypet	ArrayTypeR"tUnicodeTypeRtDateTimeTypetDateTime2literaltDateTimeDeltaTypetDateTimeDelta2literaltTINYtinttSHORTtLONGtlongtFLOATtfloattDOUBLEtDECIMALtLONGLONGtINT24tYEARtSETt	TIMESTAMPtmysql_timestamp_convertertDATETIMEtDateTime_or_NonetTIMEtTimeDelta_or_NonetDATEtDate_or_NonetBLOBtBINARYtNonetconversionstdecimaltDecimaltImportError(RYR.R,RR+R$RRR%RR[R*RR/RRR
R2RR'R((Rt?!s.%								
			ÿr#


Anon7 - 2021