These are chat archives for pybee/general

19th
Sep 2016
Russell Keith-Magee
@freakboy3742
Sep 19 2016 03:12
@jstoebel re: datetime - Fantastic! Have fun :-)
Russell Keith-Magee
@freakboy3742
Sep 19 2016 03:27
@jstoebel As for the comparison - there shouldn’t be any type casting required. If you have two variables i and j; i.__lt__(j) should do the comparison you need.
Christopher Swenson
@swenson
Sep 19 2016 06:54
oh. so, datetime is wrritten in Python. So, theoretically (once all of the class inheritance is working), it should Just Work
and as soon as we load the module system
however, @jstoebel , there is some stuff in the time module that it uses, though, that we'll need implemented
mktime, struct_time, localtime, gmtime, etc.
Russell Keith-Magee
@freakboy3742
Sep 19 2016 07:59
Yes - it’s just the “low level” stuff needs to be implemented - but implementing that in Javascript won’t necessarily be trivial.
Jacob Stoebel
@jstoebel
Sep 19 2016 12:43
@freakboy3742 @swenson thanks for the input. I should also mention that I'm still a beginner when it comes to C so I can't promise anything. I'm glad for the challenge though.
Jacob Stoebel
@jstoebel
Sep 19 2016 13:02
This message was deleted
Jacob Stoebel
@jstoebel
Sep 19 2016 13:09
Also, regarding List > List my problem was that I was using i > j which wont' work because Javascript. Instead you have to use i.__gt__(j).
Christopher Swenson
@swenson
Sep 19 2016 16:53
yep! Also, you shouldn't need to know C to really do any of this I hope :)