Re: Question on lambdas

2014-12-09 Thread Christoph M. Becker
Ben Finney wrote:

 Christoph Becker cmbecke...@gmx.de writes:
 
 Ben Finney wrote:

 It's best to remember that ‘lambda’ is syntactic sugar for creating
 a function; the things it creates are not special in any way, they
 are normal functions, not “lambdas”.

 Could you please elaborate why ‘lambda’ does not create “lambdas”. I'm
 a Python beginner (not new to programming, though), and rather
 confused about your statement.
 
 We already have a term for what the ‘lambda’ keyword creates: a
 function.

 That is, ‘lambda’ creates a function object, without anything to
 distinguish it from a function created any other way.

Ah, now I understand.  It's just about proper naming.  Thanks. :)

-- 
Christoph M. Becker
-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Do you like the current design of python.org?

2014-12-09 Thread Christoph M. Becker
Chris Angelico wrote:

 On Wed, Dec 10, 2014 at 11:16 AM, Steven D'Aprano
 steve+comp.lang.pyt...@pearwood.info wrote:
 The flaw is that when you get a 404, it claims that the maintainers have
 been notified, but they apparently don't do anything about it. They should
 be fixing broken links without waiting for somebody to raise an issue.
 Otherwise, what's the point of being notified?

 It's actually worse than that. By telling the end user that the maintainers
 have been notified, they *discourage* people from raising an issue. Why
 raise an issue for something that is already being attended too?
 
 Okay, *that* is a design flaw. Though personally, I never believe
 those maintainers have been notified pages. I mean, anyone can go
 looking at their server error logs, but how many people *get
 notified*?? And when does it *ever* result in prompt fixing of errors?
 
 So even if this is the one site on the entire internet where that's
 true, I'd be inclined to drop that text, because it's pretty much
 useless.

It seems to me that text can't be useless.  Either it is useful (because
it conveys correct information) or it is harmful (because it keeps
visitors from submitting an explicit bug report).

-- 
Christoph M. Becker

-- 
https://mail.python.org/mailman/listinfo/python-list


Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Christoph M. Becker
Tim Chase wrote:

 I
 haven't investigated recently, but I remember Django's ability to
 trigger a log-out merely via a GET was something that irked me.
 
 All this to also say that performing non-idempotent actions on a GET
 request is just begging for trouble. ;-)

ACK.  However, isn't log-out an idempotent action?

-- 
Christoph M. Becker

-- 
https://mail.python.org/mailman/listinfo/python-list


Content-Type (was: Fwd: Python Signal/Slot + QThred code analysis)

2014-11-25 Thread Christoph M. Becker
Juan Christian wrote:

 OFF-TOPIC: You guys said that my emails had some trash HTML and strange
 stuffs, is it OK now?

You're still sending:

  Content-Type: multipart/alternative

Please configure your MUA to send

  Content-Type: text/plain

only.

-- 
Christoph M. Becker

-- 
https://mail.python.org/mailman/listinfo/python-list