Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #109168
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Pavlos Parissis <pavlos.parissis@gmail.com> |
| Newsgroups | comp.lang.python |
| Subject | Handling exceptions with Py2 and Py3 |
| Date | Fri, 27 May 2016 14:24:38 +0200 |
| Lines | 50 |
| Message-ID | <mailman.18.1464351883.2277.python-list@python.org> (permalink) |
| References | <57483C86.6030304@gmail.com> |
| Mime-Version | 1.0 |
| Content-Type | multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="kU4vCg6mERoX6a2MSFDoe1rjO3Efq3qsS" |
| X-Trace | news.uni-berlin.de gxm0hoe+JIs1eGCK3lEvugmpKTbzw9pTJoyQOWUf22dw== |
| Return-Path | <pavlos.parissis@gmail.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.033 |
| X-Spam-Evidence | '*H*': 0.93; '*S*': 0.00; 'python3': 0.05; 'wrapper': 0.07; 'filename:fname piece:signature': 0.16; 'received:192.168.0.103': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'to:name:python-list@python.org': 0.20; 'cheers,': 0.22; 'module': 0.25; 'header:User-Agent:1': 0.26; "doesn't": 0.26; 'this.': 0.28; 'message-id:@gmail.com': 0.34; 'handle': 0.34; 'received:google.com': 0.35; 'so,': 0.35; 'received:74.125.82': 0.35; 'but': 0.36; 'to:addr:python-list': 0.36; 'hi,': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'subject:with': 0.40; 'provide': 0.61; 'six': 0.65; 'situation': 0.67 |
| DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=to:from:subject:message-id:date:user-agent:mime-version; bh=0hCnmFaUWA4j5iE0hO3EXzyvbOupGOpEFb3W2Duz3nQ=; b=0/I6AhWYxzCRLab8fiG3VWzKvR2aTgYN5lP6OcCX8FcIg3aSCgZfDt8+1i3wSidQ5P yFZ0HnLfgWz/t2Wxv5qNWmQPYb7DBqgLAaQRbJgsuLAspoKCnlF7C520LIhLzluK/4Tt faUU9VJorsTB2bXLMf385oeJXRgLBbEHQLZg+R4IsGoPUMRuou4HUFnNOvt6bNQXBGTX vgVt7MKrgn/r2XXpkHp+uLFLRN2VMvZwgsnfBTNOMoUXkWwW3mw7NrOHJz/prxMCY7pK src4luExv6Dv7WCe0U/N6msJ0aAcR3e8fvUfRaG/PkSbLvAyhKiJj2tw2s6OucaRXIXl zwjg== |
| X-Google-DKIM-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version; bh=0hCnmFaUWA4j5iE0hO3EXzyvbOupGOpEFb3W2Duz3nQ=; b=mrF/GN3T0PYV4D3vQ6irZQpm3dzPj+C86iRsHKxNEMLdwhjyfZDxPbZBQuXhLzHjME y+o0KWIF055ueI6zAXaqCdAIQziZTmRXG5U6TbFE5+sbk5e9pvvfRMciteCwKgXk6pZw 0S0Bow1rYZr39W/zYu+t54K34UKLgLZhldo+xiqIq1JhiP7kK7nc6kfl2JwbsAJEpcRk IQGGzJP8WDduIA5EVM50py2Ut0wUD8C9A1L+7yEBTDbmAYYVScRunF5Urf24SL/z9ZK1 3j/IFOXpjkjm+4s1pZtbaXt+Xg/E4Rn4W+3WyzZx87VkXKLGVsH7kaStAw+Pc9HzPU24 RjjA== |
| X-Gm-Message-State | ALyK8tKTtEDJY4uKYelvYk9G5a998fLWCp+DiPXVkOnvAssWo8Zw6THzYAEQddS9mKUQeQ== |
| X-Received | by 10.28.73.198 with SMTP id w189mr9233551wma.32.1464351881824; Fri, 27 May 2016 05:24:41 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.8.0 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.22 |
| 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> |
| X-Mailman-Original-Message-ID | <57483C86.6030304@gmail.com> |
| Xref | csiph.com comp.lang.python:109168 |
Show key headers only | View raw
[Multipart message — attachments visible in raw view] - view raw
Hi, So, we have ConnectionRefusedError in Python3 but not in Python2. Six module doesn't provide a wrapper about this. What is most efficient way to handle this situation in a try-catch block? Cheers, Pavlos
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
Handling exceptions with Py2 and Py3 Pavlos Parissis <pavlos.parissis@gmail.com> - 2016-05-27 14:24 +0200
Re: Handling exceptions with Py2 and Py3 Steven D'Aprano <steve@pearwood.info> - 2016-05-27 22:51 +1000
Re: Handling exceptions with Py2 and Py3 Pavlos Parissis <pavlos.parissis@gmail.com> - 2016-05-27 15:42 +0200
csiph-web