Is that your way of saying 'just GPL it'?
23 karma · joined May 22, 2008
Is that your way of saying 'just GPL it'?
http://www.siafoo.net/snippet?style=0
http://www.siafoo.net/snippet?style=1
http://www.siafoo.net/snippet?style=2
I think I agree about the bubbles on the about page... I suppose it's better to have shorter text blocks and more bullet points, images, etc?
I'm glad you like the site's purpose at least... it would be really unfortunate if we had designed this to solve a problem and everyone had just said, 'what problem?' ;)
Although I'm going to try to add all the corrections you guys had when I get a chance (probably tomorrow).
if any(number < 10 for number in numbers):
Okay this is has to be the best way to do this, much better than the example in the article.And not to start a flame war, but the code:
numbers = [1,10,100,1000,10000]
if [number for number in numbers if number < 10]:
print 'Success'
# Output: 'Success!'
actually does say that it's less efficient... granted it's buried in a paragraph so it's maybe not too obvious ; )... if you're using Genshi or something similar though you need to be able to toss crazy things in one line sometimes.And 'Test is False' doesn't have to evaluate to True... if it is false, it is still the value returned by the entire expression. Not the actual value 'False'. I actually disagree with your example
s = foo and "word: "+foo or ""
I tried it and "" got assigned to s...And dude, the string in substring syntax is awesome!