Builder Pattern

Alex Martelli aleax at mail.comcast.net
Sat Jan 28 21:38:45 EST 2006


Jason <subPose at gmail.com> wrote:

> Hi
> 
> I really need an example of a builder pattern in python, the closest I
> could find to something resembling builder was on this thread...
>
http://groups.google.co.uk/group/it.comp.lang.python/browse_thread/threa
d/44f79c1def2583ca/200adefeefa5f3fa?lnk=st&q=design+pattern+builder+pyth
on+-build&rnum=25#200adefeefa5f3fa
> 
> Unfortunately I can't read the discussion it's possibly in Spanish.

No, the leading 'it' in the newsgroup name means 'italian'.  I was one
of the discussants.

> Does anyone know of a builder example for python? Thanking you in
> advance for your help.

The *example* is right there, e.g. at
<http://groups.google.co.uk/group/it.comp.lang.python/msg/4edfee13b6fb51
6f> for the Python translation of the example found at a URL quoted in
the same post.  If you want an EXAMPLE, there it is -- it's all code, no
comments, so the fact that the following discussion is in Italian should
be irrelevant, no?

What the following discussion says is that the C++ -> Python
transliteration is totally trivial and obvious and berates the original
requestor for making me waste 10 minutes to provide it.


Alex



More information about the Python-list mailing list