chiphuyen / chiphuyen/python-is-cool
forced named arguements
Open
- Dominant language
- Jupyter Notebook
- Stars
- 3.7k
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Will it be cool to add forced-named arguments to this list?
```python
def foo(pos, *, forcenamed):
print(pos, forcenamed)
```
```python
>>> foo(pos=10, forcenamed=20)
10 20
```
```python
>>> foo(10, forcenamed=20)
10 20
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.