Skip to content
This repository was archived by the owner on Apr 24, 2024. It is now read-only.
This repository was archived by the owner on Apr 24, 2024. It is now read-only.

ConfigParser, varying use cases between Python 2/3 versions  #1

@austin-millan

Description

@austin-millan

Python2 doesn't work with your config.py file in ~/examples/, while Python3 works with all three config types (.py, .ini, .json).

Your example code:
api = bitstamp.Bitstamp('examples/config.py')

Result in Python 2
python example.py
Exception: While the config file was found, it was not configured correctly. Check for examples here: https://github.com/Pancho/bitstamp

Result in Python 3
python3 example.py
{'bids': [['2197.54000000',...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions