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 — Compare files manually. by jerjou · Pull Request #710 · GoogleCloudPlatform/python-docs-samples

Conversation

@jerjou

@jerjou jerjou commented Dec 9, 2016

Copy link
Copy Markdown
Contributor

Addresses #707

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

theacodes commented 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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@jerjou

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@theacodes

theacodes commented Dec 12, 2016

Copy link
Copy Markdown
Contributor

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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

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.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

theacodes
theacodes reviewed Dec 12, 2016
View reviewed changes
Comment thread storage/api/crud_object.py Outdated

@theacodes theacodes Dec 12, 2016

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

remove this?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@jerjou jerjou Dec 12, 2016

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Ah. right.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Jerjou Cheng
Remove unnecessary file comparison.
8df54e7
@jerjou
jerjou force-pushed the storage branch from 249a2f2 to 8df54e7 Compare December 12, 2016 19:15
@ryanmats ryanmats assigned theacodes and ryanmats and unassigned theacodes and ryanmats Dec 13, 2016
@theacodes
theacodes merged commit ca2d5fc into master Dec 13, 2016
@theacodes
theacodes deleted the storage branch December 13, 2016 18:15
Linchin added a commit that referenced this pull request Aug 18, 2025
@gcf-owl-bot @parthea @Linchin
chore(python): Add Python 3.12 (#710)
60745d7
* 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 <[email protected]>
Co-authored-by: Linchin <[email protected]>
@Linchin Linchin mentioned this pull request Aug 18, 2025
chore: migrate handwritten samples from googleapis/python-bigquery-storage #13543
Merged
9 tasks
chalmerlowe pushed a commit that referenced this pull request Apr 7, 2026
Aaron Gabriel Neyer
samples: add endpoint sample (#710)
a73aca8
* samples: add endpoint sample

* lint

* properly check endpoint from client
@chalmerlowe chalmerlowe mentioned this pull request Apr 7, 2026
migrate code from googleapis/python-storage #13989
Merged
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@theacodes theacodes theacodes left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@theacodes theacodes

@ryanmats ryanmats

Labels

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

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@jerjou @theacodes @googlebot @ryanmats
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — 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.