2 ms·
> Python3 program which hasn't crashed at some point due to me mixing-up string/bytes Not sure what that even is, but I'd point out that dynamically-typed ≠ Py
by mpweiher 5y ago
> Python3 program which hasn't crashed at some point due to me mixing-up string/bytes
Not sure what that even is, but I'd point out that dynamically-typed ≠ Python. In particular, the "hash languages" (Python, Ruby, JavaScript) seem to make it particularly easy to make a hash of things, but not due to the dynamic typing.
I've never had that problem with NSString and NSData. They are quite distinct.
> Python3 ... crunching numbers ... map instead of list
??
Why would you output a map when you are crunching numbers?
To get a "list", for example, I'd use an NSArray. It seems tricky to get an NSDictionary instead, since you have to explicitly ask for an NSDictionary in order to get one.