This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author mark.dickinson
Recipients Au Vo, mark.dickinson, remi.lapeyre, rhettinger, skrah, steven.daprano, tim.peters
Date 2019-02-19.08:35:53
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1550565353.71.0.781117925376.issue36028@roundup.psfhosted.org>
In-reply-to
Content
> Unfortunately, there's little information about how Trinket is implemented. Is it CPython-based?

From a little playing around, Trinket only provides a subset of Python (one might say "batteries not included"), and it's not clear what its basis is. None of `sys.version_info`, `sys.platform`, `sys.float_info`, `sys.float_repr_style`, `int.bit_length` or `math.fmod` was available in my Python 2 tests.

1 % 0.1 gives 0.1, but 1 // 0.1 gives 10, so the invariant that Tim mentions is broken on Trinket.

@Au Vo: it looks as though you should take this up with the Trinket developers. It looks like a problem with their Python-subset implementation.
History
Date User Action Args
2019-02-19 08:35:53mark.dickinsonsetrecipients: + mark.dickinson, tim.peters, rhettinger, steven.daprano, skrah, remi.lapeyre, Au Vo
2019-02-19 08:35:53mark.dickinsonsetmessageid: <1550565353.71.0.781117925376.issue36028@roundup.psfhosted.org>
2019-02-19 08:35:53mark.dickinsonlinkissue36028 messages
2019-02-19 08:35:53mark.dickinsoncreate