Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #95936 > unrolled thread
| Started by | Peter Otten <__peter__@web.de> |
|---|---|
| First post | 2015-09-03 16:24 +0200 |
| Last post | 2015-09-03 16:24 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Reading \n unescaped from a file Peter Otten <__peter__@web.de> - 2015-09-03 16:24 +0200
| From | Peter Otten <__peter__@web.de> |
|---|---|
| Date | 2015-09-03 16:24 +0200 |
| Subject | Re: Reading \n unescaped from a file |
| Message-ID | <mailman.68.1441290268.8327.python-list@python.org> |
Friedrich Rentsch wrote: > On 09/03/2015 11:24 AM, Peter Otten wrote: >> Friedrich Rentsch wrote: > I appreciate your identifying two mistakes. I am curious to know what > they are. Sorry for not being explicit. >>> substitutes = [self.table [item] for item in hits if item >>> in valid_hits] + [] # Make lengths equal for zip to work right >> That looks wrong... You are adding an empty list here. I wondered what you were trying to achieve with that. >>> output = input >> ...and so does this. That seems to be the only occurence of the name "input" in your code. Did you mean "text" or do you really want to return the built-in?
Back to top | Article view | comp.lang.python
csiph-web