View Single Post
Old 01-17-2011, 10:18 AM   #23
pchrist7
Addict
pchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animalspchrist7 is kind to children and small, furry animals
 
pchrist7's Avatar
 
Posts: 385
Karma: 6514
Join Date: Aug 2010
Location: Denmark
Device: Kindle 3 3G+Wifi, Oasis
Quote:
Originally Posted by chaley View Post
As long as I am commenting.

The line you added could be
Code:
		elif f > 0:
			return is_reading_str
		else:
because the if above has already removed all the cases that the clause after the 'and' would catch.
You're right.
Just do that compare once, sigh ...
Works like a charm
pchrist7 is offline   Reply With Quote