Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Unimplemented functions in _codecs do not accept any parameters #268

Closed
ironpythonbot opened this issue Dec 9, 2014 · 0 comments
Closed
Labels

Comments

@ironpythonbot
Copy link

The following functions in the _codecs module should accept at least one
string parameter:

  • codecs.unicode_escape_encode
  • codecs.unicode_escape_decode
  • codecs.readbuffer_encode
  • codecs.mbcs_encode
  • codecs.mbcs_decode
  • codecs.charbuffer_encode

They do not and the only way to tell that these functions have not been
implemented in IronPython is to call them without any parameters which throws
a NotImplementedError exception.

A NotImplementedError exception should be thrown when the correct number of
string parameters (i.e., 1 or 2) have been used and a TypeError exception
should be thrown when no parameters have been provided.

Work Item Details

Original CodePlex Issue: Issue 4563
Status: Active
Reason Closed: Unassigned
Assigned to: Unassigned
Reported on: Oct 19, 2006 at 11:59 PM
Reported by: dfugate
Updated on: Feb 22, 2013 at 2:16 AM
Updated by: jdhardy
Test: test_codecs.py

@slozier slozier removed the untriaged label Oct 26, 2016
slozier added a commit to slozier/main that referenced this issue Oct 26, 2016
@slide slide added the 2.7.7 label Oct 26, 2016
@slide slide closed this as completed in 152fbcd Oct 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants