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

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

What's The Advantage Of Having Multi-line & Single-line String Literals In Python?

I know the triple quote strings are used as docstrings, but is there a real need to have two string… Read more What's The Advantage Of Having Multi-line & Single-line String Literals In Python?

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

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