List of commits:
Subject Hash Author Date (UTC)
bpo-29957: change LBYL key lookup to dict.setdefault (#938) 11fa3c7cd1b151e302d4eee0369cafbaf151c8fb Michael Selik 2017-04-02 06:02:31
bpo-26947: DOC: clarify wording on hashable in glossary (#948) 64c887ab3a400cf91bde4f0c5ef69eacc88bc5e1 csabella 2017-04-02 02:50:47
bpo-29949: Fix set memory usage regression (GH-943) e82cf8675bacd7a03de508ed11865fc2701dcef5 INADA Naoki 2017-04-01 08:20:25
Revert "bpo-29763: Use unittest cleanup in test_site (GH-841)" (GH-942) cd815edf012dc6dd20dfeef91951270e96607616 Zachary Ware 2017-04-01 06:29:31
bpo-29931 fix __lt__ check in ipaddress.ip_interface for both v4 and v6. (#879) 7bd8d3e794782582a4ad1c9749424fff86802c3e s-sanjay 2017-04-01 06:09:53
Add helpful explaination to test_password_manager tests. (#936) 1f5425ff69ea0531d869b4f9fa28bd3f66ca3de7 Senthil Kumaran 2017-04-01 05:27:27
bpo-29763: Use unittest cleanup in test_site (GH-841) b94d7fd4efa877d649cea9c8125c8869ffe0c32d Zachary Ware 2017-04-01 05:18:23
Link to the devguide's PR guidelines (GH-932) 1e5766ff436cea8871042d3b3be571e04b4058f9 Brett Cannon 2017-03-31 21:19:04
bpo-29953: Fix memory leaks in the replace() method of datetime and time (#927) 314d6fca36a4eaa0541218431d14804fadec6488 Serhiy Storchaka 2017-03-31 19:48:16
Fix spurious MemoryError introduced by PR #886. (#930) 06bb4873d6a9ac303701d08a851d6cd9a51e02a3 T. Wouters 2017-03-31 17:10:19
bpo-29941: Assert fixes (#886) a00c3fd12d421e41b769debd7df717d17b0deed5 T. Wouters 2017-03-31 16:14:41
suppress compiler warnings in _ctypes_test (#902) 164d30eb1e66575dafee6af4fca4cbf52c7fbe6a Benjamin Peterson 2017-03-31 11:05:25
bpo-29952: Use usual terminology of dict (GH-917) cdcac039fb447f2ab04efcacbe663751bb2cb4ec cocoatomo 2017-03-31 05:48:49
Remove catching OSError in ftphandler test. Only URLError is raised in urllib.request module. (#918) ed3dd1c02af6872bd0748f7b9a5dadb89f7b830f Senthil Kumaran 2017-03-31 05:43:05
bpo-29928: Add f-string to the Glossary (GH-864) 33db068dac7686e37736f7ecf8abb2aee0345cf2 Mariatta 2017-03-30 19:12:18
bpo-29946: Fix "sqrtpi defined but not used" (#908) 7a26464c6496c29244072fdd80f9b92c68174742 Louie Lu 2017-03-30 17:05:10
bpo-29942: Fix the use of recursion in itertools.chain.from_iterable. (#889) 5466d4af5fe76ec0a5fbc8a05675287d9e8e9d14 T. Wouters 2017-03-30 16:58:35
bpo-10030: Sped up reading encrypted ZIP files by 2 times. (#550) 06e522521c06671b4559eecf9e2a185c2d62c141 Serhiy Storchaka 2017-03-30 16:09:08
bpo-29935: Fixed error messages in the index() method of tuple, list and deque (#887) d4edfc9abffca965e76ebc5957a92031a4d6c4d4 Serhiy Storchaka 2017-03-30 15:29:23
bpo-29204: Emit warnings for already deprecated ElementTree features. (#773) 762ec97ea68a1126b8855996c61fa8239dc9fff7 Serhiy Storchaka 2017-03-30 15:12:06
Commit 11fa3c7cd1b151e302d4eee0369cafbaf151c8fb - bpo-29957: change LBYL key lookup to dict.setdefault (#938)
* change LBYL key lookup to dict.setdefault

The ``results`` was constructed as a defaultdict and we could simply
delete the check ``if key not in results``. However, I think it's safer
to use dict.setdefault as I'm not sure whether the caller expects a
regular dict or defaultdict.

* add name to the acknowledgements file

* use defaultdict to make the key-lookup cleaner
Author: Michael Selik
Author date (UTC): 2017-04-02 06:02
Committer name: Benjamin Peterson
Committer date (UTC): 2017-04-02 06:02
Parent(s): 64c887ab3a400cf91bde4f0c5ef69eacc88bc5e1
Signer:
Signing key:
Signing status: N
Tree: 73bd2a704aa1aeccf39d06d729826b48637b093d
File Lines added Lines deleted
Lib/lib2to3/btm_matcher.py 0 5
Misc/ACKS 1 0
File Lib/lib2to3/btm_matcher.py changed (mode: 100644) (index eabe1a71a6..3b78868038)
... ... class BottomMatcher(object):
117 117 #token matches #token matches
118 118 current_ac_node = current_ac_node.transition_table[node_token] current_ac_node = current_ac_node.transition_table[node_token]
119 119 for fixer in current_ac_node.fixers: for fixer in current_ac_node.fixers:
120 if not fixer in results:
121 results[fixer] = []
122 120 results[fixer].append(current_ast_node) results[fixer].append(current_ast_node)
123
124 121 else: else:
125 122 #matching failed, reset automaton #matching failed, reset automaton
126 123 current_ac_node = self.root current_ac_node = self.root
 
... ... class BottomMatcher(object):
134 131 #token matches #token matches
135 132 current_ac_node = current_ac_node.transition_table[node_token] current_ac_node = current_ac_node.transition_table[node_token]
136 133 for fixer in current_ac_node.fixers: for fixer in current_ac_node.fixers:
137 if not fixer in results.keys():
138 results[fixer] = []
139 134 results[fixer].append(current_ast_node) results[fixer].append(current_ast_node)
140 135
141 136 current_ast_node = current_ast_node.parent current_ast_node = current_ast_node.parent
File Misc/ACKS changed (mode: 100644) (index 21642065f4..379ffc554a)
... ... Steven Scott
1376 1376 Nick Seidenman Nick Seidenman
1377 1377 Michael Seifert Michael Seifert
1378 1378 Žiga Seilnacht Žiga Seilnacht
1379 Michael Selik
1379 1380 Yury Selivanov Yury Selivanov
1380 1381 Fred Sells Fred Sells
1381 1382 Jiwon Seo Jiwon Seo
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/benf_wspdigital/cpython

Clone this repository using git:
git clone git://git.rocketgit.com/user/benf_wspdigital/cpython

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main