[issue29074] repr doesn't give full result for this re math result

2016-12-28 Thread Matthew Barnett

Matthew Barnett added the comment:

Probably "...", although we also have to consider that the matched portion 
could in fact not be truncated but just happen to end with "...", although that 
would be a rare occurrence.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29074] repr doesn't give full result for this re math result

2016-12-26 Thread Philip Lee

Philip Lee added the comment:

I think so, the current behavior is  misleading 

在2016年12月27 00时08分, "R. David Murray"写道:

R. David Murray added the comment:

If it is truncated, should it end with '...' or [...]?

--
nosy: +r.david.murray

___
Python tracker 

___

--
nosy: +iMath

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29074] repr doesn't give full result for this re math result

2016-12-26 Thread R. David Murray

R. David Murray added the comment:

If it is truncated, should it end with '...' or [...]?

--
nosy: +r.david.murray

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29074] repr doesn't give full result for this re math result

2016-12-26 Thread Matthew Barnett

Matthew Barnett added the comment:

See issue 17087: "Improve the repr for regular expression match objects".

It was decided that it might be a bad idea to show the entire matched portion 
of the string because it could be very long, so it's shown truncated if 
necessary.

--
resolution:  -> not a bug
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue29074] repr doesn't give full result for this re math result

2016-12-26 Thread iMath

New submission from iMath:

I tested with Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC 
v.1900 32 bit (Intel)] on win32

re.search(r'http://v.pptv.com/show/.*?\.html.+', 
'http://v.pptv.com/show/2bwkox9SS4nsatI.html?rcc_src=P5') 
does give a match, but it show the result 
<_sre.SRE_Match object; span=(0, 54), 
match='http://v.pptv.com/show/2bwkox9SS4nsatI.html?rcc_s>
missing rc=P5' in IDLE

BTW, py2.7 works fine

--
components: Regular Expressions
messages: 284024
nosy: ezio.melotti, mrabarnett, redstone-cold
priority: normal
severity: normal
status: open
title: repr doesn't give full result for this re math result
type: behavior
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com