Itertools library for GDScript!

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Ocete

Hey Godot people!

I’m a student interested in working on a little project for Godot during the Google Summer of Code (more info here: ). The project would consist of implementing Itertools Phyton library, which has different utilities to work very efficiently with iterators, for Godot. Itertools official documentation can be found here: itertools — Functions creating iterators for efficient looping — Python 3.12.0 documentation

Now the question is, do you think it would be useful to have these methods in GDScript? Of course, this project has no sense if they aren’t useful.


:bust_in_silhouette: Reply From: Bartosz

Thanks for taking interest in working on Godot, I think you should post issue on official repository on github. There devs will see it instantly and can properly answer your question and discus details of integrating itertools

I just did, thanks!

Ocete | 2018-03-22 19:45

:bust_in_silhouette: Reply From: kidscancode

I would love to have itertools in GDScript. While I love the language, I do find myself missing Python features for dealing with iterators. It would be great to have generators, too!

That’s great! Any other Python features that you’d like to have on GDScript? Besides slicing, which I’ll be taking in consideration for my project, too.

Ocete | 2018-03-22 19:47