[00:05:40] yugo-salem is now away
[00:05:42] yugo-salem is now online
[00:10:47] fuzzy is now offline
[00:14:09] mishok13 is now away
[00:14:09] mishok13 is now away
[00:15:44] singularity is now online
[00:15:45] mks is now away
[00:15:53] singularity is now online
[00:19:55] singularity is now online
[00:20:39] singularity is now online
[00:20:45] mks is now xa
[00:24:09] mishok13 is now xa
[00:24:10] mishok13 is now xa
[00:27:05] deisler is now away
[00:34:27] yugo-salem is now away
[00:36:03] mishok13 is now online
[00:36:04] mishok13 is now online
[00:44:25] mishok13 is now away
[00:44:25] mishok13 is now away
[00:47:30] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[00:48:00] MAVr is now offline
[00:54:25] mishok13 is now xa
[00:54:25] mishok13 is now xa
[00:54:27] yugo-salem is now xa
[01:07:03] mishok13 is now online
[01:07:04] mishok13 is now online
[01:13:09] mks is now online
[01:15:44] deisler is now offline
[01:18:36] Magister Yoda is now offline
[01:26:18] gigimon is now online
[01:29:11] py_two: можно ли в redis каким-то образом сделать дикт ? Мне нужно вложенный дикт сделать
[01:57:36] mishok13 is now offline
[02:00:21] singularity: есть кто живой ?
[02:04:39] gigimon: py_two: фигню хочешь
[02:04:44] gigimon: singularity: да
[02:06:48] mks is now away
[02:07:43] py_two: gigimon: почему фигню ?
[02:08:12] gigimon: потому что редис так не работает, как и любые бд
[02:11:48] mks is now xa
[02:27:22] fuzzy is now online
[02:37:32] fuzzy is now online
[02:39:22] singularity: Massive Multiplayer Snake Madness! 
[02:39:33] singularity: http://snake.negetics.de/
[02:41:22] mks is now online
[02:57:24] Tony is now away
[03:22:24] Tony is now xa
[03:22:50] singularity is now offline
[03:23:23] py_two: gigimon: а как сделать выборку объектов ? допустим у меня есть object:1:a. object:1:b, object:2:a, object:2:b .... object:999:a, object:999:b. Мне бы вывести список объектов object:1:a ... object:999:a
[03:23:43] py_two: выборка типа object:*:a =)
[03:25:56] singularity is now online
[03:33:34] fuzzy is now online
[03:34:40] mks is now away
[03:36:00] mks is now online
[03:47:59] gigimon is now offline
[04:02:44] py_two: неужели бесконечным циклом и чекать на возвращенное пустое значение ?
[04:02:52] py_two: fuzzy: ^
[04:07:35] mks is now offline
[04:37:45] py_two is now away
[04:37:45] fuzzy is now online
[04:37:45] bliznezz is now away
[04:37:45] Typhon is now away
[04:37:45] Tony is now xa
[04:37:45] singularity is now online
[04:37:45] yugo-salem is now xa
[04:37:45] magic_pony is now online
[04:37:45] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:42:42] py_two: singularity: не спишь ?
[04:42:56] singularity: ytn
[04:42:58] singularity: нет
[04:43:10] singularity: py_two:
[04:43:22] singularity: py_two: а что?
[04:43:24] py_two: singularity: может вопрос мой будет тупой, но как убрать set() из выборки redis ?
[04:43:38] singularity: я редис хз
[04:43:56] py_two: set(['some1', 'some2', 'some3'])
[04:44:08] py_two: fuzzy: не спать:)
[04:51:18] py_two is now offline
[04:52:06] singularity is now offline
[05:00:23] yugo-salem is now online
[05:16:13] fuzzy is now offline
[05:24:32] dicos is now online
[05:54:38] dicos is now online
[05:54:38] bliznezz is now away
[05:54:38] Typhon is now away
[05:54:38] Tony is now xa
[05:54:38] yugo-salem is now online
[05:54:38] magic_pony is now online
[05:54:38] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[06:23:09] dicos is now away
[06:23:10] dicos is now away
[06:28:02] yugo-salem is now away
[06:48:02] yugo-salem is now xa
[06:53:47] dicos is now away
[06:53:49] dicos is now online
[07:00:47] dicos is now away
[07:00:48] dicos is now away
[07:02:05] dicos is now away
[07:02:06] dicos is now online
[07:16:29] dicos is now away
[07:16:31] dicos is now away
[07:17:11] dicos is now away
[07:17:12] dicos is now online
[07:27:49] dicos is now away
[07:27:51] dicos is now away
[07:49:01] Typhon is now away
[07:50:55] dicos is now away
[07:55:53] dicos is now away
[07:55:54] dicos is now online
[08:10:25] fuzzy is now online
[08:19:20] dicos is now away
[08:19:21] dicos is now away
[08:33:29] dicos is now away
[08:33:30] dicos is now online
[09:03:38] dicos is now online
[09:03:38] fuzzy is now online
[09:03:38] bliznezz is now away
[09:03:38] Typhon is now away
[09:03:38] yugo-salem is now xa
[09:03:38] Tony is now xa
[09:03:38] magic_pony is now online
[09:03:38] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[09:22:26] dicos is now away
[09:22:27] dicos is now away
[09:41:55] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[09:56:38] Typhon is now away
[09:56:39] Typhon is now offline
[09:56:50] aries.ua is now online
[09:56:50] aries.ua is now online
[09:56:50] aries.ua is now online
[09:58:07] bliznezz is now away
[09:58:08] bliznezz is now online
[09:59:37] aries.ua is now online
[10:01:28] dicos is now away
[10:01:29] dicos is now online
[10:04:10] xryun is now online
[10:04:41] aries.ua is now online
[10:05:35] bliznezz is now away
[10:05:36] bliznezz is now away
[10:09:44] aries.ua is now online
[10:12:03] mishok13 is now online
[10:12:35] bliznezz is now online
[10:14:26] deisler is now away
[10:14:46] aries.ua is now online
[10:19:50] aries.ua is now online
[10:24:33] MAVr is now offline
[10:24:52] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[10:24:52] aries.ua is now online
[10:26:53] MAVr is now offline
[10:27:07] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[10:29:56] aries.ua is now online
[10:33:51] deisler is now offline
[10:34:46] deisler is now away
[10:34:58] aries.ua is now online
[10:37:31] levsha is now online
[10:38:12] levsha is now offline
[10:40:00] aries.ua is now online
[10:42:29] dicos is now away
[10:42:30] dicos is now away
[10:45:03] aries.ua is now online
[10:50:00] deisler is now offline
[10:50:05] aries.ua is now online
[10:51:20] levsha is now online
[10:53:20] dicos is now away
[10:53:21] dicos is now online
[10:55:08] Tony is now online
[10:55:08] aries.ua is now online
[10:55:53] deisler is now away
[11:00:10] aries.ua is now online
[11:03:58] MAVr is now offline
[11:04:12] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[11:04:42] gigimon is now online
[11:05:13] aries.ua is now online
[11:10:15] aries.ua is now online
[11:13:39] dicos is now away
[11:13:40] dicos is now away
[11:15:17] aries.ua is now online
[11:19:03] fuzzy is now offline
[11:19:13] fuzzy is now online
[11:20:19] aries.ua is now online
[11:22:37] blw0rm is now online
[11:24:13] MAVr is now offline
[11:24:33] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[11:25:22] aries.ua is now online
[11:30:24] aries.ua is now online
[11:35:25] aries.ua is now online
[11:40:28] aries.ua is now online
[11:45:30] aries.ua is now online
[11:50:32] aries.ua is now online
[11:52:42] xryun: Предположим есть строка.Как узнать сколько чисел содержится в этой строке?
[11:54:17] dicos is now away
[11:54:18] dicos is now online
[11:54:32] xryun: числа и буквы перечислены через запятую.Так что 2,1,3 не должно быть распознано как 213)
[11:55:34] aries.ua is now online
[11:56:04] MAVr is now offline
[11:56:21] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[11:56:59] deisler: в строке регекспом удалить все символы кроме цифр и посчитать размер строки
[11:58:32] aries.ua: aaa = '1,2,3'
print len(aaa.split(','))
[12:00:36] aries.ua is now online
[12:01:32] deisler: там ещё буквы есть
[12:01:48] xryun: deisler, не вариант.Если попадутся цифры 23 например то длинна от них будет 2 а само число-одно
[12:02:25] deisler: ну тогда удали буквы и посчитай кол-во запятых +1
[12:02:53] xryun: хех.Это строка.Там все элементы имеют тип str
[12:03:21] dicos is now away
[12:03:22] dicos is now away
[12:04:10] xryun: Единственно что придумал пока-свернуть в список(используя сплит и запятую и пройти каким нибудь for)
[12:05:38] aries.ua is now online
[12:06:10] mishok13 is now away
[12:06:15] mishok13 is now away
[12:10:40] aries.ua is now online
[12:15:43] aries.ua is now online
[12:16:10] mishok13 is now xa
[12:16:10] mishok13 is now xa
[12:19:33] dicos is now away
[12:19:34] dicos is now online
[12:20:44] aries.ua is now online
[12:21:53] MAVr is now offline
[12:22:32] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[12:23:08] mishok13 is now online
[12:23:08] mishok13 is now online
[12:23:30] fuzzy is now online
[12:23:30] fuzzy is now offline
[12:24:48] Tony is now away
[12:25:16] Typhon is now online
[12:25:46] aries.ua is now online
[12:28:08] mishok13 is now away
[12:28:08] mishok13 is now away
[12:28:46] mishok13 is now away
[12:28:46] mishok13 is now online
[12:30:48] aries.ua is now online
[12:31:23] mks is now online
[12:34:11] MAVr is now offline
[12:35:16] cutwater is now online
[12:35:50] aries.ua is now online
[12:36:24] gigimon: xryun: регулярное выражение же
[12:36:28] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[12:36:34] gigimon: ищешь все цифры, считаешь их количество
[12:37:34] gigimon: In [2]: a = "1,2,a,34,vc,5"
[12:37:39] mishok13 is now offline
[12:37:41] gigimon: In [5]: re.findall('(\d+)', a)
Out[5]: ['1', '2', '34', '5']
[12:37:51] mishok13 is now online
[12:37:52] mishok13 is now online
[12:39:04] Typhon is now away
[12:39:14] Typhon is now online
[12:40:46] gigimon: xryun: второй способ, делишь строку по "," проходишь по элементам и применяешь к нему element.is_digit() и увеличиваешь счетчик
[12:40:52] aries.ua is now online
[12:41:20] xryun: gigimon, спасибо))
[12:42:10] gigimon: xryun: len([x for x in a.split(',') if x.isdigit()])
[12:45:54] aries.ua is now online
[12:46:20] Typhon is now away
[12:46:35] Typhon is now online
[12:46:46] xryun: со списками не прошло
[12:49:48] Tony is now xa
[12:49:57] xryun: А вот регулярки-да
[12:50:55] xryun: Правда заморочка в том что в строке даже цифры расматриваются как строковый ппоэтому не выдерживают наверное проверку на is_digit
[12:50:55] aries.ua is now online
[12:52:13] blw0rm is now away
[12:53:13] gigimon is now online
[12:53:21] mishok13 is now online
[12:53:25] Typhon is now away
[12:54:00] mishok13 is now offline
[12:54:11] mishok13 is now online
[12:54:12] mishok13 is now online
[12:55:53] gigimon is now online
[12:55:58] aries.ua is now online
[12:56:14] xryun: Но все таки-спасибо)
[12:57:25] Typhon is now away
[12:57:41] gigimon: почему со списком не рпошлО? все ок же работает
[12:58:01] gigimon: xryun: isdigit() проверяет строку, может ли она стать числом
[12:58:20] gigimon: замена: try: int(el) except ...
[12:58:23] MAVr is now offline
[12:58:42] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[12:59:50] bliznezz is now away
[12:59:51] Typhon is now away
[12:59:51] bliznezz is now away
[12:59:53] Typhon is now online
[13:00:59] aries.ua is now online
[13:01:00] xryun is now offline
[13:01:13] xryun is now online
[13:01:52] xryun: Ну оно не совсем не прошло.Вернуло что есть толь ко один символ
[13:02:53] mishok13 is now online
[13:02:54] mishok13 is now away
[13:03:25] xryun: возможно это был последний символ из строки)
[13:04:24] xryun: Хотя там вообще файл с набором строк.В основном числа но могут встречаться и знаки переноса строки.Типичный массив)
[13:05:04] mishok13 is now online
[13:05:05] mishok13 is now online
[13:05:58] bliznezz is now away
[13:06:00] bliznezz is now online
[13:06:02] aries.ua is now online
[13:07:16] blw0rm is now xa
[13:11:03] aries.ua is now online
[13:12:18] gigimon: значит ты что-то не так сделал (:
[13:14:45] xryun: Все как ты написал)
[13:15:26] xryun: len([x for x in field.split(',') if x.isdigit()])
1

