nimpylib icon indicating copy to clipboard operation
nimpylib copied to clipboard

Some python standard library functions ported to Nim

Results 8 nimpylib issues
Sort by recently updated
recently updated
newest added

Currently `pystring/index` here is: https://github.com/Yardanico/nimpylib/blob/2629eb09f09d7b50bcbc0ddf6d10822e64ec6595/src/pylib/string/pystring.nim#L16 which probably mimics the current Nim api for [strutils/find](https://nim-lang.org/docs/strutils.html#find%2Cstring%2Cstring%2CNatural%2Cint) Python docs state: 1. > Return the lowest index in the string where substring sub is...

Hello! This is an amazing project, good job. Whenever I try to do this I get `Error: undeclared identifier: 'def'` Is this possible to define these outside of `tonim:` given...

- [x] `abs()` - [x] `all()` - [x] `any()` - [ ] `ascii()` - [x] `bin()` - [x] `bool()` note: called `toBool` in pylib - [ ] ~~`breakpoint()`~~ Not really...

help wanted
in progress

It seems to me there are two possible solution: 1. provide a wrapper for non-nilable types and translate None for them for this wrapper constructor 2. provide a wrapper for...

It is entirely possible to scan a proc body for anythings matching `self.field = val`. As long as `val` is not `None`, it should be possible to use a generic...

`__sth__` for magic can't be used due to Nim's identifier syntax rules. However, anything easy to search-replace is fine as long as it wouldn't be a proper Python identifier anyway....