Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoValue should not throw exception on conversion to bool #64

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

maximermilov
Copy link

This improves backward compatibility with 0.1.8
It's really hard to find all occurrences similar to

if signed_data.getComponentByName('crls'):
...

in large codebase.

This improves backward compatibility with 0.1.8
It's really hard to find all occurrences of
if signed_data.getComponentByName('crls'):
  ...

in large codebase.
@codecov-io
Copy link

codecov-io commented Aug 25, 2017

Codecov Report

Merging #64 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master     #64      +/-   ##
=========================================
+ Coverage   83.69%   83.7%   +<.01%     
=========================================
  Files          28      28              
  Lines        3736    3738       +2     
=========================================
+ Hits         3127    3129       +2     
  Misses        609     609
Impacted Files Coverage Δ
pyasn1/type/base.py 84.95% <100%> (+0.12%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 572dc1b...eb6ac59. Read the comment docs.

@etingof
Copy link
Owner

etingof commented Aug 29, 2017

Thank you for you PR!

I'm not sure about unconditionally ignoring uninitilaized values approach. But your point (to preserve backward compatibility as much as possible while code evolves) is really important!

Let me sleep it over, may be I could come up with something that fits the overall design...

Lostboi pushed a commit to inexio/pyasn1 that referenced this pull request Dec 21, 2020
droideck pushed a commit to hugovk/pyasn1 that referenced this pull request Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants