Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #52394
| Date | 2013-08-11 18:58 +0200 |
|---|---|
| From | Xavi <jarabal@gmail.com> |
| Subject | Re: Python Basic Doubt |
| References | <CAL0E0u6wO_UBniWoSpePvhKhPDG_nf4p1rqYYrGwzoHTqp6ZHA@mail.gmail.com> <20130810114040.6ac78fe8@bigbox.christie.dr> <mailman.432.1376157806.1251.python-list@python.org> <52069539$0$30000$c3e8da3$5496439d@news.astraweb.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.487.1376248139.1251.python-list@python.org> (permalink) |
Thanks to all for your answers, I guess it is more flexible with isinstance (the duck test :) I'm going to change the type checks. Respect to the "Names starting and ending with double-underscore". I don't know how to get the name of a classe without them. obj.__class__.__name__ Thanks. -- Xavi
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Re: Python Basic Doubt Xavi <jarabal@gmail.com> - 2013-08-10 20:00 +0200
Re: Python Basic Doubt Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-10 19:32 +0000
Re: Python Basic Doubt Xavi <jarabal@gmail.com> - 2013-08-11 18:58 +0200
Re: Python Basic Doubt Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2013-08-12 01:08 +0000
csiph-web