[13:16:05] aries.ua is now online
[13:17:06] gigimon: а field какой
[13:17:39] gigimon: стрип еще добавь
[13:19:38] xryun: field http://dumpz.org/610603/
[13:20:43] xryun: я его читаю из файла в одну строку
[13:21:04] blw0rm is now online
[13:21:07] aries.ua is now online
[13:21:49] py_two is now away
[13:26:09] aries.ua is now online
[13:31:11] aries.ua is now online
[13:31:17] gigimon is now online
[13:32:20] Typhon is now away
[13:33:24] aries.ua is now away
[13:33:24] mishok13 is now offline
[13:33:24] aries.ua is now away
[13:33:25] aries.ua is now away
[13:33:30] Typhon is now online
[13:34:44] mishok13 is now online
[13:34:48] mishok13 is now online
[13:35:25] mishok13 is now offline
[13:35:36] mishok13 is now online
[13:35:40] mishok13 is now online
[13:36:01] py_two: кто в редис хорошо понимает ?
[13:36:13] aries.ua is now away
[13:36:17] gigimon is now away
[13:37:10] Tony is now online
[13:37:41] py_two: как убрать из выдачи результатов set([]) ?
[13:37:55] mks is now away
[13:41:15] aries.ua is now away
[13:42:55] mks is now xa
[13:46:17] aries.ua is now away
[13:47:34] cutwater is now away
[13:48:21] aries.ua is now online
[13:48:22] aries.ua is now online
[13:48:53] mks is now online
[13:51:19] aries.ua is now online
[13:53:28] yohoho1 is now online
[13:53:52] aries.ua is now away
[13:53:52] aries.ua is now away
[13:53:53] aries.ua is now away
[13:56:21] aries.ua is now away
[13:57:06] gigimon is now away
[13:57:08] gigimon is now online
[13:58:59] yohoho1 is now offline
[14:00:31] Typhon is now away
[14:01:24] aries.ua is now away
[14:03:32] cutwater is now online
[14:04:58] mishok13 is now away
[14:04:58] mishok13 is now away
[14:05:27] bliznezz is now away
[14:05:28] bliznezz is now away
[14:06:08] mishok13 is now away
[14:06:08] mishok13 is now online
[14:06:26] aries.ua is now away
[14:06:42] yohoho1 is now online
[14:08:39] mks is now away
[14:08:48] yohoho1 is now offline
[14:10:30] Typhon is now offline
[14:11:07] singularity is now online
[14:11:16] mishok13 is now away
[14:11:16] mishok13 is now away
[14:11:28] aries.ua is now away
[14:13:39] mks is now xa
[14:14:13] slav0nic is now online
[14:14:23] fuzzy is now online
[14:15:52] gigimon: py_two: заверни в list
[14:15:54] gigimon: в чем проблема
[14:16:11] gigimon: редисовские структуры неплохо в питоновые упаковываются
[14:16:30] aries.ua is now away
[14:16:38] gigimon: получил сет, какая проблема сделать его списком или работать с сетом? ну или переопредели функцию этого апи
[14:17:01] py_two: ну так там set(['some1', 'some2', 'some3'])
[14:17:06] singularity is now offline
[14:17:12] py_two: похоже, что внутри уже список
[14:17:34] py_two: вот я и спрашиваю нельзя ли избавиться от вроппера set()
[14:18:25] singularity is now online
[14:19:15] singularity is now offline
[14:19:57] singularity is now online
[14:20:19] Typhon is now online
[14:20:26] gigimon: py_two: ты бы поэкспериментировал хоть
[14:20:35] bliznezz is now away
[14:20:37] bliznezz is now online
[14:20:37] gigimon: 1. сет не принимает список-> в нем не может храниться список
[14:20:58] py_two: gigimon: эксперименты - это в больлинстве своём делать через анус
[14:21:04] gigimon: 2. In [10]: a = set(); a.add(1); a.add(2); a
Out[10]: set([1, 2])

