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/2005-September/056025.html below:

[Python-Dev] String views

[Python-Dev] String views [Python-Dev] String viewsStephen J. Turnbull stephen at xemacs.org
Fri Sep 2 07:59:45 CEST 2005
>>>>> "Steve" == Steve Holden <steve at holdenweb.com> writes:

    Steve> Since Python strings *can* contain embedded NULs, doesn't
    Steve> that rather poo on the idea of passing pointers to their
    Steve> data to C functions as things stand?

I think it's a "consenting adults" issue.

Ie, C programmers always face the issue of "Do I dare strfry() this
char[]?"  I don't see what difference it makes that the C program in
question is being linked with Python, or that the source of the data
is a Python string.  He's chosen to program in C, let him get on with it.

-- 
School of Systems and Information Engineering http://turnbull.sk.tsukuba.ac.jp
University of Tsukuba                    Tennodai 1-1-1 Tsukuba 305-8573 JAPAN
               Ask not how you can "do" free software business;
              ask what your business can "do for" free software.
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