[00:04:44] xa4a is now online
[00:05:03] py_two is now away
[00:07:27] Сволота is now away
[00:09:20] traxex864 is now away
[00:12:27] Сволота is now online
[00:12:30] py_two is now offline
[00:13:48] xa4a is now online
[00:13:52] xa4a is now online
[00:15:43] py_two is now away
[00:15:45] best is now offline
[00:19:36] opka is now offline
[00:24:34] xa4a is now online
[00:26:33] Сволота is now away
[00:29:21] traxex864 is now xa
[00:29:35] xa4a is now online
[00:31:33] Сволота is now online
[00:35:49] traxex864 is now online
[00:36:35] Сволота is now away
[00:37:51] Сволота is now online
[00:49:57] Сволота is now away
[00:50:02] xa4a is now online
[00:50:05] xa4a is now online
[00:52:51] Сволота is now online
[00:57:53] Сволота is now away
[00:58:27] Сволота is now online
[01:00:10] xa4a is now online
[01:04:29] slav0nic is now away
[01:05:10] xa4a is now online
[01:12:07] slav0nic is now online
[01:12:47] Сволота is now away
[01:16:27] best is now xa
[01:17:47] Сволота is now online
[01:26:21] widg is now offline
[01:27:15] slav0nic is now away
[01:34:59] Сволота is now away
[01:36:03] gigimon is now online
[01:37:15] slav0nic is now xa
[01:39:59] Сволота is now online
[01:45:01] Сволота is now away
[01:49:21] xa4a is now online
[01:49:23] xa4a is now online
[01:50:01] Сволота is now online
[01:59:19] xa4a is now online
[02:03:47] Сволота is now away
[02:05:51] Сволота is now online
[02:13:50] livevil is now offline
[02:20:16] Tony is now away
[02:20:56] xa4a is now away
[02:25:59] slav0nic is now online
[02:27:11] Сволота is now away
[02:27:45] Сволота is now online
[02:33:11] Сволота is now away
[02:33:43] Сволота is now online
[02:39:53] Сволота is now away
[02:41:45] Сволота is now online
[02:43:34] xa4a is now away
[02:43:39] xa4a is now online
[02:44:01] xa4a is now offline
[02:45:16] Tony is now xa
[02:48:29] py_two is now offline
[03:00:23] Сволота is now away
[03:00:28] Сволота is now online
[03:01:59] traxex864 is now away
[03:05:07] gigimon is now offline
[03:09:46] slav0nic is now offline
[03:10:17] traxex864 is now online
[03:15:08] livevil is now online
[03:26:28] livevil is now offline
[03:27:33] levsha is now offline
[03:27:34] levsha is now online
[03:44:33] Сволота is now away
[03:46:47] Сволота is now online
[04:16:58] Сволота is now online
[04:16:58] best is now xa
[04:16:58] pytwo is now online
[04:16:58] levsha is now online
[04:16:58] bliznezz is now away
[04:16:58] Tony is now xa
[04:16:58] traxex864 is now online
[04:16:58] magic_pony is now online
[04:16:58] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:20:37] livevil is now online
[04:30:28] deisler is now away
[04:40:35] livevil is now offline
[04:48:11] deisler is now offline
[04:53:33] Сволота is now away
[04:53:38] Сволота is now online
[05:21:19] livevil is now online
[05:38:32] livevil is now offline
[05:50:15] traxex864 is now away
[05:59:43] Сволота is now away
[06:09:43] Сволота is now xa
[06:10:09] traxex864 is now xa
[06:21:55] livevil is now online
[06:30:22] dicos is now online
[06:30:45] Сволота is now online
[06:35:45] Сволота is now away
[06:38:12] livevil is now offline
[06:45:45] Сволота is now xa
[06:46:05] Сволота is now online
[06:51:05] Сволота is now away
[06:59:27] best is now offline
[07:01:05] Сволота is now xa
[07:14:07] best is now xa
[07:22:17] livevil is now online
[07:29:26] livevil is now offline
[07:37:13] pytwo is now offline
[07:41:52] pytwo is now online
[07:44:36] best is now offline
[08:01:43] pytwo is now offline
[08:06:52] pytwo is now online
[08:10:11] Сволота is now online
[08:10:14] pytwo is now offline
[08:10:29] pytwo is now online
[08:15:11] Сволота is now away
[08:16:51] Сволота is now online
[08:23:09] livevil is now online
[08:26:39] Сволота is now away
[08:29:00] best is now xa
[08:36:39] Сволота is now xa
[08:36:41] pytwo is now offline
[08:40:29] livevil is now offline
[08:51:11] widg is now питоню
[09:01:32] Tony is now online
[09:04:53] Сволота is now online
[09:08:33] dicos is now away
[09:08:34] dicos is now away
[09:09:55] Сволота is now away
[09:13:58] widg is now away
[09:17:06] dicos is now away
[09:17:07] dicos is now online
[09:19:55] Сволота is now xa
[09:23:46] livevil is now online
[09:33:58] widg is now xa
[09:39:51] livevil is now offline
[09:40:09] Сволота is now online
[09:43:34] pytwo is now online
[09:45:11] Сволота is now away
[09:53:28] widg is now питоню
[09:55:11] Сволота is now xa
[09:59:30] widg is now dnd
[09:59:34] widg is now питоню
[09:59:38] widg is now dnd
[10:00:51] widg is now питоню
[10:00:55] widg is now dnd
[10:03:05] widg is now питоню
[10:03:09] widg is now dnd
[10:04:26] widg is now питоню
[10:04:30] widg is now dnd
[10:04:44] Сволота is now online
[10:06:03] widg is now питоню
[10:06:07] widg is now dnd
[10:06:27] widg is now питоню
[10:06:31] widg is now dnd
[10:11:03] widg is now питоню
[10:11:07] widg is now dnd
[10:12:28] widg is now питоню
[10:12:32] widg is now dnd
[10:12:45] widg is now питоню
[10:12:49] widg is now dnd
[10:13:50] widg is now питоню
[10:13:54] widg is now dnd
[10:14:38] widg is now питоню
[10:14:42] widg is now dnd
[10:15:03] widg is now питоню
[10:15:07] widg is now dnd
[10:17:45] widg is now питоню
[10:17:49] widg is now dnd
[10:17:57] widg is now питоню
[10:18:01] widg is now dnd
[10:18:05] widg is now питоню
[10:18:09] widg is now dnd
[10:19:30] widg is now питоню
[10:19:38] widg is now dnd
[10:20:19] widg is now питоню
[10:20:23] widg is now dnd
[10:21:44] opka is now online
[10:21:55] opka: товарищи
[10:22:10] opka: кто-то с многопоточными скриптами разбирался? :)
[10:22:37] widg is now питоню
[10:22:41] widg is now dnd
[10:24:26] livevil is now online
[10:24:43] widg is now питоню
[10:24:47] widg is now dnd
[10:26:32] widg is now питоню
[10:26:36] widg is now dnd
[10:27:09] widg is now питоню
[10:27:13] widg is now dnd
[10:27:29] widg is now питоню
[10:27:33] widg is now dnd
[10:29:51] widg is now питоню
[10:29:55] widg is now dnd
[10:30:03] widg is now питоню
[10:30:07] widg is now dnd
[10:31:17] dicos is now away
[10:31:18] dicos is now away
[10:31:44] widg is now питоню
[10:31:48] widg is now dnd
[10:33:14] widg is now питоню
[10:33:18] widg is now dnd
[10:34:14] widg is now питоню
[10:34:18] widg is now dnd
[10:34:21] Сволота is now away
[10:34:23] widg is now питоню
[10:34:27] widg is now dnd
[10:35:23] widg is now питоню
[10:35:27] widg is now dnd
[10:39:06] widg is now питоню
[10:39:11] widg is now dnd
[10:39:27] widg is now питоню
[10:39:31] widg is now dnd
[10:39:35] widg is now питоню
[10:39:39] widg is now dnd
[10:39:59] dicos is now away
[10:40:00] dicos is now online
[10:40:04] livevil is now offline
[10:40:15] widg is now питоню
[10:40:19] widg is now dnd
[10:44:21] Сволота is now xa
[10:47:38] widg is now питоню
[10:47:42] widg is now dnd
[10:48:14] widg is now питоню
[10:48:22] widg is now dnd
[10:48:25] Сволота is now online
[10:52:13] widg is now питоню
[10:57:01] widg is now dnd
[10:57:42] widg is now питоню
[10:57:50] widg is now dnd
[11:03:47] widg is now питоню
[11:03:51] widg is now dnd
[11:04:32] widg is now питоню
[11:04:36] widg is now dnd
[11:05:08] widg is now питоню
[11:05:12] widg is now dnd
[11:08:02] widg is now питоню
[11:08:07] widg is now dnd
[11:08:19] widg is now питоню
[11:08:23] widg is now dnd
[11:09:07] gigimon is now online
[11:18:39] gigimon: opka: ты вопрос задавай
[11:18:56] widg is now питоню
[11:19:25] opka: да я уже разобрался :)
[11:21:06] opka: задача была проста: 10 потоков должны были сделать 100 запросов. В потоке у меня был while . В итоге я просто в в очредь кинул количество запросов, а while оформил как int(count_req / num_threads) :) В итоге потоки 10 потоков делали не по 100 каждый, а в сумме 100 :))
[11:22:44] gigimon is now away
[11:25:00] livevil is now online
[11:25:14] widg is now away
[11:29:43] gigimon is now away
[11:30:12] gigimon is now away
[11:30:12] gigimon is now offline
[11:31:37] widg is now питоню
[11:34:27] pytwo is now offline
[11:37:04] Typhon is now online
[11:37:09] pytwo is now online
[11:37:29] dicos is now away
[11:37:31] dicos is now away
[11:38:25] gigimon is now online
[11:41:03] livevil is now offline
[11:42:00] widg is now away
[11:42:35] dicos is now away
[11:42:37] dicos is now online
[11:42:55] gigimon is now offline
[11:45:03] pytwo is now offline
[11:45:18] огыешсук is now Automatically away due to idle
[11:45:20] pytwo is now online
[11:59:42] огыешсук is now away
[12:02:00] widg is now xa
[12:03:26] огыешсук is now Automatically away due to idle
[12:04:06] Tony is now away
[12:08:27] огыешсук is now away
[12:10:27] огыешсук is now Automatically away due to idle
[12:10:29] Typhon is now away
[12:11:52] Tony is now online
[12:11:55] dicos is now offline
[12:13:18] Typhon is now online
[12:21:47] livevil is now online
[12:23:51] огыешсук is now away
[12:24:37] Сволота is now away
[12:24:59] огыешсук is now Automatically away due to idle
[12:25:51] Сволота is now online
[12:30:15] pytwo is now offline
[12:30:47] pytwo is now online
[12:34:02] livevil is now away
[12:34:59] xa4a is now online
[12:35:12] xa4a is now online
[12:36:09] livevil is now online
[12:38:42] огыешсук is now away
[12:39:33] огыешсук is now Automatically away due to idle
[12:41:29] traxex864 is now online
[12:41:57] Typhon is now away
[12:43:27] Typhon is now online
[12:44:35] огыешсук is now away
[12:44:45] огыешсук is now Automatically away due to idle
[12:45:39] Сволота is now away
[12:46:29] Сволота is now online
[12:51:28] xa4a is now online
[12:52:04] Typhon is now away
[12:52:50] xa4a is now online
[12:53:01] Сволота is now away
[12:55:09] mishok13 is now online
[12:57:07] Сволота is now online
[12:59:28] Typhon is now online
[13:01:58] огыешсук is now away
[13:01:58] slav0nic is now online
[13:02:45] огыешсук is now Automatically away due to idle
[13:03:59] Typhon is now offline
[13:04:18] Typhon is now online
[13:07:52] огыешсук is now away
[13:08:51] xa4a is now online
[13:09:36] огыешсук is now Automatically away due to idle
[13:13:50] mishok13 is now offline
[13:13:51] xa4a is now away
[13:19:38] Typhon is now offline
[13:23:22] огыешсук is now away
[13:27:27] огыешсук is now Automatically away due to idle
[13:27:35] xa4a is now online
[13:29:29] xa4a is now online
[13:34:29] slav0nic is now away
[13:39:29] xa4a is now online
[13:40:23] огыешсук is now away
[13:41:51] огыешсук is now Automatically away due to idle
[13:44:29] slav0nic is now xa
[13:47:46] livevil is now offline
[13:57:03] slav0nic is now online
[14:02:05] slav0nic is now away
[14:03:27] огыешсук is now away
[14:04:22] огыешсук is now Automatically away due to idle
[14:12:05] slav0nic is now xa
[14:12:43] evch26 is now online
[14:13:43] огыешсук is now offline
[14:20:32] pytwo is now offline
[14:20:55] pytwo is now online
[14:20:56] Tony is now away
[14:23:05] widg is now питоню
[14:23:54] Tony is now online
[14:24:21] widg is now dnd
[14:24:42] widg is now питоню
[14:25:10] widg is now dnd
[14:27:32] widg is now питоню
[14:31:01] pytwo is now offline
[14:32:35] pytwo is now online
[14:32:58] pytwo is now offline
[14:34:20] py_two is now away
[14:34:50] widg is now dnd
[14:34:58] widg is now питоню
[14:36:07] widg is now dnd
[14:37:08] widg is now питоню
[14:44:12] evch26 is now offline
[14:45:15] widg is now dnd
[14:45:27] widg is now питоню
[14:46:10] py_two is now offline
[14:46:24] widg is now dnd
[14:47:16] widg is now питоню
[14:47:20] widg is now dnd
[14:48:17] widg is now питоню
[14:48:21] widg is now dnd
[14:48:42] widg is now питоню
[14:48:46] widg is now dnd
[14:50:27] widg is now питоню
[14:50:35] widg is now dnd
[14:51:23] tier88 is now online
[14:51:28] widg is now питоню
[14:51:32] widg is now dnd
[14:51:40] widg is now питоню
[14:52:10] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[14:52:24] MAVr is now offline
[14:53:06] tier88 is now offline
[15:09:25] slav0nic is now online
[15:19:05] andreyjkee is now online
[15:19:57] xa4a is now online
[15:24:37] andreyjkee is now offline
[15:24:57] andreyjkee is now online
[15:29:59] xa4a is now online
[15:31:33] slav0nic is now offline
[15:43:19] xa4a is now online
[15:47:36] RanWise is now ** This message was blocked by the ICQ server **
[15:51:57] widg is now away
[15:53:20] xa4a is now away
[15:58:36] Tony is now away
[16:01:22] Сволота is now away
[16:01:27] Сволота is now online
[16:04:55] py_two is now away
[16:11:57] widg is now xa
[16:12:56] Tony is now online
[16:19:58] py_two is now offline
[16:20:46] py_two is now away
[16:30:04] RanWise is now offline
[16:30:08] RanWise is now ** This message was blocked by the ICQ server **
[16:32:10] xryun is now online
[16:54:50] andreyjkee is now online
[16:54:51] andreyjkee is now away
[16:57:08] Tony is now away
[17:00:12] xryun is now offline
[17:01:34] widg is now питоню
[17:06:37] opka: Прошу таки помощи. Как лучше организовать многопоточный скрипт.
Есть основные два параметра: количество соединений в одной сессии (session) и количество соединений через один прокси (proxy).
Смысл программы такой:
если указано session=20, то идет соединение с сервером, получается номер сесси и идет количест 20 обращений в этой сессии.
если указано proxy=20, то через указанный прокси идет 20 обращений (потом он меняется)
Как это все слепить вместе?
[17:06:54] opka: Если укажут session=100, proxy=50, то надо делать проверить 50 на одном прокси, и 50 на другом прокси, но и там и там с одной и той же сессией.
[17:06:59] opka: Или если укажут proxy=100, session=50, то на одном прокси должны сменится две сессии.
[17:09:46] opka: изначально я делал всё только для proxy, потому было примерно так:
while true:
for i in reversed(xrange(check_per_prx)):
if proxy_use:
QUEUE.put((data, prxoy_data))
else:
QUEUE.put(data)

