Skip to content
This repository was archived by the owner on Feb 23, 2026. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/proto-plus-python
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.17.0
Choose a base ref
...
head repository: googleapis/proto-plus-python
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.18.0
Choose a head ref
  • 2 commits
  • 6 files changed
  • 2 contributors

Commits on Mar 16, 2021

  1. feat: add copy_from method for field assignment (#215)

    Because of implementation detatils of the underlying protocol buffers
    runtime, assigning to a proto-plus message field is achieved by
    copying, not by updating references. This can lead to surprising and
    unintuitive behavior for developers who are expecting python object
    behavior, e.g. reference aliases.
    
    This PR adds a 'Message.copy_from' method that is semantically
    identical to regular assignment. This can be used at the discretion of
    the developer to clarify expected behavior.
    software-dov authored Mar 16, 2021
    Configuration menu
    Copy the full SHA
    11c3e58 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5c74cf4 View commit details
    Browse the repository at this point in the history
Loading