Message307852
| Author |
talkless |
| Recipients |
bethard, louielu, paul.j3, pitrou, talkless, wolma |
| Date |
2017年12月08日.16:20:17 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<6961dc72-81a4-a1f0-2dd0-0f2398be3c7a@gmail.com> |
| In-reply-to |
<1512584898.53.0.213398074469.issue18943@psf.upfronthosting.co.za> |
| Content |
On 2017年12月06日 20:28, paul j3 wrote:
> The default value is used *if the flag is not provided at all.*
>
> "nargs='?'" provides a third option, assigning the 'const' value *if the flag is used without an argument*.
This did a "click" in my head. It works now with `nargs='?'` and `const='MediaProfile000'` as expected, thanks!
I am really sorry for the noise, due to misunderstanding while reading (skipping-throuhg?) Python documentation. |
|