[00:02:52] xa4a is now away
[00:08:54] slav0nic is now offline
[00:16:47] opka is now offline
[00:20:34] opka is now online
[00:44:29] Сволота is now away
[00:49:29] Сволота is now online
[00:50:20] livevil is now offline
[00:54:27] vince is now offline
[01:04:08] opka: товарищи, такой вопрос. Делаю мультитредны скрипт. Вот наделал 10 тредов, которые работают с данными (берут их из файла например). Доупустим в сумме они обработали 100 данных. Теперь мне нужно все треды остановить, поменять в файле данные и снова запустить треды не прекращая работу всего скрипта. Типа "100 lines proceed! Update datafile. Press any key to continue"
[01:04:42] opka: как это делают ?
[01:07:01] opka: даже не так. я создаю очередь, в нее пихаю 1000 элементов. Когда обработаются 100, то я немного жду, а потом запускаю все треды снова, но уже немного изменились у них параметры :)
[01:13:36] RanWise is now away
[01:32:47] xa4a is now away
[01:32:50] xa4a is now online
[01:33:18] xa4a: slav0nic: бот пропал
[01:33:36] RanWise is now xa
[01:33:53] xa4a: opka: конкретнее
[01:34:14] xa4a: клади в очередь по 100 элементов, потом меняй параметры и клади ещё 10
[01:34:15] xa4a: 0
[01:34:53] opka is now offline
[01:51:35] livevil is now online
[01:58:43] RanWise is now ** This message was blocked by the ICQ server **
[02:05:20] gigimon is now online
[02:06:34] RanWise is now offline
[02:06:35] RanWise is now ** This message was blocked by the ICQ server **
[02:08:09] RanWise is now offline
[02:15:51] livevil is now offline
[02:22:24] py_two is now offline
[02:23:03] Сволота is now away
[02:23:13] Сволота is now online
[02:32:49] Сволота is now away
[02:37:51] Сволота is now online
[02:55:09] livevil is now online
[02:56:15] Сволота is now away
[02:57:34] Tony is now away
[02:58:17] Сволота is now online
[03:07:39] Сволота is now away
[03:08:45] Сволота is now online
[03:11:47] livevil is now offline
[03:17:53] Сволота is now away
[03:22:33] Tony is now xa
[03:23:41] Сволота is now online
[03:26:36] xa4a is now online
[03:29:13] gigimon is now offline
[03:31:35] xa4a is now away
[03:35:53] xa4a is now away
[03:46:45] Сволота is now away
[03:48:57] Сволота is now online
[03:55:41] livevil is now online
[04:01:59] Сволота is now away
[04:05:09] Сволота is now online
[04:13:56] livevil is now offline
[04:19:25] Сволота is now away
[04:21:53] Сволота is now online
[04:35:09] Сволота is now away
[04:44:51] Сволота is now online
[04:56:25] livevil is now online
[05:04:13] Сволота is now away
[05:14:13] Сволота is now xa
[05:17:05] livevil is now offline
[05:47:14] Сволота is now xa
[05:47:14] blw0rm is now dnd
[05:47:14] best is now xa
[05:47:14] bliznezz is now away
[05:47:14] Tony is now xa
[05:47:14] xa4a is now away
[05:47:14] magic_pony is now online
[05:47:14] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:50:33] Сволота is now online
[05:55:33] Сволота is now away
[05:56:58] livevil is now online
[06:01:39] Сволота is now online
[06:06:39] Сволота is now away
[06:15:49] livevil is now offline
[06:16:39] Сволота is now xa
[06:46:47] Сволота is now xa
[06:46:47] blw0rm is now dnd
[06:46:47] best is now xa
[06:46:47] bliznezz is now away
[06:46:47] Tony is now xa
[06:46:47] xa4a is now away
[06:46:47] magic_pony is now online
[06:46:47] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[06:57:13] livevil is now online
[07:03:32] best is now offline
[07:07:28] best is now xa
[07:16:27] livevil is now offline
[07:46:30] Сволота is now xa
[07:46:30] blw0rm is now dnd
[07:46:30] best is now xa
[07:46:30] Tony is now xa
[07:46:30] xa4a is now away
[07:46:30] bliznezz is now away
[07:46:30] magic_pony is now online
[07:46:30] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[07:53:57] Сволота is now online
[07:58:00] livevil is now online
[08:01:39] Сволота is now away
[08:08:19] Сволота is now online
[08:13:23] Сволота is now away
[08:18:47] livevil is now offline
[08:20:49] Сволота is now online
[08:32:45] livevil is now online
[08:38:41] Сволота is now away
[08:41:09] Сволота is now online
[08:42:56] огыешсук is now Automatically away due to idle
[08:48:18] livevil is now away
[08:48:19] livevil is now online
[08:50:13] Сволота is now away
[08:58:30] xa4a is now away
[08:58:33] livevil is now offline
[09:00:13] Сволота is now xa
[09:01:54] livevil is now online
[09:05:03] огыешсук is now away
[09:05:28] огыешсук is now Automatically away due to idle
[09:09:35] Tony is now online
[09:10:32] огыешсук is now away
[09:12:51] огыешсук is now Automatically away due to idle
[09:14:37] Сволота is now online
[09:19:45] Сволота is now away
[09:20:47] Сволота is now online
[09:30:27] огыешсук is now offline
[09:30:27] огыешсук is now Automatically away due to idle
[09:31:07] Сволота is now away
[09:35:53] огыешсук is now away
[09:36:17] Сволота is now online
[09:41:41] Сволота is now away
[09:42:07] Tony is now away
[09:45:53] огыешсук is now xa
[09:46:42] огыешсук is now Automatically away due to idle
[09:48:39] Сволота is now online
[09:55:19] Сволота is now away
[10:05:19] Сволота is now xa
[10:07:07] Tony is now xa
[10:10:03] Сволота is now online
[10:15:05] Сволота is now away
[10:15:16] opka is now online
[10:24:53] Сволота is now online
[10:38:47] opka: допустим у меня 1000 элеинтов в списке. Ложу в цикле 100: for x in xrange(100) queue.put(lst[x])
[10:40:54] opka: всё отработало, потом как новые элементы ложить и ждать нажатия кнопки? Делать всё в while True?
[10:42:05] opka: или while len(lst): for x in xrange(100): queue.put(lst[x])) с утра логику никак не придумаю
[10:56:12] livevil is now offline
[11:12:29] mishok13 is now online
[11:13:10] opka: хотя lst[x] криво будет, ведьу меня может быть такое, что список окажется пустым :)
[11:13:25] opka: и схвачу IndexError
[11:21:10] огыешсук is now away
[11:24:51] slav0nic is now online
[11:25:51] огыешсук is now Automatically away due to idle
[11:39:52] огыешсук is now away
[11:42:33] огыешсук is now Automatically away due to idle
[11:42:54] slav0nic is now away
[11:45:35] Сволота is now away
[11:45:55] Сволота is now online
[11:46:06] slav0nic is now online
[11:47:37] opka is now offline
[11:49:12] огыешсук is now away
[11:54:46] opka is now online
[11:56:02] огыешсук is now Automatically away due to idle
[12:01:07] огыешсук is now away
[12:01:37] огыешсук is now Automatically away due to idle
[12:02:02] mishok13 is now away
[12:04:25] xa4a is now away
[12:04:29] xa4a is now online
[12:10:14] mishok13 is now online
[12:15:54] mishok13 is now away
[12:16:13] огыешсук is now away
[12:17:01] огыешсук is now Automatically away due to idle
[12:19:04] opka is now offline
[12:19:05] xa4a is now online
[12:19:28] mishok13 is now online
[12:20:11] xa4a is now online
[12:24:38] mishok13 is now away
[12:26:00] mishok13 is now online
[12:27:20] opka is now online
[12:27:57] огыешсук is now away
[12:27:59] огыешсук is now Automatically away due to idle
[12:33:52] огыешсук is now away
[12:35:03] огыешсук is now Automatically away due to idle
[12:38:25] mishok13 is now away
[12:38:45] xa4a is now online
[12:43:05] Сволота is now away
[12:43:45] xa4a is now away
[12:44:07] Tony is now online
[12:47:44] mishok13 is now online
[12:48:09] Сволота is now online
[12:58:00] огыешсук is now away
[12:58:49] Сволота is now away
[13:02:23] xa4a is now away
[13:03:00] огыешсук is now Automatically away due to idle
[13:03:55] Сволота is now online
[13:08:01] slav0nic is now away
[13:08:06] огыешсук is now away
[13:08:14] огыешсук is now Automatically away due to idle
[13:09:09] Сволота is now away
[13:11:07] Сволота is now online
[13:12:03] slav0nic is now online
[13:17:03] slav0nic is now away
[13:17:53] slav0nic is now online
[13:19:39] Сволота is now away
[13:21:15] Сволота is now online
[13:22:10] огыешсук is now away
[13:22:41] огыешсук is now Automatically away due to idle
[13:23:51] slav0nic is now away
[13:24:05] slav0nic is now online
[13:30:57] slav0nic is now away
[13:31:45] огыешсук is now away
[13:36:31] огыешсук is now Automatically away due to idle
[13:37:30] gigimon is now online
[13:39:56] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[13:40:57] slav0nic is now xa
[13:41:35] огыешсук is now away
[13:42:55] MAVr is now -
[13:44:09] огыешсук is now Automatically away due to idle
[13:45:52] gigimon is now away
[13:46:01] Сволота is now away
[13:48:21] gigimon is now online
[13:51:01] Сволота is now online
[13:51:07] slav0nic is now online
[13:52:46] opka is now offline
[13:56:03] Сволота is now away
[13:56:07] slav0nic is now away
[13:57:41] Сволота is now online
[14:02:43] Сволота is now away
[14:02:47] огыешсук is now offline
[14:03:19] slav0nic is now online
[14:05:55] opka is now online
[14:06:35] Сволота is now online
[14:09:27] slav0nic is now away
[14:11:53] slav0nic is now online
[14:13:31] Сволота is now away
[14:14:39] Сволота is now online
[14:17:28] xa4a is now away
[14:17:29] slav0nic is now away
[14:17:45] slav0nic is now online
[14:19:10] opka is now offline
[14:20:13] Сволота is now away
[14:22:50] opka is now online
[14:23:19] slav0nic is now away
[14:25:13] Сволота is now online
[14:29:09] slav0nic is now online
[14:31:29] opka is now offline
[14:31:53] slav0nic is now offline
[14:31:58] slav0nic is now online
[14:32:00] slav0nic is now online
[14:32:00] slav0nic is now online
[14:38:53] Typhon is now online
[14:51:54] gigimon is now online
[14:51:54] gigimon is now away
[14:52:51] gigimon is now away
[14:52:53] gigimon is now online
[14:57:23] slav0nic is now offline
[14:57:27] slav0nic is now online
[14:57:29] slav0nic is now online
[14:57:30] slav0nic is now online
[14:57:31] slav0nic is now online
[15:00:29] slav0nic is now offline
[15:00:31] slav0nic is now online
[15:00:34] slav0nic is now online
[15:00:35] slav0nic is now online
[15:00:42] xa4a is now away
[15:02:44] Typhon is now away
[15:12:44] Typhon is now away
[15:13:46] огыешсук is now Automatically away due to idle
[15:16:31] xa4a is now away
[15:16:34] xa4a is now online
[15:16:43] Tony is now away
[15:21:14] MAVr is now offline
[15:22:41] огыешсук is now away
[15:23:03] slav0nic is now offline
[15:23:07] slav0nic is now online
[15:23:09] slav0nic is now online
[15:23:57] огыешсук is now Automatically away due to idle
[15:24:28] evch26 is now online
[15:24:34] slav0nic is now offline
[15:24:35] slav0nic is now online
[15:24:38] slav0nic is now online
[15:25:00] xa4a is now away
[15:28:31] Tony is now online
[15:30:15] огыешсук is now away
[15:32:23] mishok13 is now away
[15:34:14] xa4a is now online
[15:34:18] огыешсук is now Automatically away due to idle
[15:39:20] огыешсук is now away
[15:40:33] slav0nic is now away
[15:40:52] evch26 is now offline
[15:41:11] RanWise is now ** This message was blocked by the ICQ server **
[15:42:25] mishok13 is now xa
[15:44:01] slav0nic is now online
[15:47:58] огыешсук is now Automatically away due to idle
[15:53:14] livevil is now online
[15:54:42] Typhon is now away
[15:54:45] Typhon is now online
[15:55:07] slav0nic is now away
[15:55:34] огыешсук is now away
[15:56:18] огыешсук is now Automatically away due to idle
[15:58:59] Tony is now away
[16:05:07] slav0nic is now xa
[16:07:06] огыешсук is now offline
[16:07:07] огыешсук is now Automatically away due to idle
[16:16:31] livevil is now away
[16:17:30] livevil is now online
[16:21:58] xa4a is now away
[16:22:54] xa4a is now online
[16:23:57] slav0nic is now online
[16:23:59] Tony is now xa
[16:28:03] mishok13 is now online
[16:33:05] огыешсук is now offline
[16:33:51] mishok13 is now away
[16:34:53] slav0nic is now away
[16:38:01] slav0nic is now online
[16:41:02] xa4a is now away
[16:41:48] Typhon is now offline
[16:43:53] mishok13 is now xa
[16:50:02] xa4a is now online
[16:50:34] xa4a is now away
[16:50:43] slav0nic is now away
[16:51:29] slav0nic is now online
[16:52:51] Сволота is now away
[16:54:22] xa4a is now online
[16:54:29] Сволота is now online
[16:59:37] Сволота is now away
[16:59:51] RanWise is now offline
[17:01:07] slav0nic is now away
[17:03:01] Сволота is now online
[17:09:09] Tony is now online
[17:11:07] slav0nic is now xa
[17:15:29] slav0nic is now online
[17:15:40] xa4a is now away
[17:18:16] xa4a is now online
[17:23:11] Сволота is now away
[17:28:15] Сволота is now online
[17:32:13] gigimon is now offline
[17:39:23] Tony is now away
[17:46:53] Tony is now online
[17:57:21] slav0nic is now away
[17:58:37] slav0nic is now online
[18:06:19] xa4a is now away
[18:06:55] xa4a is now online
[18:10:25] Сволота is now away
[18:11:03] Сволота is now online
[18:14:51] slav0nic is now away
[18:19:31] slav0nic is now online
[18:20:01] Сволота is now away
[18:22:03] Сволота is now online
[18:29:31] py_two is now away
[18:30:05] Сволота is now away
[18:31:13] slav0nic is now away
[18:35:25] slav0nic is now online
[18:35:29] Сволота is now online
[18:40:33] Сволота is now away
[18:41:51] Сволота is now online
[18:44:37] Typhon is now online
[18:46:05] Tony is now away
[18:48:03] py_two is now offline
[18:58:03] xryun is now online
[18:58:11] slav0nic is now away
[18:58:26] xryun is now offline
[18:59:43] xryun is now online
[19:05:49] slav0nic is now online
[19:06:51] огыешсук is now Automatically away due to idle
[19:11:05] Tony is now xa
[19:11:21] xa4a is now online
[19:12:33] slav0nic is now away
[19:13:53] xa4a is now away
[19:14:46] xa4a is now online
[19:15:41] Tony is now online
[19:21:17] xryun is now offline
[19:22:33] slav0nic is now xa
[19:22:38] огыешсук is now away
[19:22:59] mishok13 is now online
[19:24:49] slav0nic is now online
[19:24:53] огыешсук is now Automatically away due to idle
[19:29:05] slav0nic is now offline
[19:29:09] slav0nic is now online
[19:29:11] slav0nic is now online
[19:29:12] slav0nic is now online
[19:29:13] slav0nic is now online
[19:29:54] slav0nic is now away
[19:30:02] огыешсук is now away
[19:31:20] Typhon is now offline
[19:32:36] огыешсук is now Automatically away due to idle
[19:37:24] xa4a is now online
[19:37:44] огыешсук is now away
[19:39:54] slav0nic is now xa
[19:40:39] огыешсук is now Automatically away due to idle
[19:41:25] mishok13 is now away
[19:45:55] огыешсук is now away
[19:45:57] mishok13 is now online
[19:48:03] Tony is now away
[19:51:30] огыешсук is now Automatically away due to idle
[19:51:48] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[19:56:34] огыешсук is now away
[19:57:05] огыешсук is now Automatically away due to idle
[20:01:58] slav0nic is now online
[20:02:53] Tony is now online
[20:04:20] огыешсук is now away
[20:04:28] огыешсук is now Automatically away due to idle
[20:10:36] огыешсук is now away
[20:11:28] огыешсук is now Automatically away due to idle
[20:12:26] xa4a is now away
[20:12:45] livevil is now away
[20:12:46] livevil is now away
[20:15:24] xa4a is now online
[20:17:38] slav0nic is now away
[20:23:43] livevil is now away
[20:23:43] livevil is now offline
[20:25:44] mishok13 is now away
[20:27:38] slav0nic is now xa
[20:28:00] slav0nic is now online
[20:30:29] огыешсук is now away
[20:32:13] огыешсук is now Automatically away due to idle
[20:35:44] mishok13 is now xa
[20:38:40] slav0nic is now away
[20:42:54] MAVr is now offline
[20:44:38] opka is now online
[20:45:40] slav0nic is now online
[20:51:38] slav0nic is now away
[20:55:25] livevil is now away
[20:59:49] огыешсук is now away
[21:01:37] levsha is now online
[21:01:38] slav0nic is now xa
[21:05:07] огыешсук is now Automatically away due to idle
[21:10:25] огыешсук is now away
[21:11:04] opka: великая штука - дебагер :) только ради него пишарм держу ж)
[21:13:51] Сволота is now away
[21:14:02] xa4a: opka: открыть тебе секрет?
[21:14:05] livevil is now offline
[21:14:13] огыешсук is now Automatically away due to idle
[21:15:28] xa4a: дебагер есть не только в пишарме
[21:18:53] Сволота is now online
[21:23:55] Сволота is now away
[21:26:47] огыешсук is now away
[21:28:55] Сволота is now online
[21:29:28] огыешсук is now Automatically away due to idle
[21:29:40] opka: я люблю sublime text
[21:29:50] opka: но там нет дебагера
[21:30:44] livevil is now away
[21:30:46] py_two is now away
[21:30:50] xa4a: import pdb; pdb.set_trace()
[21:32:15] py_two is now offline
[21:32:34] py_two is now away
[21:32:44] opka: а как же юзабилити?
[21:33:56] xa4a: а, извини
[21:34:02] xa4a: import ipdb; ipdb.set_trace()
[21:34:33] огыешсук is now away
[21:35:36] livevil is now offline
[21:35:38] opka: ytn e vtyz шзви
[21:35:46] opka: нет у меня ipdb
[21:35:50] opka: а пишарм есть
[21:35:53] livevil is now away
[21:36:05] opka: и там привычный такой себе дебагер :) с watch и прочими штуками
[21:44:34] огыешсук is now xa
[21:47:21] огыешсук is now Automatically away due to idle
[21:52:25] огыешсук is now away
[21:56:30] огыешсук is now Automatically away due to idle
[22:01:33] огыешсук is now away
[22:04:45] огыешсук is now Automatically away due to idle
[22:05:06] opka: a = "3040-3050"
сделать нужно список 3040,3041...3050. Я сделал split, потом через одно место через цикл. Как можно сделать проще?
[22:12:29] opka: можно ли в питончике сделат ькак в си for(i=3040;i<=3050;i++) ? :)
[22:16:16] slav0nic is now online
[22:17:27] огыешсук is now away
[22:18:22] огыешсук is now Automatically away due to idle
[22:19:55] xa4a is now away
[22:22:04] slav0nic is now away
[22:23:38] огыешсук is now away
[22:23:42] slav0nic is now online
[22:25:28] xa4a is now online
[22:25:35] xa4a: да
[22:25:49] огыешсук is now Automatically away due to idle
[22:26:00] xa4a: l, r = a.split('-')
[22:26:04] xa4a: range(l, r+1)
[22:26:55] Сволота is now away
[22:31:57] Сволота is now online
[22:32:42] slav0nic is now away
[22:35:12] opka:
sum((((range(*[int(j) + k for k, j in enumerate(i.split('-'))])) if '-' in i else [int(i)]) for i in "3040-3050.split(',')), [])
[22:35:40] slav0nic is now online
[22:35:55] opka: кавычку забыл закрыть :)
[22:37:01] Сволота is now away
[22:37:11] огыешсук is now away
[22:39:34] slav0nic is now offline
[22:39:39] slav0nic is now online
[22:42:01] Сволота is now online
[22:43:05] xa4a: нет
[22:43:12] xa4a: я даже не могу читать это.
[22:43:32] opka: я исправил на цикл, мне они роднее как-то, да :)
[22:43:47] xa4a: ты скажи конкретнее, что тебе надо сделать
[22:47:08] огыешсук is now xa
[22:47:56] slav0nic is now away
[22:49:13] xa4a is now online
[22:50:51] Сволота is now away
[22:52:26] slav0nic is now online
[22:53:49] огыешсук is now Automatically away due to idle
[22:55:21] opka: уже сделал же :) спасибо за подсказку с l,r split
[22:55:51] Сволота is now online
[22:56:12] xa4a: нет, ты фигню какую-то запутанную сделал
[22:57:09] xa4a: может ты это хочешь:
[22:57:11] xa4a: >>> a = "3040-3050"
>>> parts = map(int, a.split('-'))
>>> range(parts[0], parts[-1]+1)
[3040, 3041, 3042, 3043, 3044, 3045, 3046, 3047, 3048, 3049, 3050]
[22:57:17] xa4a: чтобы работало и с - и без
[22:58:56] огыешсук is now away
[23:03:11] py_two is now offline
[23:03:41] py_two is now away
[23:03:47] mishok13 is now online
[23:05:24] slav0nic is now away
[23:05:27] Сволота is now away
[23:07:13] Сволота is now online
[23:07:34] slav0nic is now online
[23:08:59] огыешсук is now Automatically away due to idle
[23:09:24] xa4a is now online
[23:12:39] xa4a is now online
[23:16:21] огыешсук is now away
[23:19:35] Сволота is now away
[23:24:35] Сволота is now online
[23:26:21] огыешсук is now xa
[23:34:08] огыешсук is now Automatically away due to idle
[23:41:19] mishok13 is now away
[23:43:44] огыешсук is now away
[23:44:31] Сволота is now away
[23:44:34] огыешсук is now Automatically away due to idle
[23:46:27] xa4a is now online
[23:49:27] Tony is now away
[23:51:19] mishok13 is now xa
[23:51:27] xa4a is now away
[23:52:09] xa4a is now away
[23:52:12] xa4a is now online
[23:52:47] огыешсук is now away
[23:54:31] Сволота is now xa
[23:55:41] Сволота is now online