Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #69237
| References | <20140327110856.14991bb0@bigbox.christie.dr> <CAPTjJmoSEiBEO9fXfwM7mGywty+dT8erBqeu2mpyrxAf12udcw@mail.gmail.com> <lh2jsg$cqu$1@ger.gmane.org> |
|---|---|
| Date | 2014-03-28 12:52 +1100 |
| Subject | Re: Python language hack for C-style programmers [DO NOT USE!] :-) |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.8648.1395971533.18130.python-list@python.org> (permalink) |
On Fri, Mar 28, 2014 at 12:44 PM, Dave Angel <davea@davea.name> wrote: >> if (array m = Regexp.split2(some_pattern, some_string)) >> do_something(m); >> > > I don't know for certain about if, but you can declare (in C++) a > new variable in for, which is a superset of if. Scope ends when > the for does. Yeah, but only a for, AFAIK. Not an if or a while. ChrisA
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Python language hack for C-style programmers [DO NOT USE!] :-) Chris Angelico <rosuav@gmail.com> - 2014-03-28 12:52 +1100
csiph-web