Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #93220
| Path | csiph.com!usenet.pasdenom.info!weretis.net!feeder1.news.weretis.net!news.roellig-ltd.de!open-news-network.org!border2.nntp.ams1.giganews.com!nntp.giganews.com!bcyclone05.am1.xlned.com!bcyclone05.am1.xlned.com!newsfeed.xs4all.nl!newsfeed7.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <rosuav@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.001 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'friday,': 0.07; 'obsolete': 0.07; '(instead': 0.09; 'git': 0.09; 'subject:into': 0.09; 'subject:string': 0.09; 'url:github': 0.09; 'whatever.': 0.09; 'cc:addr:python-list': 0.10; 'thread': 0.10; 'python': 0.11; 'syntax': 0.13; 'suggest': 0.15; 'doesnt': 0.16; 'effect,': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:object': 0.16; 'thoughts?': 0.16; 'try/except': 0.16; 'wrote:': 0.16; 'debugging': 0.18; 'all,': 0.20; 'cc:2**0': 0.21; 'cc:addr:python.org': 0.21; 'terminate': 0.22; 'bit': 0.23; '2015': 0.23; 'sat,': 0.23; 'tried': 0.24; 'header:In-Reply-To:1': 0.24; 'chris': 0.26; 'requests': 0.26; 'error': 0.27; 'checking': 0.27; 'wonder': 0.27; 'message-id:@mail.gmail.com': 0.28; 'idea,': 0.29; 'such.': 0.29; '(which': 0.29; 'allows': 0.30; 'maybe': 0.31; 'print': 0.31; 'code': 0.31; 'problem': 0.33; 'add': 0.34; 'received:google.com': 0.34; 'that,': 0.34; 'could': 0.35; 'newer': 0.35; 'strongly': 0.35; 'asking': 0.35; 'but': 0.36; 'except': 0.36; 'there': 0.36; 'subject:: ': 0.37; 'beyond': 0.37; "won't": 0.38; 'say': 0.38; 'pm,': 0.39; 'does': 0.39; 'enough': 0.39; 'skip:e 20': 0.39; 'subject: (': 0.40; 'some': 0.40; 'back': 0.61; 'is.': 0.63; 'complete': 0.63; 'you.': 0.64; 'it!': 0.64; '26,': 0.72; 'chrisa': 0.84; 'syntax:': 0.84; 'utc+5:30,': 0.84; 'to:none': 0.90 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type; bh=FU8kBv0YBwZXWbDdHyjK9A+opi78BCjnmZyXQ9Yecd4=; b=TFqeRAcSzut1H5jtqQG8DgMc9n7+U7Sne1JL2iLj9lnUQfGl/N+Z4elktiQhvM4CUv QfiqpnwCWFvOtngmO04RVDxj7AdXoLbkWi8xEba7mv23N5F2y35WbZbHULrHtuH47B1Z 3sqJcCzMmITfUHYGlaooh7DFRacsYjPBcSUXK3Sd1plu1kyc51VMB/1tCS0wtnMAzSeu +e0KchL7BGR91gErPyr2oS88yy8IIidtazD/i3K4Wm/Bk0Mla8WXxUKmR43B2U4zeFds 1014d1jy4SFNH+aeXNYQaxUe3FOKOOfOlkJqKR50+S2TUJBCTMAoV+6C/UqVuI87uLoT uhEw== |
| MIME-Version | 1.0 |
| X-Received | by 10.50.141.164 with SMTP id rp4mr1888390igb.2.1435379454175; Fri, 26 Jun 2015 21:30:54 -0700 (PDT) |
| In-Reply-To | <37e631f2-16ea-431a-aa18-fb74cdedc278@googlegroups.com> |
| References | <3ba959bc-f25f-4655-8c1f-ce2888210e1b@googlegroups.com> <mailman.99.1435291217.3674.python-list@python.org> <37e631f2-16ea-431a-aa18-fb74cdedc278@googlegroups.com> |
| Date | Sat, 27 Jun 2015 14:30:54 +1000 |
| Subject | Re: Turning string into object (name) |
| From | Chris Angelico <rosuav@gmail.com> |
| Cc | "python-list@python.org" <python-list@python.org> |
| Content-Type | text/plain; charset=UTF-8 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.120.1435379463.3674.python-list@python.org> (permalink) |
| Lines | 38 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1435379463 news.xs4all.nl 2821 [2001:888:2000:d::a6]:39005 |
| X-Complaints-To | abuse@xs4all.nl |
| X-Received-Bytes | 5398 |
| X-Received-Body-CRC | 2482768283 |
| Xref | csiph.com comp.lang.python:93220 |
Show key headers only | View raw
On Sat, Jun 27, 2015 at 2:11 PM, Rustom Mody <rustompmody@gmail.com> wrote: > 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]: Well.... yes, that's a complete thread hijack. Whatever. > 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? Standard principle when asking for help with a Python program: Quote the error text! You say you got a response back - quote it! Standard debugging technique: If you have an idea, try it! Most code is deterministic enough that you can simply change to the modern except syntax and try again. Maybe it won't have any effect, but maybe it'll tell you exactly what the problem is. Beyond that, I don't think I can much help you. ChrisA
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