What's the NSPR library for?


I know Panda used Squeak as the scripting language (I belive) before Python. I know that NSPR can be used for stuff like sockets (tcp/udp), threading etc… Why is the NSPR still included with Panda since Python has these capabilities as well?

I’m thinking maybe two reasons 1) It’s a hold-over from when you used Squeak 2) In case you want to use it instead of the Python functionality.


Remember that Panda is actually a C++ library, with Python bindings. So if we want to use networking within Panda itself, outside of Python–for instance, to implement PStats–we need to use a C++ networking library.


Thanks David. Makes sense, the more options the better I guess.