GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — buffer protocol · Issue #10 · go-python/cpy3

buffer protocol #10

New issue
Copy link
New issue
Copy link
Open
Open
buffer protocol#10
Copy link
Labels
enhancementNew feature or requestNew feature or request

Description

@christian-korneck
christian-korneck
opened on May 30, 2022
Issue body actions

I wonder if it would make sense to add the Python3 C-API functions related to the Python buffer protocol. This might make it easier to share bytes between Go and Python? (i.e. io.Reader/io.Writer stuff).

https://docs.python.org/3/c-api/buffer.html

Activity

  1. christian-korneck
    added
    enhancementNew feature or requestNew feature or request
    on May 30, 2022
  2. aadog commented on Aug 12, 2022

    @aadog
    aadog
    on Aug 12, 2022
    More actions

    @christian-korneck your dream is complete

    Let's try it, python bindings cgo-less

    https://github.com/aadog/py3-go

  3. christian-korneck commented on Aug 15, 2022

    @christian-korneck
    christian-korneck
    on Aug 15, 2022
    CollaboratorAuthor
    More actions

    @aadog do you have a buffer protocol example?

  4. aadog commented on Aug 16, 2022

    @aadog
    aadog
    on Aug 16, 2022
    More actions

    What is he

    Reacted by Christian Korneck
  5. aadog commented on Aug 16, 2022

    @aadog
    aadog
    on Aug 16, 2022
    More actions

    go to python or python to go,They are done automatically

    string->str
    intT ->intT

    If it is not supported, please return * pyobject to convert manually, or modify pyconvert

    https://github.com/aadog/py3-go/blob/master/PyConvert.go

  6. aadog commented on Aug 16, 2022

    @aadog
    aadog
    on Aug 16, 2022
    More actions

    All this should be simple, but I don't know what type of byte should be converted to Python

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402520 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.