Problem with using "or None" in conditions.
See original GitHub issueI’ve had this issue when trying to use matplotlib for a while, do you know what it could be? I am running the latest version.
0.6.4 Python: 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 22:22:05) [MSC v.1916 64 bit (AMD64)] Executable: C:\Program Files\Python37\python.exe OS: Windows Arch: x86_64
cl /Fowallet.build\module.__main__.obj /c "wallet.build\module.__main__.cpp" /TP /nologo /EHsc /J /Gd /Ox /MT /D_NUITKA_STANDALONE /D_NUITKA_SYSFLAG_BYTES_WARNING=0 /D_NUITKA_SYSFLAG_NO_SITE=0 /D_NUITKA_SYSFLAG_VERBOSE=0 /D_NUITKA_SYSFLAG_UTF8=0 /D_NUITKA_SYSFLAG_OPTIMIZE=0 /D__NUITKA_NO_ASSERT__ /D_NUITKA_CONSTANTS_FROM_RESOURCE /D_NUITKA_FROZEN=168 /D_NUITKA_MODULE_COUNT=1548 /D_NUITKA_EXE "/IC:\Program Files\Python37\include" "/IC:\Program Files\Python37\PC" /Iwallet.build "/IC:\Program Files\Python37\lib\site-packages\nuitka\build\include" "/IC:\Program Files\Python37\lib\site-packages\nuitka\build\static_src"
wallet.build\module.__main__.cpp(89927): error C2440: '=': cannot convert from 'PyObject *' to 'nuitka_bool'
wallet.build\module.__main__.cpp(89927): note: There is no context in which this conversion is possiblescons: *** [wallet.build\module.__main__.obj] Error 2
Issue Analytics
- State:
- Created 4 years ago
- Comments:12 (12 by maintainers)
Top Results From Across the Web
Python None comparison: should I use "is" or - Stack Overflow
None is print() gives a true value because print doesn't return anything. So you are checking if the return of print() is None...
Read more >Comparing things to None the wrong way - QuantifiedCode
The statement below uses the equality operator to compare a variable to None . This is not the PEP 8 preferred approach to...
Read more >Boolean and None in Python - OpenGenus IQ
It's an operator that checks whether x and “not None” are pointing to the same object. E.g. ... Python will print True for...
Read more >Python None Keyword Usage [Practical Examples]
Python None in Conditional statements None value is considered as False in conditions but that does not mean None is the same as...
Read more >Antisocial personality disorder - Symptoms and causes
People with this mental condition consistently disregard right and wrong, antagonize and manipulate others, and ignore other's rights and ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Released as 0.6.5
The fix is in Nuitka 0.6.5rc2