Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #66115
| References | <fdbb58a7-87c0-4a2f-bedf-f8e3e14fa356@googlegroups.com> <mailman.6728.1392183929.18130.python-list@python.org> <9785668d-6bea-4382-8a0c-c1258f2e2693@googlegroups.com> <ldgpcs$125$1@ger.gmane.org> |
|---|---|
| Date | 2014-02-13 10:08 +1100 |
| Subject | Re: singleton ... again |
| From | Tim Delaney <timothy.c.delaney@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.6804.1392246496.18130.python-list@python.org> (permalink) |
[Multipart message — attachments visible in raw view] - view raw
On 13 February 2014 08:34, Ned Batchelder <ned@nedbatchelder.com> wrote: > On 2/12/14 12:50 PM, Asaf Las wrote: > >> On Wednesday, February 12, 2014 7:48:51 AM UTC+2, Dave Angel wrote: >> >>> >>> Perhaps if you would state your actual goal, we could judge >>> whether this code is an effective way to accomplish >>> it. >>> DaveA >>> >> >> Thanks! >> >> There is no specific goal, i am in process of building pattern knowledge >> in python by doing some examples. >> >> > Not all patterns are useful. Just because it's been enshrined in the GoF > patterns book doesn't mean that it's good for Python. > Speaking of which, my monitor is currently sitting on my copy of "Design Patterns". A lot of "Design Patterns" isn't directly relevant to Python, because Python either already has various patterns implemented, or obviates the need for them. For example, if you really need a singleton (answer - you don't) just use a module attribute. Functions as objects and iterators being so pervasive means that visitor and related patterns are just a normal style of programming, instead of having to be explicit. Tim Delaney
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-11 20:34 -0800
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-11 21:15 -0800
Re:singleton ... again Dave Angel <davea@davea.name> - 2014-02-12 00:48 -0500
Re: singleton ... again Roy Smith <roy@panix.com> - 2014-02-12 00:55 -0500
Re: singleton ... again Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-12 23:04 +1300
Re: singleton ... again Ben Finney <ben+python@benfinney.id.au> - 2014-02-12 21:09 +1100
Re: singleton ... again Roy Smith <roy@panix.com> - 2014-02-12 08:40 -0500
Re: singleton ... again Piet van Oostrum <piet@vanoostrum.org> - 2014-02-13 10:00 +0100
Re: singleton ... again Ned Batchelder <ned@nedbatchelder.com> - 2014-02-13 06:50 -0500
Re: singleton ... again Chris Angelico <rosuav@gmail.com> - 2014-02-13 22:57 +1100
Re: singleton ... again Roy Smith <roy@panix.com> - 2014-02-13 10:24 -0500
Re: singleton ... again Chris Angelico <rosuav@gmail.com> - 2014-02-14 07:03 +1100
Re: singleton ... again Robert Kern <robert.kern@gmail.com> - 2014-02-13 21:13 +0000
Re: singleton ... again Chris Angelico <rosuav@gmail.com> - 2014-02-14 08:27 +1100
Re: singleton ... again Ethan Furman <ethan@stoneleaf.us> - 2014-02-13 08:57 -0800
Re: singleton ... again Roy Smith <roy@panix.com> - 2014-02-13 12:57 -0500
Re: singleton ... again Ethan Furman <ethan@stoneleaf.us> - 2014-02-13 10:31 -0800
Re: singleton ... again Roy Smith <roy@panix.com> - 2014-02-13 14:03 -0500
Re: singleton ... again Chris Angelico <rosuav@gmail.com> - 2014-02-14 06:50 +1100
Re: singleton ... again Grant Edwards <invalid@invalid.invalid> - 2014-02-13 22:28 +0000
Re: singleton ... again Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-14 18:21 +1300
Re: singleton ... again Tim Delaney <timothy.c.delaney@gmail.com> - 2014-02-14 06:16 +1100
Re: singleton ... again Steven D'Aprano <steve@pearwood.info> - 2014-02-13 02:58 +0000
Re: singleton ... again Ben Finney <ben+python@benfinney.id.au> - 2014-02-13 14:07 +1100
Re: singleton ... again Steven D'Aprano <steve@pearwood.info> - 2014-02-13 04:24 +0000
Re: singleton ... again Chris Angelico <rosuav@gmail.com> - 2014-02-13 15:33 +1100
Re: singleton ... again Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-14 18:15 +1300
Re: singleton ... again Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-14 18:06 +1300
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-12 09:50 -0800
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-12 09:56 -0800
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-12 09:58 -0800
Re: singleton ... again Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-02-13 10:57 +1300
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-12 17:38 -0800
Re: singleton ... again Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-02-12 18:57 +0000
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-12 17:02 -0800
Re: singleton ... again Ned Batchelder <ned@nedbatchelder.com> - 2014-02-12 16:34 -0500
Re: singleton ... again Asaf Las <roegltd@gmail.com> - 2014-02-12 17:34 -0800
Re: singleton ... again Tim Delaney <timothy.c.delaney@gmail.com> - 2014-02-13 10:08 +1100
Re: singleton ... again Roy Smith <roy@panix.com> - 2014-02-12 20:57 -0500
Re: singleton ... again Michael Torrie <torriem@gmail.com> - 2014-02-12 15:05 -0700
csiph-web