[14:21:16] mishok13 is now xa
[14:21:16] mishok13 is now xa
[14:21:32] aries.ua is now away
[14:21:36] gigimon: это просто вывод, внутри сета не может быть списка
[14:21:46] gigimon: делай ему просто list() и работай со списком
[14:22:02] fuzzy is now offline
[14:22:12] gigimon: py_two: мысль понял?
[14:23:14] fuzzy is now online
[14:24:48] py_two: gigimon: ага, спасибо)
[14:25:27] singularity is now offline
[14:25:48] MAVr is now offline
[14:26:34] aries.ua is now away
[14:26:53] aries.ua is now away
[14:26:53] aries.ua is now online
[14:26:54] aries.ua is now online
[14:28:06] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[14:29:31] singularity is now online
[14:30:53] Typhon is now away
[14:31:36] aries.ua is now online
[14:32:00] Tony is now away
[14:32:24] aries.ua is now away
[14:32:24] aries.ua is now away
[14:36:35] fuzzy is now offline
[14:36:38] aries.ua is now away
[14:36:45] singularity: а как узнать сколько страниц проиндексировал гугл?
[14:37:04] singularity: inurl: не подходит
[14:39:02] mishok13 is now xa
[14:39:02] mishok13 is now online
[14:40:52] Typhon is now offline
[14:41:30] Tony is now online
[14:41:40] aries.ua is now away
[14:42:05] MAVr is now offline
[14:44:20] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[14:44:44] fuzzy is now online
[14:44:55] fuzzy is now offline
[14:46:42] aries.ua is now away
[14:49:42] aries.ua is now online
[14:49:43] aries.ua is now online
[14:49:56] py_two: singularity: просто узнать и всё ?
[14:50:16] py_two: singularity: site:some_site.com в выдаче гугла не подойдет ?
[14:51:31] singularity is now offline
[14:51:44] aries.ua is now online
[14:52:00] singularity is now online
[14:52:09] fuzzy is now online
[14:52:34] fuzzy is now offline
[14:52:46] mks is now online
[14:54:29] gigimon is now online
[14:56:47] aries.ua is now online
[14:58:00] fuzzy is now online
[14:58:24] fuzzy is now offline
[14:59:30] gigimon is now away
[15:00:00] gigimon is now away
[15:00:02] gigimon is now online
[15:01:04] xryun is now offline
[15:01:06] xryun is now online
[15:01:09] xryun is now online
[15:01:11] xryun is now online
[15:01:12] xryun is now online
[15:01:14] xryun is now online
[15:01:15] xryun is now online
[15:01:16] xryun is now online
[15:01:37] xryun is now offline
[15:01:48] aries.ua is now online
[15:01:52] xryun is now online
[15:06:49] mishok13 is now offline
[15:06:51] aries.ua is now online
[15:08:08] mishok13 is now online
[15:08:16] mishok13 is now online
[15:08:44] mishok13 is now offline
[15:08:56] mishok13 is now online
[15:08:58] mishok13 is now online
[15:10:36] fuzzy is now online
[15:11:53] aries.ua is now online
[15:11:55] fuzzy: singularity: через web master tools
[15:12:43] aries.ua is now away
[15:12:43] aries.ua is now away
[15:12:44] aries.ua is now away
[15:13:13] aries.ua is now online
[15:13:13] aries.ua is now away
[15:13:14] aries.ua is now online
[15:16:55] aries.ua is now online
[15:21:57] aries.ua is now online
[15:26:42] xryun is now offline
[15:26:44] xryun is now online
[15:26:45] xryun is now online
[15:26:46] xryun is now online
[15:26:59] aries.ua is now online
[15:32:02] aries.ua is now online
[15:32:51] MAVr is now offline
[15:33:06] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[15:34:32] Tony is now away
[15:37:04] aries.ua is now online
[15:41:49] dicos is now offline
[15:42:05] aries.ua is now online
[15:47:08] aries.ua is now online
[15:52:10] aries.ua is now online
[15:52:25] levsha is now offline
[15:54:23] cutwater is now away
[15:57:12] aries.ua is now online
[15:59:12] singularity is now offline
[15:59:32] Tony is now xa
[16:02:14] aries.ua is now online
[16:02:30] slav0nic is now offline
[16:03:46] cutwater is now online
[16:03:51] slav0nic is now xa
[16:07:16] aries.ua is now online
[16:10:14] levsha is now online
[16:12:19] aries.ua is now online
[16:16:43] Typhon is now away
[16:17:03] Typhon is now online
[16:17:21] aries.ua is now online
[16:22:24] aries.ua is now online
[16:25:41] singularity is now online
[16:26:22] singularity is now online
[16:27:26] aries.ua is now online
[16:32:29] aries.ua is now online
[16:32:43] mks is now away
[16:37:31] aries.ua is now online
[16:37:43] mks is now xa
[16:40:03] levsha is now offline
[16:40:19] fuzzy is now away
[16:41:24] yugo-salem is now online
[16:42:33] aries.ua is now online
[16:44:39] levsha is now online
[16:45:04] levsha is now offline
[16:46:59] mks is now online
[16:47:35] aries.ua is now online
[16:47:41] xryun: Есть двухмерный массив.Ну предположим [[2, 1, 54, 6, 7, 3, 3], [1, 2, 3, 4, 5]] как найти "координаты" интересующего элемента?)

