[00:03:58] mishok13 is now away
[00:03:59] mishok13 is now away
[00:05:26] singularity is now online
[00:06:34] mishok13 is now online
[00:06:35] mishok13 is now online
[00:11:11] singularity is now online
[00:12:42] mishok13 is now away
[00:12:43] mishok13 is now away
[00:14:51] mishok13 is now away
[00:14:52] mishok13 is now online
[00:19:52] mishok13 is now away
[00:19:53] mishok13 is now away
[00:20:29] py_two: обфускатор имеется ввиду garbage generator. т.к употреблять обфускатор в контексте бинарного кода не есть правильно
[00:20:45] mishok13 is now away
[00:20:46] mishok13 is now online
[00:30:18] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[00:30:27] MAVr is now offline
[00:44:20] mishok13 is now away
[00:44:21] mishok13 is now away
[00:48:53] gigimon is now online
[00:49:30] mishok13 is now online
[00:49:31] mishok13 is now online
[00:50:22] gigimon: ох уже эти чуваки, которые делают 20 долларовую программу и боятся, что ее похекают злые хакеры
[00:58:43] mishok13 is now online
[00:58:44] mishok13 is now away
[00:58:46] mishok13 is now away
[00:58:46] mishok13 is now online
[01:01:17] singularity is now online
[01:08:06] py_two: gigimon: это точно
[01:13:30] singularity is now online
[01:13:51] deisler is now away
[01:32:59] mishok13 is now offline
[01:42:10] gigimon is now online
[01:42:14] gigimon is now online
[01:55:14] gigimon is now online
[01:56:00] gigimon is now online
[02:06:24] deisler is now offline
[02:09:42] gigimon is now online
[02:14:40] gigimon is now away
[02:17:44] py_two is now offline
[02:47:49] gigimon is now away
[02:47:49] blw0rm is now dnd
[02:47:49] metall1c is now xa
[02:47:49] bliznezz is now away
[02:47:49] Tony is now online
[02:47:49] singularity is now online
[02:47:49] magic_pony is now online
[02:47:49] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[02:53:00] Tony is now away
[02:53:25] juche-songun is now online
[02:54:01] juche-songun: ребята а как определить переменная список или нет?
[02:59:37] singularity: type( [] ) == list
[02:59:44] singularity: juche-songun: ^
[02:59:57] singularity: !g python type list detect
[03:00:08] juche-songun: спс
[03:11:51] singularity is now offline
[03:18:00] Tony is now xa
[03:33:13] juche-songun is now offline
[04:03:22] gigimon is now away
[04:03:22] blw0rm is now dnd
[04:03:22] metall1c is now xa
[04:03:22] bliznezz is now away
[04:03:22] Tony is now xa
[04:03:22] magic_pony is now online
[04:03:22] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[04:10:03] gigimon is now away
[04:40:14] gigimon is now away
[04:40:14] blw0rm is now dnd
[04:40:14] metall1c is now xa
[04:40:14] bliznezz is now away
[04:40:14] Tony is now xa
[04:40:14] magic_pony is now online
[04:40:14] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:10:25] gigimon is now away
[05:10:25] blw0rm is now dnd
[05:10:25] metall1c is now xa
[05:10:25] bliznezz is now away
[05:10:25] Tony is now xa
[05:10:25] magic_pony is now online
[05:10:26] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[05:17:42] Tony is now offline
[05:47:48] gigimon is now away
[05:47:48] blw0rm is now dnd
[05:47:48] metall1c is now xa
[05:47:48] bliznezz is now away
[05:47:48] magic_pony is now online
[05:47:48] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[06:12:14] xryun is now online
[06:26:02] dicos is now online
[06:44:06] dicos is now away
[06:44:07] dicos is now away
[06:55:00] dicos is now away
[06:55:01] dicos is now online
[07:00:39] xryun: http://dumpz.org/605937/ Почему не заполняется ряд field[0]?Счетчик постоянно сбрасывается в ноль [NumPy+array]
[07:02:01] dicos is now away
[07:02:02] dicos is now away
[07:02:19] dicos is now away
[07:02:20] dicos is now online
[07:02:22] xryun: Ааа...вкурил)
[07:29:27] xryun is now away
[07:31:31] xryun is now online
[07:34:24] dicos is now away
[07:34:25] dicos is now away
[07:36:48] dicos is now away
[07:36:49] dicos is now online
[08:06:54] dicos is now online
[08:06:54] gigimon is now away
[08:06:54] blw0rm is now dnd
[08:06:54] metall1c is now xa
[08:06:54] bliznezz is now away
[08:06:54] xryun is now online
[08:06:54] magic_pony is now online
[08:06:54] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[08:25:26] dicos is now away
[08:25:27] dicos is now away
[08:27:59] dicos is now away
[08:28:00] dicos is now online
[08:30:12] gigimon is now away
[08:33:54] dicos is now away
[08:33:55] dicos is now away
[08:39:57] dicos is now away
[08:39:58] dicos is now online
[08:40:19] gigimon is now away
[08:40:47] xryun is now away
[08:41:33] xryun is now online
[08:44:07] gigimon is now away
[08:56:21] dicos is now away
[08:56:22] dicos is now away
[08:57:51] dicos is now away
[08:57:52] dicos is now online
[08:59:37] gigimon is now away
[09:00:17] xryun is now away
[09:10:17] xryun is now xa
[09:16:39] mishok13 is now xa
[09:16:40] mishok13 is now xa
[09:26:05] огыешсук is now Automatically away due to idle
[09:38:08] огыешсук is now away
[09:39:45] огыешсук is now Automatically away due to idle
[09:43:33] Tony is now online
[09:44:48] огыешсук is now away
[09:49:51] огыешсук is now Automatically away due to idle
[09:52:51] mishok13 is now online
[09:52:51] mishok13 is now online
[09:55:03] огыешсук is now away
[09:55:36] огыешсук is now Automatically away due to idle
[09:58:32] aries.ua is now online
[09:58:32] aries.ua is now online
[09:59:37] metall1c is now online
[10:01:53] aries.ua is now online
[10:04:19] bliznezz is now away
[10:04:20] bliznezz is now online
[10:06:54] aries.ua is now online
[10:07:45] mishok13 is now away
[10:07:45] mishok13 is now away
[10:11:56] aries.ua is now online
[10:12:49] mishok13 is now online
[10:12:49] mishok13 is now online
[10:14:12] dicos is now away
[10:14:13] dicos is now away
[10:16:40] огыешсук is now away
[10:16:59] aries.ua is now online
[10:17:53] mishok13 is now away
[10:17:53] mishok13 is now away
[10:22:01] aries.ua is now online
[10:22:42] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[10:23:32] огыешсук is now Automatically away due to idle
[10:24:27] mishok13 is now online
[10:24:27] mishok13 is now online
[10:24:48] aries.ua is now away
[10:24:49] aries.ua is now away
[10:24:49] aries.ua is now away
[10:24:49] aries.ua is now away
[10:24:50] mishok13 is now offline
[10:25:24] dicos is now away
[10:25:25] dicos is now online
[10:26:40] deisler is now away
[10:27:04] aries.ua is now away
[10:27:53] metall1c is now offline
[10:27:53] metall1c is now online
[10:28:24] metall1c is now offline
[10:28:24] metall1c is now online
[10:28:32] bliznezz is now away
[10:28:34] bliznezz is now away
[10:28:55] огыешсук is now away
[10:32:06] aries.ua is now away
[10:33:37] огыешсук is now Automatically away due to idle
[10:36:35] aries.ua is now online
[10:36:35] aries.ua is now online
[10:37:08] aries.ua is now online
[10:38:42] огыешсук is now away
[10:39:32] bliznezz is now away
[10:39:33] bliznezz is now online
[10:40:27] Tony is now away
[10:42:11] aries.ua is now online
[10:43:56] огыешсук is now Automatically away due to idle
[10:47:15] aries.ua is now online
[10:52:19] aries.ua is now online
[10:55:17] Tony is now online
[10:57:22] aries.ua is now online
[10:57:25] огыешсук is now away
[10:59:56] mishok13 is now online
[10:59:57] mishok13 is now online
[11:02:25] aries.ua is now online
[11:02:27] gigimon is now away
[11:02:27] gigimon is now online
[11:03:05] metall1c is now away
[11:03:08] levsha is now online
[11:03:32] огыешсук is now Automatically away due to idle
[11:05:37] xryun is now online
[11:05:49] xryun is now dnd
[11:07:27] aries.ua is now online
[11:08:13] metall1c is now online
[11:08:57] metall1c is now offline
[11:10:37] xryun is now dnd
[11:12:31] aries.ua is now online
[11:13:35] gigimon is now online
[11:14:48] gigimon is now online
[11:17:33] aries.ua is now online
[11:20:37] xryun is now dnd
[11:21:51] огыешсук is now away
[11:22:35] aries.ua is now online
[11:23:05] огыешсук is now Automatically away due to idle
[11:24:17] gigimon is now offline
[11:27:38] aries.ua is now online
[11:28:09] огыешсук is now away
[11:28:27] xryun is now dnd
[11:31:14] огыешсук is now Automatically away due to idle
[11:32:40] aries.ua is now online
[11:36:05] xryun is now dnd
[11:37:43] aries.ua is now online
[11:39:05] xryun is now dnd
[11:39:28] огыешсук is now away
[11:39:31] cutwater is now online
[11:42:46] aries.ua is now online
[11:47:49] aries.ua is now online
[11:48:54] огыешсук is now Automatically away due to idle
[11:49:52] dicos is now away
[11:49:53] dicos is now away
[11:50:37] dicos is now away
[11:50:38] dicos is now online
[11:52:51] aries.ua is now online
[11:55:39] dicos is now away
[11:55:40] dicos is now away
[11:57:12] gigimon is now online
[11:57:54] aries.ua is now online
[12:02:56] aries.ua is now online
[12:03:24] mishok13 is now online
[12:03:25] mishok13 is now away
[12:03:52] dicos is now away
[12:03:53] dicos is now online
[12:07:59] aries.ua is now online
[12:08:43] singularity is now online
[12:09:30] mishok13 is now away
[12:09:31] mishok13 is now online
[12:13:02] aries.ua is now online
[12:18:04] aries.ua is now online
[12:20:18] aries.ua is now away
[12:20:19] aries.ua is now away
[12:20:19] aries.ua is now away
[12:20:31] aries.ua is now online
[12:20:31] aries.ua is now online
[12:23:07] aries.ua is now online
[12:23:13] огыешсук is now away
[12:24:08] dicos is now away
[12:24:09] dicos is now away
[12:24:26] dicos is now away
[12:24:27] dicos is now online
[12:26:27] огыешсук is now Automatically away due to idle
[12:28:09] aries.ua is now online
[12:31:40] огыешсук is now away
[12:33:12] aries.ua is now online
[12:35:47] огыешсук is now Automatically away due to idle
[12:38:14] aries.ua is now online
[12:38:31] deisler is now offline
[12:38:48] deisler is now away
[12:43:16] aries.ua is now online
[12:48:18] aries.ua is now online
[12:48:57] mishok13 is now away
[12:48:58] mishok13 is now away
[12:50:33] bliznezz is now away
[12:50:34] bliznezz is now away
[12:53:15] огыешсук is now offline
[12:53:21] aries.ua is now online
[12:58:23] aries.ua is now online
[12:58:57] mishok13 is now xa
[12:58:58] mishok13 is now xa
[13:03:26] aries.ua is now online
[13:04:46] Typhon is now online
[13:08:29] aries.ua is now online
[13:09:50] cutwater is now away
[13:11:25] py_two is now away
[13:13:32] aries.ua is now online
[13:14:12] bliznezz is now away
[13:14:13] bliznezz is now online
[13:14:40] gigimon is now online
[13:16:16] py_two is now offline
[13:18:23] py_two is now away
[13:18:34] aries.ua is now online
[13:19:38] gigimon is now away
[13:22:10] cutwater is now online
[13:23:36] aries.ua is now online
[13:28:39] aries.ua is now online
[13:28:55] xryun is now dnd
[13:32:17] dicos is now offline
[13:33:41] aries.ua is now online
[13:33:45] gigimon is now away
[13:33:45] gigimon is now online
[13:34:44] Tony is now away
[13:36:03] xryun is now dnd
[13:38:44] aries.ua is now online
[13:39:11] Typhon is now away
[13:39:58] Typhon is now online
[13:43:27] singularity is now offline
[13:43:47] aries.ua is now online
[13:44:58] Tony is now online
[13:48:21] aries.ua is now away
[13:48:21] aries.ua is now away
[13:48:21] aries.ua is now away
[13:48:49] aries.ua is now away
[13:52:46] aries.ua is now online
[13:52:46] aries.ua is now online
[13:53:05] cutwater is now away
[13:53:51] aries.ua is now online
[13:57:51] aries.ua is now away
[13:57:51] aries.ua is now away
[13:58:54] aries.ua is now away
[14:03:56] aries.ua is now away
[14:06:27] Typhon is now away
[14:07:42] aries.ua is now away
[14:07:42] aries.ua is now online
[14:07:42] aries.ua is now online
[14:07:45] xryun is now away
[14:08:59] aries.ua is now online
[14:13:05] cutwater is now xa
[14:13:28] Typhon is now online
[14:14:02] aries.ua is now online
[14:17:45] xryun is now xa
[14:19:04] aries.ua is now online
[14:22:27] xryun is now online
[14:24:06] aries.ua is now online
[14:29:09] aries.ua is now online
[14:33:19] Typhon is now away
[14:33:43] py_two is now offline
[14:34:11] aries.ua is now online
[14:39:13] aries.ua is now online
[14:43:19] Typhon is now away
[14:44:16] aries.ua is now online
[14:45:09] py_two is now away
[14:49:18] aries.ua is now online
[14:52:43] Typhon is now away
[14:52:45] Typhon is now online
[14:54:21] aries.ua is now online
[14:59:23] aries.ua is now online
[15:03:10] xryun is now offline
[15:04:26] aries.ua is now online
[15:09:29] aries.ua is now online
[15:10:49] singularity is now online
[15:13:05] Typhon is now away
[15:14:07] mishok13 is now online
[15:14:08] mishok13 is now online
[15:14:32] aries.ua is now online
[15:17:41] Typhon is now online
[15:19:34] aries.ua is now online
[15:24:37] aries.ua is now online
[15:26:51] cutwater is now online
[15:26:59] py_two is now offline
[15:29:40] aries.ua is now online
[15:34:42] aries.ua is now online
[15:38:13] огыешсук is now Automatically away due to idle
[15:38:40] Typhon is now away
[15:39:45] aries.ua is now online
[15:43:42] Typhon is now online
[15:44:47] aries.ua is now online
[15:46:14] Typhon is now away
[15:47:20] slav0nic is now xa
[15:49:49] aries.ua is now online
[15:51:22] Typhon is now online
[15:54:52] aries.ua is now online
[15:58:24] singularity is now offline
[15:58:41] singularity is now online
[15:58:47] blw0rm is now online
[15:59:09] AlexTen is now xa
[15:59:50] AlexTen: привет всем
[15:59:55] aries.ua is now online
[16:00:31] singularity: AlexTen: hello
[16:01:44] singularity is now offline
[16:02:08] singularity is now online
[16:04:57] aries.ua is now online
[16:09:59] aries.ua is now online
[16:13:44] Typhon is now away
[16:14:36] Typhon is now online
[16:15:02] aries.ua is now online
[16:16:10] dicos is now online
[16:17:02] mishok13 is now online
[16:17:03] mishok13 is now away
[16:17:47] xryun is now online
[16:20:04] aries.ua is now online
[16:23:37] cutwater is now away
[16:24:40] Typhon is now away
[16:25:06] aries.ua is now online
[16:26:49] gigimon is now online
[16:27:02] mishok13 is now away
[16:27:03] mishok13 is now xa
[16:27:34] MAVr is now offline
[16:28:48] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[16:30:09] aries.ua is now online
[16:30:39] mishok13 is now online
[16:30:40] mishok13 is now online
[16:31:40] Typhon is now offline
[16:31:47] gigimon is now away
[16:35:11] aries.ua is now online
[16:35:43] xryun: почему x =+x не всегда срабатывает эквивалентно x=x+1 ?
[16:36:17] singularity: так x+=x
[16:36:37] xryun: ну да)
[16:36:44] xryun: чуток опечатался
[16:36:50] xryun: но вопрос остаетя
[16:36:54] xryun: *остается
[16:37:47] singularity: xryun: давай примеры когда не срабатывает
[16:37:52] xryun: как пример
def show_labirinth():
x = 1
while x<N-1:
y = 1
while y<M-1:
sys.stdout.write("%4s" % str(field[x,y]))
y = y+ 1
print ' '
x = x + 1
[16:37:53] Typhon is now online
[16:38:08] xryun: могу дать полный код
[16:38:24] xryun: но именно в этой функции-не срабатывает
[16:38:57] singularity: y = y+ 1
y+=1 ?
[16:39:16] xryun: Минуту.
[16:40:13] aries.ua is now online
[16:40:27] singularity: In [28]: f = 3

