Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101577
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ian Kelly <ian.g.kelly@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: When I need classes? |
| Date | Tue, 12 Jan 2016 17:18:07 -0700 |
| Lines | 14 |
| Message-ID | <mailman.86.1452644329.13488.python-list@python.org> (permalink) |
| References | <c0bb7499-c359-4010-aac2-270d1b82a47d@googlegroups.com> <56927b37$0$1586$c3e8da3$5496439d@news.astraweb.com> <CAERt=-xWsUoy6bHdtE0W+VrLgGA3OE2=-GzwFfMWBxqi=s02bA@mail.gmail.com> <DA39F138-7794-4CB4-AC93-63937D15D6D6@gmail.com> <CAERt=-xnhCmrHPzY+8+0u2rCjOX4fqUjaBC0-v0Ef8HDoehKkw@mail.gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de 6oomO7M981LYp5551GUpzA2u+uyq63mFP1VReRSenfZg== |
| Return-Path | <ian.g.kelly@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.007 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'python,': 0.02; 'received:209.85.223': 0.03; 'memory.': 0.05; 'method.': 0.05; 'python': 0.10; 'jan': 0.11; 'interpreter': 0.15; '2016': 0.16; 'inheritance': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'scratch': 0.16; 'user-defined': 0.16; 'wrote:': 0.16; 'nested': 0.18; 'subject:need': 0.18; 'suppose': 0.22; 'wrote': 0.23; 'header:In-Reply-To:1': 0.24; 'mon,': 0.24; 'message- id:@mail.gmail.com': 0.27; 'object,': 0.27; 'classes': 0.30; 'class': 0.33; 'though.': 0.33; 'handle': 0.34; 'received:google.com': 0.35; 'could': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'method': 0.37; 'received:209': 0.38; 'application': 0.39; 'to:addr:python.org': 0.40; 'entire': 0.61; 'more': 0.63; 'deeply': 0.64; 'limit': 0.65; 'potentially': 0.67; 'bernardo': 0.84; 'calls,': 0.84; 'oo"': 0.84; 'subject:When': 0.84; 'to:name:python': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=BBxoK8N5KLm7WaEIWdFYAJqhgxGJBtLDuiptscOwGY0=; b=ppmtIpCu/cFgwiS9dpJDJ5QpB2q6ri9hBqafdKZdfjM48YG4mLhDvnqGCecnKgb6Z8 UkH44ll8Sw4rmtXqZxg4DV9BMi04IGq4jidd7Uftyavqw/EGUS5qyZwSJZATRKTS8kOo FcW6hfuf7s4gyKvBDL4GV1oDomLJdfys8dWhNBIG52cWhJTv7w99ZxnYuC9UAc/GtzhE Xzf+X4PjmphG3Hc9kghkMEcDCaBqDU0SX2yMD3CEOVI8fQAd/bKkAHZe/Kuy7jUIxXxn dlzptQZxHjT0y5xlbUhT0k3+gy7GIjIY6+aOgdC8HISDFBGb3ElN2MC1OpCyy5OxebVv 0YLQ== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=BBxoK8N5KLm7WaEIWdFYAJqhgxGJBtLDuiptscOwGY0=; b=RAsiYmEWDR+m44WAO9K4DeApEjWYTdQP6oC/kPY+/Gaecf+lVHIBbR6O1juwUyymTc Cve6vZ9q6qClacrL3Ng7v2dw1PglLxVzRJJ50+r4+7vfXh6iSW4qgtyeeXdzcUIOwdhT yX+fW/dGszlBv3xWsk+EkMFS5U506M4Bws/5Zs5fqQMHDdrYV7Qweo9whik3VVYw/OyV F3PnKB4EVTA2DqU6GcYHecPrcnqPlN3mMIotExeyBQXGGueMoBKxD5cfRJdxhhY1AZ+g OcvfYeIJMGIxJGbl5+v0pTyVJ3RLcUmZVjOkzTMs6oiZ37rKLUo9bzx5JtkkV/CA676Q PhYA== |
| X-Gm-Message-State | ALoCoQmWOUfS7QdEiAAQl+SiZU7zRD/0acqnf7v+XvjHDJCmTiytNsB4pAfQzpP4HaIg864techl4HIq2Vn11VUODCR5nsP5Aw== |
| X-Received | by 10.107.11.68 with SMTP id v65mr120145742ioi.188.1452644326788; Tue, 12 Jan 2016 16:18:46 -0800 (PST) |
| In-Reply-To | <CAERt=-xnhCmrHPzY+8+0u2rCjOX4fqUjaBC0-v0Ef8HDoehKkw@mail.gmail.com> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:101577 |
Show key headers only | View raw
On Mon, Jan 11, 2016 at 5:53 PM, Bernardo Sulzbach <mafagafogigante@gmail.com> wrote: > I have never gone "seriously OO" with Python though. I never wrote > from scratch an application with more than 10 classes as far as I can > remember. However, I would suppose that the interpreter can handle > thousands of user-defined classes simultaneously. In Python, a class is just an object, so the only limit on how many classes the interpreter can handle simultaneously is available memory. However, if you have deeply nested inheritance graphs then you could start to see performance issues on method calls, since the entire inheritance graph potentially has to be traversed in order to find the method.
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
When I need classes? Arshpreet Singh <arsh840@gmail.com> - 2016-01-09 23:29 -0800
Re: When I need classes? Michael Torrie <torriem@gmail.com> - 2016-01-10 08:02 -0700
Re: When I need classes? Arshpreet Singh <arsh840@gmail.com> - 2016-01-10 22:45 -0800
Re: When I need classes? Cameron Simpson <cs@zip.com.au> - 2016-01-11 18:27 +1100
Re: When I need classes? Steven D'Aprano <steve@pearwood.info> - 2016-01-11 02:39 +1100
Re: When I need classes? Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-10 15:48 -0200
Re: When I need classes? Arshpreet Singh <arsh840@gmail.com> - 2016-01-10 22:24 -0800
Re: When I need classes? Arshpreet Singh <arsh840@gmail.com> - 2016-01-10 22:28 -0800
Re: When I need classes? Travis Griggs <travisgriggs@gmail.com> - 2016-01-11 15:45 -0800
Re: When I need classes? Mike S <mscir@yahoo.com> - 2016-01-13 22:27 -0800
Re: When I need classes? Michael Torrie <torriem@gmail.com> - 2016-01-11 16:59 -0700
Re: When I need classes? Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-11 22:53 -0200
Re: When I need classes? Chris Angelico <rosuav@gmail.com> - 2016-01-12 12:28 +1100
Re: When I need classes? Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2016-01-13 10:01 +1300
Re: When I need classes? Bernardo Sulzbach <mafagafogigante@gmail.com> - 2016-01-12 19:08 -0200
Re: When I need classes? Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-12 17:18 -0700
Re: When I need classes? Steven D'Aprano <steve@pearwood.info> - 2016-01-13 12:33 +1100
Re: When I need classes? Rustom Mody <rustompmody@gmail.com> - 2016-01-12 19:36 -0800
Re: When I need classes? Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2016-01-13 16:27 +1100
Re: When I need classes? Rustom Mody <rustompmody@gmail.com> - 2016-01-12 22:31 -0800
Re: When I need classes? Rustom Mody <rustompmody@gmail.com> - 2016-01-13 08:33 -0800
Re: When I need classes? Rick Johnson <rantingrickjohnson@gmail.com> - 2016-01-14 10:00 -0800
csiph-web