What are some strategies to write python code that works in CPython, Jython and IronPython

前端 未结 6 1907
忘了有多久
忘了有多久 2021-02-02 14:55

Having tries to target two of these environments at the same time I can safely say the if you have to use a database etc. you end up having to write unique code for that environ

6条回答
  •  挽巷
    挽巷 (楼主)
    2021-02-02 15:13

    There are two major issues at play here...

    Firstly, to my knowledge, only CPython has RAII - you have to close your own resources in Jython, Ironpython, etc.

    And Secondly, as has been mentioned, is thread safety.

提交回复
热议问题