Load a str literal value. This is useful for more than just str literals; for example, method calls also require a PyObject * form for the name of the method.
(self, value: str, line: int = -1)
| 1514 | return Float(value, line) |
| 1515 | |
| 1516 | def load_str(self, value: str, line: int = -1) -> Value: |
| 1517 | """Load a str literal value. |
| 1518 | |
| 1519 | This is useful for more than just str literals; for example, method calls |
| 1520 | also require a PyObject * form for the name of the method. |
| 1521 | """ |
| 1522 | return self.add(LoadLiteral(value, str_rprimitive, line)) |
| 1523 | |
| 1524 | def load_bytes(self, value: bytes, line: int = -1) -> Value: |
| 1525 | """Load a bytes literal value.""" |
no test coverage detected