[issue18165] Add 'unexpected_type' to TypeError

2019-04-26 Thread Mark Lawrence


Change by Mark Lawrence :


--
nosy:  -BreamoreBoy

___
Python tracker 

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



[issue18165] Add 'unexpected_type' to TypeError

2014-10-06 Thread Brett Cannon

Brett Cannon added the comment:

There's actually nothing to remind here since there is no one waiting on input 
from anyone. Plus this particular issue is covered by 
http://legacy.python.org/dev/peps/pep-0473/ .

--

___
Python tracker 

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



[issue18165] Add 'unexpected_type' to TypeError

2014-10-05 Thread Mark Lawrence

Mark Lawrence added the comment:

Just a gentle reminder guys.

--
nosy: +BreamoreBoy
versions: +Python 3.5 -Python 3.4

___
Python tracker 

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



[issue18165] Add 'unexpected_type' to TypeError

2013-06-15 Thread Ezio Melotti

Changes by Ezio Melotti :


--
nosy: +ezio.melotti

___
Python tracker 

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



[issue18165] Add 'unexpected_type' to TypeError

2013-06-07 Thread Barry A. Warsaw

Changes by Barry A. Warsaw :


--
nosy: +barry

___
Python tracker 

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



[issue18165] Add 'unexpected_type' to TypeError

2013-06-07 Thread Brett Cannon

New submission from Brett Cannon:

TypeError could grow an 'unexpected_type' attribute to store the type of the 
argument that was used to trigger the exception. Since types are expected to 
not be deleted there is no GC worry.

Having an 'expected' attribute makes no sense in the face of a union of types, 
etc. (unless the assumption of a frozenset is made for the attribute). Plus 
exceptions typically do not contain info on what would have been acceptable 
(although in this instance it may make sense).

--
components: Interpreter Core
messages: 190780
nosy: brett.cannon
priority: normal
severity: normal
stage: test needed
status: open
title: Add 'unexpected_type' to TypeError
type: enhancement
versions: Python 3.4

___
Python tracker 

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