Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93219
| Newsgroups | comp.lang.python |
|---|---|
| Date | 2015-06-26 21:11 -0700 |
| References | <3ba959bc-f25f-4655-8c1f-ce2888210e1b@googlegroups.com> <mailman.99.1435291217.3674.python-list@python.org> |
| Message-ID | <37e631f2-16ea-431a-aa18-fb74cdedc278@googlegroups.com> (permalink) |
| Subject | Re: Turning string into object (name) |
| From | Rustom Mody <rustompmody@gmail.com> |
On Friday, June 26, 2015 at 9:30:38 AM UTC+5:30, Chris Angelico wrote: > Incidentally, I would suggest not having the try/except at all, since > all it does is print an error and terminate (which is the same result > you'd get if that error bubbled all the way to top level). But if you > are going to use it, then I strongly recommend using the newer syntax: > > except errors.ConnectionFailure as e: I wonder Chris if you know anything about this [yeah a bit of a hijack]: There is this git plugin https://github.com/felipec/git-remote-hg that allows one to bi-direct talk to hg I tried to add a little better error checking so that it doesnt barf with a backtrace when connecting to git (instead of hg which is the intent): My modifs: https://github.com/rusimody/git-remote-hg/commit/51cc665eff174e0d6bbf2e1b61ca332af345e76a I got some response (from github) to the effect that travis-continuous failed or some such. Yeah I know about nothing about github pull requests but it just could be this -- obsolete except syntax. Any thoughts? Suggestions?
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Turning string into object (name) liam.oshea@o2-v2.com - 2015-06-25 19:51 -0700
Re: Turning string into object (name) Chris Angelico <rosuav@gmail.com> - 2015-06-26 14:00 +1000
Re: Turning string into object (name) Rustom Mody <rustompmody@gmail.com> - 2015-06-26 21:11 -0700
Re: Turning string into object (name) Chris Angelico <rosuav@gmail.com> - 2015-06-27 14:30 +1000
Re: Turning string into object (name) Rustom Mody <rustompmody@gmail.com> - 2015-06-27 21:51 -0700
csiph-web