Gets the python string data in its underlying representation. For Python 2 byte strings, this function always returns `PyStringData::Utf8`, even if the bytes are not valid UTF-8. For unicode strings, returns the underlying representation used by Python.
(&self, py: Python)
| 268 | /// even if the bytes are not valid UTF-8. |
| 269 | /// For unicode strings, returns the underlying representation used by Python. |
| 270 | pub fn data(&self, py: Python) -> PyStringData { |
| 271 | self.data_impl(py) |
| 272 | } |
| 273 | |
| 274 | #[cfg(feature = "python27-sys")] |
| 275 | fn data_impl(&self, py: Python) -> PyStringData { |