Код | c_Connect = MySQLdb.connect( host=c_host, db=c_database, user=c_user ) print repr( c_Connect.__dict__ ) |
выводит
Цитата | {'encoders': {<type 'int'>: <function Thing2Str at 0x87c7e9c>, <type 'long'>: <function Thing2Str at 0x87c7e9c>, <type 'instance'>: <function Instance2Str at 0x87c7fb4>, <type 'list'>: <built-in function escape_sequence>, <type 'datetime.timedelta'>: <function DateTimeDelta2literal at 0xf14e1c6c>, <type 'array.array'>: <function array2Str at 0x87b4064>, <type 'bool'>: <function Bool2Str at 0x87b409c>, <type 'unicode'>: <function unicode_literal at 0x87c7064>, <class 'sets.Set'>: <function Set2Str at 0x87c7e64>, <type 'object'>: <function Instance2Str at 0x87c7fb4>, <type 'float'>: <function Float2Str at 0x87c7f0c>, <type 'dict'>: <built-in function escape_dict>, <type 'str'>: <function string_literal at 0x87b49cc>, 'datetime.datetime': 'datetime2str', <type 'tuple'>: <built-in function escape_sequence>, <type 'NoneType'>: <function None2NULL at 0x87c7f44>, <type 'datetime.datetime'>: <function DateTime2literal at 0xf14e1c34>}, 'string_decoder': <function string_decoder at 0x87c702c>, 'messages': [], '_transactional': 8192L, '_server_version': (5, 0), 'unicode_literal': <function unicode_literal at 0x87c7064>, 'cursorclass': <class 'MySQLdb.cursors.Cursor'>} |
|