Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.lang.python > #7623

Re: ip Pubblico

Path csiph.com!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Max_Adamo <maxadamo@usenet.cnntp.org>
Newsgroups it.comp.lang.python
Subject Re: ip Pubblico
Date Sat, 19 Mar 2016 20:44:38 -0000 (UTC)
Organization A noiseless patient Spider
Lines 25
Message-ID <nckdnm$o1t$4@dont-email.me> (permalink)
References <jfPGy.42660$pt.19549@tornado.fastwebnet.it> <nckbqo$ek3$1@gioia.aioe.org>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Sat, 19 Mar 2016 20:44:38 -0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="def1a60fa1fd3e6d9dd9b3c31de5190b"; logging-data="24637"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ywXC+qyJRknJNi0OM3Dzv6VFw+WAUI5I="
User-Agent Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2)
X-Face /home/maxadamo/.signature/X-Face
Cancel-Lock sha1:o8XQra8tmASQ1wNh2yM1qSAxGkw=
Xref csiph.com it.comp.lang.python:7623

Show key headers only | View raw


Il Sat, 19 Mar 2016 21:12:09 +0100, Claudio_F ha scritto:

> Il 18/03/2016 09:46, Smith ha scritto:
>> Ciao a tutti,
>> ho questo script e vorrei suddividerlo in funzioni per renderlo più
>> sintetico possibile.
> 
> 
> Suddividerlo in funzioni si puo`, ma il codice (a parte gli errori che
> contiene) non e` minimamente in grado di far fronte alle seguenti
> situazioni:
> 
> - server eco IP non raggiungibile - dati ricevuti non validi - server
> smtp non raggiungibile

hai assolutamente ragione :P anche se il tuo codice non è del tutto 
aderente alle convenzioni stilistiche di python? :P 
Dovresti usare un linter secondo me. 

p.s.: si sarebbe potuto aggiungere anche una libreria per demonizzare il 
processo. Mo' provo per i fatti miei python-daemon perché devo fare un 
serverino web wsgi. 

-- 
Massimiliano Adamo

Back to it.comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

ip Pubblico Smith <smith@a-team.it> - 2016-03-18 09:46 +0100
  Re: ip Pubblico Max_Adamo <maxadamo@usenet.cnntp.org> - 2016-03-19 16:56 +0000
    Re: ip Pubblico Max_Adamo <maxadamo@usenet.cnntp.org> - 2016-03-19 20:35 +0000
  Re: ip Pubblico Claudio_F <clau.fin@tin.it> - 2016-03-19 21:12 +0100
    Re: ip Pubblico Max_Adamo <maxadamo@usenet.cnntp.org> - 2016-03-19 20:44 +0000
      Re: ip Pubblico Claudio_F <clau.fin@tin.it> - 2016-03-19 22:32 +0100
    Re: ip Pubblico Smith <smith@a-team.it> - 2016-03-22 09:17 +0100

csiph-web