lgrahl / scripthookvpy3k

An ASI plugin for Grand Theft Auto V which allows running scripts written in Python 3 in game.
MIT License
50 stars 13 forks source link

Use with statement for natives #16

Open lgrahl opened 9 years ago

lgrahl commented 9 years ago

Some native functions are perfect candidates for the with statement. For example: STREAMING::REQUEST_MODEL and STREAMING::SET_MODEL_AS_NO_LONGER_NEEDED (which probably uses reference counting).