So I wanna make a Python package with a bunch of class (e.g. String
, Number
) and I would like to collab.
- I wanna join the collab
So I wanna make a Python package with a bunch of class (e.g. String
, Number
) and I would like to collab.
Could you elaborate more on this collaboration?
@SnakeyKing what exactly would the classes purpose be? Can you elaborate more on what you are doing (you should lay out the full plan, so we can understand better).
Adding more methods, and making a better version of the normal types.
Well, I’m making a bunch of types/classes
Adding more methods.
class methods. for example, replace
is a method of str
.
so you could do:
mystr = str('Hello, *!')
mystr = mystr.replace('*', 'Joe')
all methods, or the extra ones?
__init__
__eq__
__ne__
__lt__
__gt__
__le__
__ge__
__add__
__sub__
__mul__
__truediv__
replace
__getitem__
__setitem__
__delitem__
lowercase
uppercase
__iadd__
__isub__
__imul__
__itruediv__
...
Maybe I’ll join this, but if I don’t, please save yourself a ton of time and inherit str
and int
.
I shall join all collaborations
this seems kinda useless but I’m bored so why not