`ConstantObject.value` does not return BinaryValue anymore
See original GitHub issueStarting from ef3c212f21f35caeb1d246079d4521a0ed2ca505, accessing value
on a ConstantObject
now returns (in my test) an int
, while it previously returned a BinaryValue
.
This breaks this test in my PR, as the returned int
object does not have a integer
attribute.
Is it an expected result of ef3c212f21f35caeb1d246079d4521a0ed2ca505?
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
C++ Return value, reference, const reference - Stack Overflow
Returning by value means that you are returning a copy of an object. This puts requirements on the class (it has to be...
Read more >AWS S3 can't read binary data anymore - MongoDB
Hi there. I'm having trouble updating from third party services to bpm modules. I updated my uploadImageToS3 code, taken from the O-FISH ...
Read more >Parsing arguments and building values — Python 3.11.1 ...
Like s* , except that it doesn't accept mutable objects. The result is stored into two C variables, the first one a pointer...
Read more >const - JavaScript - MDN Web Docs - Mozilla
The const declaration creates a read-only reference to a value. It does not mean the value it holds is immutable—just that the variable ......
Read more >Understanding Python Bytecode - Towards Data Science
So what the compile function is returning is a code object (the address after ... we do not need the returned value of...
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 FreeTop 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
Top GitHub Comments
No, there currently isn’t, but there should be.
High-level there is:
BinaryValue
int
float
bytes
BinaryValue
(@garmin-mjames added this recently).value
and will raise an exceptionThe
.value
types should be the same for bothConstantObject
and the subclasses ofModifiableObject
.Thanks @ktbarrett, this helps a lot.