Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101440
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Bernardo Sulzbach <mafagafogigante@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Re: When I need classes? |
| Date | Sun, 10 Jan 2016 15:48:53 -0200 |
| Lines | 10 |
| Message-ID | <mailman.5.1452448181.3151.python-list@python.org> (permalink) |
| References | <c0bb7499-c359-4010-aac2-270d1b82a47d@googlegroups.com> <56927b37$0$1586$c3e8da3$5496439d@news.astraweb.com> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| X-Trace | news.uni-berlin.de g0i9bXZapzUu9bdQ0BjmKwdp+bfrRI2pVaJBUXiPThgg== |
| Return-Path | <mafagafogigante@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.029 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'classes,': 0.05; 'classes.': 0.07; 'tool,': 0.07; 'scripting': 0.09; 'python': 0.10; 'feasible': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:need': 0.18; 'tuples': 0.22; 'passing': 0.23; 'header:In-Reply-To:1': 0.24; 'message-id:@mail.gmail.com': 0.27; 'purposes.': 0.29; 'classes': 0.30; 'problem': 0.33; 'usually': 0.33; 'add': 0.34; 'received:google.com': 0.35; 'done': 0.35; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'subject:: ': 0.37; 'received:209': 0.38; 'data': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'your': 0.60; 'more': 0.63; 'between': 0.65; 'complexity': 0.84; 'received:209.85.215.42': 0.84; 'subject:When': 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=vdLysmrUtWGEmoE3gp2N+AXbjog/gK4UddeKpMuh63k=; b=un8y+p0azHfbfv+yzuSO9BWCtBVoyj+nrDQM30CVvSQ08K08p+NCY+DxYoLJJFlQys YkyQvyVv4iVXXnSLJ5zM75jBNy2aNj5v7Ppi+ZFWIgEI/SU/X2W6jSKDpTk9Nzf5znu+ ob5qqAM8aYB/3hlovUDQnxFhFzLkItT+jDlzzcIOvJifOJ1icty0/gV+uaTBgFvRGPyz A9hVEt0ZdyPKN9ecu0qes++CHwGeaSYnpnJJuydfKhpgLRfpYTOeRTpfICB50oIQWqcg SxaGSMxlS1x6U9MwXnNIgRwtGQ+rKauEYHbHfEDPAsC8unOc+nSOdq58aZRtKhfVjB6+ ZqLQ== |
| X-Received | by 10.25.153.79 with SMTP id b76mr37564692lfe.102.1452448173147; Sun, 10 Jan 2016 09:49:33 -0800 (PST) |
| In-Reply-To | <56927b37$0$1586$c3e8da3$5496439d@news.astraweb.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:101440 |
Show key headers only | View raw
Essentially, classes (as modules) are used mainly for organizational purposes. Although you can solve any problem you would solve using classes without classes, solutions to some big problems may be cheaper and more feasible using classes. If Python is your everyday scripting tool, you will usually not need classes, they will add more complexity than you need and passing data between functions may be done with well-documented tuples and dictionaries.
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