-
-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy path3.1.po
More file actions
710 lines (596 loc) · 23.1 KB
/
3.1.po
File metadata and controls
710 lines (596 loc) · 23.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
# SOME DESCRIPTIVE TITLE.
# Copyright (C) 2001-2017, Python Software Foundation
# This file is distributed under the same license as the Python package.
# FIRST AUTHOR <EMAIL@ADDRESS>, 2017.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: Python 3.6\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-30 09:56+0900\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Generated-By: Babel 2.5.1\n"
#: ../Doc/whatsnew/3.1.rst:3
msgid "What's New In Python 3.1"
msgstr ""
#: ../Doc/whatsnew/3.1.rst
msgid "Author"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:5
msgid "Raymond Hettinger"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:49
msgid "This article explains the new features in Python 3.1, compared to 3.0."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:53
msgid "PEP 372: Ordered Dictionaries"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:55
msgid ""
"Regular Python dictionaries iterate over key/value pairs in arbitrary "
"order. Over the years, a number of authors have written alternative "
"implementations that remember the order that the keys were originally "
"inserted. Based on the experiences from those implementations, a new "
":class:`collections.OrderedDict` class has been introduced."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:61
msgid ""
"The OrderedDict API is substantially the same as regular dictionaries but"
" will iterate over keys and values in a guaranteed order depending on "
"when a key was first inserted. If a new entry overwrites an existing "
"entry, the original insertion position is left unchanged. Deleting an "
"entry and reinserting it will move it to the end."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:67
msgid ""
"The standard library now supports use of ordered dictionaries in several "
"modules. The :mod:`configparser` module uses them by default. This lets"
" configuration files be read, modified, and then written back in their "
"original order. The *_asdict()* method for "
":func:`collections.namedtuple` now returns an ordered dictionary with the"
" values appearing in the same order as the underlying tuple indices. The"
" :mod:`json` module is being built-out with an *object_pairs_hook* to "
"allow OrderedDicts to be built by the decoder. Support was also added for"
" third-party tools like `PyYAML <http://pyyaml.org/>`_."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:79
msgid ":pep:`372` - Ordered Dictionaries"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:79
msgid ""
"PEP written by Armin Ronacher and Raymond Hettinger. Implementation "
"written by Raymond Hettinger."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:84
msgid "PEP 378: Format Specifier for Thousands Separator"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:86
msgid ""
"The built-in :func:`format` function and the :meth:`str.format` method "
"use a mini-language that now includes a simple, non-locale aware way to "
"format a number with a thousands separator. That provides a way to "
"humanize a program's output, improving its professional appearance and "
"readability::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:100
msgid ""
"The supported types are :class:`int`, :class:`float`, :class:`complex` "
"and :class:`decimal.Decimal`."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:103
msgid ""
"Discussions are underway about how to specify alternative separators like"
" dots, spaces, apostrophes, or underscores. Locale-aware applications "
"should use the existing *n* format specifier which already has some "
"support for thousands separators."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:111
msgid ":pep:`378` - Format Specifier for Thousands Separator"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:111
msgid ""
"PEP written by Raymond Hettinger and implemented by Eric Smith and Mark "
"Dickinson."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:116
msgid "Other Language Changes"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:118
msgid "Some smaller changes made to the core Python language are:"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:120
msgid ""
"Directories and zip archives containing a :file:`__main__.py` file can "
"now be executed directly by passing their name to the interpreter. The "
"directory/zipfile is automatically inserted as the first entry in "
"sys.path. (Suggestion and initial patch by Andy Chu; revised patch by "
"Phillip J. Eby and Nick Coghlan; :issue:`1739468`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:126
msgid ""
"The :func:`int` type gained a ``bit_length`` method that returns the "
"number of bits necessary to represent its argument in binary::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:140
msgid ""
"(Contributed by Fredrik Johansson, Victor Stinner, Raymond Hettinger, and"
" Mark Dickinson; :issue:`3439`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:143
msgid "The fields in :func:`format` strings can now be automatically numbered::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:149
msgid ""
"Formerly, the string would have required numbered fields such as: ``'Sir "
"{0} of {1}'``."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:152
msgid "(Contributed by Eric Smith; :issue:`5237`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:154
msgid ""
"The :func:`string.maketrans` function is deprecated and is replaced by "
"new static methods, :meth:`bytes.maketrans` and "
":meth:`bytearray.maketrans`. This change solves the confusion around "
"which types were supported by the :mod:`string` module. Now, "
":class:`str`, :class:`bytes`, and :class:`bytearray` each have their own "
"**maketrans** and **translate** methods with intermediate translation "
"tables of the appropriate type."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:161
msgid "(Contributed by Georg Brandl; :issue:`5675`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:163
msgid ""
"The syntax of the :keyword:`with` statement now allows multiple context "
"managers in a single statement::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:171
msgid ""
"With the new syntax, the :func:`contextlib.nested` function is no longer "
"needed and is now deprecated."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:174
msgid ""
"(Contributed by Georg Brandl and Mattias Brändström; `appspot issue 53094"
" <https://codereview.appspot.com/53094>`_.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:177
msgid ""
"``round(x, n)`` now returns an integer if *x* is an integer. Previously "
"it returned a float::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:183
msgid "(Contributed by Mark Dickinson; :issue:`4707`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:185
msgid ""
"Python now uses David Gay's algorithm for finding the shortest floating "
"point representation that doesn't change its value. This should help "
"mitigate some of the confusion surrounding binary floating point numbers."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:190
msgid ""
"The significance is easily seen with a number like ``1.1`` which does not"
" have an exact equivalent in binary floating point. Since there is no "
"exact equivalent, an expression like ``float('1.1')`` evaluates to the "
"nearest representable value which is ``0x1.199999999999ap+0`` in hex or "
"``1.100000000000000088817841970012523233890533447265625`` in decimal. "
"That nearest value was and still is used in subsequent floating point "
"calculations."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:198
msgid ""
"What is new is how the number gets displayed. Formerly, Python used a "
"simple approach. The value of ``repr(1.1)`` was computed as "
"``format(1.1, '.17g')`` which evaluated to ``'1.1000000000000001'``. The "
"advantage of using 17 digits was that it relied on IEEE-754 guarantees to"
" assure that ``eval(repr(1.1))`` would round-trip exactly to its original"
" value. The disadvantage is that many people found the output to be "
"confusing (mistaking intrinsic limitations of binary floating point "
"representation as being a problem with Python itself)."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:207
msgid ""
"The new algorithm for ``repr(1.1)`` is smarter and returns ``'1.1'``. "
"Effectively, it searches all equivalent string representations (ones that"
" get stored with the same underlying float value) and returns the "
"shortest representation."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:212
msgid ""
"The new algorithm tends to emit cleaner representations when possible, "
"but it does not change the underlying values. So, it is still the case "
"that ``1.1 + 2.2 != 3.3`` even though the representations may suggest "
"otherwise."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:216
msgid ""
"The new algorithm depends on certain features in the underlying floating "
"point implementation. If the required features are not found, the old "
"algorithm will continue to be used. Also, the text pickle protocols "
"assure cross-platform portability by using the old algorithm."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:221
msgid "(Contributed by Eric Smith and Mark Dickinson; :issue:`1580`)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:224
msgid "New, Improved, and Deprecated Modules"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:226
msgid ""
"Added a :class:`collections.Counter` class to support convenient counting"
" of unique items in a sequence or iterable::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:232
msgid "(Contributed by Raymond Hettinger; :issue:`1696199`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:234
msgid ""
"Added a new module, :mod:`tkinter.ttk` for access to the Tk themed widget"
" set. The basic idea of ttk is to separate, to the extent possible, the "
"code implementing a widget's behavior from the code implementing its "
"appearance."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:238
msgid "(Contributed by Guilherme Polo; :issue:`2983`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:240
msgid ""
"The :class:`gzip.GzipFile` and :class:`bz2.BZ2File` classes now support "
"the context management protocol::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:247
msgid "(Contributed by Antoine Pitrou.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:249
msgid ""
"The :mod:`decimal` module now supports methods for creating a decimal "
"object from a binary :class:`float`. The conversion is exact but can "
"sometimes be surprising::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:256
msgid ""
"The long decimal result shows the actual binary fraction being stored for"
" *1.1*. The fraction has many digits because *1.1* cannot be exactly "
"represented in binary."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:260
msgid "(Contributed by Raymond Hettinger and Mark Dickinson.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:262
msgid ""
"The :mod:`itertools` module grew two new functions. The "
":func:`itertools.combinations_with_replacement` function is one of four "
"for generating combinatorics including permutations and Cartesian "
"products. The :func:`itertools.compress` function mimics its namesake "
"from APL. Also, the existing :func:`itertools.count` function now has an"
" optional *step* argument and can accept any type of counting sequence "
"including :class:`fractions.Fraction` and :class:`decimal.Decimal`::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:281
msgid "(Contributed by Raymond Hettinger.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:283
msgid ""
":func:`collections.namedtuple` now supports a keyword argument *rename* "
"which lets invalid fieldnames be automatically converted to positional "
"names in the form _0, _1, etc. This is useful when the field names are "
"being created by an external source such as a CSV header, SQL field list,"
" or user input::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:300
msgid "(Contributed by Raymond Hettinger; :issue:`1818`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:302
msgid ""
"The :func:`re.sub`, :func:`re.subn` and :func:`re.split` functions now "
"accept a flags parameter."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:305
msgid "(Contributed by Gregory Smith.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:307
msgid ""
"The :mod:`logging` module now implements a simple "
":class:`logging.NullHandler` class for applications that are not using "
"logging but are calling library code that does. Setting-up a null "
"handler will suppress spurious warnings such as \"No handlers could be "
"found for logger foo\"::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:315
msgid "(Contributed by Vinay Sajip; :issue:`4384`)."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:317
msgid ""
"The :mod:`runpy` module which supports the ``-m`` command line switch now"
" supports the execution of packages by looking for and executing a "
"``__main__`` submodule when a package name is supplied."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:321
msgid "(Contributed by Andi Vajda; :issue:`4195`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:323
msgid ""
"The :mod:`pdb` module can now access and display source code loaded via "
":mod:`zipimport` (or any other conformant :pep:`302` loader)."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:326
msgid "(Contributed by Alexander Belopolsky; :issue:`4201`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:328
msgid ":class:`functools.partial` objects can now be pickled."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:330
msgid ""
"(Suggested by Antoine Pitrou and Jesse Noller. Implemented by Jack "
"Diederich; :issue:`5228`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:333
msgid ""
"Add :mod:`pydoc` help topics for symbols so that ``help('@')`` works as "
"expected in the interactive environment."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:336
msgid "(Contributed by David Laban; :issue:`4739`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:338
msgid ""
"The :mod:`unittest` module now supports skipping individual tests or "
"classes of tests. And it supports marking a test as an expected failure, "
"a test that is known to be broken, but shouldn't be counted as a failure "
"on a TestResult::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:353
msgid ""
"Also, tests for exceptions have been builtout to work with context "
"managers using the :keyword:`with` statement::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:360
msgid ""
"In addition, several new assertion methods were added including "
":func:`assertSetEqual`, :func:`assertDictEqual`, "
":func:`assertDictContainsSubset`, :func:`assertListEqual`, "
":func:`assertTupleEqual`, :func:`assertSequenceEqual`, "
":func:`assertRaisesRegexp`, :func:`assertIsNone`, and "
":func:`assertIsNotNone`."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:367
msgid "(Contributed by Benjamin Peterson and Antoine Pitrou.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:369
msgid ""
"The :mod:`io` module has three new constants for the :meth:`seek` method "
":data:`SEEK_SET`, :data:`SEEK_CUR`, and :data:`SEEK_END`."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:372
msgid "The :attr:`sys.version_info` tuple is now a named tuple::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:377
msgid "(Contributed by Ross Light; :issue:`4285`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:379
msgid "The :mod:`nntplib` and :mod:`imaplib` modules now support IPv6."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:381
msgid "(Contributed by Derek Morr; :issue:`1655` and :issue:`1664`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:383
msgid ""
"The :mod:`pickle` module has been adapted for better interoperability "
"with Python 2.x when used with protocol 2 or lower. The reorganization "
"of the standard library changed the formal reference for many objects. "
"For example, ``__builtin__.set`` in Python 2 is called ``builtins.set`` "
"in Python 3. This change confounded efforts to share data between "
"different versions of Python. But now when protocol 2 or lower is "
"selected, the pickler will automatically use the old Python 2 names for "
"both loading and dumping. This remapping is turned-on by default but can "
"be disabled with the *fix_imports* option::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:399
msgid ""
"An unfortunate but unavoidable side-effect of this change is that "
"protocol 2 pickles produced by Python 3.1 won't be readable with Python "
"3.0. The latest pickle protocol, protocol 3, should be used when "
"migrating data between Python 3.x implementations, as it doesn't attempt "
"to remain compatible with Python 2.x."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:405
msgid "(Contributed by Alexandre Vassalotti and Antoine Pitrou, :issue:`6137`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:407
msgid ""
"A new module, :mod:`importlib` was added. It provides a complete, "
"portable, pure Python reference implementation of the :keyword:`import` "
"statement and its counterpart, the :func:`__import__` function. It "
"represents a substantial step forward in documenting and defining the "
"actions that take place during imports."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:413
msgid "(Contributed by Brett Cannon.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:416
msgid "Optimizations"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:418
msgid "Major performance enhancements have been added:"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:420
msgid ""
"The new I/O library (as defined in :pep:`3116`) was mostly written in "
"Python and quickly proved to be a problematic bottleneck in Python 3.0. "
"In Python 3.1, the I/O library has been entirely rewritten in C and is 2 "
"to 20 times faster depending on the task at hand. The pure Python version"
" is still available for experimentation purposes through the ``_pyio`` "
"module."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:427
msgid "(Contributed by Amaury Forgeot d'Arc and Antoine Pitrou.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:429
msgid ""
"Added a heuristic so that tuples and dicts containing only untrackable "
"objects are not tracked by the garbage collector. This can reduce the "
"size of collections and therefore the garbage collection overhead on "
"long-running programs, depending on their particular use of datatypes."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:434
msgid "(Contributed by Antoine Pitrou, :issue:`4688`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:436
msgid ""
"Enabling a configure option named ``--with-computed-gotos`` on compilers "
"that support it (notably: gcc, SunPro, icc), the bytecode evaluation loop"
" is compiled with a new dispatch mechanism which gives speedups of up to "
"20%, depending on the system, the compiler, and the benchmark."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:442
msgid ""
"(Contributed by Antoine Pitrou along with a number of other participants,"
" :issue:`4753`)."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:445
msgid "The decoding of UTF-8, UTF-16 and LATIN-1 is now two to four times faster."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:448
msgid "(Contributed by Antoine Pitrou and Amaury Forgeot d'Arc, :issue:`4868`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:450
msgid ""
"The :mod:`json` module now has a C extension to substantially improve its"
" performance. In addition, the API was modified so that json works only "
"with :class:`str`, not with :class:`bytes`. That change makes the module"
" closely match the `JSON specification <http://json.org/>`_ which is "
"defined in terms of Unicode."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:456
msgid ""
"(Contributed by Bob Ippolito and converted to Py3.1 by Antoine Pitrou and"
" Benjamin Peterson; :issue:`4136`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:459
msgid ""
"Unpickling now interns the attribute names of pickled objects. This "
"saves memory and allows pickles to be smaller."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:462
msgid "(Contributed by Jake McGuire and Antoine Pitrou; :issue:`5084`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:465
msgid "IDLE"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:467
msgid ""
"IDLE's format menu now provides an option to strip trailing whitespace "
"from a source file."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:470
msgid "(Contributed by Roger D. Serwy; :issue:`5150`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:473
msgid "Build and C API Changes"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:475
msgid "Changes to Python's build process and to the C API include:"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:477
msgid ""
"Integers are now stored internally either in base 2**15 or in base 2**30,"
" the base being determined at build time. Previously, they were always "
"stored in base 2**15. Using base 2**30 gives significant performance "
"improvements on 64-bit machines, but benchmark results on 32-bit machines"
" have been mixed. Therefore, the default is to use base 2**30 on 64-bit "
"machines and base 2**15 on 32-bit machines; on Unix, there's a new "
"configure option ``--enable-big-digits`` that can be used to override "
"this default."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:486
msgid ""
"Apart from the performance improvements this change should be invisible "
"to end users, with one exception: for testing and debugging purposes "
"there's a new :attr:`sys.int_info` that provides information about the "
"internal format, giving the number of bits per digit and the size in "
"bytes of the C type used to store each digit::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:496
msgid "(Contributed by Mark Dickinson; :issue:`4258`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:498
msgid ""
"The :c:func:`PyLong_AsUnsignedLongLong()` function now handles a negative"
" *pylong* by raising :exc:`OverflowError` instead of :exc:`TypeError`."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:501
msgid "(Contributed by Mark Dickinson and Lisandro Dalcrin; :issue:`5175`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:503
msgid "Deprecated :c:func:`PyNumber_Int`. Use :c:func:`PyNumber_Long` instead."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:505
msgid "(Contributed by Mark Dickinson; :issue:`4910`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:507
msgid ""
"Added a new :c:func:`PyOS_string_to_double` function to replace the "
"deprecated functions :c:func:`PyOS_ascii_strtod` and "
":c:func:`PyOS_ascii_atof`."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:510
msgid "(Contributed by Mark Dickinson; :issue:`5914`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:512
msgid ""
"Added :c:type:`PyCapsule` as a replacement for the :c:type:`PyCObject` "
"API. The principal difference is that the new type has a well defined "
"interface for passing typing safety information and a less complicated "
"signature for calling a destructor. The old type had a problematic API "
"and is now deprecated."
msgstr ""
#: ../Doc/whatsnew/3.1.rst:518
msgid "(Contributed by Larry Hastings; :issue:`5630`.)"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:521
msgid "Porting to Python 3.1"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:523
msgid ""
"This section lists previously described changes and other bugfixes that "
"may require changes to your code:"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:526
msgid ""
"The new floating point string representations can break existing "
"doctests. For example::"
msgstr ""
#: ../Doc/whatsnew/3.1.rst:549
msgid ""
"The automatic name remapping in the pickle module for protocol 2 or lower"
" can make Python 3.1 pickles unreadable in Python 3.0. One solution is "
"to use protocol 3. Another solution is to set the *fix_imports* option "
"to ``False``. See the discussion above for more details."
msgstr ""
#~ msgid ""
#~ "The standard library now supports use"
#~ " of ordered dictionaries in several "
#~ "modules. The :mod:`configparser` module uses"
#~ " them by default. This lets "
#~ "configuration files be read, modified, "
#~ "and then written back in their "
#~ "original order. The *_asdict()* method "
#~ "for :func:`collections.namedtuple` now returns "
#~ "an ordered dictionary with the values"
#~ " appearing in the same order as "
#~ "the underlying tuple indicies. The "
#~ ":mod:`json` module is being built-out"
#~ " with an *object_pairs_hook* to allow "
#~ "OrderedDicts to be built by the "
#~ "decoder. Support was also added for "
#~ "third-party tools like `PyYAML "
#~ "<http://pyyaml.org/>`_."
#~ msgstr ""