[00:21:19] Tony is now xa
[00:21:19] fuzzy is now away
[00:21:19] Magister Yoda is now xa
[00:21:19] AlexZenon is now online
[00:21:19] tranq is now online
[00:21:19] opka is now online
[00:21:19] webus is now online
[00:21:19] magic_pony is now online
[00:21:19] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[00:22:25] tranq is now offline
[00:22:55] webus is now offline
[00:52:59] blw0rm is now xa
[00:52:59] Tony is now xa
[00:52:59] vaal is now online
[00:52:59] CaufMAN is now Да, я здесь.
[00:52:59] madmercen is now online
[00:52:59] fuzzy is now away
[00:52:59] Magister Yoda is now xa
[00:52:59] AlexZenon is now online
[00:52:59] opka is now online
[00:52:59] magic_pony is now online
[00:53:00] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[00:57:05] AlexZenon is now xa
[01:00:26] madmercen is now away
[01:00:46] fuzzy is now away
[01:00:52] bliznezz is now away
[01:03:12] madmercen is now online
[01:04:01] fuzzy is now online
[01:18:24] pyr0 is now away
[01:21:49] pyr0: Всем привет! Подскажите, пожалуйста, почему в джанго может не срабатывать logout? Перехожу по ссылке logout, запускаю logout(request), происходит редирект на след. страницу. А в шаблоне все равно срабатывает условие {% if user.is_authenticated %}
В чем может быть дело?
[01:27:23] remo is now online
[01:28:24] remo is now offline
[01:34:32] madmercen is now offline
[01:35:29] pyr0 is now away
[01:37:04] madmercen is now online
[01:49:02] pyr0 is now away
[01:52:44] CaufMAN is now offline
[01:57:40] madmercen is now offline
[02:05:12] madmercen is now online
[02:12:52] madmercen is now away
[02:14:02] pyr0 is now offline
[02:22:53] madmercen is now xa
[02:28:42] madmercen is now online
[02:29:42] vaal is now away
[02:34:10] madmercen is now away
[02:36:02] madmercen is now online
[02:36:05] madmercen is now offline
[02:37:10] vaal is now offline
[02:37:12] vaal is now away
[02:40:49] madmercen is now online
[02:46:20] madmercen is now away
[02:47:20] madmercen is now online
[02:52:26] madmercen is now away
[02:58:21] vaal is now away
[02:58:22] vaal is now online
[02:59:35] fuzzy is now offline
[02:59:37] fuzzy is now online
[03:02:26] madmercen is now xa
[03:03:00] vaal is now offline
[03:06:26] madmercen is now online
[03:11:30] madmercen is now away
[03:21:29] madmercen is now xa
[03:25:14] opka is now offline
[03:25:59] madmercen is now online
[03:30:59] madmercen is now away
[03:41:00] madmercen is now xa
[03:45:44] madmercen is now online
[04:00:36] madmercen is now away
[04:04:56] madmercen is now online
[04:12:26] remo is now online
[04:18:35] remo: fuzzy: так что там по трассировке скриптов ?
[04:18:48] fuzzy: что именно?
[04:21:41] remo: fuzzy: ну типа какое-то средство, через которое можно было бы запускать скрипт и чтобы куда-то логировалось всё, что происходит по мере его выполнения. Чему равны перенные в циклах, при вызове функций, что возвращают функции и тд
[04:22:13] fuzzy: python -m trace file.py
[04:22:20] fuzzy: !pydoc trace
[04:26:04] madmercen is now away
[04:27:38] madmercen is now online
[04:29:31] remo: fuzzy: http://www.dalkescientific.com/writings/diary/archive/2005/04/20/tracing_python_code.html
[04:29:53] remo: fuzzy: а нельзя как-то так, чтобы не писать прямо в функции print "In main()" ?
[04:30:49] fuzzy: можно, конечно
[04:31:03] fuzzy: оно ж работает с любым кодом
[04:36:37] remo: fuzzy: а пример такого кода можно в студию ?
[04:37:31] fuzzy: посмотри sys.settrace
[04:38:13] fuzzy: https://ep2014.europython.eu/en/schedule/sessions/23/
[04:38:53] fuzzy: вот тут описывают как использовать sys.settrace
[04:39:50] remo: fuzzy: ты ссылку открывал которую я дал ?:)
[04:40:02] fuzzy: да
[04:41:05] fuzzy: а ты открывал https://docs.python.org/2/library/sys.html#sys.settrace?
[04:41:15] fuzzy: в твоей ссылке там всегда if event == "line":
[04:41:27] fuzzy: а settrace посылает ещё и дугие типы ивентов
[04:50:16] madmercen is now offline
[04:52:24] madmercen is now online
[04:58:59] madmercen is now away
[05:03:31] madmercen is now online
[05:04:22] remo: fuzzy:
def traceit(frame, event, arg):
print event
[05:04:54] remo: def bebebe():
for x in range(10):
None
sys.settrace(traceit)
# main()
bebebe()
[05:05:05] remo: out:
call
call
call
[05:05:21] remo: ну а где евенты на итерации цикла ?
[05:09:15] remo: если сделать в цикле вместо None --> print x, то out:
Press ENTER or type command to continue
call
0
1
2
3
4
5
6
7
8
9
call
call
[05:11:41] madmercen is now away
[05:17:10] remo: ааа, короче надо читать)
[05:20:16] remo: fuzzy: а где почитать как брать значения возвратов функций, переменных и тд ? Какой-то масштабный пример бы. Насчет эвентов всё ясно, вопрос как брать значения чтобы их выводить
[05:21:41] madmercen is now xa
[05:22:33] fuzzy: ну прочитай же
[05:22:43] madmercen is now online
[05:22:43] fuzzy: 'return'
A function (or other code block) is about to return. The local trace function is called; arg is the value that will be returned, or None if the event is caused by an exception being raised. The trace function’s return value is ignored.
[05:23:10] fuzzy: а при call и line тебе передайтся фрейм
[05:23:13] madmercen is now xa
[05:23:19] fuzzy: небось из фрейма можно прочитать locals/globals
[05:23:21] madmercen is now online
[05:24:06] remo: fuzzy: ммм, ясно
[05:24:24] madmercen is now offline
[05:30:04] fuzzy is now away
[05:41:24] fuzzy is now away
[06:02:56] remo: fuzzy: а как кстати по этикету конференции, допустим ты мне что-то подсказал, совет помог, но проходит допустим некоторое время. Как-то не по себе, что человеку спасибо не сказал, но с другой стороны понимаешь, что он работает и возможно своим спасибо ты его отвлекаешь. Как быть ?:)
[06:08:08] dicos is now online
[06:36:29] dicos is now away
[06:36:30] dicos is now away
[06:37:20] dicos is now away
[06:37:21] dicos is now online
[07:07:17] Tony is now online
[07:14:33] fuzzy is now away
[07:18:28] Magister Yoda is now online
[07:48:41] blw0rm is now xa
[07:48:41] Tony is now online
[07:48:41] bliznezz is now away
[07:48:41] remo is now online
[07:48:41] fuzzy is now away
[07:48:41] Magister Yoda is now online
[07:48:41] AlexZenon is now xa
[07:48:41] dicos is now online
[07:48:41] magic_pony is now online
[07:48:41] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[07:54:14] remo is now offline
[08:13:13] fuzzy is now away
[08:22:11] webus is now online
[08:35:01] gigimon is now online
[08:36:22] mrDoctorWho is now online
[08:41:47] webus is now away
[08:55:19] mrDoctorWho is now away
[08:55:52] mrDoctorWho is now online
[09:01:47] webus is now xa
[09:05:33] webus is now online
[09:07:14] tranq is now online
[09:15:03] tranq is now offline
[09:30:03] bliznezz is now offline
[09:30:31] bliznezz is now away
[09:35:36] fuzzy is now away
[09:44:19] gigimon is now online
[09:49:13] gigimon is now away
[09:54:24] bliznezz is now away
[09:54:26] bliznezz is now online
[10:24:36] blw0rm is now xa
[10:24:36] Tony is now online
[10:24:36] bliznezz is now online
[10:24:36] mrDoctorWho is now online
[10:24:36] gigimon is now away
[10:24:36] fuzzy is now away
[10:24:36] Magister Yoda is now online
[10:24:36] AlexZenon is now xa
[10:24:36] webus is now online
[10:24:36] dicos is now online
[10:24:37] magic_pony is now online
[10:24:37] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[10:31:35] mrDoctorWho is now offline
[10:35:39] Magister Yoda is now away
[10:43:53] webus is now away
[10:45:28] fuzzy is now away
[10:46:01] fuzzy is now away
[10:46:23] gigimon is now away
[10:46:23] gigimon is now online
[10:54:32] dicos is now away
[10:54:33] dicos is now away
[10:55:39] Magister Yoda is now xa
[10:56:04] webus is now online
[11:02:55] slav0nic is now online
[11:09:37] webus is now away
[11:13:46] fuzzy is now away
[11:13:51] fuzzy is now away
[11:21:44] nmk is now online
[11:29:37] webus is now xa
[11:33:42] bliznezz is now offline
[11:34:07] bliznezz is now online
[11:35:38] levsha is now online
[11:43:11] dicos is now away
[11:43:12] dicos is now online
[11:50:14] vaal is now online
[11:55:12] webus is now online
[11:58:38] mrDoctorWho is now online
[12:02:53] caufman is now online
[12:07:38] gigimon is now online
[12:12:37] gigimon is now away
[12:16:17] Tony is now away
[12:16:51] blw0rm is now online
[12:18:48] огыешсук is now online
[12:26:39] caufman is now away
[12:26:39] caufman is now away
[12:38:01] gigimon is now away
[12:38:02] gigimon is now online
[12:41:17] Tony is now xa
[12:42:17] огыешсук is now online
[12:42:39] bliznezz is now away
[12:42:41] bliznezz is now away
[12:45:51] огыешсук is now online
[12:51:34] fuzzy is now away
[12:54:48] fuzzy is now away
[12:59:36] огыешсук is now online
[13:01:33] webus is now away
[13:02:38] огыешсук is now online
[13:04:48] fuzzy is now away
[13:06:02] fuzzy is now away
[13:06:42] bliznezz is now away
[13:06:44] bliznezz is now online
[13:12:34] огыешсук is now online
[13:16:43] mrDoctorWho is now away
[13:18:26] огыешсук is now online
[13:18:30] madmercen is now online
[13:21:33] webus is now xa
[13:23:54] webus is now online
[13:30:32] madmercen is now away
[13:31:53] gigimon is now offline
[13:36:43] mrDoctorWho is now xa
[13:37:05] blw0rm is now away
[13:37:30] fuzzy is now away
[13:38:25] webus is now away
[13:39:19] blw0rm is now online
[13:40:30] madmercen is now xa
[13:40:52] огыешсук is now online
[13:42:11] огыешсук is now online
[13:43:29] Tony is now online
[13:44:00] fuzzy is now away
[13:48:29] bliznezz is now online
[13:48:38] webus is now online
[13:52:37] bliznezz is now away
[13:52:38] bliznezz is now away
[13:53:02] огыешсук is now online
[13:53:56] vaal is now offline
[13:53:58] vaal is now online
[13:55:28] огыешсук is now online
[13:56:12] mrDoctorWho is now online
[13:59:08] webus is now away
[14:03:54] blw0rm is now away
[14:09:37] slav0nic is now away
[14:12:27] bliznezz is now away
[14:12:28] bliznezz is now online
[14:15:30] огыешсук is now online
[14:17:05] огыешсук is now online
[14:17:51] fuzzy is now online
[14:18:55] blw0rm is now xa
[14:19:08] webus is now xa
[14:19:37] slav0nic is now xa
[14:21:50] dicos is now offline
[14:27:20] огыешсук is now online
[14:29:39] fuzzy is now offline
[14:33:37] огыешсук is now online
[14:36:50] fuzzy is now online
[14:36:59] levsha is now away
[14:37:57] levsha is now online
[14:41:49] AlexZenon is now online
[14:43:18] Lolka is now online
[14:43:19] Lolka is now online
[14:45:52] Lolka is now online
[14:50:54] Lolka is now online
[14:53:05] огыешсук is now online
[14:55:20] огыешсук is now online
[14:56:21] Lolka is now online
[14:56:25] bliznezz is now away
[14:56:26] bliznezz is now away
[14:59:46] bliznezz is now away
[14:59:47] bliznezz is now online
[15:01:24] Lolka is now online
[15:06:26] Lolka is now online
[15:06:30] webus is now online
[15:09:04] Lolka is now away
[15:09:05] Lolka is now away
[15:11:29] Lolka is now away
[15:16:32] Lolka is now away
[15:16:35] огыешсук is now online
[15:17:46] огыешсук is now online
[15:18:23] blw0rm is now online
[15:18:35] slav0nic is now online
[15:19:23] webus is now away
[15:20:12] Lolka is now online
[15:20:13] Lolka is now online
[15:20:55] webus is now online
[15:20:59] dicos is now online
[15:21:35] Lolka is now online
[15:23:55] vaal is now offline
[15:24:01] vaal is now online
[15:24:39] dicos is now away
[15:24:41] dicos is now away
[15:26:38] Lolka is now online
[15:28:54] dicos is now away
[15:28:56] dicos is now online
[15:29:56] dicos: remo, если хочешь сказать спасибо, то и говори "спасибо"
[15:31:40] Lolka is now online
[15:35:22] fuzzy: я вот на одном TEDx недавно слушал рассказ как раз о том, что надо всегда говорить, если есть что-то хорошее сказать
[15:35:33] fuzzy: это спасибо/пожалуйста/отлично выглядишь итд
[15:35:37] fuzzy: это вряд ли вредит
[15:35:52] fuzzy: но часто всем от этого становится лучше
[15:36:11] fuzzy: а с другой стороны ты и так отвлекаешь
[15:36:15] fuzzy: так хоть "спасибо" будет :)
[15:36:16] dicos is now away
[15:36:18] dicos is now away
[15:36:42] fuzzy is now away
[15:36:42] Lolka is now online
[15:36:58] levsha: гораздо сильнее отлвекает и раздражает "парни вопрос!" отдельным сообщением, после которого собственно вопрос только через несколько минут. И хорошо если вопрос будет одним сообщением, а не несколькими
[15:40:34] dicos is now away
[15:40:36] dicos is now online
[15:41:45] Lolka is now online
[15:44:46] webus is now away
[15:46:43] fuzzy is now away
[15:46:47] Lolka is now online
[15:51:49] Lolka is now online
[15:52:54] fuzzy is now away
[15:56:52] Lolka is now online
[16:01:15] blw0rm is now away
[16:01:53] Lolka is now online
[16:02:41] blw0rm is now online
[16:02:54] fuzzy is now away
[16:04:46] webus is now xa
[16:06:55] Lolka is now online
[16:11:19] fuzzy is now away
[16:11:31] fuzzy is now online
[16:11:57] Lolka is now online
[16:12:11] огыешсук is now online
[16:14:29] webus is now online
[16:14:45] dicos is now away
[16:14:47] dicos is now away
[16:15:03] огыешсук is now online
[16:16:59] Lolka is now online
[16:19:51] dicos is now away
[16:19:53] dicos is now online
[16:21:44] Tony: можно вопрос?
[16:22:01] Lolka is now online
[16:23:02] caufman is now away
[16:23:02] caufman is now online
[16:23:28] Lolka: о, как раз только что описанный кейс :-)
[16:25:05] Tony: Lolka, это сарказм
[16:25:14] levsha: /me раньше пытался объяснять почему так не надо делать. Теперь просто тупо игнорирует
[16:25:14] Tony: или ирония
[16:25:19] Lolka: нет, Тони, задавайте вопрос
[16:25:44] Tony: ок
[16:26:21] Tony: Есть два стула. На одном пики точены, на другом хуи дрочены. Куда сам сядешь, куда мать посадишь?
[16:27:02] Lolka is now online
[16:27:22] Lolka: чудесно
[16:32:04] Lolka is now online
[16:37:07] Lolka is now online
[16:42:09] Lolka is now online
[16:46:08] bliznezz is now away
[16:46:09] bliznezz is now away
[16:46:24] webus is now away
[16:47:10] Lolka is now online
[16:51:04] fuzzy is now away
[16:52:12] Lolka is now online
[16:56:05] bliznezz is now away
[16:56:07] bliznezz is now online
[16:57:14] Lolka is now online
[17:01:04] fuzzy is now away
[17:02:02] dicos is now away
[17:02:04] dicos is now away
[17:02:16] Lolka is now online
[17:05:03] огыешсук is now online
[17:05:12] fuzzy is now away
[17:05:23] огыешсук is now online
[17:06:24] webus is now xa
[17:07:09] dicos is now away
[17:07:11] dicos is now online
[17:07:18] Lolka is now online
[17:08:45] levsha is now away
[17:08:54] levsha is now online
[17:09:23] Magister Yoda is now online
[17:12:20] Lolka is now online
[17:15:12] fuzzy is now away
[17:17:22] Lolka is now online
[17:22:06] caufman is now away
[17:22:06] caufman is now away
[17:22:24] Lolka is now online
[17:23:39] fuzzy is now away
[17:23:45] fuzzy is now online
[17:24:43] dicos is now away
[17:24:45] dicos is now away
[17:25:07] огыешсук is now online
[17:25:13] dicos is now away
[17:25:15] dicos is now online
[17:25:57] огыешсук is now online
[17:27:27] Lolka is now online
[17:32:29] Lolka is now online
[17:33:24] levsha is now away
[17:37:30] Lolka is now online
[17:37:45] Magister Yoda is now away
[17:39:43] webus is now online
[17:40:01] levsha is now online
[17:42:32] Lolka is now online
[17:47:34] Lolka is now online
[17:50:29] Magister Yoda is now online
[17:52:35] Lolka is now online
[17:57:38] Lolka is now online
[17:57:47] Lolka is now offline
[17:57:54] Lolka is now online
[17:57:54] Lolka is now online
[18:00:29] Lolka is now online
[18:03:04] dicos is now offline
[18:04:44] Lolka is now away
[18:04:45] Lolka is now away
[18:05:31] Lolka is now away
[18:05:38] Lolka is now online
[18:05:39] Lolka is now online
[18:09:27] gigimon is now online
[18:10:32] Lolka is now online
[18:15:13] blw0rm is now away
[18:15:29] blw0rm is now online
[18:15:34] Lolka is now online
[18:16:02] Lolka is now away
[18:16:03] Lolka is now away
[18:18:47] webus is now away
[18:20:35] Lolka is now away
[18:23:43] Magister Yoda is now away
[18:24:30] Lolka is now online
[18:24:31] Lolka is now online
[18:25:37] Lolka is now online
[18:25:57] vaal is now away
[18:25:57] vaal is now away
[18:26:33] vaal is now online
[18:30:04] bliznezz is now offline
[18:30:38] Lolka is now online
[18:30:46] madmercen is now online
[18:31:04] bliznezz is now online
[18:31:53] blw0rm is now offline
[18:32:10] blw0rm is now online
[18:33:31] огыешсук is now offline
[18:33:40] webus is now offline
[18:34:50] levsha is now away
[18:34:52] gigimon is now online
[18:35:39] Lolka is now online
[18:35:42] AlexZenon is now offline
[18:37:56] gigimon is now online
[18:38:45] levsha is now online
[18:40:40] fuzzy is now away
[18:40:41] Lolka is now online
[18:43:39] Magister Yoda is now xa
[18:45:42] Lolka is now online
[18:46:11] caufman is now away
[18:46:12] caufman is now online
[18:50:26] gigimon is now offline
[18:50:45] Lolka is now online
[18:51:22] fuzzy is now online
[18:55:47] Lolka is now online
[18:59:21] Magister Yoda is now online
[19:00:48] Lolka is now online
[19:04:41] caufman is now away
[19:04:41] caufman is now away
[19:05:51] Lolka is now online
[19:06:06] AlexZenon is now online
[19:07:46] levsha is now offline
[19:09:28] bliznezz is now away
[19:09:30] bliznezz is now away
[19:10:52] Lolka is now online
[19:12:07] Magister Yoda is now away
[19:12:27] madmercen is now away
[19:14:02] blw0rm is now away
[19:15:47] огыешсук is now online
[19:15:53] madmercen is now online
[19:15:54] Lolka is now online
[19:16:07] огыешсук is now offline
[19:20:33] vaal is now away
[19:20:56] Lolka is now online
[19:22:10] caufman is now offline
[19:24:56] madmercen is now away
[19:25:57] Lolka is now online
[19:27:35] огыешсук is now online
[19:28:02] madmercen is now online
[19:29:05] blw0rm is now xa
[19:29:30] Magister Yoda is now online
[19:30:59] Lolka is now online
[19:32:07] Magister Yoda is now online
[19:33:31] Lolka is now offline
[19:44:12] vaal is now away
[19:44:13] vaal is now online
[19:49:57] Magister Yoda is now away
[19:50:52] madmercen is now away
[19:52:39] Magister Yoda is now online
[19:58:19] slav0nic is now offline
[20:00:52] madmercen is now xa
[20:05:48] madmercen is now online
[20:08:51] Magister Yoda is now away
[20:11:46] Magister Yoda is now online
[20:18:36] fuzzy is now away
[20:18:44] fuzzy is now online
[20:35:20] caufman is now online
[20:35:56] madmercen is now away
[20:41:27] Magister Yoda is now away
[20:45:56] madmercen is now xa
[20:47:42] tranq is now online
[20:49:58] Magister Yoda is now online
[20:51:47] mrDoctorWho is now away
[21:01:51] Magister Yoda is now online
[21:03:50] mrDoctorWho is now online
[21:05:37] nmk is now offline
[21:07:45] caufman: есть тут пользователи zsh?
[21:13:48] mrDoctorWho is now away
[21:17:18] madmercen is now online
[21:22:46] madmercen is now away
[21:23:07] mrDoctorWho is now online
[21:24:44] madmercen is now online
[21:24:56] Magister Yoda is now away
[21:25:40] огыешсук is now away
[21:26:09] огыешсук is now offline
[21:30:59] огыешсук is now online
[21:33:39] огыешсук is now offline
[21:35:49] gigimon is now online
[21:41:07] fuzzy is now offline
[21:44:55] Magister Yoda is now xa
[21:46:00] fuzzy is now online
[21:51:22] fuzzy is now offline
[21:51:44] caufman is now offline
[22:01:33] gigimon is now online
[22:02:21] gigimon is now online
[22:04:20] madmercen is now away
[22:14:20] madmercen is now xa
[22:37:14] gigimon is now online
[22:37:59] caufman is now online
[22:39:27] gigimon is now online
[22:54:20] caufman is now away
[22:54:20] caufman is now away
[22:54:23] caufman is now away
[22:54:23] caufman is now online
[23:08:28] cutwater is now online
[23:10:48] огыешсук is now online
[23:14:32] AlexZenon is now xa
[23:25:46] cutwater is now away
[23:30:45] cutwater is now offline
[23:37:03] огыешсук is now offline
[23:45:11] gigimon is now online
[23:46:26] Tony is now away
[23:49:51] gigimon is now away
[23:50:26] fuzzy is now online
[23:50:51] gigimon is now away
[23:50:51] gigimon is now offline
[23:55:02] mrDoctorWho is now away
[23:57:07] mrDoctorWho is now online