del data[i]

for i in xrange(num_threads):
t = threading.Thread(target=Worker, args=(QUEUE,))
t.start()
sleep(0.2)
QUEUE.join()

if QUEUE.unfinished_tasks == 0:
raw_input("\nTasks with proxy ended. Click eneter for newone!")
[17:14:19] widg is now away
[17:14:29] opka: не прошу ничего за меня делать, просто подскажите сам алгоритм
[17:16:40] py_two is now offline
[17:18:56] mishok13 is now online
[17:22:08] Tony is now xa
[17:29:25] mishok13 is now away
[17:32:19] dicos is now online
[17:34:20] widg is now xa
[17:38:21] deisler is now away
[17:39:25] mishok13 is now xa
[17:40:35] mishok13 is now online
[17:45:06] widg is now питоню
[17:46:09] mishok13 is now away
[17:46:46] andreyjkee is now away
[17:46:46] andreyjkee is now online
[17:56:09] mishok13 is now xa
[17:59:08] best is now offline
[18:02:55] andreyjkee is now online
[18:02:56] andreyjkee is now away
[18:06:46] andreyjkee is now away
[18:06:46] andreyjkee is now online
[18:09:42] andreyjkee is now online
[18:09:43] andreyjkee is now away
[18:12:33] xa4a is now away
[18:12:59] xa4a is now online
[18:13:59] gigimon is now online
[18:14:28] andreyjkee is now away
[18:14:28] andreyjkee is now online
[18:16:15] best is now xa
[18:17:27] andreyjkee is now online
[18:17:27] andreyjkee is now away
[18:20:44] dicos is now offline
[18:22:35] widg is now dnd
[18:23:24] widg is now питоню
[18:23:28] widg is now dnd
[18:23:32] widg is now питоню
[18:23:40] widg is now dnd
[18:25:38] widg is now питоню
[18:25:42] widg is now dnd
[18:25:46] widg is now питоню
[18:25:50] widg is now dnd
[18:25:56] xa4a is now online
[18:25:59] py_two is now away
[18:26:06] widg is now питоню
[18:26:10] widg is now dnd
[18:28:03] andreyjkee is now away
[18:28:03] andreyjkee is now online
[18:29:09] opka is now offline
[18:29:25] widg is now питоню
[18:29:29] widg is now dnd
[18:30:28] Tony is now online
[18:30:34] widg is now питоню
[18:30:38] widg is now dnd
[18:35:46] widg is now питоню
[18:35:50] widg is now dnd
[18:38:25] xa4a is now online
[18:38:48] widg is now питоню
[18:38:53] widg is now dnd
[18:39:13] widg is now питоню
[18:39:17] widg is now dnd
[18:39:21] widg is now питоню
[18:39:25] widg is now dnd
[18:39:37] widg is now питоню
[18:40:34] widg is now dnd
[18:41:04] andreyjkee is now offline
[18:42:17] mishok13 is now online
[18:42:19] widg is now питоню
[18:42:23] widg is now dnd
[18:42:27] widg is now питоню
[18:44:03] best is now offline
[18:44:51] xa4a is now online
[18:47:04] xa4a: opka: можно, например, тупых воркеров, которые берут из очереди сессию и прокси
[18:47:43] xa4a: а процесс, который складывает задания в очередь - уже считает, сколько запросов ушло в каждой конкретной сессии/прокси
[18:55:37] widg is now away
[19:00:14] xa4a is now online
[19:00:58] Сволота is now away
[19:05:14] xa4a is now online
[19:05:39] widg is now питоню
[19:08:46] Сволота is now online
[19:11:41] xa4a is now online
[19:11:43] xa4a is now online
[19:16:42] widg is now away
[19:19:48] widg is now питоню
[19:21:44] xa4a is now online
[19:26:43] xa4a is now online
[19:29:03] best is now xa
[19:31:22] xa4a is now online
[19:41:22] xa4a is now online
[19:42:09] widg is now dnd
[19:43:18] widg is now питоню
[19:43:22] widg is now dnd
[19:47:25] widg is now питоню
[19:47:29] widg is now dnd
[19:47:45] xa4a is now away
[19:47:47] xa4a is now online
[19:50:39] mishok13 is now away
[19:50:59] mishok13 is now online
[19:52:30] widg is now питоню
[19:52:34] widg is now dnd
[19:54:43] widg is now питоню
[20:02:29] mishok13 is now away
[20:04:37] mishok13 is now online
[20:06:19] widg is now away
[20:08:44] xa4a is now online
[20:10:13] widg is now питоню
[20:11:15] gigimon is now online
[20:11:41] mishok13 is now away
[20:12:05] mishok13 is now online
[20:13:44] xa4a is now away
[20:14:16] xa4a is now away
[20:14:17] gigimon is now online
[20:14:19] xa4a is now online
[20:20:18] widg is now away
[20:30:53] livevil is now online
[20:36:49] levsha is now offline
[20:37:16] gigimon is now offline
[20:40:17] levsha is now online
[20:40:18] widg is now xa
[20:40:27] xa4a is now online
[20:45:27] xa4a is now away
[20:48:02] widg is now питоню
[20:50:55] Typhon is now online
[20:50:55] levsha is now offline
[20:52:20] mishok13 is now away
[20:52:57] mishok13 is now online
[20:56:36] Tony is now away
[20:58:06] widg is now away
[20:58:49] widg is now питоню
[20:58:57] widg is now dnd
[20:59:21] widg is now питоню
[20:59:25] widg is now dnd
[20:59:41] widg is now питоню
[20:59:45] widg is now dnd
[20:59:58] widg is now питоню
[21:00:02] widg is now dnd
[21:01:02] opka is now online
[21:02:07] Typhon is now away
[21:02:08] Typhon is now away
[21:02:32] widg is now питоню
[21:02:36] widg is now dnd
[21:03:09] mishok13 is now away
[21:03:20] widg is now питоню
[21:03:24] widg is now dnd
[21:03:28] widg is now питоню
[21:03:31] Typhon is now away
[21:03:32] widg is now dnd
[21:03:33] Typhon is now online
[21:03:41] widg is now питоню
[21:03:45] widg is now dnd
[21:04:05] widg is now питоню
[21:04:09] widg is now dnd
[21:06:01] mishok13 is now online
[21:06:03] widg is now питоню
[21:06:07] widg is now dnd
[21:06:47] widg is now питоню
[21:06:51] widg is now dnd
[21:07:36] widg is now питоню
[21:07:40] widg is now dnd
[21:11:09] mishok13 is now away
[21:12:24] widg is now питоню
[21:12:28] widg is now dnd
[21:14:26] widg is now питоню
[21:14:30] widg is now dnd
[21:14:46] widg is now питоню
[21:14:50] widg is now dnd
[21:15:08] opka: xa4a: воркеры и так из очереди берут и сессию и прокси. Дело в том, чтоя не могу понять как распределить задания при разных условиях и значениях checkperproxy, checkpersesion :)
[21:18:13] opka: у меня если work_per_session != 0 то идет вызов new_session(); и потом оно кидается в очередь из которой воркер получает сессию.В самом воркере идет проверка, если в очереди нет sessionID то работаем по одному принципу (получим сессию, поработаем в ней с серваком, если надо то через прокси), а если сессия передана в очередь то просто работаем с срваком, если надо, то через прокси. А как привинтить всё вместе (20 коннектов через прокси и 10 коннектов 1 сессия: итого за проход в 20 прокси 2 раза меняется сессия и Т.П.) - не пойму:)
[21:19:42] opka: притом, что надо раблотать хотя бы в 10 потоков:)
[21:21:09] mishok13 is now xa
[21:21:21] mishok13 is now online
[21:21:29] Typhon is now away
[21:21:36] Tony is now xa
[21:21:48] widg is now питоню
[21:21:52] widg is now dnd
[21:25:21] Typhon is now online
[21:26:29] mishok13 is now away
[21:29:28] xryun is now online
[21:29:29] Typhon is now offline
[21:32:07] widg is now away
[21:32:18] Tony is now online
[21:35:43] livevil is now offline
[21:36:29] mishok13 is now xa
[21:42:25] mishok13 is now online
[21:49:52] xa4a is now away
[21:49:55] xa4a is now online
[21:50:51] xa4a: я не понимаю, в чём проблема
[21:51:06] traxex864: Пачаны
[21:52:07] widg is now xa
[21:52:10] traxex864: Кто использует Qt для Python?
[21:58:29] livevil is now online
[22:00:26] widg is now питоню
[22:00:48] widg is now dnd
[22:01:00] widg is now питоню
[22:01:04] widg is now dnd
[22:01:37] widg is now питоню
[22:01:41] widg is now dnd
[22:01:41] xa4a: opka: http://dumpz.org/531590/
[22:01:43] xa4a: $10
[22:01:51] xa4a: traxex864: это соц. опрос?
[22:03:59] widg is now питоню
[22:04:07] widg is now dnd
[22:04:11] widg is now питоню
[22:04:15] widg is now dnd
[22:05:36] widg is now питоню
[22:07:03] xryun is now offline
[22:10:38] livevil is now offline
[22:12:39] livevil is now online
[22:12:41] levsha is now online
[22:24:36] opka: xa4a: спасибо, сейчас гляну
[22:27:28] levsha is now offline
[22:34:14] Tony is now away
[22:36:45] livevil is now away
[22:37:30] livevil is now online
[22:41:37] livevil is now offline
[22:42:04] Tony is now online
[22:44:31] livevil is now online
[22:49:41] opka: стесняюсь спросить, но в format(*item) - *item - это что ? указатель?
[22:50:40] Сволота is now away
[22:52:13] opka: ооо
[22:52:23] opka: кажется я уловил идею
[22:52:29] opka: спасибо, xa4a !!
[22:53:07] mishok13 is now away
[22:53:08] xa4a: item - это кортеж
[22:53:24] xa4a: format(*item) - элементы кортежа передаются в функцию как отдельные аргументы
[22:53:51] mishok13 is now online
[22:54:10] Сволота is now online
[22:59:12] Сволота is now away
[23:04:51] mishok13 is now away
[23:05:27] Сволота is now online
[23:07:03] mishok13 is now online
[23:10:15] widg: как от этого избавится TypeError: string indices must be integers
[23:14:06] livevil is now online
[23:15:55] mishok13 is now away
[23:16:39] mishok13 is now online
[23:19:30] livevil is now online
[23:21:39] mishok13 is now away
[23:23:01] mishok13 is now online
[23:28:03] widg: в консоле выводит нормально
>>>
(u'111', u'1', u'Врач', u'Иванов Иван Иванович')
(u'222', u'2', u'Врач', u'Петров Иван Игорович')
[23:29:25] widg: а в таблицу не хочет писать
return QVariant(QString(r[index.row(),index.column()]))
Traceback (most recent call last):
File "C:\Users\admin\Desktop\py\table.py", line 95, in data
return QVariant(QString(r[index.row(),index.column()]))
TypeError: string indices must be integers
[23:31:50] xa4a is now online
[23:33:37] widg is now offline
[23:35:51] mishok13 is now away
[23:36:52] xa4a is now away
[23:38:19] mishok13 is now online
[23:39:52] xa4a is now away
[23:39:57] xa4a is now online
[23:53:26] opka: кстати, тоже назрел вопрос: что лучше использовать для гуи в питоне?
[23:54:04] xa4a: widg: в консоль то же
[23:54:12] xa4a: r[index.row(),index.column()]
[23:58:05] mishok13 is now away
[23:58:50] RanWise is now offline
[23:59:12] traxex864: Можно Tkinter (стандартная), можно PyQt (более мощная GUI либа).
[23:59:35] mishok13 is now online