List of commits:
Subject Hash Author Date (UTC)
bpo-28692: Deprecate using non-integer value for selecting a plural form in gettext. (#507) f6595983e08fe20cf06a2535d74d912c6dbb044f Serhiy Storchaka 2017-03-12 11:15:01
bpo-20185: Convert the resource moduel to Argument Clinic. (#545) 1989763f0d0858ce6274f5e1d725b5b8da91a780 Serhiy Storchaka 2017-03-12 11:08:30
bpo-29723: Consistently configure sys.path[0] (#575) d2977a3ae2cc6802921b1e3b6e9d13fcfbda872d Nick Coghlan 2017-03-12 10:38:32
bpo-29798: Handle git worktree in `make patchcheck` (#629) 6a6d090612dd7deaac2bc0399fad743e5e2db606 Nick Coghlan 2017-03-12 09:37:09
bpo-15695: Implemented StgDict.__sizeof__(). (#509) 8999caeb003ed292011e98b8a30746cce787a125 Serhiy Storchaka 2017-03-12 09:12:30
bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) 202fda55c2dffe27125703225e5af92254602dc6 Serhiy Storchaka 2017-03-12 08:10:47
bpo-20185: Convert the marshal module to Argument Clinic. (#541) 0767ad40bfe83525d2ba290cc6eb7c97ce01cdd6 Serhiy Storchaka 2017-03-12 07:20:15
bpo-29746: Update marshal docs to Python 3. (#547) c611a5b1d4fab0123bf622f06c3bfa510221dc32 Serhiy Storchaka 2017-03-12 06:53:22
bpo-29763: Use support.unlink instead of os.unlink (GH-624) 93710c152e6bcfffdf2f1f15bb5f75b013aef422 Zachary Ware 2017-03-12 04:10:07
bpo-29656: Handle PR branches in 'make patchcheck' (#302) 482f7a274fa52b7ba34ff308cd9acdcac9f41ba5 Nick Coghlan 2017-03-12 03:19:08
bpo-26121: Use C library implementation for math functions: (#515) 97553fdf9daa8231eb05a1ca9933a2b03b0bdad0 Serhiy Storchaka 2017-03-11 21:37:16
Only trigger AppVeyor on code or config changes (GH-611) c5d3bfea0b0bba34bc3cd517a12153e189c80556 Zachary Ware 2017-03-11 20:55:35
tempfile.rst: Fix some typos (GH-610) d3b8f98696b905367da3975f73b482bac380b51c Jelle Zijlstra 2017-03-11 17:34:55
bpo-20185: Convert float object implementation to Argument Clinic. (#543) b5c51d3dd95bbfde533655fb86ac0f96f771ba7b Serhiy Storchaka 2017-03-11 07:21:05
bpo-20185: Convert list object implementation to Argument Clinic. (#542) fdd42c481edba4261f861fc1dfe24bbd79b5a17a Serhiy Storchaka 2017-03-11 07:19:20
bpo-29770: remove outdated PYO related info (GH-590) 0710d754255e731e6fcc3f206b51db6156da17c8 Xiang Zhang 2017-03-11 05:02:52
bpo-29784: Fix the reference to shutil.copy in the docs (GH-602) 70ee0cd5c2a3dba82cb8e0c0742c012f9134c040 Mariatta 2017-03-11 02:17:21
bpo-28810: Document changes to CALL_FUNCTION opcodes (GH-250) 4b2a2a425a906c8e4eb8daee14ab1793e225f726 Ivan Levkivskyi 2017-03-10 22:52:35
bpo-29741: Clean up C implementations of BytesIO and StringIO. (#606) 740025478dcd0e9e4028507f32375c85f849fb07 orenmn 2017-03-10 22:52:01
bpo-28810: Document BUILD_TUPLE_UNPACK_WITH_CALL bytecode added in 3.6 (GH-239) 7e52c3e7aefb4cdaa0662fc01ff68a5e976b77ca Ivan Levkivskyi 2017-03-10 22:16:44
Commit f6595983e08fe20cf06a2535d74d912c6dbb044f - bpo-28692: Deprecate using non-integer value for selecting a plural form in gettext. (#507)
Author: Serhiy Storchaka
Author date (UTC): 2017-03-12 11:15
Committer name: GitHub
Committer date (UTC): 2017-03-12 11:15
Parent(s): 1989763f0d0858ce6274f5e1d725b5b8da91a780
Signer:
Signing key:
Signing status: N
Tree: d25d4e69e082af9db5f9cc469eabb93834b0bd7d
File Lines added Lines deleted
Doc/whatsnew/3.7.rst 4 0
Lib/gettext.py 4 0
Lib/test/test_gettext.py 6 3
Misc/NEWS 3 0
File Doc/whatsnew/3.7.rst changed (mode: 100644) (index 71ae10bbb1..4f84e6df28)
... ... Deprecated
180 180 both deprecated in Python 3.4 now emit :exc:`DeprecationWarning`. (Contributed both deprecated in Python 3.4 now emit :exc:`DeprecationWarning`. (Contributed
181 181 by Matthias Bussonnier in :issue:`29576`) by Matthias Bussonnier in :issue:`29576`)
182 182
183 - Using non-integer value for selecting a plural form in :mod:`gettext` is
184 now deprecated. It never correctly worked.
185 (Contributed by Serhiy Storchaka in :issue:`28692`.)
186
183 187
184 188 Removed Removed
185 189 ======= =======
File Lib/gettext.py changed (mode: 100644) (index 57d2c74982..aa1d55561f)
... ... def _as_int(n):
164 164 except TypeError: except TypeError:
165 165 raise TypeError('Plural value must be an integer, got %s' % raise TypeError('Plural value must be an integer, got %s' %
166 166 (n.__class__.__name__,)) from None (n.__class__.__name__,)) from None
167 import warnings
168 warnings.warn('Plural value must be an integer, got %s' %
169 (n.__class__.__name__,),
170 DeprecationWarning, 4)
167 171 return n return n
168 172
169 173 def c2py(plural): def c2py(plural):
File Lib/test/test_gettext.py changed (mode: 100644) (index a852443e68..7bfe747d3b)
... ... class PluralFormsTestCase(GettextBaseTest):
443 443 f = gettext.c2py('n != 1') f = gettext.c2py('n != 1')
444 444 self.assertEqual(f(1), 0) self.assertEqual(f(1), 0)
445 445 self.assertEqual(f(2), 1) self.assertEqual(f(2), 1)
446 self.assertEqual(f(1.0), 0)
447 self.assertEqual(f(2.0), 1)
448 self.assertEqual(f(1.1), 1)
446 with self.assertWarns(DeprecationWarning):
447 self.assertEqual(f(1.0), 0)
448 with self.assertWarns(DeprecationWarning):
449 self.assertEqual(f(2.0), 1)
450 with self.assertWarns(DeprecationWarning):
451 self.assertEqual(f(1.1), 1)
449 452 self.assertRaises(TypeError, f, '2') self.assertRaises(TypeError, f, '2')
450 453 self.assertRaises(TypeError, f, b'2') self.assertRaises(TypeError, f, b'2')
451 454 self.assertRaises(TypeError, f, []) self.assertRaises(TypeError, f, [])
File Misc/NEWS changed (mode: 100644) (index 694bc34441..03ca0dce38)
... ... Extension Modules
270 270 Library Library
271 271 ------- -------
272 272
273 - bpo-28692: Using non-integer value for selecting a plural form in gettext is
274 now deprecated.
275
273 276 - bpo-26121: Use C library implementation for math functions: - bpo-26121: Use C library implementation for math functions:
274 277 tgamma(), lgamma(), erf() and erfc(). tgamma(), lgamma(), erf() and erfc().
275 278
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