Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

lambda

what is the difference for python between lambda and regular function?

August 13, 2022 by Magenaut

I’m curious about the difference between lambda function and a regular function (defined with def) – in the python level. (I know what is the difference for programmers and when to use each one.)

Categories Python, Q&A Tags lambda, python Leave a comment

Python lambda does not accept tuple argument

August 12, 2022 by Magenaut

I am running Eclipse SDK v3.6 with PyDev v2.6 plugin on two PC, with Linux and Windows. I would like to pass a tuple as an argument, like: foo = lambda (x,y): (y,x) print (foo((1,2))) This works on Linux and gives the correct result: > (2,1) On Windows it rises an error: foo = lambda … Read more

Categories Python, Q&A Tags lambda, python, tuples Leave a comment

What does “lambda” mean in Python, and what’s the simplest way to use it?

August 12, 2022 by Magenaut

Can you give an example and other examples that show when and when not to use Lambda?
My book gives me examples, but they’re confusing.

Categories Python, Q&A Tags lambda, python Leave a comment

Lifetime of object in lambda connected to pyqtSignal

August 12, 2022 by Magenaut

Suppose I have an object and want one of its methods to be executed when a PyQt signal is emitted. And suppose I want it to do so with a parameter that is not passed by the signal. So I create a lambda as the signal’s slot:

Categories Python, Q&A Tags garbage-collection, lambda, pyqt, python, signals-slots Leave a comment
Newer posts
← Previous Page1 … Page4 Page5
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress