Message76735
| Author |
vstinner |
| Recipients |
giampaolo.rodola, lcatucci, vstinner |
| Date |
2008年12月02日.12:44:17 |
| SpamBayes Score |
1.309557e-06 |
| Marked as misclassified |
No |
| Message-id |
<1228221859.46.0.709908551559.issue4473@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
"lst[1:] if len(lst)>1 else []" is useless, lst[1:] alone does the
same :-) So it can be simplify to:
def _parsecap(line):
lst = line.split()
return lst[0], lst[1:]
You might add a real example in the capa() docstring.
About poplib_02_sock_shutdown.diff: I'm not sure that poplib is the
right place to fix the issue... if there is really an issue. Why not
calling shutdown directly in socket.close()? :-)
You removed self._sock, nice. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年12月02日 12:44:19 | vstinner | set | recipients:
+ vstinner, giampaolo.rodola, lcatucci |
| 2008年12月02日 12:44:19 | vstinner | set | messageid: <1228221859.46.0.709908551559.issue4473@psf.upfronthosting.co.za> |
| 2008年12月02日 12:44:18 | vstinner | link | issue4473 messages |
| 2008年12月02日 12:44:17 | vstinner | create |
|