gus-caribe / voidsafe Goto Github PK
View Code? Open in Web Editor NEWA "null-safe-like" approach to Python programming language.
License: MIT License
A "null-safe-like" approach to Python programming language.
License: MIT License
/examples
directory, including tabs to compare Python codeblocks with other null-aware
languages;README.md
for simpler ones;Add instructions about installing the package via PyPi.
Change "nonesafe" directory name to "voidsafe".
Do what's required to remove the following warning that appears while installing the package:
DEPRECATION: voidsafe is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at https://github.com/pypa/pip/issues/8559
Adding VS
as an alias for VOIDSAFE
for semantic purposes.
In the Python files it's a best practice to include the encoding on which that file was written for the interpreter to be "sure" of the encoding it will use to read the file.
It's typically the first line (or second, after shebang) of the file.
Here's an example (with shebang):
#!/usr/bin/python3
# -*- coding: UTF-8 -*-
When performing a coalescing assignment like the following, the protected values aren't being unwrapped:
foo: dict = {'bar': None}
VoidSafe(foo)['bar'] = ifnone << "default"
Include the Project containing the basic features, without unit tests covered.
The deliverable will be released as v0.1.0.
The examples files should have the "shebang" line indicating the binary that should be used to execute that specific file or it would have to be indicated as "globally" for all example files in the readme of the project indicating that all the examples should use that binary.
Examples:
IFNDEF
.Any
as _LeftType
of _UndefinedCoalesce
.A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.