In [29]: f += 3

In [30]: f
Out[30]: 6

In [31]: f =+3

In [32]: f
Out[32]: 3

In [33]:

[16:41:24] singularity: f =+3 == f =(+3), а не f +=3
[16:41:29] singularity: это?
[16:43:20] xryun: http://pastebin.com/8tmfCqkK
[16:43:25] xryun: вот это)
[16:43:37] cutwater is now xa
[16:43:42] xryun: если запустить как оно сейчас-падам в вечный цикл
[16:44:10] огыешсук is now away
[16:44:17] огыешсук is now Automatically away due to idle
[16:44:24] xryun: посему приходится в функции show_labirinth-писать через x = x+1
[16:45:04] MAVr is now offline
[16:45:16] aries.ua is now online
[16:45:50] xryun: Это начало курсовой моей)
[16:47:47] Typhon is now away
[16:49:15] singularity is now offline
[16:49:43] xryun: Кстати,выпадание из цикла по брейку после return-нужно ли оно вообще?Или из вайла можно выйти просто вернув результат?
[16:50:02] xryun: А то у мну пичарм негодует
[16:50:18] aries.ua is now online
[16:55:21] aries.ua is now online
[16:56:37] cutwater is now online
[16:57:46] Typhon is now offline
[16:59:38] blw0rm is now away
[17:00:23] aries.ua is now online
[17:01:05] Typhon is now online
[17:02:01] Typhon is now away
[17:02:52] Typhon is now online
[17:02:54] blw0rm is now online
[17:03:40] Typhon is now away
[17:04:48] cutwater: xryun: return вообще-то выходит из функции. собственно и из цикла тоже
[17:05:03] cutwater: то есть после return поток выполнения переходит к вызывающей функции
[17:05:10] cutwater: т.е. break никогда не вызовется
[17:05:25] aries.ua is now online
[17:05:34] xryun: Спасибо.Тогда понятно почему жалобится студия.
[17:05:36] cutwater: xryun: и между прочем на pastebin пусто
[17:05:40] cutwater: студия?
[17:05:48] xryun: Студия разработки)
[17:05:52] xryun: Пичарм же
[17:05:54] cutwater: ну ок
[17:06:06] xryun: А видео было на 10 минут
[17:06:10] cutwater: вообще-то обычно под студией подразумевают Visual Studio
[17:06:11] xryun: тьюфу
[17:06:18] xryun: код был на 10 минут
[17:06:21] gigimon is now away
[17:06:21] gigimon is now online
[17:06:46] xryun: Все...похоже переработал я сегодня.Надо идти отмечать день сисадмина.
[17:08:05] огыешсук: А вопрос по джанге - можно ли как то ограничить время выполнения запроса 45 секундами? Чтобы через 45 секунд был какой нибудь exception?
[17:08:56] AlexTen is now xa
[17:09:15] cutwater: ну например навесить какой-нибудь threading.Timer в миддлваре
[17:09:23] xryun: Порождать таймер паралельно запросу?)
[17:09:34] cutwater: в общем-то не совсем то но что-то типа такого
[17:10:09] AlexTen is now xa
[17:10:27] aries.ua is now online
[17:13:28] огыешсук is now away
[17:13:39] Typhon is now offline
[17:14:01] огыешсук is now Automatically away due to idle
[17:14:20] огыешсук: А готового ничего такого не видели?
[17:14:41] огыешсук: И exception в threading.Timer будет получен в основном треде?
[17:15:24] AlexTen is now xa
[17:15:29] aries.ua is now online
[17:15:51] AlexTen is now xa
[17:17:59] slav0nic is now offline
[17:20:32] aries.ua is now online
[17:22:37] cutwater: Ну в общем-то гарантированно безопасного метода я тебе сейчас назвать не могу.
[17:25:34] aries.ua is now online
[17:26:22] emese is now online
[17:29:29] mishok13 is now away
[17:29:29] mishok13 is now away
[17:30:37] aries.ua is now online
[17:32:05] singularity is now online
[17:32:26] singularity is now online
[17:34:18] Typhon is now online
[17:34:33] mishok13 is now online
[17:34:33] mishok13 is now online
[17:35:40] aries.ua is now online
[17:40:42] aries.ua is now online
[17:41:56] bliznezz is now away
[17:41:56] bliznezz is now away
[17:42:03] огыешсук is now away
[17:42:14] Tony is now away
[17:43:11] mishok13 is now online
[17:43:11] mishok13 is now away
[17:43:42] огыешсук is now Automatically away due to idle
[17:45:42] singularity is now online
[17:45:45] aries.ua is now online
[17:47:34] singularity is now online
[17:47:50] bliznezz is now away
[17:47:51] bliznezz is now online
[17:49:49] mishok13 is now away
[17:49:49] mishok13 is now online
[17:50:48] aries.ua is now online
[17:54:48] огыешсук is now away
[17:55:50] aries.ua is now online
[17:58:29] огыешсук is now Automatically away due to idle
[17:59:46] aries.ua is now offline
[18:03:26] blw0rm is now away
[18:04:30] blw0rm is now online
[18:06:02] Tony is now online
[18:09:17] xryun is now away
[18:09:32] blw0rm is now away
[18:12:06] dicos is now away
[18:12:08] dicos is now away
[18:12:44] blw0rm is now online
[18:13:51] огыешсук is now away
[18:18:42] singularity is now online
[18:18:52] огыешсук is now Automatically away due to idle
[18:18:55] singularity is now online
[18:19:18] xryun is now xa
[18:21:31] xryun is now online
[18:27:51] AlexTen is now xa
[18:29:15] огыешсук is now away
[18:30:18] AlexTen is now xa
[18:31:37] огыешсук is now Automatically away due to idle
[18:33:19] Typhon is now away
[18:36:00] AlexTen: ребят, как генерировать неповторяющиеся числа?
[18:36:17] mishok13 is now away
[18:36:17] mishok13 is now away
[18:36:49] огыешсук is now away
[18:37:17] emese is now offline
[18:40:44] Typhon is now online
[18:41:53] огыешсук is now Automatically away due to idle
[18:42:48] deisler: например от 1 до бесконечности )
[18:44:41] AlexTen: как отследить одинаковые значения и не генерить его уже?
[18:45:10] singularity is now offline
[18:45:14] mks is now online
[18:46:02] Typhon is now away
[18:46:17] mishok13 is now xa
[18:46:17] mishok13 is now xa
[18:47:36] blw0rm is now away
[18:47:42] огыешсук is now away
[18:48:29] Typhon is now online
[18:48:34] огыешсук is now Automatically away due to idle
[18:48:48] blw0rm is now online
[18:49:44] deisler is now offline
[18:54:07] огыешсук is now away
[18:54:57] xryun: А сколько чисел надо нагенерировать?)
[18:55:16] AlexTen is now xa
[18:56:19] xryun: Генеришь одно,пихаешь в хранилище,генеришь второе,ищещь по хранилищу,если нет такого-подходит.Если есть-снова генератор пинаешь и опять проверка
[18:56:43] mishok13 is now online
[18:56:43] mishok13 is now online
[18:57:23] огыешсук is now Automatically away due to idle
[18:58:31] xryun: Есть набор заготовок на всякие разные эксепшны.Он лежит в одной функции.Можно ли как то этот набор вынести отдельно и подключать к нужной функции там где идет try-except
[18:59:07] cutwater is now offline
[18:59:37] xryun: То бишь есть две функции.Обе проверяют входные данные.Если не числа все начинает валиться в исключения.
[19:00:34] xryun: Для одной уже написано но делать одну функцию совместную для трех обработок(одна и так два ввода обрабатывает)-не вижу нужным
[19:01:47] xryun: То бишь хочется что то вида шаблонов в джанге {%extend base.html%}(к примеру)
[19:02:28] огыешсук is now away
[19:05:13] AlexTen is now xa
[19:05:49] levsha is now offline
[19:07:58] Typhon is now offline
[19:09:28] огыешсук is now Automatically away due to idle
[19:10:27] singularity is now online
[19:10:46] AlexTen: >xryun: Генеришь одно,пихаешь в хранилище,генеришь второе,ищещь по хранилищу,если нет такого-подходит.Если есть-снова генератор пинаешь и опять проверка
[19:11:02] AlexTen: списки использовать предлоаете?
[19:11:05] singularity is now online
[19:13:42] xryun: AlexTen, теоретически-да.Но опять же только теория.Я не знаю в каком хранилище быстрей поиск(вроде бы даже в кортеже).Да и зависит все от объема этих случайных чисел.200 штук и 20000 штук будут по разному перебираться.Надо больше входных данных)
[19:14:09] gigimon: AlexTen: а тебе сколько рандомных чисел надо?
[19:14:34] gigimon: могу отсыпать немного
[19:15:12] огыешсук is now away
[19:15:43] blw0rm is now away
[19:15:46] AlexTen: смотри... суть в том что числа генерируются в цикле, и т.е если даже я буду делать randrange(1,50) к примеру, в сл цикле может то же число выйти... нужно да, как то фильтровать, то что уже было
[19:15:56] AlexTen: где то в районе 100
[19:17:48] Typhon is now online
[19:19:32] огыешсук is now Automatically away due to idle
[19:20:50] blw0rm is now online
[19:25:01] xryun: Числа выводить надо будет?
[19:25:10] xryun: Или тупо хранить?
[19:26:16] AlexTen: смотри
[19:26:32] AlexTen: for n in range(blocks_count):
for g in t_blocks:
rnd = random.randrange(1, generated_blocks)
print rnd
pattern = pattern.replace('/*-block-'+str(n)+'-here*/', t_blocks[rnd])
[19:26:57] AlexTen: нужно. чтобы в t_blocks[rnd] генерелись неповторяющиеся значения, иначе капут случается)
[19:27:35] xryun: Тогда только хранить где либо.Иначе ты никак не проверишь их)
[19:28:22] xryun: поиск быстрее по кортежам,но они не расширяются просто так.Так что списки.
[19:29:47] огыешсук is now away
[19:31:33] AlexTen: output = []
for x in range(input):
if x not in output:
output.append(x)
?
[19:31:38] dicos is now away
[19:31:40] dicos is now online
[19:31:44] bliznezz is now away
[19:31:45] bliznezz is now away
[19:32:15] gigimon: да
[19:32:22] огыешсук is now Automatically away due to idle
[19:32:37] blw0rm is now offline
[19:37:26] огыешсук is now away
[19:38:45] AlexTen: def uniq(generated_blocks_count):
output = []
rnd = random.randrange(1, generated_blocks_count)
for x in range(rnd):
if x not in output:
output.append(x)
return x
[19:39:19] AlexTen: но че то как то не так
4
4
4
0
5
2
3
5
6
2
2
1
0
6
2
3
3
6
4
4
6
5
4
5
6
1
5
6
2
5
6
6
6
0
2
1
1
1
6
3
3
4
5
6
3
3
0
2
3
1
0
0
0
5
0
3
3
5
0
3
5
3
2
3
3
5
6
3
3
5
1
1
[19:39:33] slav0nic is now xa
[19:39:33] огыешсук is now Automatically away due to idle
[19:40:12] xryun: Ар!!
[19:40:19] AlexTen: ?
[19:40:24] xryun: Зачем такой список в эфир то?))
[19:41:07] xryun: Я подумал что мой клиент глючит)
[19:42:27] xryun: Ты в одной функц нагенерируй список потом пробросишь его в другую и там будешь прикрчивать по индексу
[19:42:41] AlexTen: че то я запутался немного
[19:44:10] xryun: Я бы предложил вайл с тем условием что сотый элемент не Истина.То бишь как только у тебя заполнился сотый элемент то возвращаем список случайных чисел.А до этого времени итерации,итерации...
[19:44:44] огыешсук is now away
[19:44:54] Typhon is now away
[19:44:58] AlexTen: можно кодом прмер?
[19:46:14] огыешсук is now Automatically away due to idle
[19:46:29] xryun: хм..
[19:46:37] xryun: Подумаю)
[19:47:51] xryun: Или...Действовать по принципу-каждая случайность-закономерна.Бери принцип формирования чисел фиобанчи,осваивай рекурсию,меняй под себя...и все)
[19:48:13] Typhon is now online
[19:48:39] AlexTen: епти.. мне тут нужно 100 значений чтобы разные были, для этого фибоначи подключать нет желания как то)
[19:50:17] xryun: ну я о принципе просто)
[19:50:52] AlexTen: ок, для генерации 100% не повторящющихся с 1..100 цифр кодес есть вменяемый?)
[19:53:27] gigimon is now offline
[19:54:09] Typhon: сгенерируй N и перетасуй
[19:54:14] Typhon: random.shuffle что ли
[19:56:17] огыешсук is now away
[19:57:27] огыешсук is now Automatically away due to idle
[20:02:01] Typhon is now offline
[20:03:33] xryun: import random
N = 100
i = 0
my_list = ['x'] * N
while i != 100:
a = random.randint(0, 10000000)
if not (a in my_list):
my_list[i] = a
i = i + 1


