Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #53025
| References | <CANc-5Uztbwz5cYk6K8vdLdjaFSPOO4qmROvPoUqfGFCnW6JVqA@mail.gmail.com> <521C0B62.1030004@mrabarnett.plus.com> |
|---|---|
| Date | 2013-08-26 21:49 -0500 |
| Subject | Re: Missing something on exception handling in Python 3 |
| From | Skip Montanaro <skip.montanaro@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.252.1377571787.19984.python-list@python.org> (permalink) |
> Do this:
>
> raise LockFailed("Failed to create %s" % self.path) from None
Thanks. Is there some construct which will work in 2.x and 3.x?
Skip
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Missing something on exception handling in Python 3 Skip Montanaro <skip.montanaro@gmail.com> - 2013-08-26 21:49 -0500
csiph-web