-
This is a rather confusing usage of `dict`. Idiomatic approach for this case (at least in C) would be using of bitmask:
```py
QUERY_PRESET_MST = 0x1
-
There's a ton of new `enum` features in Python 3.11 that mypy doesn't yet support:
- [x] `enum.property`
- [ ] `enum.verify`
- [x] `enum.(non)member`
- [x] `ReprEnum`
- [ ] `StrEnum`
---
…
-
## Problem
When declaring objects (e,g, types, members, functions) in the cpp domain, sphinx accepts
arbitrary spacing between types, cv-qualifiers and ref-qualifiers. It then produces output
in …
-
_From @glopesdev on January 11, 2017 22:28_
Currently, initializing a multidimensional array requires something like:
```
m = Array.CreateInstance(int, 3, 3)
m[0,0] = 1
m[0,1] = 2
...
```
…
slide updated
3 years ago
-
We can use the extension API to create a custom namespace for tidypolars methods that work directly on polars DataFrames and Expressions.
Open to suggestions on whether to use `tp` or `r` as the na…
-
## Preamble
This is a tracking issue summarizing the existing pain points in **Python** front-ends generated by `jsii-pacmak`. Members of the community are more than welcome to contribute to this, …
-
Currently the package is nested as `amazon.ion`, this is somewhat verbose and requires the use of _namespace packages_ which have idiomatic support in Python 2, but are non-standard. I propose we sho…
-
Thanks for a useful library!
astunparse doesn't special case docstrings:
```
>>> print(astunparse.unparse(ast.parse('''def f(): """multi\n line\n docstring\n """ ''')))
def f():
…
-
What is the idiomatic way in Python-RQ to handle dependent jobs, when the job they depend on fails?
I work on a media transformation service. I have a download job, on this job depends a transforma…
-
In C all strings are terminated by a null byte (0x0), which means that strings using the idiomatic C representation cannot contain null.
However, many languages, including Python and C# support strin…