Gym: Version number.

Created on 31 Jan 2017  路  5Comments  路  Source: openai/gym

In order to print the version number of Gym, I currently have to do:

from gym.version import VERSION
print(VERSION)

But in Python it is more customary to do the following (https://www.python.org/dev/peps/pep-0396/):

import gym
print(gym.__version__)

Would it be possible for you to change this?

Thanks.

All 5 comments

Make a PR for it and have it merged. :-)

Agreed. If you make a PR for this, we'll be happy to merge it iN :)

I'm sorry but I'm not going to spend a few hours on setting up my Gym installation for making pull-requests, when you can make the change yourself in a few minutes. It would also take you longer to review a PR.

It really is up to you if you want to be in compliance with Python PEP standards.

@Hvass-Labs If that takes you a few hours I assume you never actually tried it yourself. Unfortunately I already did this one, but I would recommend that you try and do it yourself next time and you will see that it does not take a few hours once you know the process.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lbbc1117 picture lbbc1117  路  3Comments

zhan0903 picture zhan0903  路  4Comments

david8373 picture david8373  路  4Comments

RuofanKong picture RuofanKong  路  4Comments

Ettrig picture Ettrig  路  3Comments