New submission from Serhiy Storchaka:

Currently most functions which accepts string only without embedded NUL 
character, raise TypeError. Proposed patch change exception type to more 
consistent ValueError. It also unifies error messages.

I have opened a discussion on Python-Dev.

----------
components: Interpreter Core
files: valueerror_embedded_nul_character.diff
keywords: patch
messages: 225447
nosy: serhiy.storchaka
priority: normal
severity: normal
stage: patch review
status: open
title: "embedded NUL character" exceptions
type: enhancement
versions: Python 3.5
Added file: 
http://bugs.python.org/file36394/valueerror_embedded_nul_character.diff

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue22215>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to