FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Compare files manually. by jerjou · Pull Request #710 · GoogleCloudPlatform/python-docs-samples · GitHub

Compare files manually. - #710

Merged
theacodes merged 1 commit into
masterfrom
storage
Dec 13, 2016
Merged

Compare files manually.#710
theacodes merged 1 commit into
masterfrom
storage

Conversation

jerjou commented Dec 9, 2016

Copy link
Copy Markdown
Contributor

Addresses #707

googlebot added the cla: yes This human has signed the Contributor License Agreement. label Dec 9, 2016
jerjou assigned jerjou, theacodes and ryanmats and unassigned jerjou Dec 9, 2016

Copy link
Copy Markdown
Contributor

Hmm, I liked the idea of just closing the handle to the named temporary file and then using filecmp.

jerjou commented Dec 9, 2016

Copy link
Copy Markdown
Contributor Author

Oh. It just seemed less clean. eg:

  • You're now manually in charge of file cleanup, which feels like it should be the context manager's job
  • The use of filecmp with a filename when you've already got a handle on the file always felt a bit hacky.
  • The file comparison is now both inside and outside of the context manager, which breaks it up visually even though it's the same conceptual operation

Granted, this is a bit more verbose and low-level, but I feel like it flows better.

Copy link
Copy Markdown
Contributor

Can we just remove the file comparison altogether from this sample?

jerjou force-pushed the storage branch 2 times, most recently from 382ef96 to 249a2f2 Compare December 12, 2016 19:10

jerjou commented Dec 12, 2016

Copy link
Copy Markdown
Contributor Author

Oh yeah - sure. Apparently this file isn't even referenced in the docs anymore.
Done.

Comment thread storage/api/crud_object.py Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

remove this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ah. right.

ryanmats assigned theacodes and ryanmats and unassigned theacodes and ryanmats Dec 13, 2016
theacodes merged commit ca2d5fc into master Dec 13, 2016
theacodes deleted the storage branch December 13, 2016 18:15
Linchin added a commit that referenced this pull request Aug 18, 2025
* chore(python): Add Python 3.12

Source-Link: googleapis/synthtool@af16e6d
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:bacc3af03bff793a03add584537b36b5644342931ad989e3ba1171d3bd5399f5

* Add python 3.12 to setup.py

* add dependency for 3.12

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* update owlbot

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* undo owlbot change

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
Co-authored-by: Linchin <lingqing.gan@gmail.com>
chalmerlowe pushed a commit that referenced this pull request Apr 7, 2026
* samples: add endpoint sample

* lint

* properly check endpoint from client
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL