Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #47031
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Subject | Re: Issue values dictionary |
| Date | 2013-06-05 09:43 +0200 |
| Organization | None |
| References | <d6c181ee-d2bf-4278-a26c-22bc26402271@googlegroups.com> <d503401e-d8cc-4059-80bf-c41af334222c@ve4g2000pbb.googlegroups.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2705.1370418184.3114.python-list@python.org> (permalink) |
alex23 wrote: > def get_transcript_and_size(line): > columns = line.strip().split() > return columns[0].strip(), int(columns[1].strip()) You can remove all strip() methods here as split() already strips off any whitespace from the columns. Not really important, but the nitpicker in me keeps nagging ;)
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Issue values dictionary claire morandin <claire.morandin@gmail.com> - 2013-06-04 19:41 -0700
Re: Issue values dictionary alex23 <wuwei23@gmail.com> - 2013-06-04 20:17 -0700
Re: Issue values dictionary Peter Otten <__peter__@web.de> - 2013-06-05 09:43 +0200
Re: Issue values dictionary alex23 <wuwei23@gmail.com> - 2013-06-05 02:46 -0700
Re: Issue values dictionary claire morandin <claire.morandin@gmail.com> - 2013-06-04 21:05 -0700
csiph-web