print my_list
[20:03:41] xryun: Индуский код)
[20:04:00] xryun: хм.
[20:04:17] xryun: Ну можно кой что дописать конечно.Но вроде работает
[20:04:50] огыешсук is now away
[20:07:52] Typhon is now online
[20:08:06] xryun: Даже так

import random
N = 100
i = 0
my_list = ['x'] * N
while i != N:
a = random.randint(0, 99)
if not (a in my_list):
my_list[i] = a
i = i + 1


print my_list

[20:09:40] xryun: кстати тот самый случай о котором я сегодня говорил.Стоит поменять i = i + 1 на сокращеную версию i =+ 1 -получаем вечный цикл
[20:10:05] огыешсук is now Automatically away due to idle
[20:10:48] slav0nic is now offline
[20:12:40] Typhon is now offline
[20:14:45] AlexTen is now offline
[20:15:18] singularity is now online
[20:15:18] singularity is now away
[20:15:18] singularity is now away
[20:15:18] singularity is now away
[20:18:00] огыешсук is now away
[20:19:56] singularity is now away
[20:19:56] singularity is now away
[20:19:56] singularity is now online
[20:19:56] singularity is now online
[20:23:05] огыешсук is now Automatically away due to idle
[20:27:36] mishok13 is now offline
[20:28:51] singularity is now online
[20:30:18] singularity: xryun: я ведь тебе еаписал уже
[20:31:01] xryun: singularity, мдя?Я просто не вник в тот момент и позабыл потом.
[20:31:02] singularity: i =+ 1 питон парсит это как i = 1
[20:31:32] singularity: : In [28]: f = 3

