[00:01:00] Сволота is now away
[00:02:20] Сволота is now online
[00:03:02] levsha is now away
[00:03:05] AlexZenon is now xa
[00:03:31] levsha is now offline
[00:08:27] levsha is now online
[00:10:29] levsha is now away
[00:10:59] levsha is now offline
[00:12:34] mrDoctorWho is now away
[00:13:17] Tony is now xa
[00:14:56] Kaster is now away
[00:15:12] Сволота is now away
[00:15:32] remo is now online
[00:17:41] Kaster is now online
[00:25:03] levsha is now online
[00:25:12] Сволота is now xa
[00:27:20] levsha is now away
[00:27:38] Сволота is now online
[00:27:42] Kaster is now away
[00:27:50] levsha is now offline
[00:27:54] remo is now away
[00:29:24] remo is now online
[00:32:34] mrDoctorWho is now xa
[00:32:52] Сволота is now away
[00:34:32] levsha is now away
[00:38:28] gigimon is now online
[00:39:38] remo is now away
[00:39:56] Kaster is now online
[00:41:23] levsha is now offline
[00:42:53] Сволота is now xa
[00:43:35] gigimon is now away
[00:45:04] tranq is now offline
[00:49:07] remo is now online
[00:50:14] Kaster is now away
[00:50:59] gigimon is now away
[00:51:02] gigimon is now online
[00:52:43] Kaster is now online
[00:59:12] remo is now away
[01:00:05] bliznezz is now offline
[01:00:49] bliznezz is now away
[01:07:06] Сволота is now online
[01:07:16] vaal is now online
[01:07:28] vaal is now offline
[01:08:25] Tony is now online
[01:08:30] Kaster is now away
[01:13:18] Сволота is now away
[01:14:10] Сволота is now online
[01:16:04] levsha is now online
[01:27:34] Kaster is now online
[01:34:25] gigimon is now online
[01:34:46] Сволота is now away
[01:35:28] gigimon is now online
[01:35:32] Сволота is now online
[01:45:22] Сволота is now away
[01:46:15] remo is now online
[01:47:32] Сволота is now online
[01:55:11] mrDoctorWho is now online
[01:55:17] gigimon is now online
[01:56:15] remo is now away
[01:56:49] gigimon is now online
[01:56:50] gigimon is now offline
[01:58:22] Сволота is now away
[02:05:10] mrDoctorWho is now away
[02:08:22] Сволота is now xa
[02:21:30] Kaster is now away
[02:25:12] mrDoctorWho is now xa
[02:31:51] levsha is now away
[02:32:21] levsha is now offline
[02:32:35] levsha is now away
[02:32:37] levsha is now online
[02:33:56] Сволота is now online
[02:41:34] Kaster is now online
[02:42:59] levsha is now offline
[02:43:40] Сволота is now away
[02:47:34] Сволота is now online
[02:51:22] remo is now offline
[02:55:46] fuzzy is now online
[02:59:31] ambush is now offline
[03:03:24] Сволота is now away
[03:08:27] fuzzy is now offline
[03:08:30] Сволота is now online
[03:17:25] Tony is now away
[03:18:41] Tony is now online
[03:22:28] Сволота is now away
[03:27:14] Сволота is now online
[03:37:36] Сволота is now away
[03:46:36] Сволота is now online
[03:51:36] Сволота is now away
[03:51:42] Сволота is now online
[03:56:42] Сволота is now away
[04:06:42] Сволота is now xa
[04:06:54] mrDoctorWho is now online
[04:16:53] mrDoctorWho is now away
[04:18:02] Сволота is now online
[04:30:00] mrDoctorWho is now online
[04:33:28] Сволота is now away
[04:33:32] Сволота is now online
[04:39:59] mrDoctorWho is now away
[04:43:48] Сволота is now away
[04:45:16] Сволота is now online
[04:47:07] Tony is now away
[04:54:12] Сволота is now away
[04:59:59] mrDoctorWho is now xa
[05:00:50] Сволота is now online
[05:05:52] Сволота is now away
[05:09:40] mrDoctorWho is now online
[05:12:07] Tony is now xa
[05:15:10] Сволота is now online
[05:19:38] mrDoctorWho is now away
[05:20:12] Сволота is now away
[05:24:08] Сволота is now online
[05:29:28] madmercen is now online
[05:31:44] Сволота is now away
[05:39:39] mrDoctorWho is now xa
[05:41:44] Сволота is now xa
[05:44:55] Kaster is now offline
[05:52:46] madmercen is now away
[05:53:18] Сволота is now online
[05:55:04] madmercen is now online
[06:00:06] Сволота is now away
[06:00:34] Сволота is now online
[06:02:28] madmercen is now away
[06:07:48] Сволота is now away
[06:10:24] madmercen is now online
[06:12:28] Сволота is now online
[06:13:41] Kaster is now online
[06:13:44] Kaster is now online
[06:19:06] madmercen is now away
[06:25:24] madmercen is now online
[06:28:52] Сволота is now away
[06:29:34] Сволота is now online
[06:37:10] madmercen is now away
[06:45:10] madmercen is now xa
[06:49:50] огыешсук is now online
[06:55:46] madmercen is now online
[07:02:24] огыешсук is now online
[07:04:26] madmercen is now away
[07:07:22] огыешсук is now away
[07:07:50] огыешсук is now offline
[07:08:14] madmercen is now online
[07:09:12] Сволота is now away
[07:17:58] madmercen is now away
[07:19:12] Сволота is now xa
[07:25:58] madmercen is now xa
[07:30:50] madmercen is now online
[07:33:23] огыешсук is now online
[07:39:24] Сволота is now online
[07:40:06] madmercen is now away
[07:43:11] огыешсук is now online
[07:44:34] madmercen is now online
[07:45:11] огыешсук is now online
[07:56:05] огыешсук is now online
[07:56:40] madmercen is now away
[08:00:01] огыешсук is now online
[08:04:40] madmercen is now xa
[08:13:02] madmercen is now online
[08:25:48] огыешсук is now online
[08:27:25] огыешсук is now online
[08:28:58] madmercen is now away
[08:29:14] madmercen is now online
[08:32:49] Kaster is now away
[08:36:04] Kaster is now online
[08:36:16] madmercen is now away
[08:37:50] огыешсук is now online
[08:38:32] огыешсук is now online
[08:44:16] madmercen is now xa
[08:47:50] mrDoctorWho is now online
[08:59:24] madmercen is now online
[09:01:50] mrDoctorWho is now away
[09:06:27] madmercen is now away
[09:11:33] tranq is now online
[09:14:27] madmercen is now xa
[09:15:17] Kaster is now away
[09:17:22] Kaster is now online
[09:20:17] огыешсук is now online
[09:21:50] mrDoctorWho is now xa
[09:22:32] огыешсук is now online
[09:30:04] bliznezz is now offline
[09:30:51] bliznezz is now away
[09:33:07] огыешсук is now online
[09:34:34] огыешсук is now online
[09:35:31] mrDoctorWho is now online
[09:35:39] ambush is now away
[09:37:44] ambush is now offline
[09:40:07] tranq is now offline
[09:42:57] bliznezz is now away
[09:42:57] bliznezz is now online
[09:45:30] mrDoctorWho is now away
[09:52:19] огыешсук is now online
[09:57:02] огыешсук is now offline
[10:02:02] Kaster is now away
[10:05:30] mrDoctorWho is now xa
[10:09:43] mrDoctorWho is now online
[10:37:22] Kaster is now online
[10:45:06] levsha is now online
[10:51:40] Kaster is now away
[10:57:42] Kaster is now online
[10:58:17] fuzzy is now online
[11:02:51] fuzzy is now offline
[11:05:35] levsha is now offline
[11:16:10] slav0nic is now online
[11:18:35] vaal is now online
[11:23:08] vaal is now offline
[11:27:03] Tony is now online
[11:37:14] gigimon is now online
[11:46:19] singularity is now online
[11:46:29] singularity is now offline
[11:49:20] levsha is now online
[11:51:36] VeeSot is now Доступен
[11:52:43] fuzzy is now online
[11:55:27] madmercen is now online
[11:56:10] fuzzy is now offline
[12:05:26] gigimon is now online
[12:09:36] AlexZenon is now online
[12:10:10] ambush is now away
[12:10:19] gigimon is now away
[12:17:11] VeeSot is now away
[12:17:23] Tony is now away
[12:23:29] madmercen is now away
[12:27:10] VeeSot is now xa
[12:29:07] gigimon is now away
[12:29:08] gigimon is now online
[12:31:28] madmercen is now xa
[12:32:56] singularity is now online
[12:33:45] nmk is now online
[12:34:18] singularity: Працюю я з OАuth2 і мені не подобається що воно callback кидає на сторінку типу
mysite/callback?token=13412431243
[12:35:07] singularity: я б готів щоб всі данні (email, login etc) були в url чи ще якось. Щоб не робити тоді окремий запит на інший сайт.
[12:35:16] singularity: slav0nic: ^ не знаєш?
[12:36:39] slav0nic: >>не знаєш?
уже бы не позорился, грамотей
[12:37:03] VeeSot is now Доступен
[12:37:06] slav0nic: ты хотя б написал что юзаешь
[12:37:08] slav0nic: для oauth
[12:39:25] dicos is now online
[12:40:23] gigimon is now offline
[12:40:23] gigimon is now online
[12:40:30] madmercen is now online
[12:42:22] dicos is now away
[12:42:23] Tony is now xa
[12:42:23] dicos is now away
[12:43:24] bliznezz is now away
[12:43:25] bliznezz is now away
[12:43:31] levsha is now away
[12:43:51] VeeSot is now away
[12:44:31] ambush is now offline
[12:44:34] singularity: slav0nic: rauth , github
[12:45:01] levsha is now offline
[12:46:37] slav0nic: https://developer.github.com/v3/oauth/#scopes глянь
[12:46:45] slav0nic: user:email
[12:48:43] Kaster is now away
[12:51:44] levsha is now away
[12:52:08] singularity: slav0nic: я не про це. Сайт повертає лише токен і треба робити ще get запит пітоном до гітхабу. Це обовязково?
[12:53:01] singularity: я хочу отримувати данні так
callback?token=13412431243
на
callback?email=lol@gmil.com&user=lolicon etc
[12:53:28] VeeSot is now Доступен
[12:53:37] slav0nic: подай заявку на oauth4
[12:53:52] slav0nic: это не опенид, делай гет
[12:54:01] slav0nic: с полученным токеном
[12:54:04] singularity: slav0nic: сумно(
[12:54:10] slav0nic: юзай openid)
[12:54:17] slav0nic: атм вроде так, хоят уже не помню
[12:55:31] dicos is now away
[12:55:32] dicos is now online
[12:59:46] singularity is now away
[12:59:46] singularity is now away
[12:59:52] singularity is now away
[12:59:52] singularity is now online
[13:00:28] gigimon is now offline
[13:01:11] gigimon is now online
[13:02:03] bliznezz is now away
[13:02:04] bliznezz is now online
[13:02:43] gigimon is now offline
[13:03:24] gigimon is now online
[13:07:15] Tony is now online
[13:07:39] bliznezz is now away
[13:07:39] bliznezz is now away
[13:08:19] VeeSot is now away
[13:12:00] Kaster is now online
[13:14:09] mrDoctorWho is now away
[13:14:27] ambush is now away
[13:18:19] VeeSot is now xa
[13:18:54] bliznezz is now away
[13:18:55] bliznezz is now online
[13:19:56] mrDoctorWho is now online
[13:22:24] VeeSot is now Доступен
[13:29:41] singularity is now offline
[13:30:15] levsha is now offline
[13:33:53] levsha is now away
[13:34:01] levsha is now online
[13:38:56] ambush is now offline
[13:39:54] gigimon is now offline
[13:39:55] gigimon is now online
[13:43:19] Kaster is now away
[13:53:26] bliznezz is now away
[13:53:27] bliznezz is now away
[14:00:55] Kaster is now online
[14:01:18] dicos is now away
[14:01:19] dicos is now away
[14:04:07] dicos is now away
[14:04:08] dicos is now online
[14:07:11] bliznezz is now away
[14:07:11] bliznezz is now online
[14:15:27] VeeSot is now away
[14:16:45] VeeSot is now Доступен
[14:26:35] Kaster is now offline
[14:28:07] VeeSot is now away
[14:31:02] VeeSot is now Доступен
[14:32:38] dicos is now away
[14:32:39] dicos is now away
[14:32:52] levsha is now away
[14:34:22] levsha is now offline
[14:35:45] slav0nic is now offline
[14:36:15] slav0nic is now online
[14:37:45] dicos is now away
[14:37:46] dicos is now online
[14:47:23] VeeSot is now away
[14:49:14] VeeSot is now Доступен
[14:59:47] levsha is now online
[15:00:06] VeeSot is now offline
[15:00:56] slav0nic is now offline
[15:03:15] levsha is now away
[15:04:44] levsha is now offline
[15:05:07] levsha is now away
[15:31:49] remo is now online
[15:41:57] remo is now away
[15:44:17] dicos is now away
[15:44:18] dicos is now away
[15:44:26] dicos is now away
[15:44:27] dicos is now online
[15:45:29] огыешсук is now online
[15:59:47] dicos is now away
[15:59:48] dicos is now away
[16:01:42] werter1 is now online
[16:01:44] огыешсук is now online
[16:03:06] werter1 is now offline
[16:03:25] werter1 is now online
[16:03:41] dicos is now away
[16:03:42] dicos is now online
[16:03:47] огыешсук is now online
[16:07:01] werter1: Всем привет. Кто может обяснить, почему 1 вариант (http://dumpz.org/1281968/) работает, а второй нет? http://dumpz.org/1281969/
[16:07:38] remo is now online
[16:09:10] werter1: Я только изучаю, до этого было все понятно, а тут ступор
[16:09:20] mrDoctorWho is now away
[16:12:28] remo: werter1: а какой объект возвращает функция видел ?
[16:12:52] remo: def func(n):
x = 4
action = (lambda n: x ** n)
return action

print func(2)
[16:12:59] remo: Press ENTER or type command to continue
<function <lambda> at 0x7f7df78af758>
[16:14:16] огыешсук is now online
[16:15:05] огыешсук is now online
[16:15:06] dicos is now away
[16:15:07] dicos is now away
[16:15:48] werter1: видел. Я просто хоть убей, не врубаюсь в чем разница между этими двумя вариантами и почему они по разному работают.
[16:17:33] remo: werter1: короче тебя интересует вопрос, почему вываливается такая ошибка ? TypeError: func() takes no arguments (1 given)
[16:17:43] werter1: да
[16:18:40] remo: видимо потому, что в первом варианте ты присваиваешь переменной z объект ламбда, а второй инструкцией передаешь анонимной функции значение
[16:18:51] dicos is now away
[16:18:52] dicos is now online
[16:19:17] remo: а во втором варианте ты пытаешься передать функции func переменную, а в сама функция аргументов не имеет
[16:20:52] remo: а в первом случае ты в инструкции print z(2) вызываешь метод __call__ и передаёшь ламбде аргумент равный 2
[16:22:13] remo: werter1: https://privatepaste.com/43e5cebba5
[16:22:21] remo: вот так должно быть понятней
[16:25:19] огыешсук is now online
[16:25:39] огыешсук is now online
[16:26:39] remo: werter1: еще раз: результатом работы функции является формирование анонимной функции. По сути дела появляется заготовка ламбда функции, у анонимной функции есть метода. Второй инструкцией ты вызываешь метод __call__ и передаёшь непосредственно ламбде значение
[16:27:23] nmk is now offline
[16:28:10] remo: т.е z = func() - ты получаешь адресс лабмда функции, а z(2) за кулисами интерпритатор выполняет метод __call__ над ламбда т.е z.__call__(2)
[16:28:54] nmk is now online
[16:29:09] remo: а во втором примере ты пытаешься передать функции аргумент, а самам функция аргументов не принимает т.е ypeError: func() takes no arguments (1 given)
[16:29:20] mrDoctorWho is now xa
[16:32:38] remo: werter1: аналог того, что ты нагородил:
x = 4
z = (lambda n: x ** n)
print z(2)
[16:35:44] dicos is now away
[16:35:45] dicos is now away
[16:35:47] dicos is now away
[16:35:49] dicos is now online
[16:36:35] werter1 is now away
[16:36:39] nmk is now offline
[16:36:39] nmk is now online
[16:46:18] dicos is now away
[16:46:19] dicos is now away
[16:47:10] slav0nic is now online
[16:47:58] remo is now away
[16:51:24] dicos is now away
[16:51:26] dicos is now online
[16:51:27] werter1 is now online
[16:54:03] vaal is now online
[16:54:09] vaal is now offline
[16:56:25] dicos is now away
[16:56:26] dicos is now away
[17:03:16] levsha is now offline
[17:03:51] Сволота is now away
[17:04:05] Сволота is now online
[17:06:30] bliznezz is now away
[17:06:30] bliznezz is now away
[17:06:57] levsha is now away
[17:06:59] levsha is now online
[17:07:01] gigimon is now offline
[17:10:08] dicos is now away
[17:10:09] dicos is now online
[17:11:40] werter1: remo: спасибо большое за старания и время! (Y)
[17:12:15] огыешсук is now online
[17:12:18] mrDoctorWho is now online
[17:12:21] огыешсук is now online
[17:17:22] bliznezz is now away
[17:17:22] bliznezz is now online
[17:22:08] werter1 is now away
[17:24:50] огыешсук is now online
[17:25:41] remo is now online
[17:25:43] slav0nic is now away
[17:26:10] remo: werter1: главное, чтобы ты разобрался. Кстати я тут самый низкоквалифицированный кодер на канале если что
[17:26:21] огыешсук is now online
[17:31:39] slav0nic is now online
[17:36:42] remo is now away
[17:42:06] werter1 is now xa
[17:43:34] gigimon is now online
[17:44:00] Tony is now away
[17:47:01] remo is now online
[17:47:24] remo: slav0nic: дядь Сереж, не подскажете что тут автор книги хотел этим сказать ? https://privatepaste.com/0bdfd2c6ca
[17:47:59] remo: для чего тут лепится этот декоратор delegate и как этим пользоваться
[17:48:11] remo: вообще с какой целью оно тут
[17:48:49] remo: автор вещает: В методе clear() не делается ничего особенного, так как тип list не
имеет соответствующего метода, но в методе рор() и еще в шести
других методах, которые делегируются классом SortedList, можно просто
вызывать соответствующие методы класса list. Реализовать это
можно с помощью декоратора классов @delegate, реализацию которого
можно найти в модуле Util, поставляемом с примерами к книге. Ниже
приводится начало определения новой версии класса SortedList:
[17:48:59] remo: но я не могу понять что он этим хочет вообще сказать
[17:51:03] remo: т.е если мы лепим декоратор, то мы можем убрать все методы и через декоратор вызывать методы list ? Т.е можно с SortedList убрать все методы и с помощью декоратора мы будем напрямую юзать методы list ?
[17:51:34] remo: хорошо, тогда комменчу метод pop()
[17:51:41] remo: получаю:
Traceback (most recent call last):
File "python.sh", line 6669, in <module>
letters.pop()
AttributeError: 'SortedList' object has no attribute 'pop'
[17:55:34] Tony is now online
[17:56:50] slav0nic: не проще в книге прочитать зачем он сие городит?) ваще тебе уже говорили что примеры какие-то ганяные
[17:57:25] slav0nic: и ты похоже опять примеры для 3го запускаешь ан 2м
[18:01:08] remo: slav0nic: да ну я согласен, что они говнянные. Но это типа как квест чтоли:)
[18:01:45] remo: slav0nic: и афтор конечно нарик еще тот. Вот ща он лепит декоратор на пример из начала книги, при этом не показывает как им пользоваться
[18:02:22] levsha is now away
[18:03:51] levsha is now offline
[18:11:42] огыешсук is now online
[18:11:45] remo is now away
[18:12:58] levsha is now away
[18:12:59] levsha is now online
[18:14:52] огыешсук is now online
[18:19:24] werter1 is now online
[18:28:43] AlexZenon is now offline
[18:28:49] AlexZenon is now online
[18:29:26] Сволота is now away
[18:30:03] bliznezz is now offline
[18:31:33] bliznezz is now online
[18:32:36] Сволота is now online
[18:37:31] werter1 is now away
[18:39:47] levsha is now away
[18:41:17] levsha is now offline
[18:41:53] werter1 is now online
[18:42:33] levsha is now away
[18:42:36] levsha is now online
[18:44:48] огыешсук is now online
[18:48:13] remo is now online
[18:48:14] remo: slav0nic: м ?
[18:50:02] огыешсук is now away
[18:50:30] огыешсук is now offline
[18:52:59] bliznezz is now away
[18:53:00] bliznezz is now away
[18:56:46] werter1 is now offline
[19:05:25] remo is now away
[19:13:49] werter1 is now online
[19:14:26] Сволота is now away
[19:16:36] Сволота is now online
[19:18:32] levsha is now away
[19:20:01] levsha is now offline
[19:20:46] levsha is now away
[19:20:48] levsha is now online
[19:25:09] gigimon is now offline
[19:25:10] Сволота is now away
[19:26:22] levsha is now away
[19:26:30] levsha is now online
[19:32:22] Сволота is now online
[19:38:39] remo is now online
[19:41:58] werter1 is now away
[19:49:21] remo is now away
[19:49:22] levsha is now away
[19:49:57] levsha is now online
[19:51:31] remo is now online
[19:52:17] werter1 is now online
[19:58:07] dicos is now offline
[20:01:31] remo is now away
[20:07:04] werter1 is now away
[20:10:38] slav0nic is now offline
[20:26:02] madmercen is now away
[20:27:05] werter1 is now xa
[20:27:31] levsha is now away
[20:29:00] levsha is now offline
[20:29:13] werter1 is now online
[20:34:02] madmercen is now xa
[20:35:02] Сволота is now away
[20:35:36] Сволота is now online
[20:37:42] werter1 is now offline
[20:53:38] levsha is now away
[20:53:39] levsha is now online
[20:56:28] Tony is now away
[21:18:53] Tony is now online
[21:19:06] remo is now online
[21:21:05] tranq is now online
[21:25:17] tranq is now away
[21:26:41] tranq is now online
[21:28:43] werter1 is now online
[21:33:36] remo is now away
[21:44:19] werter1 is now offline
[21:51:23] levsha is now away
[21:51:24] levsha is now offline
[22:04:36] remo is now online
[22:17:20] Kaster is now online
[22:17:22] Kaster is now online
[22:22:53] remo is now away
[22:44:31] gigimon is now online
[22:54:46] vaal is now online
[22:57:02] vaal is now offline
[22:58:27] AlexZenon is now xa
[23:01:25] Kaster is now offline
[23:15:36] tranq is now away
[23:18:24] remo is now online
[23:18:51] remo: 0
[23:23:45] tranq is now online
[23:27:38] werter1 is now online
[23:34:46] tranq is now away
[23:35:09] remo is now away
[23:35:31] remo is now online
[23:36:16] tranq is now online
[23:43:35] gigimon is now online
[23:43:59] gigimon is now online
[23:44:29] tranq is now away
[23:45:32] remo is now away
[23:46:32] tranq is now online
[23:49:19] remo is now online
[23:59:30] remo is now away