TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Python 3.4 supports only 100 regex groups

26 pointsby MosheZadaover 9 years ago

6 comments

namtracover 9 years ago
I guess you meant Python <i>3.4</i> because 3.5 has no limitation: <a href="https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;blob&#x2F;3.5&#x2F;Lib&#x2F;sre_compile.py" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;blob&#x2F;3.5&#x2F;Lib&#x2F;sre_compile.p...</a>
评论 #11140129 未加载
orfover 9 years ago
Some might say if you need 100+ regex groups you have other problems...
评论 #11140596 未加载
评论 #11140463 未加载
评论 #11140723 未加载
评论 #11140759 未加载
评论 #11140466 未加载
0x0over 9 years ago
<a href="https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;commit&#x2F;33455fe85760e0173eeecef52c76de4240e10663#diff-5812393a306237111d8f76f73783e386" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;python&#x2F;cpython&#x2F;commit&#x2F;33455fe85760e0173ee...</a>
评论 #11140410 未加载
agumonkeyover 9 years ago
I&#x27;d like to see someone type a regex with 100 capturing groups.
评论 #11140782 未加载
lucb1eover 9 years ago
Cpython, right? Not python the language,if I understand this correctly.
rnhmjojover 9 years ago
Yeah, like GHC supporting only up to 62-tuple. Very limiting.