[00:00:15] erraen is now online
[00:01:29] maxim.zemlyakov is now online
[00:04:14] zarg is now online
[00:04:25] serg.makar is now away
[00:04:44] pc_ is now away
[00:05:16] erraen is now online
[00:05:57] pc_ is now online
[00:06:31] maxim.zemlyakov is now online
[00:09:14] zarg is now away
[00:09:25] serg.makar is now away
[00:10:18] erraen is now online
[00:11:32] maxim.zemlyakov is now online
[00:14:29] serg.makar is now away
[00:15:21] erraen is now online
[00:16:34] maxim.zemlyakov is now online
[00:19:14] zarg is now xa
[00:19:28] serg.makar is now away
[00:20:04] pc_ is now away
[00:20:22] erraen is now online
[00:21:34] maxim.zemlyakov is now online
[00:24:29] serg.makar is now away
[00:25:24] erraen is now online
[00:26:34] maxim.zemlyakov is now online
[00:26:52] Sevenov is now offline
[00:27:13] Sevenov is now online
[00:28:05] ds.tihonov is now offline
[00:29:29] serg.makar is now away
[00:30:03] pc_ is now xa
[00:30:25] erraen is now online
[00:31:35] maxim.zemlyakov is now online
[00:34:29] serg.makar is now away
[00:35:16] Joes is now away
[00:35:24] Joes is now online
[00:35:26] erraen is now online
[00:36:35] maxim.zemlyakov is now online
[00:36:35] Joes is now offline
[00:38:20] Мозгошредер is now offline
[00:39:29] serg.makar is now away
[00:40:28] erraen is now online
[00:41:36] maxim.zemlyakov is now online
[00:44:33] serg.makar is now away
[00:45:31] erraen is now online
[00:46:38] maxim.zemlyakov is now online
[00:49:13] xa4a is now offline
[00:49:31] xa4a is now online
[00:49:32] serg.makar is now away
[00:50:32] erraen is now online
[00:51:41] maxim.zemlyakov is now online
[00:53:56] zarg is now online
[00:54:32] serg.makar is now away
[00:55:35] erraen is now online
[00:56:42] maxim.zemlyakov is now online
[00:59:14] zarg is now away
[00:59:33] serg.makar is now away
[01:00:37] erraen is now online
[01:01:42] maxim.zemlyakov is now online
[01:04:33] serg.makar is now away
[01:05:40] erraen is now online
[01:06:45] maxim.zemlyakov is now online
[01:09:14] zarg is now xa
[01:09:35] serg.makar is now away
[01:10:42] erraen is now online
[01:11:45] maxim.zemlyakov is now online
[01:12:19] inpython is now offline
[01:14:38] serg.makar is now away
[01:15:41] erraen is now online
[01:16:47] maxim.zemlyakov is now online
[01:19:39] serg.makar is now away
[01:19:52] tilarids is now offline
[01:20:42] erraen is now online
[01:21:48] maxim.zemlyakov is now online
[01:22:34] zarg is now online
[01:24:40] serg.makar is now away
[01:25:45] erraen is now online
[01:26:49] maxim.zemlyakov is now online
[01:27:36] zarg is now away
[01:29:31] xa4a is now online
[01:29:31] xa4a is now away
[01:29:41] serg.makar is now away
[01:30:48] erraen is now online
[01:31:51] maxim.zemlyakov is now online
[01:32:47] mishok13_ is now offline
[01:34:43] serg.makar is now away
[01:35:51] erraen is now online
[01:36:53] maxim.zemlyakov is now online
[01:37:36] zarg is now xa
[01:39:45] serg.makar is now away
[01:40:53] erraen is now online
[01:41:52] maxim.zemlyakov is now online
[01:44:44] serg.makar is now away
[01:45:55] erraen is now online
[01:46:53] maxim.zemlyakov is now online
[01:49:47] serg.makar is now away
[01:50:57] erraen is now online
[01:51:04] erraen is now offline
[01:51:55] maxim.zemlyakov is now online
[01:54:49] serg.makar is now away
[01:56:55] maxim.zemlyakov is now online
[01:59:51] serg.makar is now away
[02:01:55] maxim.zemlyakov is now online
[02:04:51] serg.makar is now away
[02:06:57] maxim.zemlyakov is now online
[02:09:50] serg.makar is now away
[02:11:58] maxim.zemlyakov is now online
[02:14:50] serg.makar is now away
[02:16:59] maxim.zemlyakov is now online
[02:17:07] Darth Лис is now offline
[02:19:53] serg.makar is now away
[02:22:00] maxim.zemlyakov is now online
[02:24:51] serg.makar is now away
[02:25:40] zarg is now online
[02:27:00] maxim.zemlyakov is now online
[02:29:51] serg.makar is now away
[02:32:03] maxim.zemlyakov is now online
[02:34:54] serg.makar is now away
[02:36:24] Sevenov is now offline
[02:37:03] Sevenov is now online
[02:37:05] maxim.zemlyakov is now online
[02:37:48] vint21h is now online
[02:39:54] serg.makar is now away
[02:41:40] Typhon is now offline
[02:42:07] maxim.zemlyakov is now online
[02:44:55] serg.makar is now away
[02:45:21] gigimon is now offline
[02:47:09] maxim.zemlyakov is now online
[02:49:55] serg.makar is now away
[02:52:08] maxim.zemlyakov is now online
[02:54:56] serg.makar is now away
[02:57:09] maxim.zemlyakov is now online
[02:59:56] serg.makar is now away
[03:02:09] maxim.zemlyakov is now online
[03:04:58] serg.makar is now away
[03:07:11] maxim.zemlyakov is now online
[03:10:00] serg.makar is now away
[03:12:02] vint21h is now away
[03:12:02] vint21h is now away
[03:12:11] maxim.zemlyakov is now online
[03:13:54] vint21h is now away
[03:13:54] vint21h is now online
[03:15:00] serg.makar is now away
[03:17:12] maxim.zemlyakov is now online
[03:19:59] serg.makar is now away
[03:22:13] maxim.zemlyakov is now online
[03:25:02] serg.makar is now away
[03:27:14] maxim.zemlyakov is now online
[03:30:01] serg.makar is now away
[03:30:48] zarg is now away
[03:32:14] maxim.zemlyakov is now online
[03:35:02] serg.makar is now away
[03:37:13] maxim.zemlyakov is now online
[03:40:04] serg.makar is now away
[03:40:48] zarg is now xa
[03:42:14] maxim.zemlyakov is now online
[03:45:06] serg.makar is now away
[03:47:18] maxim.zemlyakov is now online
[03:50:07] serg.makar is now away
[03:52:20] maxim.zemlyakov is now online
[03:54:23] deepwalker is now offline
[03:55:09] serg.makar is now away
[03:57:23] maxim.zemlyakov is now online
[04:00:10] serg.makar is now away
[04:02:24] maxim.zemlyakov is now online
[04:05:10] serg.makar is now away
[04:07:24] maxim.zemlyakov is now online
[04:10:13] serg.makar is now away
[04:12:25] maxim.zemlyakov is now online
[04:15:12] serg.makar is now away
[04:15:15] vint21h is now away
[04:15:15] vint21h is now away
[04:15:58] vint21h is now away
[04:15:58] vint21h is now online
[04:17:26] maxim.zemlyakov is now online
[04:20:12] serg.makar is now away
[04:22:27] maxim.zemlyakov is now online
[04:25:14] serg.makar is now away
[04:27:28] maxim.zemlyakov is now online
[04:30:11] serg.makar is now away
[04:32:29] maxim.zemlyakov is now online
[04:35:14] serg.makar is now away
[04:37:30] maxim.zemlyakov is now online
[04:40:15] serg.makar is now away
[04:42:29] maxim.zemlyakov is now online
[04:45:17] serg.makar is now away
[04:47:31] maxim.zemlyakov is now online
[04:50:17] serg.makar is now away
[04:52:32] maxim.zemlyakov is now online
[04:55:19] serg.makar is now away
[04:57:31] maxim.zemlyakov is now online
[05:00:22] serg.makar is now away
[05:02:32] maxim.zemlyakov is now online
[05:05:23] serg.makar is now away
[05:07:32] maxim.zemlyakov is now online
[05:10:25] serg.makar is now away
[05:12:35] maxim.zemlyakov is now online
[05:13:14] Tony is now away
[05:15:25] serg.makar is now away
[05:15:31] Magister Yoda is now online
[05:16:01] Magister Yoda is now offline
[05:17:38] maxim.zemlyakov is now online
[05:20:25] serg.makar is now away
[05:22:37] maxim.zemlyakov is now online
[05:25:25] serg.makar is now away
[05:27:38] maxim.zemlyakov is now online
[05:30:26] serg.makar is now away
[05:32:38] maxim.zemlyakov is now online
[05:35:27] serg.makar is now away
[05:37:40] maxim.zemlyakov is now online
[05:38:14] Tony is now xa
[05:40:26] serg.makar is now away
[05:42:41] maxim.zemlyakov is now online
[05:43:59] vint21h is now away
[05:43:59] vint21h is now away
[05:45:29] serg.makar is now away
[05:47:41] maxim.zemlyakov is now online
[05:50:31] serg.makar is now away
[05:52:41] maxim.zemlyakov is now online
[05:55:31] serg.makar is now away
[05:57:42] maxim.zemlyakov is now online
[06:00:30] serg.makar is now away
[06:02:43] maxim.zemlyakov is now online
[06:05:29] serg.makar is now away
[06:07:42] maxim.zemlyakov is now online
[06:10:29] serg.makar is now away
[06:11:16] serg.makar is now online
[06:11:16] serg.makar is now online
[06:12:42] maxim.zemlyakov is now online
[06:15:28] serg.makar is now online
[06:17:45] maxim.zemlyakov is now online
[06:20:29] serg.makar is now online
[06:22:46] maxim.zemlyakov is now online
[06:25:31] serg.makar is now online
[06:27:46] maxim.zemlyakov is now online
[06:30:30] serg.makar is now online
[06:32:46] maxim.zemlyakov is now online
[06:34:44] serg.makar is now away
[06:34:44] serg.makar is now away
[06:35:30] serg.makar is now away
[06:37:47] maxim.zemlyakov is now online
[06:40:31] serg.makar is now away
[06:42:50] maxim.zemlyakov is now online
[06:45:32] serg.makar is now away
[06:46:39] dicos is now online
[06:47:48] maxim.zemlyakov is now online
[06:50:32] serg.makar is now away
[06:52:49] maxim.zemlyakov is now online
[06:55:33] serg.makar is now away
[06:57:51] maxim.zemlyakov is now online
[07:00:35] serg.makar is now away
[07:02:49] maxim.zemlyakov is now online
[07:05:36] serg.makar is now away
[07:07:53] maxim.zemlyakov is now online
[07:10:36] serg.makar is now away
[07:12:53] maxim.zemlyakov is now online
[07:15:36] serg.makar is now away
[07:17:54] maxim.zemlyakov is now online
[07:18:06] DrShall is now online
[07:20:03] DrShall: есть ли у кого нить пример создания пользователя на винде ХР и проставление флагов пользователя, хотя бы нормальные ссылки на описание
[07:20:38] serg.makar is now away
[07:22:54] maxim.zemlyakov is now online
[07:25:37] serg.makar is now away
[07:27:57] maxim.zemlyakov is now online
[07:28:22] DrShall is now away
[07:30:39] serg.makar is now away
[07:32:58] maxim.zemlyakov is now online
[07:35:42] serg.makar is now away
[07:35:46] DrShall is now online
[07:37:59] maxim.zemlyakov is now online
[07:40:40] serg.makar is now away
[07:43:00] maxim.zemlyakov is now online
[07:45:41] serg.makar is now away
[07:48:00] maxim.zemlyakov is now online
[07:50:41] serg.makar is now away
[07:53:02] maxim.zemlyakov is now online
[07:55:40] serg.makar is now away
[07:55:47] maxim.zemlyakov is now offline
[08:00:40] serg.makar is now away
[08:02:59] dicos is now away
[08:03:00] gf is now online
[08:03:00] dicos is now away
[08:05:38] serg.makar is now away
[08:06:21] DrShall is now away
[08:10:00] vint21h is now away
[08:10:00] vint21h is now online
[08:10:39] serg.makar is now away
[08:15:01] vint21h is now away
[08:15:01] vint21h is now away
[08:15:40] serg.makar is now away
[08:20:43] serg.makar is now away
[08:25:40] serg.makar is now away
[08:30:43] serg.makar is now away
[08:33:21] DrShall is now online
[08:35:42] serg.makar is now away
[08:37:37] _lorien is now I'm not here right now
[08:40:42] serg.makar is now away
[08:45:44] serg.makar is now away
[08:50:45] serg.makar is now away
[08:55:45] serg.makar is now away
[08:56:10] pc_ is now online
[09:00:47] serg.makar is now away
[09:01:10] pc_ is now away
[09:05:47] serg.makar is now away
[09:07:10] wiz_ is now online
[09:07:38] vint21h is now away
[09:07:38] vint21h is now online
[09:10:47] serg.makar is now away
[09:11:10] pc_ is now xa
[09:11:59] Sevenov is now offline
[09:12:38] vint21h is now away
[09:12:38] vint21h is now away
[09:15:47] serg.makar is now away
[09:20:48] serg.makar is now away
[09:25:47] serg.makar is now away
[09:30:47] serg.makar is now away
[09:33:11] xa4a is now online
[09:35:20] zarg is now online
[09:35:45] serg.makar is now away
[09:40:47] serg.makar is now away
[09:42:35] pc_ is now online
[09:45:20] zarg is now offline
[09:45:49] serg.makar is now away
[09:47:36] pc_ is now away
[09:50:48] serg.makar is now away
[09:51:55] cheshirecat is now online
[09:54:29] xa4a is now online
[09:54:29] xa4a is now away
[09:55:49] serg.makar is now away
[09:57:36] pc_ is now xa
[09:58:49] xa4a is now away
[09:58:49] xa4a is now online
[09:59:31] _lorien is now away
[10:00:24] _lorien is now I'm not here right now
[10:00:46] serg.makar is now away
[10:05:49] serg.makar is now away
[10:09:27] erraen is now online
[10:09:28] erraen is now online
[10:09:28] erraen is now online
[10:09:29] erraen is now online
[10:09:34] gigimon is now online
[10:10:49] serg.makar is now away
[10:13:43] erraen is now online
[10:14:27] dicos is now away
[10:14:28] dicos is now online
[10:15:48] serg.makar is now away
[10:18:44] erraen is now online
[10:19:30] xa4a is now offline
[10:20:00] Magister Yoda is now QIP Infium - всё работает. Качай на www.qip.ru
[10:20:43] Magister Yoda is now offline
[10:20:48] serg.makar is now away
[10:21:03] slav0nic is now online
[10:21:54] gigimon is now offline
[10:23:43] erraen is now online
[10:25:49] serg.makar is now away
[10:26:50] _lorien is now away
[10:28:45] erraen is now online
[10:29:15] vint21h is now away
[10:29:15] vint21h is now online
[10:30:48] serg.makar is now away
[10:33:45] erraen is now online
[10:34:33] vint21h is now offline
[10:35:48] serg.makar is now away
[10:38:47] erraen is now online
[10:40:50] serg.makar is now away
[10:42:16] dicos is now away
[10:42:17] dicos is now away
[10:42:41] _lorien is now I'm not here right now
[10:43:49] erraen is now online
[10:43:49] erraen is now online
[10:45:52] serg.makar is now away
[10:48:51] erraen is now online
[10:50:22] DrShall is now away
[10:50:51] serg.makar is now away
[10:53:45] Joes is now online
[10:53:52] erraen is now online
[10:54:25] dicos is now away
[10:54:26] dicos is now online
[10:54:52] DrShall is now online
[10:55:51] serg.makar is now away
[10:57:28] Joes is now offline
[10:58:53] erraen is now online
[11:00:18] nott is now online
[11:00:53] serg.makar is now away
[11:03:42] Joes is now online
[11:03:53] erraen is now online
[11:04:07] vint21h is now online
[11:05:43] mishok13 is now online
[11:05:53] serg.makar is now away
[11:06:39] webninja is now online
[11:08:55] erraen is now online
[11:10:09] johnny3k is now online
[11:10:41] Joes is now offline
[11:10:41] Joes is now online
[11:10:55] serg.makar is now away
[11:10:57] DrShall is now away
[11:13:54] mishok13 is now offline
[11:13:56] erraen is now online
[11:14:18] mishok13 is now online
[11:15:21] DrShall is now online
[11:15:56] serg.makar is now away
[11:18:39] webninja is now online
[11:18:51] webninja is now online
[11:18:57] erraen is now online
[11:20:55] serg.makar is now away
[11:23:04] _lorien is now away
[11:23:57] erraen is now online
[11:25:54] serg.makar is now away
[11:28:56] erraen is now online
[11:29:54] webninja is now online
[11:30:03] webninja is now online
[11:30:53] serg.makar is now away
[11:33:56] erraen is now online
[11:35:50] xa4a is now online
[11:35:52] serg.makar is now away
[11:38:58] erraen is now online
[11:40:51] serg.makar is now away
[11:43:58] erraen is now online
[11:45:53] serg.makar is now away
[11:49:00] erraen is now online
[11:50:53] serg.makar is now away
[11:53:59] erraen is now online
[11:55:56] serg.makar is now away
[11:55:56] dicos is now away
[11:55:57] dicos is now away
[11:58:34] webninja is now online
[11:58:51] Typhon is now online
[11:59:00] erraen is now online
[11:59:16] vint21h is now away
[11:59:16] vint21h is now away
[11:59:35] vint21h is now away
[11:59:36] vint21h is now online
[12:00:59] serg.makar is now away
[12:01:14] dicos is now away
[12:01:15] dicos is now online
[12:03:17] webninja is now online
[12:04:01] erraen is now online
[12:05:59] serg.makar is now away
[12:09:03] erraen is now online
[12:10:10] webninja is now online
[12:11:03] serg.makar is now away
[12:11:40] webninja is now online
[12:12:44] pc_ is now online
[12:13:12] dicos is now away
[12:13:13] dicos is now away
[12:14:04] erraen is now online
[12:14:42] zxvenom is now online
[12:14:43] zxvenom is now offline
[12:15:10] zxvenom is now online
[12:15:28] zxvenom: вай фай!
[12:15:33] zxvenom: о дааааааааааааааа
[12:15:45] zxvenom: интернет, я соскучился
[12:16:04] serg.makar is now away
[12:16:31] zxvenom: хм. вопрос у меня.
[12:17:13] zxvenom: for string in open('file.txt') выдаёт ещё и '\n' для каждой строки
[12:17:42] zxvenom: есть способ обойтись без string = string[:-1] ?
[12:17:44] pc_ is now away
[12:17:54] zxvenom: или это нормально и так делают все?
[12:18:21] zxvenom: я ответ почитаю в логах
[12:18:38] zxvenom: заранее спасибо
[12:19:06] erraen is now online
[12:19:41] webninja: .readlines()
[12:20:16] dicos is now away
[12:20:17] dicos is now online
[12:20:27] serg.makar is now online
[12:20:28] serg.makar is now online
[12:20:33] webninja: вроде
[12:20:34] Tony is now online
[12:20:44] webninja: .strip() еще можно
[12:21:04] serg.makar is now online
[12:21:14] DrShall is now away
[12:21:53] webninja: ПАЦАНЫ, Я СЕГОДНЯ ШЕЛ ПО УЛИЦЕ И УВИДЕЛ БОТАНА В МАЙКЕ "PHP", НУ Я ПОДСКОЧИЛ И РЕЗКО ПЕРЕЕБАЛ ЕМУ В ЩЩИ С ВЕРТУШКИ И ПОЯСНИЛ ЕГО КРИКОМ "НЕ ЛЮБЛЮ, БЛЯТЬ ПХП", ПОТОМУ ЧТО Я УГОРЕЛ ПО PYTHON, ПАЦАНЫ ДУХ СТАРОЙ ШКОЛЫ ЖИВЁТ ТОЛЬКО В PYTHON, ГДЕ ЕБАШАТСЯ ПО ХАРДКОРУ, ГДЕ ПАЦАНЫ ЖИВУТ ГЕНЕРАТОРАМИ, КОЛЛЕКЦИЯМИ И ЕБУТ УКАЗАТЕЛИ В РОТ! ТОЛЬКО PYTHON, ТОЛЬКО ХАРДКОР!!! ЮНИТИ УЛЬТРАХАРДКОР PYTHON!!! пацаны ебашьте phpшников, дотнетчиков, виндузятников и прочую пидарасню, угорайте по джанге, любите жинжу, алхимию и Игинкс! ГОВОРИТЕ ОТКРЫТО И СМЕЛО ПРЯМО В ЛИЦО! PYTHON!
[12:23:19] zxvenom: реадлайнс говорили медленней и много памяти жрёт, потому что сразу весь файл читает
[12:23:24] pc_ is now online
[12:23:27] zxvenom: вроде как непомню где и откуда
[12:24:06] webninja: да фигня все
[12:24:06] erraen is now online
[12:24:11] deepwalker is now online
[12:24:13] webninja: сколько у тебя файл?
[12:24:32] webninja: у меня щаз ридлайнс прям в данную минуту открывает файлы в районе 10мб и ниче
[12:25:23] zxvenom: 42кб...
[12:25:45] zxvenom: блин, я хочу чё-нибудь пооптимизировать, но комп сцуко мощный =_=
[12:25:54] zxvenom: вобщем спасибо
[12:25:58] webninja: это лишнее
[12:26:04] webninja: http://dumpz.org/54826/ вот типа того тебе надо
[12:26:06] serg.makar is now online
[12:26:42] DrShall is now online
[12:27:09] zxvenom: ага
[12:27:15] zxvenom: ладно, я пошёл
[12:27:19] zxvenom: батарея разряжается
[12:27:28] webninja: бб
[12:27:32] zxvenom: бб
[12:27:37] zxvenom is now offline
[12:28:50] Darth Лис is now online
[12:29:07] erraen is now online
[12:29:35] mishok13: ваще-та readlines() тоже отдает каждую строку с переводом строки
[12:29:45] Sevenov is now online
[12:30:13] mishok13: и readlines всяко хуже простой итерации
[12:31:08] serg.makar is now online
[12:31:27] webninja: .strip() убирает?
[12:31:29] nmk is now online
[12:32:42] vint21h is now away
[12:32:42] vint21h is now away
[12:34:09] erraen is now online
[12:34:19] gigimon is now online
[12:34:25] vint21h is now away
[12:34:26] vint21h is now online
[12:34:38] johnny3k is now away
[12:34:41] johnny3k is now away
[12:34:52] _lorien is now I'm not here right now
[12:36:10] serg.makar is now online
[12:38:31] mishok13: да
[12:38:37] xa4a is now online
[12:38:38] xa4a is now away
[12:38:57] mishok13: только он еще leading whitespace скушает
[12:39:11] erraen is now online
[12:39:23] mishok13: не то чтобы это очень важно для большинства текстовых файлов
[12:39:49] _lorien is now away
[12:39:51] johnny3k is now away
[12:39:53] johnny3k is now online
[12:41:11] serg.makar is now online
[12:41:22] Typhon: а если он там питонокод читает из файлов, чтобы потом евалить?! рстрип уж тогда
[12:41:29] Typhon: (хотя \n для евала пригодятся)
[12:41:43] xa4a is now away
[12:41:43] xa4a is now online
[12:43:26] webninja: ну там есть lstrip и rstrip
[12:44:08] Typhon: btw, чувак из баду и СОБА лабс рассказал вчера, как они питонокод в монге хранят и евалят его!
[12:44:11] webninja: вряд ли ему евалить )
[12:44:12] erraen is now online
[12:44:17] webninja: ого
[12:44:22] webninja: что за СОБА?
[12:44:39] webninja: атас, во дают. а как они его редактируют?
[12:45:33] dicos is now offline
[12:45:41] wiz_: а в редисе луа и даже не хранят - сразу эвалят
[12:46:00] webninja: зачем это нужно?
[12:46:07] _lorien is now I'm not here right now
[12:46:11] serg.makar is now online
[12:46:22] gigimon: очевидно же, чтобы с диска не читать наверно
[12:47:53] tilarids is now online
[12:49:10] DrShall is now away
[12:49:12] erraen is now online
[12:49:37] _lorien: webninja: зачем readlines? просто for line in open('file.txt')
[12:49:56] nott: если файл открывается в текстовом режиме, то .rstrip('\n')
[12:50:02] _lorien: я часто так делаю:
for line in open('file.txt').read().splitlines():
[12:50:05] nott: в бинарном \r\n
[12:50:25] _lorien: зачем rstrip(что-то там), проще rstrip(), разве нет?
[12:50:37] nott: пробелы съест
[12:50:40] nott: табы и т.д.
[12:50:55] _lorien: если это важно, то да, обычно наоборот не нужны они
[12:51:10] serg.makar is now online
[12:51:22] mishok13: Typhon, ты пошутил небось
[12:51:28] mishok13: очень неудачно пошутил небось
[12:51:29] webninja: меня параноит что файл не закрывается )
[12:51:36] webninja: после open.read
[12:51:37] wiz_: webninja, юзай with
[12:51:44] webninja: я так и делаю )
[12:51:53] _lorien: хм, а что страшного, что он не закрылся?
[12:51:54] webninja: with open() as f: и погнал )
[12:52:02] webninja: ну хз а если много их?
[12:52:04] vint21h is now away
[12:52:04] vint21h is now away
[12:52:06] DrShall is now online
[12:52:07] _lorien: и почему ты думаешь, что он не закрылся?
[12:52:15] _lorien: может там как-нить гарбидж коллектор закрывает
[12:52:18] gigimon: разве его сборщик потом не закроет?
[12:52:22] mishok13: а может и не закроет
[12:52:26] webninja: ага
[12:52:33] nott: _lorien вопрос только, когда это происходит
[12:52:43] _lorien: ну если много, то может и будут понты, но для начала неплохо было бы поймать такой глюк, а потом параноицца )
[12:52:44] mishok13: в Jython например может и не закрыть до окончания программы
[12:52:59] mishok13: пушо не refcounting, а полноценный gc
[12:53:05] webninja: у меня был косяк с этим когда файл не закрывался и часть данных терялась.
[12:53:05] vint21h is now away
[12:53:06] vint21h is now online
[12:53:10] mishok13: в IronPython тоже не гарантируется такое поведение
[12:53:18] _lorien: ну так мы вроде щас про чтение говорили
[12:53:29] _lorien: там данные не могут потеряться, при записи, лучше закрывать то конечно
[12:53:32] webninja: ну я по инерции и чтение визом открываю )
[12:54:13] erraen is now online
[12:54:26] _lorien: меня жутко анноит, что в питоне нельзя работать с результом вызова внутри блока...
я имею в виду:
with some_func(...) as result:
# do something with result
# here result is not defined
[12:54:51] Typhon: mishok13: по поводу чего пошутил?
[12:55:11] mishok13: насчет хранения кода в монге
[12:55:35] xa4a: _lorien: Oo?
[12:55:35] mishok13: _lorien, напиши декоратор
[12:55:44] mishok13: но вообще я не понимаю зачем
[12:55:54] webninja: тэкс после минуты втыкания я понял про результат вызова )
[12:56:11] serg.makar is now online
[12:56:12] webninja: да, было бы неплохо.
[12:56:17] Typhon: mishok13: ну чувак так рассказал, записи вроде есть :-)
[12:56:38] mishok13: Typhon, а причины чувак обьяснял?
[12:56:43] _lorien: mishok13: чтобы не плодить переменные и визуально выглядит красиво, понятно что как бы в этом блоке мы работаем с тем, что функция вернула
[12:56:51] _lorien: мне кажется это красиво и код становится более понятным
[12:57:03] xa4a: _lorien: есть пеп let .. in :
[12:57:15] mishok13: мне кажется это совершенно лишним
[12:57:20] xa4a: !g pep let in
[12:57:34] nmk: Typhon: это ты про вчерашний монгоконф?
[12:57:39] Typhon: nmk: да
[12:57:56] _lorien: !g python pep "let in"
[12:58:07] nmk: я там только яндекс смотрел, он порадовал. мол мы запустили продакшен и там узнали, что group лочит коллекцию. в документации мол об этом не написано. поржал
[12:58:12] Typhon: mishok13: хз, я не особо втыкал :-)
[12:58:40] _lorien: каежется не то по ссылке вернулось
[12:59:10] webninja: блин, пепы решают =)
[12:59:15] erraen is now online
[12:59:19] Typhon: mishok13: http://digitaloctober.ru/event/Mongo_DB_conference 16:01Юджин Сьюрана, Badoo <http://live.digitaloctober.ru/embed/290?language=ru#translation109%7C1305547305>
[13:00:07] _lorien: (03:54:48 PM) mishok13: _lorien, напиши декоратор
Каким образом? ЭТо скорее синтаксис языка, типа with statement тока чуток другое, я пытался это придумать как на существующий with завязать, не понял, да и не стал бы юзать такой велосипед
[13:00:30] mishok13: это велосипед исключительно потому что это совершенно лишнее
[13:00:49] wiz_: c# офигительный язык...
long.Parse(Convert.ToString(Convert.ToSingle(Item.Value.ToString())))
[13:01:08] mishok13: хм
[13:01:12] serg.makar is now online
[13:01:16] Typhon: не понятно, зачем with нужен тут? result = some_func(); и дальше result определён
[13:01:27] mishok13: а просто long(Item.Value.ToString()) не сработает?
[13:01:31] _lorien: именно, что он определён до конца функции
[13:01:43] _lorien: а мне хочется, чтобы он жил только несколько строк, где я что-то делаю с result
[13:01:47] wiz_: mishok13, неа.
[13:01:52] mishok13: груснявки
[13:01:56] mishok13: в JVM то же самое
[13:01:57] _lorien: и этот блок я бы желал визуально оттабулировать, выделить в отдельный блок
[13:02:01] vint21h is now away
[13:02:02] vint21h is now away
[13:02:17] Sevenov is now offline
[13:02:59] mishok13: мне кажется тебе подойдет концепция функций
[13:03:26] xa4a: О!
[13:03:29] xa4a: _lorien: http://www.python.org/dev/peps/pep-3150/
[13:03:31] _lorien: именно, что иногда не хочется заводить функцию на это, хотя думаю, ещё год-другой питона и я начну это делать
[13:03:42] _lorien: писать микрофункции
[13:04:04] xa4a: хотя это, может не совсем то. это задом-наперед
[13:04:08] _lorien: просто ощущение кода меняется и сейчас я на той стадии, что хочу то, что описал сейчас )
[13:04:15] erraen is now online
[13:04:16] mishok13: я искренне не понимаю зачем это в питоне
[13:04:20] Typhon: eval('''
code
''') только ещё всякие деденты ^_^
[13:04:22] mishok13: ладно в мл или хаскеле
[13:04:40] _lorien: mishok13: это не в питоне, это мне, в питоне может и не надо
[13:04:59] _lorien: я имею в виду, может быть, большинству людей это не надо
[13:05:13] mishok13: может тебе пора взглянуть на что-то помимо питона
[13:05:17] xa4a: _lorien: меня жутко анноит, что в питоне нельзя работать с результом вызова внутри блока...
я имею в виду:
with some_func(...) as result:
# do something with result
# here result is not defined
[13:05:23] xa4a: [q][/q]*
[13:05:29] xa4a: http://docs.python.org/reference/compound_stmts.html#the-with-statement
[13:05:36] xa4a: with_item ::= expression <http://docs.python.org/reference/expressions.html#grammar-token-expression> ["as" target <http://docs.python.org/reference/simple_stmts.html#grammar-token-target>] же
[13:06:05] _lorien: The context expression (the expression given in the with_item) is evaluated to obtain a context manager.
[13:06:12] _lorien: xa4a: там нельзя просто функцию завернуть
[13:06:13] serg.makar is now online
[13:06:20] mishok13: чего?
[13:06:23] xa4a: а, тогда декоратор, да
[13:06:33] mishok13: через декоратор
[13:06:43] Typhon: contextlib.contextmanager
[13:07:11] _lorien: как именно, покажите рабочий код :)
[13:07:18] _lorien: я просто пробовал это всё читать и делать и получилась херь
[13:07:43] _lorien: да и ещё раз говорю, я скорее всего не буду юзать велосипед, каждый раз импортировать его неудобно
[13:08:07] _lorien: т.е. я считаю, раз этого нет в языке, то и велосипед лучше не юзать, грязно будет выглядеть
[13:08:38] vint21h is now away
[13:08:39] vint21h is now online
[13:09:16] erraen is now online
[13:09:22] xa4a: true
[13:09:39] _lorien: ага, выше pep это что-то задом наперёд от того, что я хочу, это как в хаскеле, я там видел такие штуки
[13:11:15] serg.makar is now online
[13:11:58] wiz_: xa4a, а ты в for заворачивай, из него всё течёт как ты любишь (=
[13:11:58] gf is now offline
[13:12:15] deepwalker is now offline
[13:12:17] deepwalker is now online
[13:12:20] deepwalker is now online
[13:12:21] deepwalker is now online
[13:13:44] Typhon: wiz_: в третьем не течёт!
[13:14:16] erraen is now online
[13:14:45] _lorien is now away
[13:14:56] Tony is now away
[13:15:01] Typhon: _lorien: http://paste.in.ua/2396/
[13:15:20] _lorien is now I'm not here right now
[13:16:12] webninja is now online
[13:16:16] serg.makar is now online
[13:16:18] umi is now online
[13:16:18] umi is now online
[13:16:21] webninja is now online
[13:18:00] _lorien: Typhon: это абсолютно не то, что мне нужно:
1) нужно заворачивать любую функцию, не только генератор. Хотя я думаю, это решается самописным декоратором, который строит генератор по переданной функции :)
2) после отработки with блока переменная result осталась
[13:19:16] erraen is now online
[13:21:15] umi is now online
[13:21:15] serg.makar is now online
[13:21:23] webninja is now online
[13:22:00] xa4a: 1) id(любая_функция())
[13:22:27] Typhon is now away
[13:23:20] xa4a: (lambda result: some_code(result)) ( some_func() )
[13:23:27] xa4a: добавить ньюлайнов по вкусу
[13:23:47] _lorien is now away
[13:23:50] _lorien is now I'm not here right now
[13:24:10] _lorien: xa4a: это ты мне пишешь? что за id не понял
[13:24:18] erraen is now online
[13:24:18] erraen is now online
[13:24:19] mishok13: сэр знает толк в извращениях
[13:24:26] webninja is now online
[13:24:26] xa4a: _lorien: id() из последней ссылки
[13:25:02] xa4a: mishok13: это всё JS+jQuery с их function($) { someCodeOnLoad(); } (jQuery);
[13:25:11] mishok13: охблядь
[13:25:21] _lorien: а, ясно, ну я ж говорю, значение не удаляется после отработки блока
[13:25:29] Typhon is now online
[13:25:34] _lorien: а про то что id(любая функция()) я написал выше в комментарии
[13:25:42] _lorien: мы об одном и том же говорим
[13:26:15] serg.makar is now online
[13:26:15] umi is now online
[13:27:16] Darth Лис is now online
[13:27:55] _lorien: А лямбда это вообще не понял, к чему, там же нельзя сложный код внутрть положить, типа присваивания переменных.
[13:28:51] johnny3k is now offline
[13:29:20] erraen is now online
[13:31:16] serg.makar is now online
[13:31:17] umi is now online
[13:31:19] Darth Лис is now online
[13:31:44] wiz_ is now away
[13:32:04] rahs is now deb
[13:32:20] wiz_ is now online
[13:33:44] wiz_: в JS? можно
[13:34:22] erraen is now online
[13:34:22] erraen is now online
[13:34:29] xa4a: да.. присваивания - слишком сложно
[13:36:16] umi is now online
[13:36:17] serg.makar is now online
[13:38:09] DrShall: есть ли у кого нить пример создания пользователя на винде ХР и проставление флагов пользователя, хотя бы нормальные ссылки на описание
[13:39:23] erraen is now online
[13:39:56] Tony is now xa
[13:41:17] umi is now online
[13:41:18] serg.makar is now online
[13:41:57] wiz_: DrShall, воспользуйся своей подпиской MSDN. Ты же не зря ведь её купил, правда?
[13:42:39] wiz_ is now away
[13:43:20] DrShall: лично я не покупал
[13:43:24] DrShall: ))
[13:44:04] _lorien: DrShall: лучше на форуме спроси, тут вроде мало виндовз-пользователей
[13:44:23] erraen is now online
[13:44:51] DrShall: на форуме уже создал такую тему, пока ноль эмоций
[13:45:13] Darth Лис: видать на форуме тоже мало виндозников
[13:46:19] serg.makar is now online
[13:46:20] umi is now online
[13:46:25] _lorien: Тогда в гугл :)
[13:46:46] _lorien: или на форумах active python можно поспрашивать, он же вроед на винду ориентируется
[13:46:48] DrShall: да в гугле создание пользователя в домене
[13:46:52] _lorien: active state python
[13:47:05] Joes is now away
[13:47:09] Joes is now online
[13:48:00] DrShall: мне хотя бы узнать какие библиотечки использовать, хоть документацию почитать, а то даже не знаю куда двигаться
[13:48:16] Typhon: msdn + pywin32
[13:48:17] mishok13: MSDN
[13:48:53] xa4a: ctypes + winapi
[13:49:19] DrShall: какое единство во мнениях ))
[13:49:24] erraen is now online
[13:49:24] erraen is now online
[13:51:19] umi is now online
[13:51:20] serg.makar is now online
[13:51:32] mishok13: документация по WinAPI хранится в MSDN
[13:52:21] mishok13: pywin32 это обвязка над WinAPI, но она не на 100% покрывает апи, поэтому возможно иногда прийдется пользоваться ctypes
[13:52:38] xa4a: !g active directorry create user site:msdn.com
[13:53:59] xa4a: DrShall: слушай. а я написал в гугл твой вопрос и он мне первой ссылкой выдал код на питоне
[13:54:25] erraen is now online
[13:54:30] _lorien: так ему вроде не в active directory надо
[13:54:34] DrShall: ну да, доменного юзера
[13:54:35] _lorien: а локально
[13:55:04] DrShall: вся фигня в том, что машины в рабочих группах, а не домене
[13:55:28] xa4a: /me вообще не шарит и думает, что домен ~= AD
[13:55:37] xa4a: http://code.activestate.com/recipes/303345-create-an-account-in-ms-active-directory/
[13:56:16] gigimon: DrShall: ты уж определись, домен или рабочая группа
[13:56:19] serg.makar is now online
[13:56:20] umi is now online
[13:56:38] gigimon: если домен, то надо AD ковырять, если просто рабочая группа, от откуда там единство управления?
[13:56:44] gigimon: там локально юзера создавтаь
[13:57:07] DrShall: я и говорю что локального юзера
[13:57:08] Sevenov is now online
[13:57:42] wiz_ is now xa
[13:59:21] cheshirecat is now away
[13:59:25] cheshirecat is now away
[13:59:25] erraen is now online
[13:59:32] pc_ is now away
[13:59:56] pc_ is now online
[14:00:37] Sevenov is now offline
[14:00:42] Sevenov is now online
[14:00:42] Sevenov is now online
[14:00:50] Sevenov is now online
[14:00:50] Sevenov is now online
[14:00:50] Sevenov is now online
[14:00:50] Sevenov is now online
[14:01:03] tilarids is now away
[14:01:20] umi is now online
[14:01:21] serg.makar is now online
[14:04:26] erraen is now online
[14:06:04] erraen is now online
[14:06:04] erraen is now online
[14:06:20] umi is now online
[14:06:21] serg.makar is now online
[14:06:48] pc_ is now away
[14:07:37] cheshirecat is now away
[14:07:39] cheshirecat is now online
[14:09:13] Sevenov is now offline
[14:09:28] Sevenov is now online
[14:10:18] nott is now away
[14:11:00] erraen is now online
[14:11:03] tilarids is now xa
[14:11:16] pc_ is now online
[14:11:20] umi is now online
[14:11:21] serg.makar is now online
[14:15:38] xa4a is now online
[14:15:39] xa4a is now away
[14:16:01] erraen is now online
[14:16:21] serg.makar is now online
[14:16:21] umi is now online
[14:16:52] nott is now online
[14:18:03] _lorien is now away
[14:21:03] erraen is now online
[14:21:20] umi is now online
[14:21:22] serg.makar is now online
[14:22:21] _lorien is now I'm not here right now
[14:25:35] umi is now away
[14:25:35] umi is now away
[14:26:04] erraen is now online
[14:26:04] erraen is now online
[14:26:20] umi is now away
[14:26:25] serg.makar is now online
[14:31:04] erraen is now online
[14:31:20] umi is now away
[14:31:26] serg.makar is now online
[14:34:16] vint21h is now away
[14:34:17] vint21h is now away
[14:35:06] Typhon is now away
[14:35:35] umi is now xa
[14:35:35] umi is now xa
[14:36:04] erraen is now online
[14:36:21] umi is now xa
[14:36:26] serg.makar is now online
[14:39:26] xa4a is now away
[14:39:26] xa4a is now online
[14:41:06] erraen is now online
[14:41:23] umi is now xa
[14:41:25] serg.makar is now online
[14:41:49] xa4a: DrShall: опять же. первая страница гугла
[14:41:53] xa4a: http://bytes.com/topic/python/answers/682502-how-create-new-user-windows-platform-using-python
[14:43:57] Sevenov is now offline
[14:44:14] Sevenov is now online
[14:44:31] gigimon is now offline
[14:44:42] gigimon is now online
[14:46:09] erraen is now online
[14:46:25] umi is now xa
[14:46:25] serg.makar is now online
[14:47:26] Darth Лис is now online
[14:47:29] vint21h is now away
[14:47:30] vint21h is now online
[14:48:22] Typhon is now online
[14:49:30] nott is now away
[14:51:08] erraen is now online
[14:51:20] nott is now online
[14:51:24] umi is now xa
[14:51:25] serg.makar is now online
[14:51:27] umi is now online
[14:51:27] umi is now online
[14:52:20] Darth Лис is now online
[14:52:22] _lorien is now away
[14:53:58] vint21h is now away
[14:54:00] vint21h is now away
[14:54:19] Darth Лис is now offline
[14:56:09] erraen is now online
[14:56:09] erraen is now online
[14:56:24] serg.makar is now online
[14:56:25] umi is now online
[15:00:40] pc_ is now away
[15:01:11] erraen is now online
[15:01:24] serg.makar is now online
[15:01:26] umi is now online
[15:02:09] johnny3k is now online
[15:02:20] pc_ is now online
[15:04:36] _lorien is now I'm not here right now
[15:05:37] serg.makar is now away
[15:05:37] serg.makar is now away
[15:06:03] gigimon is now offline
[15:06:11] erraen is now online
[15:06:20] gigimon is now online
[15:06:26] umi is now online
[15:06:26] serg.makar is now away
[15:08:43] mishok13 is now away
[15:09:08] vint21h is now away
[15:09:09] vint21h is now online
[15:09:46] _lorien is now away
[15:10:19] tilarids is now online
[15:10:38] wiz_ is now online
[15:10:59] mishok13 is now online
[15:11:12] erraen is now online
[15:11:27] umi is now online
[15:11:28] serg.makar is now away
[15:15:13] serg.makar is now online
[15:15:13] serg.makar is now online
[15:16:12] erraen is now online
[15:16:28] umi is now online
[15:16:28] serg.makar is now online
[15:17:50] tilarids is now away
[15:18:16] tilarids is now online
[15:19:35] огыешсук is now online
[15:19:40] _lorien is now I'm not here right now
[15:21:12] erraen is now online
[15:21:29] umi is now online
[15:21:30] serg.makar is now online
[15:21:44] pc_ is now away
[15:23:04] Darth Лис is now online
[15:23:58] tilarids is now away
[15:26:13] erraen is now online
[15:26:13] erraen is now online
[15:26:30] umi is now online
[15:26:32] serg.makar is now online
[15:29:24] vint21h is now away
[15:29:25] vint21h is now away
[15:31:15] erraen is now online
[15:31:32] umi is now online
[15:31:33] serg.makar is now online
[15:31:44] pc_ is now xa
[15:33:58] tilarids is now xa
[15:36:00] serg.makar is now away
[15:36:00] serg.makar is now away
[15:36:16] erraen is now online
[15:36:32] umi is now online
[15:36:35] serg.makar is now away
[15:37:22] serg.makar is now online
[15:37:22] serg.makar is now online
[15:39:45] Typhon is now away
[15:41:18] erraen is now online
[15:41:32] umi is now online
[15:41:35] serg.makar is now online
[15:42:10] vint21h is now away
[15:42:11] vint21h is now online
[15:43:30] DrShall is now away
[15:43:32] pc_ is now online
[15:46:19] erraen is now online
[15:46:34] umi is now online
[15:46:36] serg.makar is now online
[15:46:45] Typhon is now online
[15:47:05] Darth Лис: используя distutils можно как-то депенденсы указывать?
[15:48:42] cheshirecat is now away
[15:48:42] webninja is now online
[15:48:45] webninja is now online
[15:48:45] cheshirecat is now away
[15:49:06] Tony is now online
[15:49:27] vint21h is now away
[15:49:28] vint21h is now away
[15:50:27] cheshirecat is now away
[15:50:30] cheshirecat is now online
[15:51:20] erraen is now online
[15:51:35] umi is now online
[15:51:37] serg.makar is now online
[15:52:28] vint21h is now away
[15:52:29] vint21h is now online
[15:56:21] erraen is now online
[15:56:21] erraen is now online
[15:56:35] umi is now online
[15:56:39] serg.makar is now online
[15:58:55] _lorien is now away
[16:01:21] erraen is now online
[16:01:37] umi is now online
[16:01:40] serg.makar is now online
[16:01:56] Darth Лис: типо есть такое
http://docs.python.org/distutils/setupscript.html#relationships-between-distributions-and-packages
но при этом в списке аргументов для setup никакого requires не значиться
[16:02:00] Darth Лис: очень интересно
[16:02:51] _lorien is now I'm not here right now
[16:05:28] Darth Лис: а distutils.dist.Distribution знает про такой параметр
[16:06:21] erraen is now online
[16:06:38] umi is now online
[16:06:42] serg.makar is now online
[16:09:03] Darth Лис: ... приятно пообщаться с умным человеком
^_^
[16:10:03] johnny3k is now away
[16:10:04] johnny3k is now away
[16:10:08] _lorien: я всё время путаю distutils, setuptools и distribute :)
[16:10:28] _lorien: * distribution
[16:10:32] wiz_: ГОВОРИТЕ ОТКРЫТО И СМЕЛО ПРЯМО В ЛИЦО! PIP!
[16:11:17] Darth Лис: _lorien: distutils это тот что в питоне, а setuptools это сторонняя хрень которая egg-и делает. а что за distribution вообще такой?
[16:11:23] erraen is now online
[16:11:24] erraen is now online
[16:11:31] johnny3k is now away
[16:11:32] johnny3k is now online
[16:11:40] umi is now online
[16:11:43] serg.makar is now online
[16:11:43] slav0nic: http://pypi.python.org/pypi/distribute
[16:12:18] Darth Лис: дак есть же pip
[16:12:19] _lorien: Darth Лис: так ты только что сказал что dist.Distribution знает про такой параметр )
[16:12:31] _lorien: setuptools = easy_install ясно
[16:12:38] Darth Лис: оно да
[16:12:46] Darth Лис: _lorien: ну да, сам задался вопросом, сам нашёл ответ Ж)
[16:13:28] DrShall is now xa
[16:16:26] erraen is now online
[16:16:40] umi is now online
[16:16:45] serg.makar is now online
[16:17:05] umi is now away
[16:17:06] umi is now away
[16:18:31] Ляпатяпа is now online
[16:19:30] wiz_ is now away
[16:19:44] wiz_ is now online
[16:21:25] erraen is now online
[16:21:26] erraen is now online
[16:21:42] umi is now away
[16:21:45] serg.makar is now online
[16:26:26] erraen is now online
[16:26:37] mishok13 is now away
[16:26:42] umi is now away
[16:26:46] serg.makar is now online
[16:27:05] umi is now xa
[16:27:06] umi is now xa
[16:27:38] tilarids is now online
[16:29:52] vint21h is now away
[16:29:53] vint21h is now away
[16:31:27] erraen is now online
[16:31:31] Darth Лис is now online
[16:31:43] umi is now xa
[16:31:47] serg.makar is now online
[16:32:03] Ляпатяпа is now offline
[16:32:14] vint21h is now away
[16:32:15] vint21h is now online
[16:32:15] mishok13 is now online
[16:33:56] Sevenov is now offline
[16:34:12] Sevenov is now online
[16:34:35] Darth Лис is now online
[16:36:28] erraen is now online
[16:36:44] umi is now xa
[16:36:47] serg.makar is now online
[16:37:16] vint21h is now away
[16:37:17] vint21h is now away
[16:38:25] slav0nic is now away
[16:41:17] vint21h is now away
[16:41:18] vint21h is now online
[16:41:28] erraen is now online
[16:41:45] umi is now xa
[16:41:47] serg.makar is now online
[16:44:17] serg.makar is now away
[16:44:17] serg.makar is now away
[16:44:39] serg.makar is now online
[16:44:39] serg.makar is now online
[16:46:29] erraen is now online
[16:46:29] erraen is now online
[16:46:45] umi is now xa
[16:46:48] serg.makar is now online
[16:47:00] _lorien is now away
[16:47:09] _lorien is now I'm not here right now
[16:48:25] slav0nic is now xa
[16:50:00] vint21h is now away
[16:50:01] vint21h is now away
[16:50:29] slav0nic is now online
[16:50:30] rahs is now offline
[16:51:30] erraen is now online
[16:51:46] umi is now xa
[16:51:48] serg.makar is now online
[16:52:20] wiz_ is now away
[16:53:34] Ляпатяпа is now online
[16:53:56] Ляпатяпа: а туториал по сварге на русском остался?
[16:55:07] vint21h is now away
[16:55:08] vint21h is now online
[16:55:10] erraen is now offline
[16:56:46] umi is now xa
[16:56:49] serg.makar is now online
[16:57:06] wiz_ is now online
[16:59:21] erraen is now online
[16:59:22] erraen is now online
[16:59:38] _lorien is now away
[17:00:10] _lorien is now I'm not here right now
[17:00:21] kwis is now online
[17:00:33] kwis is now offline
[17:00:58] erraen is now online
[17:01:48] umi is now xa
[17:01:48] serg.makar is now online
[17:02:44] wiz_ is now away
[17:03:11] tilarids is now away
[17:03:35] tilarids is now online
[17:05:12] wiz_ is now online
[17:06:00] erraen is now online
[17:06:46] umi is now xa
[17:06:49] serg.makar is now online
[17:07:54] inpython is now online
[17:08:54] pc_ is now away
[17:09:32] pc_ is now online
[17:11:01] erraen is now online
[17:11:46] umi is now xa
[17:11:50] serg.makar is now online
[17:12:25] inpython is now offline
[17:13:29] maxp is now away
[17:14:25] serg.makar is now away
[17:14:25] serg.makar is now away
[17:14:32] nott is now away
[17:15:17] serg.makar is now online
[17:15:17] serg.makar is now online
[17:16:01] erraen is now online
[17:16:45] umi is now xa
[17:16:51] serg.makar is now online
[17:17:07] Darth Лис: когда я загружаю модуль с помощью imp.load_source и в этом модуле прямо в топовом скоупе оперделены какие нибудь переменные, каким образом мне их выдрать?
[17:17:30] webninja is now online
[17:18:16] _lorien: Darth Лис: у тебя хорошо получилось в прошлый раз ответить на свои вопросы :)
[17:18:34] Darth Лис: в принципе есть __dict__ ... но в нём столько лишнего
[17:18:43] Darth Лис: мне бы вывод как locals() выдаёт
[17:18:46] Darth Лис: было бы отлично :)
[17:18:54] mishok13: module = imp.load_source(...)
module.<переменная>
[17:19:09] mishok13: oh that
[17:19:45] Darth Лис: mishok13: то да, но их много
[17:19:46] nott is now online
[17:20:28] mishok13: vars(module) тебе выведет словарь всех атрибутов
[17:21:03] erraen is now online
[17:21:11] serg.makar is now offline
[17:21:46] umi is now xa
[17:21:59] Darth Лис: mishok13: vars получается дёргает тот же самый module.__dict__
[17:22:03] webninja is now online
[17:22:07] Darth Лис: ясно короче, в принципе оно и надо
[17:22:45] _lorien: success
[17:24:03] _lorien: success story: я не знал, что делать, я был в тупике, и потом я зашёл на pythonua@c.j.ru и мне дали ответ за минуту, эти ребята - они монстры, они всезнающи, платная подписка на общение в этом канале окупила себя за первые пять минут
[17:25:08] Darth Лис: _lorien: я уже забывать начал питон %) вот сейчас пришлось срочно рефрешить память, потом с сижу, дуплю
[17:25:26] maxp is now away
[17:26:04] erraen is now online
[17:26:48] umi is now xa
[17:28:28] johnny3k is now away
[17:28:29] johnny3k is now away
[17:28:33] mishok13: руби сьел твой мозг?
[17:28:35] serg.makar is now online
[17:28:35] serg.makar is now online
[17:28:41] johnny3k is now away
[17:28:42] johnny3k is now online
[17:29:09] serg.makar is now online
[17:30:47] Darth Лис: ага
[17:30:57] Typhon: /me боится
[17:31:05] erraen is now online
[17:31:51] umi is now xa
[17:32:10] mishok13: чего боятся?
[17:32:29] mishok13: ты же окамл любишь, он во многом на питон похож, как по мне
[17:33:09] Tony: _lorien, а какже. я понял смысл жизни, стал лидером митол группы?
[17:34:09] serg.makar is now online
[17:34:30] Typhon: mishok13: пишу ж ща много на руби, за мозг боюсь %)
[17:34:44] pc_ is now away
[17:36:06] erraen is now online
[17:36:08] vint21h is now away
[17:36:09] vint21h is now away
[17:36:52] umi is now xa
[17:39:07] serg.makar is now online
[17:40:57] nmk is now offline
[17:41:06] erraen is now online
[17:41:18] Darth Лис:
mod = imp.load_source(name, cfg_name)
keys = [x for x in vars(mod) if not x.startswith('__')]
cfg = {}
for k in keys:
cfg[k] = getattr(mod, k)
вот этот последний for как записать по нормальному?
[17:41:27] serg.makar is now offline
[17:41:52] umi is now xa
[17:42:43] Typhon: cfg = {k:getattr(mod, k) for k in keys}
[17:43:02] umi is now online
[17:43:02] umi is now online
[17:43:32] Sevenov is now offline
[17:43:38] Sevenov is now online
[17:43:38] Sevenov is now online
[17:43:38] Sevenov is now online
[17:43:45] Sevenov is now online
[17:43:45] Sevenov is now online
[17:43:46] Sevenov is now online
[17:44:07] Darth Лис: Typhon: о_О, интересно, а что это за записать такая? давно появилась?
[17:44:36] umi is now online
[17:44:36] umi is now away
[17:44:37] umi is now away
[17:44:40] wiz_: да
[17:44:44] pc_ is now xa
[17:44:59] _lorien: в каком питоне кстати?
[17:45:41] _lorien: вообще в старых питонах я так делал и делаю:
cfg = dict((x, getattr(mod, x) for x in keys)
[17:45:48] wiz_: в 2.7 точно есть
[17:45:52] mishok13: скобку одну пропустил
[17:45:57] wiz_: )
[17:46:04] _lorien: да, точно
[17:46:08] erraen is now online
[17:46:14] tilarids is now away
[17:46:15] _lorien: и то это не будет работать в 2.4 вроде, в 2.5 не помню
[17:46:24] _lorien: я оч не люблю фишки из 2.7 питона, на серверах то 2.6
[17:46:27] _lorien: иногда бывает и 2ю5
[17:46:36] wiz_: а пора бы уже 3.1
[17:46:42] _lorien: ну-ну, удачи ))
[17:46:51] Darth Лис: Typhon: так как эта форма записи называется?
[17:46:52] umi is now away
[17:47:09] Typhon: Darth Лис: dictionary comprehensions
[17:47:45] Typhon: бэкпорт с 27
[17:47:48] serg.makar is now online
[17:47:48] serg.makar is now online
[17:47:49] Typhon: *с 31
[17:47:57] mishok13: 3.1 конская залупа
[17:48:12] wiz_: {x for x in 'abc'} тоже ничего
[17:48:15] mishok13: только 3.2, только победа!
[17:48:20] tilarids is now online
[17:49:52] johnny3k is now away
[17:49:53] johnny3k is now away
[17:50:48] serg.makar is now online
[17:51:09] erraen is now online
[17:51:53] umi is now away
[17:52:28] pc_ is now online
[17:53:50] tilarids is now away
[17:55:48] serg.makar is now online
[17:56:11] erraen is now online
[17:56:53] umi is now away
[17:57:36] tilarids is now offline
[17:57:37] tilarids is now online
[17:57:40] tilarids is now online
[17:57:40] tilarids is now online
[17:58:00] umi is now online
[17:58:00] umi is now online
[18:00:49] serg.makar is now online
[18:01:13] erraen is now online
[18:01:41] Darth Лис is now online
[18:01:54] umi is now online
[18:02:56] Darth Лис is now online
[18:03:28] wiz_ is now offline
[18:05:48] serg.makar is now online
[18:06:14] erraen is now online
[18:06:16] nmk is now online
[18:06:49] johnny3k is now away
[18:06:50] johnny3k is now online
[18:06:54] umi is now online
[18:08:02] vint21h is now offline
[18:08:12] vint21h is now away
[18:10:47] serg.makar is now online
[18:10:56] johnny3k: на серверах под python3 с апдейтами поставился параллельно с python
[18:11:06] johnny3k: наверно
[18:11:14] erraen is now online
[18:11:56] umi is now online
[18:12:22] serg.makar is now away
[18:12:22] serg.makar is now away
[18:12:55] Ляпатяпа is now offline
[18:13:26] serg.makar is now online
[18:13:26] serg.makar is now online
[18:15:49] vint21h is now away
[18:15:50] vint21h is now online
[18:15:51] serg.makar is now online
[18:16:15] erraen is now online
[18:16:55] umi is now online
[18:20:53] serg.makar is now online
[18:21:16] erraen is now online
[18:21:19] inpython is now online
[18:21:57] umi is now online
[18:24:32] mishok13 is now away
[18:25:55] serg.makar is now online
[18:26:16] tilarids is now away
[18:26:17] erraen is now online
[18:26:56] maxp is now away
[18:26:56] maxp is now offline
[18:26:58] umi is now online
[18:28:48] johnny3k is now offline
[18:28:56] tilarids is now online
[18:30:55] serg.makar is now online
[18:31:19] erraen is now online
[18:31:42] slav0nic is now offline
[18:31:57] umi is now online
[18:32:26] mishok13 is now online
[18:35:18] tilarids is now away
[18:35:54] serg.makar is now online
[18:36:20] erraen is now online
[18:36:59] umi is now online
[18:38:06] Sevenov: > mishok13: только 3.2, только победа!
и даже небо, и даже обама!
[18:40:57] serg.makar is now online
[18:41:21] erraen is now online
[18:42:01] umi is now online
[18:45:18] tilarids is now xa
[18:45:59] serg.makar is now online
[18:46:02] vint21h is now away
[18:46:03] vint21h is now away
[18:46:23] erraen is now online
[18:46:24] Sevenov is now offline
[18:46:27] pc_ is now away
[18:46:29] Sevenov is now online
[18:46:29] Sevenov is now online
[18:46:35] Sevenov is now online
[18:46:35] Sevenov is now online
[18:47:02] umi is now online
[18:48:20] pc_ is now online
[18:49:33] vint21h is now away
[18:49:34] vint21h is now online
[18:50:56] serg.makar is now online
[18:51:24] erraen is now online
[18:52:01] umi is now online
[18:52:05] Darth Лис is now online
[18:52:15] Darth Лис is now online
[18:55:12] kwis is now online
[18:55:13] kwis is now offline
[18:55:58] serg.makar is now online
[18:56:24] erraen is now online
[18:57:02] umi is now online
[18:57:47] umi is now offline
[18:58:43] vint21h is now away
[18:58:44] vint21h is now away
[19:00:47] vint21h is now away
[19:00:48] vint21h is now online
[19:00:57] serg.makar is now online
[19:01:25] erraen is now online
[19:04:32] nott is now offline
[19:05:58] serg.makar is now online
[19:06:27] erraen is now online
[19:06:38] Sevenov is now offline
[19:06:43] Sevenov is now online
[19:06:43] Sevenov is now online
[19:06:48] Sevenov is now online
[19:06:49] Sevenov is now online
[19:09:21] vint21h is now away
[19:09:22] vint21h is now away
[19:10:25] webninja is now offline
[19:10:58] serg.makar is now online
[19:10:58] pc_ is now away
[19:11:28] erraen is now online
[19:15:59] serg.makar is now online
[19:16:29] erraen is now online
[19:17:22] vint21h is now away
[19:17:23] vint21h is now online
[19:20:58] pc_ is now xa
[19:20:58] serg.makar is now online
[19:21:29] erraen is now online
[19:23:11] xa4a is now offline
[19:23:30] pc_ is now online
[19:25:58] serg.makar is now online
[19:26:33] erraen is now online
[19:30:10] _lorien is now away
[19:31:00] serg.makar is now online
[19:31:33] erraen is now online
[19:35:28] pc_ is now away
[19:36:00] serg.makar is now online
[19:36:34] erraen is now online
[19:37:02] Darth Лис is now offline
[19:41:02] serg.makar is now online
[19:41:34] erraen is now online
[19:42:01] _lorien is now I'm not here right now
[19:44:09] serg.makar is now offline
[19:45:28] pc_ is now xa
[19:46:35] erraen is now online
[19:51:09] Sevenov is now offline
[19:51:11] Sevenov is now online
[19:51:12] Sevenov is now online
[19:51:35] erraen is now online
[19:52:46] tilarids is now offline
[19:52:55] vint21h is now offline
[19:54:51] ds.tihonov is now dnd
[19:55:01] ds.tihonov is now дома! :)
[19:55:01] inpython is now away
[19:55:13] inpython is now online
[19:56:37] erraen is now online
[19:58:46] pc_ is now online
[19:59:11] _lorien is now away
[20:01:36] erraen is now online
[20:02:11] _lorien is now I'm not here right now
[20:02:28] nmk is now offline
[20:05:20] inpython is now offline
[20:06:36] erraen is now online
[20:11:19] pc_ is now away
[20:11:38] erraen is now online
[20:12:07] xa4a is now online
[20:15:16] Sevenov is now offline
[20:15:19] Sevenov is now online
[20:15:20] Sevenov is now online
[20:15:20] Sevenov is now online
[20:15:25] Sevenov is now online
[20:15:25] Sevenov is now online
[20:15:25] Sevenov is now online
[20:16:38] erraen is now online
[20:19:10] pc_ is now online
[20:21:39] erraen is now online
[20:21:49] serg.makar is now online
[20:21:49] serg.makar is now online
[20:22:01] serg.makar is now offline
[20:22:42] slav0nic is now online
[20:22:48] serg.makar is now online
[20:22:49] serg.makar is now online
[20:26:40] erraen is now online
[20:27:14] serg.makar is now online
[20:30:34] mishok13 is now away
[20:31:41] erraen is now online
[20:32:15] serg.makar is now online
[20:36:42] erraen is now online
[20:37:15] Sevenov is now offline
[20:37:16] deepwalker is now offline
[20:37:16] serg.makar is now online
[20:37:17] Sevenov is now online
[20:37:19] Sevenov is now online
[20:37:20] Sevenov is now online
[20:40:34] mishok13 is now xa
[20:41:44] erraen is now online
[20:42:16] serg.makar is now online
[20:46:46] erraen is now online
[20:47:19] serg.makar is now online
[20:50:27] slav0nic is now away
[20:51:47] erraen is now online
[20:52:18] serg.makar is now online
[20:56:47] erraen is now online
[20:57:21] serg.makar is now online
[21:00:27] slav0nic is now xa
[21:01:49] erraen is now online
[21:02:21] serg.makar is now online
[21:06:51] erraen is now online
[21:07:21] serg.makar is now online
[21:09:15] gf is now online
[21:10:03] erraen is now offline
[21:10:27] erraen is now online
[21:10:27] erraen is now online
[21:11:38] erraen is now online
[21:12:22] serg.makar is now online
[21:16:02] pc_ is now away
[21:16:39] erraen is now online
[21:17:23] serg.makar is now online
[21:18:57] deepwalker is now online
[21:19:39] Мозгошредер is now online
[21:21:37] darkillusion is now online
[21:21:38] erraen is now online
[21:22:24] serg.makar is now online
[21:25:20] darkillusion is now offline
[21:25:54] darkillusion is now online
[21:26:01] pc_ is now xa
[21:26:41] erraen is now online
[21:27:24] serg.makar is now online
[21:31:41] erraen is now online
[21:32:24] serg.makar is now online
[21:35:41] xa4a is now online
[21:35:41] xa4a is now away
[21:36:41] erraen is now online
[21:37:26] serg.makar is now online
[21:38:02] pc_ is now online
[21:41:42] erraen is now online
[21:42:25] serg.makar is now online
[21:46:03] Sevenov is now offline
[21:46:08] Sevenov is now online
[21:46:08] Sevenov is now online
[21:46:14] Sevenov is now online
[21:46:15] Sevenov is now online
[21:46:16] Sevenov is now online
[21:46:16] Sevenov is now online
[21:46:43] erraen is now online
[21:47:25] serg.makar is now online
[21:51:45] erraen is now online
[21:52:28] serg.makar is now online
[21:53:00] Typhon is now away
[21:53:01] Typhon is now online
[21:53:13] slav0nic is now online
[21:54:47] ds.tihonov is now offline
[21:55:56] ds.tihonov is now дома! :)
[21:56:46] erraen is now online
[21:57:28] serg.makar is now online
[21:58:06] pc_ is now away
[21:59:34] Мозгошредер is now away
[22:01:19] slav0nic is now offline
[22:01:23] slav0nic is now online
[22:01:32] slav0nic is now online
[22:01:33] slav0nic is now online
[22:01:33] slav0nic is now online
[22:01:34] slav0nic is now online
[22:01:35] slav0nic is now online
[22:01:36] slav0nic is now online
[22:01:39] slav0nic is now online
[22:01:40] slav0nic is now online
[22:01:46] erraen is now online
[22:02:30] serg.makar is now online
[22:03:42] Мозгошредер is now online
[22:06:48] erraen is now online
[22:07:31] serg.makar is now online
[22:08:05] pc_ is now xa
[22:11:48] erraen is now online
[22:12:06] Typhon is now offline
[22:12:34] serg.makar is now online
[22:16:49] erraen is now online
[22:17:34] serg.makar is now online
[22:19:32] Sevenov is now offline
[22:21:50] erraen is now online
[22:22:34] serg.makar is now online
[22:22:46] огыешсук is now offline
[22:23:44] vint21h is now online
[22:26:52] erraen is now online
[22:27:36] serg.makar is now online
[22:29:00] Мозгошредер is now away
[22:29:20] Мозгошредер is now online
[22:31:53] erraen is now online
[22:32:38] serg.makar is now online
[22:36:06] _lorien is now away
[22:36:54] erraen is now online
[22:37:38] serg.makar is now online
[22:40:08] maxim.zemlyakov is now online
[22:40:08] maxim.zemlyakov is now online
[22:40:19] maxim.zemlyakov is now online
[22:40:19] maxim.zemlyakov is now online
[22:40:47] maxim.zemlyakov is now online
[22:41:55] erraen is now online
[22:42:39] maxim.zemlyakov is now offline
[22:42:39] serg.makar is now online
[22:44:52] Мозгошредер is now away
[22:45:08] Мозгошредер is now online
[22:46:55] erraen is now online
[22:47:42] serg.makar is now online
[22:51:21] vint21h is now away
[22:51:22] vint21h is now away
[22:51:57] erraen is now online
[22:52:19] vint21h is now away
[22:52:20] vint21h is now online
[22:52:39] serg.makar is now online
[22:55:42] serg.makar is now away
[22:55:43] serg.makar is now away
[22:56:18] darkillusion: а когда добавят новое обновления для блогспота ? читал вроде как 3-4 недели назад что обновится а нехера нет
[22:56:59] erraen is now online
[22:57:41] serg.makar is now away
[23:02:00] erraen is now online
[23:02:43] serg.makar is now away
[23:06:35] vint21h is now away
[23:06:36] vint21h is now away
[23:06:55] slav0nic is now away
[23:07:01] erraen is now online
[23:07:25] serg.makar is now online
[23:07:26] serg.makar is now online
[23:07:42] serg.makar is now online
[23:12:02] erraen is now online
[23:12:44] serg.makar is now online
[23:14:09] vint21h is now away
[23:14:10] vint21h is now online
[23:15:33] Typhon is now online
[23:16:55] slav0nic is now xa
[23:17:05] erraen is now online
[23:17:29] slav0nic is now online
[23:17:46] serg.makar is now online
[23:18:34] Typhon is now offline
[23:19:01] Typhon is now online
[23:22:07] erraen is now online
[23:22:48] serg.makar is now online
[23:26:52] Joes is now away
[23:26:59] Joes is now online
[23:27:08] erraen is now online
[23:27:50] serg.makar is now online
[23:32:09] erraen is now online
[23:32:50] serg.makar is now online
[23:33:09] vint21h is now away
[23:33:10] vint21h is now away
[23:35:07] vint21h is now away
[23:35:08] vint21h is now online
[23:37:12] erraen is now online
[23:37:49] serg.makar is now online
[23:42:12] erraen is now online
[23:42:49] serg.makar is now online
[23:45:35] Sevenov is now online
[23:47:14] erraen is now online
[23:47:50] serg.makar is now online
[23:49:47] vint21h is now away
[23:49:48] vint21h is now away
[23:52:15] erraen is now online
[23:52:51] serg.makar is now online
[23:54:12] mishok13 is now offline
[23:57:17] erraen is now online
[23:57:52] serg.makar is now online
[23:58:55] darkillusion is now offline