[16:48:07] xryun: пока в мыслях только перебор всех вложеных списков и поиск в них.
[16:50:19] fuzzy is now away
[16:50:19] mishok13 is now offline
[16:50:56] mishok13 is now online
[16:51:00] mishok13 is now online
[16:51:11] mishok13 is now offline
[16:51:24] mishok13 is now online
[16:51:25] mishok13 is now online
[16:52:38] aries.ua is now online
[16:55:40] fuzzy is now away
[16:55:43] fuzzy is now online
[16:56:58] gigimon: xryun: если нет необходимости во вложеных, сделать плоский и найти (:
[16:57:00] gigimon: а так перебор, да
[16:57:40] aries.ua is now online
[17:02:42] aries.ua is now online
[17:03:44] blw0rm: если в проекте есть numpy, то можно извратиться как-то так
In [1]: a = numpy.array([[1,2,3], [4,5,6]])
In [2]: numpy.argwhere(a == 5)
Out[2]: array([[1, 1]])


[17:06:12] Tony is now online
[17:07:44] aries.ua is now online
[17:09:45] levsha is now online
[17:10:02] xryun: NumPy есть как раз)И работа с его массивами
[17:12:12] blw0rm: тогда тебе все карты в руки)
[17:12:47] aries.ua is now online
[17:13:40] xryun: Просто прелесть)
[17:17:48] aries.ua is now online
[17:19:04] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[17:19:56] tvorzasp is now offline
[17:20:04] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[17:22:51] aries.ua is now online
[17:26:36] blw0rm is now away
[17:27:52] aries.ua is now online
[17:30:34] blw0rm is now online
[17:32:55] aries.ua is now online
[17:33:50] MAVr is now offline
[17:34:06] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[17:35:38] xryun: Одна только вот досада
>>> a='1,-1,-2,r,f,d,s,t,s'
>>> re.findall('(\d+)',a)
['1', '1', '2']
Регулярке плевать положительное число или отрицательное.
[17:37:57] aries.ua is now online
[17:38:07] cutwater is now offline
[17:39:51] blw0rm: ну а если что-то вроде re.findall('([-+]{0,1}\d+)',a) ?
[17:41:09] blw0rm: или даже map(int, re.findall('([-+]{0,1}\d+)',a)) ?
[17:42:59] aries.ua is now online
[17:43:15] fuzzy: xryun: регулярка про числа ничего не знает
[17:43:18] fuzzy: она работает с символами
[17:43:22] fuzzy: знает, разве что, про цифры
[17:44:44] yugo-salem is now away
[17:45:34] yugo-salem is now online
[17:47:34] MAVr is now offline
[17:48:01] aries.ua is now online
[17:48:07] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[17:53:04] aries.ua is now online
[17:55:11] Typhon is now away
[17:55:11] Typhon is now online
[17:55:12] Typhon is now away
[17:55:14] Typhon is now online
[17:57:06] xryun: Все проще) re.findall('(-*\d+)',a) но я думаю только в данном случае.
[17:58:03] Typhon is now away
[17:58:03] Typhon is now online
[17:58:06] aries.ua is now online
[17:58:34] Typhon is now away
[17:58:52] Tony is now away
[18:03:05] mks is now away
[18:03:08] aries.ua is now online
[18:04:42] MAVr is now offline
[18:06:52] Typhon is now online
[18:08:05] mks is now xa
[18:08:11] aries.ua is now online
[18:12:24] fuzzy is now away
[18:12:24] fuzzy is now online
[18:12:24] fuzzy is now away
[18:12:25] fuzzy is now online
[18:12:43] fuzzy is now away
[18:13:13] aries.ua is now online
[18:13:16] mishok13 is now away
[18:13:16] mishok13 is now away
[18:13:33] Typhon is now away
[18:15:42] mishok13 is now away
[18:15:42] mishok13 is now online
[18:16:46] aries.ua is now offline
[18:18:33] Typhon is now online
[18:19:16] Tony is now online
[18:20:52] огыешсук is now Automatically away due to idle
[18:22:43] fuzzy is now away
[18:23:02] singularity is now offline
[18:24:15] fuzzy is now away
[18:24:19] fuzzy is now online
[18:35:03] gigimon is now online
[18:40:04] gigimon is now away
[18:40:55] gigimon is now away
[18:40:56] gigimon is now online
[18:41:24] mks is now online
[18:47:30] blw0rm is now dnd
[18:49:16] Tony is now away
[18:52:32] xryun is now offline
[18:53:40] огыешсук is now away
[18:54:22] огыешсук is now Automatically away due to idle
[18:55:18] Typhon is now away
[18:58:33] levsha is now offline
[18:59:03] mishok13 is now offline
[18:59:32] Tony is now online
[19:01:26] Typhon is now online
[19:04:03] deisler is now offline
[19:09:42] mks is now away
[19:14:42] mks is now xa
[19:15:27] xryun is now online
[19:18:35] gigimon is now offline
[19:21:04] tvorzasp is now away
[19:21:04] tvorzasp is now away
[19:22:01] tvorzasp is now away
[19:22:01] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[19:25:13] Typhon is now away
[19:28:31] yugo-salem is now away
[19:29:20] yugo-salem is now online
[19:29:41] Typhon is now online
[19:30:37] singularity is now online
[19:32:28] Typhon is now offline
[19:35:27] огыешсук is now away
[19:37:58] fuzzy is now away
[19:38:22] mks is now online
[19:39:03] fuzzy is now online
[19:42:54] fuzzy is now away
[19:43:43] mks is now away
[19:44:51] огыешсук is now Automatically away due to idle
[19:48:43] mks is now xa
[19:50:42] огыешсук is now away
[19:51:02] mks is now online
[19:53:13] огыешсук is now Automatically away due to idle
[19:53:38] fuzzy is now online
[20:02:32] xryun is now offline
[20:02:58] xryun is now online
[20:08:17] tvorzasp is now away
[20:10:02] tvorzasp is now away
[20:10:02] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[20:13:29] bliznezz is now away
[20:13:30] bliznezz is now away
[20:15:04] огыешсук is now away
[20:15:17] огыешсук is now Automatically away due to idle
[20:40:22] fuzzy is now offline
[20:40:57] fuzzy is now online
[20:41:59] xryun is now offline
[20:43:44] огыешсук is now away
[20:44:06] огыешсук is now Automatically away due to idle
[20:48:17] xryun is now online
[20:52:59] slav0nic is now offline
[20:56:47] огыешсук is now away
[20:58:35] огыешсук is now Automatically away due to idle
[21:03:41] огыешсук is now away
[21:04:40] singularity is now away
[21:06:27] огыешсук is now Automatically away due to idle
[21:06:48] gigimon is now online
[21:09:07] singularity is now away
[21:09:07] singularity is now online
[21:11:19] fuzzy is now online
[21:11:25] fuzzy is now away
[21:11:34] огыешсук is now away
[21:11:35] fuzzy is now offline
[21:13:15] mks is now away
[21:14:13] mks is now online
[21:17:28] singularity is now away
[21:17:28] singularity is now away
[21:17:29] xryun is now offline
[21:17:46] xryun is now online
[21:20:33] огыешсук is now Automatically away due to idle
[21:21:59] gigimon is now offline
[21:22:39] singularity is now away
[21:22:39] singularity is now online
[21:25:59] fuzzy is now online
[21:26:06] fuzzy is now offline
[21:27:41] singularity is now away
[21:27:41] singularity is now away
[21:28:47] singularity is now online
[21:29:15] tvorzasp is now away
[21:29:48] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[21:31:50] огыешсук is now away
[21:33:50] огыешсук is now Automatically away due to idle
[21:37:44] xryun is now offline
[21:38:54] mks is now away
[21:43:54] mks is now xa
[21:47:44] Tony is now offline
[21:48:50] tvorzasp is now away
[21:50:12] огыешсук is now away
[21:51:41] огыешсук is now Automatically away due to idle
[21:53:56] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[21:58:56] tvorzasp is now away
[22:02:08] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[22:04:52] огыешсук is now away
[22:05:38] огыешсук is now Automatically away due to idle
[22:10:45] огыешсук is now away
[22:14:13] огыешсук is now Automatically away due to idle
[22:16:07] tvorzasp is now offline
[22:26:30] deisler is now away
[22:30:54] deisler is now offline
[22:33:49] deisler is now away
[22:35:15] singularity is now away
[22:36:48] singularity is now away
[22:36:48] singularity is now online
[22:41:56] yugo-salem is now away
[22:41:56] yugo-salem is now online
[22:55:37] mks is now online
[23:01:14] singularity is now offline
[23:18:04] rem_ is now Yep, I'm here.
[23:18:14] rem_: тест
[23:18:17] rem_: о пиплы рпивет
[23:18:48] rem_: живые то есть? пытаюсь звук забахать, пайаудио требует портаудио питон версии. не могу найти
[23:23:06] yugo-salem is now away
[23:43:06] yugo-salem is now xa
[23:47:41] mks is now offline