[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Oh, great! Thank you.

--
resolution:  -> out of date
stage:  -> resolved
status: open -> closed

___
Python tracker 

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



[issue24188] Signature objects not hashable

2015-05-14 Thread Yury Selivanov

Yury Selivanov added the comment:

Signatures and Parameters are already hash able in 3.5. Please close the issue.

--
nosy: +Yury.Selivanov

___
Python tracker 

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



[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Also, a workaround would be to id() the defaults when hashing.

--

___
Python tracker 

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



[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou

Antoine Pitrou added the comment:

But that kind of makes my point. While ([],) is not hashable, other tuples are 
hashable.

--

___
Python tracker 

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



[issue24188] Signature objects not hashable

2015-05-14 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

([],) is immutable, but is not hashable. If default values affect the hash, the 
signature can't be always hashable.

--
nosy: +serhiy.storchaka

___
Python tracker 

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



[issue24188] Signature objects not hashable

2015-05-14 Thread Antoine Pitrou

New submission from Antoine Pitrou:

inspect.Signature objects are immutable, but they are not hashable. It would be 
useful if they were.

(I would have a similar request for bound arguments but unfortunately their 
mutability may make it less desirable)

--
components: Library (Lib)
messages: 243164
nosy: pitrou, yselivanov
priority: normal
severity: normal
status: open
title: Signature objects not hashable
type: enhancement
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