- 15 Eyl, 2018 1 kayıt (commit)
-
-
Monson Shao yazdı
-
- 31 Tem, 2018 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
Revert "closes bpo-27494: Fix 2to3 handling of trailing comma after a generator expression (GH-3771)" (#8241) This reverts commit af810b35. This is not valid syntax (see bpo-32012).
-
- 23 Tem, 2018 1 kayıt (commit)
-
-
Berker Peksag yazdı
-
- 13 Tem, 2018 1 kayıt (commit)
-
-
Jason R. Coombs yazdı
* Add test capturing failure. * Honor newlines as present in the original file.
-
- 18 Nis, 2018 1 kayıt (commit)
-
-
Denis Osipov yazdı
-
- 17 Nis, 2018 2 kayıt (commit)
-
-
Aaron Ang yazdı
-
Łukasz Langa yazdı
* Now uses pickle protocol 4 * Doesn't wrap the grammar's `__dict__` in ordered dictionaries anymore as dictionaries in Python 3.6+ are ordered by default This still produces deterministic pickles (that hash the same with MD5). Tested with different PYTHONHASHSEED values.
-
- 16 Nis, 2018 1 kayıt (commit)
-
-
Zsolt Dollenstein yazdı
-
- 18 Mar, 2018 1 kayıt (commit)
-
-
Jelle Zijlstra yazdı
This reverts commit ac317700. (Reverts only the lib2to3 part.)
-
- 13 Mar, 2018 2 kayıt (commit)
-
-
Łukasz Langa yazdı
-
Łukasz Langa yazdı
New tests also added. I also made the comments in line with the builtin Grammar/Grammar. PEP 306 was withdrawn, Kees Blom's railroad program has been lost to the sands of time for at least 16 years now (I found a python-dev post from people looking for it).
-
- 30 Ock, 2018 2 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
Eric Appelt yazdı
Fix two (in my opinion) spurious failure conditions in the lib2to3.tests.test_parser.TestParserIdempotency test_parser test. Use the same encoding found in the initial file to write a temp file for a diff. This retains the BOM if the encoding was initially utf-8-sig. If the file cannot be parsed using the normal grammar, try again with no print statement which should succeed for valid files using future print_function For case (1), the driver was correctly handling a BOM in a utf-8 file, but then the test was not writing a comparison file using 'utf-8-sig' to diff against, so the BOM got removed. I don't think that is the fault of the parser, and lib2to3 will retain the BOM. For case (2), lib2to3 pre-detects the use of from __future__ import print_function or allows the user to force this interpretation with a -p flag, and then selects a different grammar with the print statement removed. That makes the test cases unfair to this test as the driver itself doesn't know which grammar to use. As a minimal fix, the test will try using a grammar with the print statement, and if that fails fall back on a grammar without it. A more thorough handling of the idempotency test would to be to parse all files using both grammars and ignore if one of the two failed but otherwise check both. I didn't think this was necessary but can change.
-
- 29 Ara, 2017 2 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
Benjamin Peterson yazdı
-
- 23 Ara, 2017 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 22 Ara, 2017 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
This is more complicated than it should be because we need to preserve the useful mtime-based regeneration feature that lib2to3.pgen2.driver.load_grammar has. We only look for the pickled grammar file with pkgutil.get_data and only if the source file does not exist.
-
- 28 Kas, 2017 1 kayıt (commit)
-
-
Dong-hee Na yazdı
-
- 16 Kas, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
from collections.abc rather than collections.
-
- 06 Eki, 2017 1 kayıt (commit)
-
-
Jelle Zijlstra yazdı
Per PEP 492, 'async' and 'await' should become proper keywords in 3.7.
-
- 05 Eki, 2017 1 kayıt (commit)
-
-
Jakub Stasiak yazdı
-
- 16 Haz, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
-
- 22 May, 2017 2 kayıt (commit)
-
-
Łukasz Langa yazdı
Note: this doesn't unpack f-strings into the underlying JoinedStr AST. Ideally we'd fully implement JoinedStr here but given its additional complexity, I think this is worth bandaiding as is. This unblocks tools like https://github.com/google/yapf to format 3.6 syntax using f-strings.
-
Łukasz Langa yazdı
This partially solves bpo-23894.
-
- 24 Nis, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 13 Nis, 2017 1 kayıt (commit)
-
-
Nevada Sanchez yazdı
* Allow underscores in numeric literals in lib2to3. * Stricter literal parsing for Python 3.6 in lib2to3.pgen2.tokenize. * Add test case for underscores in literals in Python 3.
-
- 06 Nis, 2017 1 kayıt (commit)
-
-
Stuart Berg yazdı
bpo-28837: Fix lib2to3 handling of map/zip/filter calls when followed with a 'trailer', e.g. zip()[x] (#24)
-
- 05 Nis, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
This hides unwanted implementation details from tracebacks.
-
- 02 Nis, 2017 1 kayıt (commit)
-
-
Michael Selik yazdı
* 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
-
- 27 Mar, 2017 1 kayıt (commit)
-
-
Victor Stinner yazdı
Make also minor PEP8 coding style fixes on modified imports.
-
- 19 Mar, 2017 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 16 Ara, 2016 1 kayıt (commit)
-
-
Serhiy Storchaka yazdı
-
- 06 Ara, 2016 1 kayıt (commit)
-
-
Benjamin Peterson yazdı
-
- 10 Eki, 2016 1 kayıt (commit)
-
-
Martin Panter yazdı
Includes patch by Ville Skyttä.
-
- 11 Eyl, 2016 1 kayıt (commit)
-
-
- 10 Eyl, 2016 3 kayıt (commit)
-
-
generalizations added in 3.5.
-
Gregory P. Smith yazdı
-
Gregory P. Smith yazdı
pretty early on in the 3.x series (3.1 or 3.2?).
-
- 09 Eyl, 2016 2 kayıt (commit)
-
-
Gregory P. Smith yazdı
test. call it TestVarAnnotations instead.
-
Yury Selivanov yazdı
-