New GitHub issue #119067 from RustoMCSpit:<br>
<hr>
<pre>
# Feature or enhancement
### Proposal:
```python
`# import random as rd
import string
def passwordStrength(password):
quality = 0
if password[0].isdigit():
quality += 1
print (password[0])
print (quality)
def passwordMake(length):
password = []
for x in range (length):
password.append(rd.choice(string.printable))
password = ' '.join(password)
password = ''.join(password.split())
print (password)
passwordStrength(password)
passwordMake(rd.randint(6, 20))
`
```
https://github.com/python/cpython/blob/3.12/Lib/string.py
in this, there is no convenient way just to have it produce characters that aren't whitespace.
the above is my roundabout method of trying to get around this.
i suggest a new string, visible -- a string containing all ASCII characters considered printable (excluding whitespace)
### Has this already been discussed elsewhere?
This is a minor feature, which does not need previous discussion elsewhere
### Links to previous discussion of this feature:
_No response_
</pre>
<hr>
<a href="https://github.com/python/cpython/issues/119067">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>