Parses the string representation of a Python boolean */
| 259 | Parses the string representation of a Python boolean |
| 260 | */ |
| 261 | inline bool parse_bool(const std::string& in) { |
| 262 | if (in == "True") |
| 263 | return true; |
| 264 | if (in == "False") |
| 265 | return false; |
| 266 | |
| 267 | fprintf(stderr, "Invalid python boolan."); |
| 268 | return false; |
| 269 | } |
| 270 | |
| 271 | /** |
| 272 | Parses the string representation of a Python str |