Jul-29-2019, 08:15 PM
Not so much complicated, as counterintuitive to a n00b. In fairness my latest versions of Perl seem to require even more levels of obscurantism in dealing with Arrays of Arrays (AoA). Modules that worked before are giving problems now.
https://perldoc.perl.org/perldsc.html
But it seems that ITERTOOLS is what I am looking for
https://docs.python.org/3/library/itertools.html
I realize every language has data types, but some seem more 'duck typed' to certain types than others. Perl concentrates on string datatypes (think $_) but its array parsing (@_) complicates function arguments. Python seems more directed at simplifying array data (such as tuples imtead of pointers/references).
I definitely need to get used to the 'for...in' (vs foreach) syntax.
What I particularly enjoy about Python is the ease and simplicity of making basic internet connections and parsing data. Perl can aslo do it, but the scripts I have cobbled together for that purpose are excruciating, to say the least.
But as a n00b, only one question remains: is there a way to quickly search to see what method belongs to what module in the standard library (or Pypi)?
For example, I found a code snippet calling iterlist(), apparently from an import, but no module on Pypi with it specifically as a method PyDash and IterMark come up, but it does not have the specific function.
https://perldoc.perl.org/perldsc.html
But it seems that ITERTOOLS is what I am looking for
https://docs.python.org/3/library/itertools.html
I realize every language has data types, but some seem more 'duck typed' to certain types than others. Perl concentrates on string datatypes (think $_) but its array parsing (@_) complicates function arguments. Python seems more directed at simplifying array data (such as tuples imtead of pointers/references).
I definitely need to get used to the 'for...in' (vs foreach) syntax.
What I particularly enjoy about Python is the ease and simplicity of making basic internet connections and parsing data. Perl can aslo do it, but the scripts I have cobbled together for that purpose are excruciating, to say the least.
But as a n00b, only one question remains: is there a way to quickly search to see what method belongs to what module in the standard library (or Pypi)?
For example, I found a code snippet calling iterlist(), apparently from an import, but no module on Pypi with it specifically as a method PyDash and IterMark come up, but it does not have the specific function.