Passionate Pythonista. Sometimes Golang, Swift, JS. YAML ain't my language.
- Colorado
Pinned Loading
-
Recursive dictionary merge in Python
Recursive dictionary merge in Python 1# Copyright 2016-2022 Paul Durivage
2#
3# Licensed under the Apache License, Version 2.0 (the "License");
4# you may not use this file except in compliance with the License.
5# You may obtain a copy of the License at
-
google-cloud-build-command-wrapper
google-cloud-build-command-wrapper PublicA thin command wrapper for use inside Google Cloud Build
-
-
perpetual-touch-id-for-sudo
perpetual-touch-id-for-sudo PublicEnables Touch ID for sudo automagically after OS updates screw it up!
-
Better argparse.FileType - lazily op...
Better argparse.FileType - lazily open files passed as arguments rather than them being opened immediately 1import argparse
2import pathlib
3from typing import IO, Self
45 -
os.chdir, but a context manager
os.chdir, but a context manager 1class Chdir:
2def __init__(self, chdir: str | pathlib.Path):
3self._pwd = os.getcwd()
4self._chdir = chdir
5
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.