[issue28612] str.translate needs a mapping example

2016-12-30 Thread Gaurav Tatke
Gaurav Tatke added the comment: Should a user be suggested to use str.translate() for the use case where user only wants to keep certain characters and strip off everything else? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.p

[issue28612] str.translate needs a mapping example

2016-12-30 Thread Gaurav Tatke
Gaurav Tatke added the comment: Hi, Pardon my ignorance, I am new to this but have below queries/thoughts - 1. Why would we say that adding new keys during lookup phase is an unpleasant side-effect? From what I understood by docs, one of the main reasons to use defaultdicts is to be able

[issue28612] str.translate needs a mapping example

2016-12-29 Thread Gaurav Tatke
Gaurav Tatke added the comment: Hi, I am new to Python and want to contribute. I am attaching a patch having required example of using defaultdict with translate. Please let me know if anything needs to be changed. I have tested the example and also the html doc in my local. Regards, Gaurav

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2016-12-27 Thread Gaurav Tatke
Gaurav Tatke added the comment: Hi, I am new to python and would like to contribute. I find this issue easy so changed the documentation of datetime module. I tested it with sphinx. Attaching a patch. Please let me know if it is correct or needs changes. Appreciate it! Regards, Gaurav

[issue21150] Add quick links table to argparse docs

2016-12-19 Thread Gaurav Tatke
Gaurav Tatke added the comment: Hello All, I would like to help with this issue. I am a beginner. I am attaching a 'SampleOfSummaryTable.PNG' file which I think is one way of organizing summary table. I think if we put quick links of function parameters in summary table then it will make