[00:00:59] ambush is now online
[00:03:17] remo is now offline
[00:04:13] remo is now online
[00:05:25] огыешсук is now offline
[00:18:17] ambush is now away
[00:22:51] ambush is now online
[00:26:31] Сволота is now offline
[00:26:34] Сволота is now online
[00:26:38] Сволота is now online
[00:27:15] Сволота is now online
[00:28:50] mks is now away
[00:35:11] mrDoctorWho is now away
[00:36:54] Tony is now away
[00:39:06] mks is now xa
[00:40:00] remo is now offline
[00:40:16] mrDoctorWho is now online
[00:50:15] mrDoctorWho is now away
[00:56:43] mrDoctorWho is now online
[00:59:35] remo is now online
[01:01:54] Tony is now xa
[01:03:35] singularity is now online
[01:22:27] fuzzy is now online
[01:22:56] fuzzy: singularity: self.i = None не нужно
[01:23:03] fuzzy: и __class__. тоже, в общем-то
[01:23:10] singularity: fuzzy: а как ?
[01:23:10] fuzzy: ящитаю
[01:23:14] fuzzy: ну так
[01:23:44] fuzzy: так, как ты написал
[01:23:58] fuzzy is now online
[01:24:23] singularity: просто a.i+=1 ?
[01:24:31] fuzzy: думаю да
[01:24:32] fuzzy: проверь
[01:24:35] fuzzy: э
[01:24:40] fuzzy: self.i += 1 можно
[01:24:42] fuzzy: наверно
[01:25:23] singularity: fuzzy: ну так self это ж объект
[01:25:54] fuzzy: если ты читаешь аттрибут до того, как его определил - он читается из класса
[01:27:18] fuzzy: с += не уверен
[01:28:29] singularity is now online
[01:31:21] mks is now online
[01:36:19] fuzzy is now online
[01:38:14] singularity is now offline
[01:38:51] singularity is now online
[01:39:29] fuzzy is now online
[01:39:45] fuzzy is now online
[01:41:35] singularity: fuzzy:
а так
class a():
__i = 0
def __init__(self):
a.__i +=1
@staticmethod
def count_object_of_a():
return a.__i
[01:42:19] fuzzy: так чёрточек много
[01:42:21] fuzzy: но суть та же?
[01:43:35] dicos is now online
[01:43:51] singularity: fuzzy: а можно сделать что-бы count_object_of_a быд только в класса ?
[01:43:58] singularity: не наследовался
[01:44:09] singularity: *был
[01:44:18] fuzzy: что значит не наследовался?
[01:44:43] fuzzy: не было у аттрибутов?
[01:44:49] fuzzy: если и можно, то сложно
[01:44:54] fuzzy: лучше сделай @classmethod
[01:44:56] fuzzy: и не парься
[01:46:31] singularity is now offline
[01:46:31] singularity is now online
[01:46:46] singularity: fuzzy: а какая разница ?
[01:47:02] fuzzy: между чем и чем?
[01:47:28] singularity: ну если я сменю staticmethod на classmethod
[01:49:29] fuzzy is now online
[01:50:50] fuzzy: то у тебя будет ещё один аргумент в методе - класс
[01:51:43] fuzzy is now away
[01:52:27] singularity: я не понял зачем он
[01:52:31] singularity: и так все ок
[02:02:48] singularity is now offline
[02:03:01] singularity is now online
[02:05:11] fuzzy is now away
[02:07:24] mks is now offline
[02:08:42] Сволота is now away
[02:13:42] Сволота is now online
[02:14:46] singularity is now offline
[02:15:01] singularity is now online
[02:24:52] Сволота is now away
[02:32:09] ambush is now away
[02:34:52] Сволота is now xa
[02:35:30] singularity is now offline
[02:42:09] ambush is now xa
[02:52:04] Сволота is now online
[02:52:59] ambush is now online
[02:54:16] remo is now offline
[02:55:12] remo is now online
[02:57:04] Сволота is now away
[03:00:23] fuzzy is now away
[03:07:04] Сволота is now xa
[03:07:08] AlexZenon is now offline
[03:21:38] Сволота is now online
[03:21:55] remo is now offline
[03:23:18] remo is now online
[03:26:42] Сволота is now away
[03:27:08] fuzzy is now away
[03:27:11] fuzzy is now online
[03:36:42] Сволота is now xa
[03:40:32] dicos is now offline
[03:41:05] mrDoctorWho is now offline
[03:41:36] Сволота is now online
[03:46:42] Сволота is now away
[03:46:45] fuzzy is now offline
[03:52:54] remo is now offline
[03:53:48] remo is now online
[03:54:10] Сволота is now online
[04:02:22] Сволота is now away
[04:12:22] Сволота is now xa
[04:16:46] Сволота is now online
[04:17:13] remo is now offline
[04:22:49] remo is now online
[04:26:00] Сволота is now away
[04:26:33] singularity is now online
[04:28:52] singularity is now online
[04:29:50] Magister Yoda is now online
[04:30:19] Magister Yoda is now offline
[04:30:32] Magister Yoda is now online
[04:36:00] Сволота is now xa
[04:45:02] remo is now offline
[04:49:22] remo is now online
[04:53:12] Сволота is now online
[04:58:18] Сволота is now away
[05:07:06] Сволота is now online
[05:13:24] Сволота is now away
[05:17:22] Сволота is now online
[05:22:26] Сволота is now away
[05:29:46] remo is now offline
[05:31:52] Сволота is now online
[05:32:46] singularity is now offline
[05:32:46] singularity is now online
[05:35:23] ambush is now offline
[05:37:28] Сволота is now away
[05:37:50] Сволота is now online
[05:42:56] Сволота is now away
[05:43:38] Сволота is now online
[05:53:04] Сволота is now away
[05:58:06] Tony is now online
[06:03:04] Сволота is now xa
[06:33:13] blw0rm is now xa
[06:33:13] Сволота is now xa
[06:33:13] Tony is now online
[06:33:13] bliznezz is now away
[06:33:13] Magister Yoda is now online
[06:33:13] Grin is now xa
[06:33:13] singularity is now online
[06:33:13] magic_pony is now online
[06:33:13] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[07:03:25] blw0rm is now xa
[07:03:25] Сволота is now xa
[07:03:25] Tony is now online
[07:03:25] bliznezz is now away
[07:03:25] Magister Yoda is now online
[07:03:25] Grin is now xa
[07:03:25] singularity is now online
[07:03:25] magic_pony is now online
[07:03:25] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[07:10:55] singularity is now away
[07:10:55] singularity is now away
[07:14:58] singularity is now away
[07:14:58] singularity is now online
[07:15:04] singularity is now offline
[07:25:02] blw0rm is now offline
[07:25:03] blw0rm is now (Not available as a result of being idle more than 15 min)
[07:25:04] blw0rm is now xa