Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #111735
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Stupid question, just need a quick and dirty fix |
| Date | 2016-07-22 14:45 +1000 |
| Message-ID | <mailman.40.1469162766.22221.python-list@python.org> (permalink) |
| References | <e1a10af3-cd57-4a56-98bf-7a9ed8b3d999@googlegroups.com> <CAPTjJmo__i+zZyk+kFe-f8JZy6UYKawPPR_NqXAdfseK4zqJLQ@mail.gmail.com> <mailman.39.1469161719.22221.python-list@python.org> <881b184c-11e4-41e7-a01e-6a21d454ce68@googlegroups.com> <CAPTjJmrqnbobzhzGuiLtdUVgTAnP4togkDqOW3M7pgdnECJFug@mail.gmail.com> |
On Fri, Jul 22, 2016 at 2:39 PM, Jordan Bayless <jmbayless@gmail.com> wrote: > it seems there's a) no case statement (WTF?) and b) I'm limited to how many elif statements I can use. The latter isn't true; and you're not using elif anyway. With no case statement, you get pushed to other, better ways of doing things, like the much simpler way I showed in my previous email - it uses set membership rather than a series of individual equality checks. Faster, cleaner, much easier to work with. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Stupid question, just need a quick and dirty fix Jordan Bayless <jmbayless@gmail.com> - 2016-07-21 21:19 -0700
Re: Stupid question, just need a quick and dirty fix Chris Angelico <rosuav@gmail.com> - 2016-07-22 14:28 +1000
Re: Stupid question, just need a quick and dirty fix Jordan Bayless <jmbayless@gmail.com> - 2016-07-21 21:39 -0700
Re: Stupid question, just need a quick and dirty fix Chris Angelico <rosuav@gmail.com> - 2016-07-22 14:45 +1000
Re: Stupid question, just need a quick and dirty fix Jordan Bayless <jmbayless@gmail.com> - 2016-07-21 22:26 -0700
Re: Stupid question, just need a quick and dirty fix Paul Rubin <no.email@nospam.invalid> - 2016-07-21 23:03 -0700
Re: Stupid question, just need a quick and dirty fix Chris Angelico <rosuav@gmail.com> - 2016-07-22 16:34 +1000
Re: Stupid question, just need a quick and dirty fix Steven D'Aprano <steve@pearwood.info> - 2016-07-22 16:37 +1000
Re: Stupid question, just need a quick and dirty fix thilfigr16@gmail.com - 2016-07-22 06:00 -0700
Re: Stupid question, just need a quick and dirty fix Cousin Stanley <cousinstanley@gmail.com> - 2016-07-22 08:45 -0700
Re: Stupid question, just need a quick and dirty fix Michael Selik <michael.selik@gmail.com> - 2016-07-22 01:18 -0400
Re: Stupid question, just need a quick and dirty fix Steven D'Aprano <steve@pearwood.info> - 2016-07-22 16:08 +1000
Re: Stupid question, just need a quick and dirty fix Michael Selik <michael.selik@gmail.com> - 2016-07-22 18:53 +0000
Re: Stupid question, just need a quick and dirty fix MRAB <python@mrabarnett.plus.com> - 2016-07-22 15:58 +0100
csiph-web