question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problem with using "or None" in conditions.

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
kayhayencommented, Jul 27, 2019

Released as 0.6.5

1reaction
kayhayencommented, Jun 17, 2019

The fix is in Nuitka 0.6.5rc2

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found