[00:00:36] erraen is now online
[00:00:54] wonderfulll is now xa
[00:01:51] RaD is now away
[00:01:52] RaD is now away
[00:02:15] mdn is now offline
[00:02:18] GrimbleGromble is now xa
[00:02:46] Portnov is now away
[00:02:48] Portnov is now away
[00:02:50] Portnov is now away
[00:02:52] Portnov is now online
[00:04:52] RaD is now away
[00:05:15] tilarids is now away
[00:05:37] erraen is now online
[00:05:54] wonderfulll is now xa
[00:09:53] RaD is now away
[00:10:38] erraen is now online
[00:10:54] wonderfulll is now xa
[00:10:59] avr39-ripe is now online
[00:12:41] Ляпатяпа is now online
[00:12:56] Ляпатяпа is now offline
[00:13:13] xa4a_ is now online
[00:13:39] avr39-ripe is now online
[00:13:46] avr39-ripe: добрый вечер! граждане, есть приложение, которое под питон 2.5 пашет, а под 2.6 нет... нашел ЧТО именно смущает.. не могу сообразить, как портануть с 2.5 на 2.6
[00:13:46] xa4a_ is now offline
[00:14:06] xa4a: код на дампз
[00:14:10] avr39-ripe: под питон 2.5 такое socket.ntohl(-11) пашет, под 2.6 ыдает ошибку...
[00:14:17] xa4a: какую?
[00:14:20] avr39-ripe: а как в питоне 2.6 обрабатывать отрицательные значения?
[00:14:35] avr39-ripe: ща..
[00:14:51] avr39-ripe: socket.ntohl(-11)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
OverflowError: can't convert negative number to unsigned long
это в 2.6
[00:14:54] RaD is now away
[00:15:03] avr39-ripe: то же в 2.5
>>> socket.ntohl(-11)
-167772161
[00:15:16] tilarids is now xa
[00:15:38] erraen is now online
[00:15:54] wonderfulll is now xa
[00:15:54] xa4a: !pydoc socket.ntohl
[00:16:14] avr39-ripe: читал...
[00:16:20] xa4a: я не читал)
[00:16:34] avr39-ripe: а отрицательное число не интежер разве?
[00:16:53] xa4a: интежер, вроде
[00:17:19] GrimbleGromble is now online
[00:17:23] avr39-ripe: кхм.. и как быть?? вроде в ченджах от 2.5 на 2.6 чего-то явно про это с пол пинка не нарыл...
[00:17:34] xa4a: socket.ntohl(x)¶ Convert 32-bit positive integers from network to host byte order. On machines where the host byte order is the same as network byte order, this is a no-op; otherwise, it performs a 4-byte swap operation.
[00:17:40] xa4a: в доке по 3.1
[00:17:49] avr39-ripe: парился, упражнялся.. думал код какой-то не тот... а тут просто не совместимость питоновская...
[00:17:57] Portnov is now away
[00:17:58] Portnov is now away
[00:18:23] xa4a: может оно не должно работать с отрицательными?
[00:18:33] xa4a: что это число означает?
[00:18:52] avr39-ripe: честно - не знаю.. Жо( я не настолько питон-гуру.. думал более умные ребята смогут просветить...
[00:19:12] avr39-ripe: это библиотека реализующая сетевое взаиодействие..
[00:19:33] xa4a: она работает с сокета, очевидно
[00:19:37] xa4a: (К.О)
[00:19:45] avr39-ripe: есть сервер на С написанный и есть протокол, по которому этот сервер дергается из чего угодно, С, пхп иже с ним и питон в том числе...
[00:19:54] RaD is now away
[00:19:57] xa4a: /me не скажет.
[00:20:32] Typhon: avr39-ripe, оно не должно с отрицательными же работать
[00:20:38] erraen is now online
[00:20:40] Typhon: man ntohl
[00:20:47] avr39-ripe: Typhon: а почему в 2.5 работает??
[00:20:54] wonderfulll is now xa
[00:21:00] Typhon: avr39-ripe, тупанули там, видимо ^_^
[00:21:03] Typhon: uint32_t htonl(uint32_t hostlong)
[00:21:05] avr39-ripe: видимо сервер такое отдает...
[00:21:11] Typhon: unsigned же
[00:21:17] avr39-ripe: сервер я не перепишу.. Жо((
[00:21:50] RaD is now xa
[00:21:52] RaD is now xa
[00:22:18] GrimbleGromble is now away
[00:22:19] avr39-ripe: от же ёлки-палки... а чего делать-то? окромя, как вешаццо... Жо)
[00:24:55] RaD is now xa
[00:25:38] erraen is now online
[00:25:55] wonderfulll is now xa
[00:26:37] Typhon: avr39-ripe, на дампз орг код покажи
[00:27:11] avr39-ripe: Typhon:сейчас разберусь, как туда запостить... спасибо за желание подсобить!
[00:28:32] xa4a: avr39-ripe: ошибка там, где ты получаешь число отрицательное
[00:28:41] Typhon: угу, скорее всего :)
[00:29:03] xa4a: например, читаешь из сокета число
[00:29:10] xa4a: как длнг
[00:29:11] xa4a: лонг
[00:29:19] xa4a: привет, С!
[00:29:56] RaD is now xa
[00:30:35] avr39-ripe: http://dumpz.org/14341/ первая часть..
[00:30:39] erraen is now online
[00:30:55] wonderfulll is now xa
[00:31:43] avr39-ripe: и - главная - вторая часть, где собственно ошибка вылазит...
http://dumpz.org/14342/
[00:31:50] RaD is now online
[00:31:51] RaD is now online
[00:32:19] GrimbleGromble is now xa
[00:32:22] avr39-ripe: в 236-й строке... перед ней принт - мой типа дебаг.. в оригинале его нет..
print val[2]
ret_value = socket.ntohl(val[2])
[00:32:26] tilarids is now online
[00:33:14] avr39-ripe: xa4a: а как надо из сокета читать кошерно?
[00:34:43] Typhon: struct.unpack('iiiiii', msg) --- 'i' -- это signed int
[00:34:53] Typhon: а тебе unsigned там дальше по смыслу нужен.
[00:34:56] RaD is now online
[00:35:05] xa4a: да, думаю так. тоесть сначала в строку читаешь
[00:35:06] Typhon: unsigned int -- это 'I'
[00:35:40] erraen is now online
[00:35:56] wonderfulll is now xa
[00:35:58] avr39-ripe: тоесть везде по ходу сменть iiii на III ак?
[00:36:03] avr39-ripe: так что ли?
[00:36:21] Typhon: попробуй :)
[00:36:38] avr39-ripe: чайник я пока.. только высокоуровневое использование питона... посему простите, коль слишком глупые вопросы задаю...
[00:36:44] avr39-ripe: спасибо! попробую!
[00:39:30] avr39-ripe: уже лучшее, но...
[00:39:36] avr39-ripe: новые корки вылезли..
[00:39:44] Typhon: :)
[00:39:44] avr39-ripe: которые пока даже не знаю, как решать...
[00:39:57] RaD is now online
[00:40:05] avr39-ripe: если вдруК можете еще и это пофиксить, то просто вообще счастье...
[00:40:08] avr39-ripe: итак корки..
[00:40:39] erraen is now online
[00:40:51] avr39-ripe: >>> import ownet
>>> n=ownet.Sensor('/','localhost',4304)
>>> n.sensorList()
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in <type 'exceptions.AttributeError'> ignored
[Sensor("/12.103326000000", server="localhost", port=4304), Sensor("/12.C47D1E000000", server="localhost", port=4304), Sensor("/12.A23226000000", server="localhost", port=4304), Sensor("/09.928682030000", server="localhost", port=4304), Sensor("/bus.0", server="localhost", port=4304), Sensor("/settings", server="localhost", port=4304), Sensor("/system", server="localhost", port=4304), Sensor("/statistics", server="localhost", port=4304), Sensor("/structure", server="localhost", port=4304), Sensor("/alarm", server="localhost", port=4304)]
[00:40:56] wonderfulll is now xa
[00:41:22] Typhon: оу !
[00:41:26] Typhon: dumpz.org же!
[00:41:28] avr39-ripe: раньше оно вообще обламывалось, а теперь - куча эрроров, но в итоге, то, что надо - выдает...
[00:41:42] avr39-ripe: ступл... про думпз..
[00:41:46] avr39-ripe: не бейте больно...
[00:41:50] RaD is now away
[00:41:52] RaD is now away
[00:42:01] avr39-ripe: http://dumpz.org/14343/ то же, но на думпз..
[00:44:27] avr39-ripe: есть мысли, с чего начасть устранение выше возникающих ошибок??
[00:44:57] RaD is now away
[00:45:00] MAVr is now Да, я тут
[00:45:40] erraen is now online
[00:45:57] wonderfulll is now xa
[00:46:07] tilarids is now away
[00:46:09] tilarids is now online
[00:48:54] Typhon: http://mail.python.org/pipermail/python-bugs-list/2009-March/073006.html
[00:49:25] Portnov is now away
[00:49:26] Portnov is now online
[00:49:43] podgorniy.d is now online
[00:49:58] RaD is now away
[00:50:40] erraen is now online
[00:50:58] cutwater is now offline
[00:50:59] wonderfulll is now xa
[00:50:59] cutwater is now xa
[00:51:33] tilarids is now away
[00:52:06] avr39-ripe: Typhon: читаю, но в итоге не пойму - это надо просто игнорить или как-то рекуршен депс выкручивать или чего? ЖО)
[00:52:55] Typhon: except exUnknownSensor, ex:
continue
напиши вместо continue -- raise посмотри что получишь
[00:53:51] denz is now online
[00:54:59] RaD is now away
[00:55:41] erraen is now online
[00:55:59] wonderfulll is now xa
[00:56:15] tilarids is now online
[00:56:26] kwis is now away
[00:57:19] GrimbleGromble is now online
[00:58:42] avr39-ripe: Typhon: вроде как то же самое.. тоесть ничего не поменялось...
[00:59:58] Typhon: avr39-ripe, убери try блок, пусть будет self._connection.read(branch_entry + '/type') просто
[00:59:59] RaD is now away
[01:00:20] kwis is now online
[01:00:41] erraen is now online
[01:00:59] wonderfulll is now xa
[01:01:09] _lorien is now offline
[01:01:16] Typhon is now offline
[01:01:50] RaD is now xa
[01:01:51] RaD is now xa
[01:01:59] xa4a is now away
[01:02:19] GrimbleGromble is now away
[01:03:11] Typhon is now online
[01:03:20] Portnov is now away
[01:03:22] Portnov is now away
[01:05:00] RaD is now xa
[01:05:20] avr39-ripe: Typhon: не помогает Жо( та же картина...
[01:05:29] Portnov is now away
[01:05:30] Portnov is now online
[01:05:42] erraen is now online
[01:06:00] wonderfulll is now xa
[01:08:37] Typhon: совсем та же?
[01:08:47] avr39-ripe: угу... идентикал Жо(
[01:10:01] RaD is now xa
[01:10:43] erraen is now online
[01:11:01] wonderfulll is now xa
[01:12:19] GrimbleGromble is now xa
[01:12:23] огыешсук is now offline
[01:12:44] MAVr is now offline
[01:12:51] xa4a is now online
[01:15:01] RaD is now xa
[01:15:43] erraen is now online
[01:16:01] wonderfulll is now xa
[01:16:17] MAVr is now Да, я тут
[01:16:42] avr39-ripe: грустно оно с этой либой.. но вроде как уже жить можно... СПАСИБО ОГРОМНОЕ за IIIIII !!!
[01:16:44] MAVr is now Да, я тут
[01:18:46] denz is now away
[01:20:02] RaD is now xa
[01:20:43] erraen is now online
[01:21:01] wonderfulll is now xa
[01:25:03] RaD is now xa
[01:25:43] erraen is now online
[01:25:57] MAVr is now away
[01:25:59] MAVr is now away
[01:26:02] wonderfulll is now xa
[01:27:03] MAVr is now Да, я тут
[01:28:07] xa4a is now away
[01:28:19] GrimbleGromble is now online
[01:28:46] denz is now xa
[01:30:04] RaD is now xa
[01:30:12] MAVr is now away
[01:30:45] erraen is now online
[01:31:03] wonderfulll is now xa
[01:32:12] MAVr is now xa
[01:32:14] MAVr is now xa
[01:32:52] MAVr is now Да, я тут
[01:33:22] denz is now online
[01:33:27] RaD is now online
[01:33:28] RaD is now online
[01:34:19] GrimbleGromble is now away
[01:35:01] Portnov is now away
[01:35:02] Portnov is now away
[01:35:04] RaD is now online
[01:35:45] erraen is now online
[01:36:03] wonderfulll is now xa
[01:36:31] Portnov is now away
[01:36:32] Portnov is now online
[01:38:59] xa4a is now online
[01:39:46] denz is now away
[01:40:05] RaD is now online
[01:40:46] erraen is now online
[01:41:04] wonderfulll is now xa
[01:44:20] GrimbleGromble is now xa
[01:45:05] RaD is now online
[01:45:47] erraen is now online
[01:46:04] wonderfulll is now xa
[01:49:07] xa4a is now away
[01:49:20] GrimbleGromble is now online
[01:49:46] denz is now xa
[01:50:06] RaD is now online
[01:50:47] erraen is now online
[01:51:05] wonderfulll is now xa
[01:54:20] GrimbleGromble is now away
[01:55:07] RaD is now online
[01:55:47] erraen is now online
[01:56:06] wonderfulll is now xa
[02:00:07] RaD is now online
[02:00:47] erraen is now online
[02:01:07] wonderfulll is now xa
[02:02:18] denz is now online
[02:03:54] MAVr is now offline
[02:04:20] GrimbleGromble is now xa
[02:05:13] RaD is now online
[02:05:48] erraen is now online
[02:06:07] wonderfulll is now xa
[02:07:47] xa4a is now online
[02:08:28] Portnov is now away
[02:08:30] Portnov is now away
[02:08:49] kwis is now offline
[02:10:09] RaD is now online
[02:10:47] Portnov is now away
[02:10:47] Portnov is now online
[02:10:49] erraen is now online
[02:11:08] wonderfulll is now xa
[02:14:41] Муркт is now online
[02:15:07] feedbot is now online
[02:15:09] feedbot: CAN HAZ SOM BLOG? — HOF в Ruby http://is.gd/4V30i (zw0rk.blogspot.com)
How to Distribute Commercial Python Applications http://is.gd/4V30j (www.reddit.com)
[02:15:10] RaD is now online
[02:15:14] feedbot is now offline
[02:15:26] denz is now away
[02:15:48] erraen is now online
[23:31:59] огыешсук is now online
[23:31:59] bobry is now online
[23:31:59] mdn is now Да, я здесь
[23:31:59] kwis is now away
[23:31:59] pr0ks is now online
[23:31:59] Большой Лис is now online
[23:31:59] лорд Морфий is now dnd
[23:31:59] keyptor is now away
[23:31:59] gigimon is now online
[23:31:59] tilarids is now away
[23:31:59] pzskc383 is now online
[23:31:59] PC is now xa
[23:31:59] _lorien is now online
[23:31:59] lievil is now xa
[23:31:59] cutwater is now online
[23:31:59] denz is now xa
[23:31:59] RaD is now online
[23:31:59] wonderfulll is now xa
[23:31:59] brutal is now online
[23:31:59] : xa4a установил(а) тему: Python.SU | Сначала поищи ответ на docs.python.org | Теперь поищи на google.com | За голосом - в приват к модераторам | Код постить в dumpz.org | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://➡.ws/pu | Хочешь задать вопрос - просто *задай* его! | Третий тупой вопрос за сутки — на http://throwcatch.me | Ещё рано использовать py3k
[23:31:59] xa4a is now online
[23:31:59] sevenov is now away
[23:31:59] magic_pony is now online
[23:31:59] Optik is now Я в сети с 0:03
[23:32:24] RaD is now online
[23:32:56] _lorien: http://demotivators.ru/posters/761553/priznajtes-myi-vse-etogo-boyalis.htm
:D
[23:33:13] _lorien is now http://demotivators.ru/posters/761553/priznajtes-myi-vse-etogo-boyalis.htm
[23:33:22] mdn is now offline
[23:33:32] wonderfulll is now xa
[23:34:50] xa4a: гхм. слоты - это, конечно, круто.. но что-то у меня 4 питона стоит..
[23:35:22] tilarids is now online
[23:35:41] cutwater is now away
[23:35:59] xa4a: 2.5.4-r3, 2.6.3, 2.7_pre20091115, 3.1.1-r1,3.2_pre20091115 :S
[23:36:05] cutwater is now online
[23:36:20] pzskc383 is now away
[23:36:33] _lorien: http://demotivators.ru/posters/381108/on-dejstvitelno-znaet-vsyo.htm
:DDD
[23:37:06] _lorien is now http://demotivators.ru/posters/381108/on-dejstvitelno-znaet-vsyo.htm
[23:37:24] RaD is now online
[23:38:18] xa4a: а чо это за питон такой 2.7?
[23:38:32] wonderfulll is now xa
[23:38:57] RaD is now away
[23:38:58] RaD is now away
[23:39:34] pzskc383 is now online
[23:41:14] pzskc383 is now offline
[23:42:25] RaD is now away
[23:42:43] tilarids is now away
[23:43:32] wonderfulll is now xa
[23:45:05] mdn is now Да, я здесь
[23:45:06] mdn is now Да, я здесь
[23:46:14] cutwater is now away
[23:47:20] pr0ks is now offline
[23:47:26] RaD is now away
[23:48:33] wonderfulll is now xa
[23:48:57] RaD is now online
[23:48:58] RaD is now online
[23:53:37] tilarids is now xa
[23:53:37] RaD is now online
[23:53:37] wonderfulll is now xa
[23:56:14] cutwater is now xa
[23:57:26] RaD is now online
[23:57:27] Большой Лис is now offline
[23:58:33] wonderfulll is now xa