A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2014-January/131397.html below:

[Python-Dev] PEP 460 reboot

[Python-Dev] PEP 460 reboot [Python-Dev] PEP 460 rebootEthan Furman ethan at stoneleaf.us
Mon Jan 13 16:33:56 CET 2014
On 01/13/2014 01:49 AM, Mark Shannon wrote:
>
> '%s' can't work in 3.5, as we must differentiate between
> strings which meed to be encoded and bytes which don't.

I don't understand this objection:

def __mod__(self, other):
     if isinstance(other, bytes):
          # no encoding necessary
     elif isinstance(other, str):
          # payback time!
          other = ascii(other)

Where is the problem?

--
~Ethan~
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4