How would you write
if f(x=1):
print "yes"
using suite-based keyword args?
Good point.
Then we should remove the extra ':' at the end of the function invocation
:
if f(x=@>):
value of x
print "yes"
if f(@**>):
x: value of x
print "yes"
--
ht
I think your proposal is very interesting, I've been missing code blocks
in Python more and more as time goes by.
I'll answer to both the 'thunks" proposal and the "suite-based keywords"
proposal here.
I find the Ruby syntax rather dirty though, because it has a lot of
implicit stuff, tre
The first one was a typo in the name of a variable ($actegories instead
of $categories). Instead of raising an exception, this b**d "programming
language" (err...) just created a new variable with a NULL value. Doh :-(
Set error reporting to all.
Marvel at how it reports this simple typo in
postgresql
is slower than MySQL, at least for modest size tables. There must, I
When not using transactions, MySQL will blow away postgres in
INSERT/UPDATE speed until the concurrency gets up a bit and the readers
block writers strategy used by MyISAM starts to show its weaknesses.
This is i
what about :
factors = [map(float, line.split()) for line in file]
should be a hell of a lot faster and nicer.
for line in f:
factor = []
tokens = line.split()
for i in tokens:
factor.append(float(i))
I sympathize with you and also think there should be an "add comment" in
the Python documentation website, so that users could post their code
snippets in the relevant places.
I found the Howto through Google. Somehow I didn't see that link in the
documentation.
And please do not make any as