Skip to content Skip to sidebar Skip to footer
Showing posts with the label Literals

Why Does '20000 Is 20000' Result In True?

is in Python tests if 2 references point to the same object. Numbers between -5 and 256 are cached … Read more Why Does '20000 Is 20000' Result In True?

Python Literal R'\' Not Accepted

r'\' in Python does not work as expected. Instead of returning a string with one character… Read more Python Literal R'\' Not Accepted

Printing A Literal Python String In Octal

For reasons unknown I am the consumer of metadata that needs to be displayed in octal format to be … Read more Printing A Literal Python String In Octal

Passing Array To Spark Lit Function

Let's say I have a numpy array a that contains the numbers 1-10: [1 2 3 4 5 6 7 8 9 10] I also … Read more Passing Array To Spark Lit Function

Byte String Spanning More Than One Line

I need to parse byte string which spans more than one line in the source code. Like this self.file.… Read more Byte String Spanning More Than One Line