exaloop / exaloop/codon

Throws error on str.join(str, Generator[pyobj])

Open
#318 3 comments 0 reactions 2 assignees Claimed by @inumanag View on GitHub
enhancement stdlib
Dominant language
Python
Stars
16.8k
Forks
603
Avg merge
4d 23h
Merged PRs (30d)
6

Description

The code:

from python import re
regexPattern = '|'.join(map(re.escape, delimiters))

which was inspired by:
https://stackoverflow.com/questions/4998629/split-string-with-multiple-delimiters-in-python

and which works fine in Python (using 'import re' rather than "from python import re'),
in Codon throws an error:
error: 'str' object has no method 'join' with arguments (str, Generator[pyobj])

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.