In [29]: f += 3

In [30]: f
Out[30]: 6

In [31]: f =+3

In [32]: f
Out[32]: 3
[20:32:15] singularity: попробуй сам в интепритаторе
[20:36:02] xryun: ок
[20:36:12] xryun: а в третьем питоне есть кэйс-свитчи?
[20:36:35] xryun: Ну или подобие.Для выбора юзером нужного варианта
[20:36:45] dicos is now offline
[20:40:00] огыешсук is now away
[20:49:59] огыешсук is now xa
[20:53:18] mks is now away
[20:56:55] py_two is now away
[20:58:18] mks is now xa
[21:01:46] огыешсук is now Automatically away due to idle
[21:27:04] mks is now online
[21:37:57] xryun is now offline
[21:52:18] mishok13 is now online
[21:52:18] mishok13 is now online
[22:01:16] singularity is now offline
[22:14:21] огыешсук is now away
[22:17:33] огыешсук is now Automatically away due to idle
[22:21:10] singularity is now online
[22:50:28] огыешсук is now away
[22:52:19] огыешсук is now Automatically away due to idle
[22:58:53] mishok13 is now away
[22:58:54] mishok13 is now away
[22:59:31] singularity is now away
[23:01:24] огыешсук is now away
[23:01:54] огыешсук is now Automatically away due to idle
[23:04:45] singularity is now away
[23:04:45] singularity is now online
[23:05:30] mishok13 is now away
[23:05:31] mishok13 is now online
[23:11:40] огыешсук is now away
[23:13:28] mishok13 is now online
[23:13:29] mishok13 is now away
[23:14:46] огыешсук is now Automatically away due to idle
[23:19:26] mks is now offline
[23:23:28] mishok13 is now away
[23:23:29] mishok13 is now xa
[23:24:33] singularity is now online
[23:26:20] Typhon is now online
[23:30:39] огыешсук is now offline
[23:32:23] singularity is now online
[23:38:07] singularity is now offline
[23:40:01] singularity is now online
[23:44:37] Typhon is now offline
[23:45:04] Typhon is now online
[23:50:17] mishok13 is now online
[23:50:18] mishok13 is now online
[23:58:46] singularity is now offline