[issue39949] truncating match in regular expression match objects repr

2020-06-18 Thread Seth Troisi
Seth Troisi added the comment: I was thinking about how to add the end quote and found these weird cases: >>> "asdf'asdf'asdf" "asdf'asdf'asdf" >>> "asdf\"asdf\"asdf" 'asdf"asdf"asdf' >>> "asdf\"a

[issue39949] truncating match in regular expression match objects repr

2020-06-16 Thread Seth Troisi
Seth Troisi added the comment: @matpi The current behavior is for the right quote to not appear I kept this behavior but happy to consider changing that. See the linked patch for examples -- ___ Python tracker <https://bugs.python.

[issue39949] truncating match in regular expression match objects repr

2020-06-16 Thread Seth Troisi
Change by Seth Troisi : -- keywords: +patch pull_requests: +20100 stage: needs patch -> patch review pull_request: https://github.com/python/cpython/pull/20922 ___ Python tracker <https://bugs.python.org/issu

[issue39949] truncating match in regular expression match objects repr

2020-06-16 Thread Seth Troisi
Seth Troisi added the comment: I didn't propose a patch before because I was unsure of decision. Now that there is a +1 from Raymond I'll working on a patch and some documentation. Expect a patch within the week. -- ___ Python tracker <ht

[issue39949] truncating match in regular expression match objects repr

2020-03-24 Thread Seth Troisi
Change by Seth Troisi : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue39949> ___ ___

[issue39949] truncating match in regular expression match objects repr

2020-03-12 Thread Seth Troisi
New submission from Seth Troisi : Following on https://bugs.python.org/issue17087 Today I was mystified by why a regex wasn't working. >>> import re >>> re.match(r'.{10}', 'A'*49+'B') <_sre.SRE_Match object; span=(0, 10), match='AA'> >>

[issue39318] NamedTemporaryFile could cause double-close on an fd if _TemporaryFileWrapper throws

2020-01-13 Thread Seth Troisi
Change by Seth Troisi : -- nosy: +Seth.Troisi ___ Python tracker <https://bugs.python.org/issue39318> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12162] Documentation about re \number

2011-05-23 Thread Seth Troisi
New submission from Seth Troisi brain...@gmail.com: It would be nice to clarify re documentation on how to use \number. current documentation lists three half examples: (.+) \1 matches 'the the' or '55 55', but not 'the end' (note the space after the group). This is rather confusing (at least

[issue12162] Documentation about re \number

2011-05-23 Thread Seth Troisi
Seth Troisi brain...@gmail.com added the comment: Given David Murray's input I think the example would be best done as re.search(r'(\w+) \1', can you do the can can?) # Matches the duplicate can _sre.SRE_Match object at ... I want to stress that the documentation is not wrong