Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Why my lambda doesn't work properly?
Post: RE: Why my lambda doesn't work properly?

Thanks, ndc85430.
Snake General Coding Help 6 3,470 Mar-29-2020, 04:26 PM
    Thread: Can't unpack values of dictionary with **
Post: RE: Can't unpack values of dictionary with **

Got it. Thanks guys.
Snake General Coding Help 3 3,635 Mar-11-2020, 11:17 AM
    Thread: Can't unpack values of dictionary with **
Post: Can't unpack values of dictionary with **

I've seen similar examples in 4.7.5 Unpacking argument lists, but my somehow don't work. >>> d={'USA':'Washington','France':'Paris','China':'Beijing'} >>> **d SyntaxError: in...
Snake General Coding Help 3 3,635 Mar-11-2020, 08:07 AM
    Thread: Why my lambda doesn't work properly?
Post: RE: Why my lambda doesn't work properly?

Thank you very much, I got it now.
Snake General Coding Help 6 3,470 Mar-11-2020, 07:57 AM
    Thread: Why my lambda doesn't work properly?
Post: RE: Why my lambda doesn't work properly?

I tried to understand this part from Python tutorial about passing lambdas as an argument. 4.7.6. Lambda Expressions ... The above example uses a lambda expression to return a function. Another use ...
Snake General Coding Help 6 3,470 Mar-11-2020, 05:43 AM
    Thread: Why my lambda doesn't work properly?
Post: Why my lambda doesn't work properly?

I thought it should give 2 as passed argument is 1, so 1+1 should be done. But it gives me 1. >>> def func(arg=lambda i: i+1): print(arg) >>> func(1) 1
Snake General Coding Help 6 3,470 Mar-11-2020, 04:42 AM
    Thread: Where could I get _ctypes module except libffi-dev?
Post: RE: Where could I get _ctypes module except libffi...

I was able to get Kivy working. On Manjaro I made it without any libffi. But strange that after I tried to uninstall some pip packages and reinstalled them again I got message no _ctypes. Why that hap...
Snake General Coding Help 7 8,367 Jan-17-2020, 06:29 AM
    Thread: Where could I get _ctypes module except libffi-dev?
Post: RE: Where could I get _ctypes module except libffi...

Though may be I'll figure that out myself tomorrow, after getting some rest.
Snake General Coding Help 7 8,367 Jan-10-2020, 05:09 AM
    Thread: Where could I get _ctypes module except libffi-dev?
Post: RE: Where could I get _ctypes module except libffi...

(Jan-10-2020, 03:29 AM)Larz60+ Wrote: https://github.com/python/cpython/blob/m.../_ctypes.cThanks. What to do? )
Snake General Coding Help 7 8,367 Jan-10-2020, 03:37 AM
    Thread: Where could I get _ctypes module except libffi-dev?
Post: Where could I get _ctypes module except libffi-dev...

I have an issue with Buildozer while trying to build Kivy program for Android, when I run buildozer android debug deploy run it says no module named _ctypes. On AskUbuntu I've seen the solution for pe...
Snake General Coding Help 7 8,367 Jan-10-2020, 12:55 AM
    Thread: Can't install ZIP with PIP.
Post: RE: Can't install ZIP with PIP.

Ok, I got it, I had to install ZIP package for OS, not those from PIP. Everything works now. (it was during usage of buildozer, not during install actually) Thought those package (pip's zip) couldn't ...
Snake General Coding Help 4 12,772 Jan-07-2020, 09:41 PM
    Thread: Can't install ZIP with PIP.
Post: RE: Can't install ZIP with PIP.

I need to install Buildozer for Kivy. When I tried there was an error which told that I have to have ZIP.
Snake General Coding Help 4 12,772 Jan-07-2020, 07:57 PM
    Thread: Can't install ZIP with PIP.
Post: Can't install ZIP with PIP.

I need to install zip: pip install zip (Python3). I tried though conda and virtualenv. I'm getting an error: Output: Using cached https://files.pythonhosted.org/packages/41/9e/309259ce8dff8c596e8c26...
Snake General Coding Help 4 12,772 Jan-07-2020, 06:21 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020