summaryrefslogtreecommitdiff
path: root/Lib/tokenize.py
AgeCommit message (Expand)AuthorLines
2012-11-03#16152: fix tokenize to ignore whitespace at the end of the code when no newl...Ezio Melotti-1/+3
2012-07-07Issue #14990: tokenize: correctly fail with SyntaxError on invalid encoding d...Florent Xicluna-1/+1
2012-04-20Issue #14629: Raise SyntaxError in tokenizer.detect_encodingMartin v. Löwis-2/+5
2011-02-22Merged revisions 88498 via svnmerge fromBrett Cannon-3/+2
2010-11-11Issue #10386: Added __all__ to token module; this simplifies importingAlexander Belopolsky-3/+2
2010-11-09Issue #10335: Add tokenize.open(), detect the file encoding usingVictor Stinner-0/+15
2010-09-09A little bit more readable repr method.Raymond Hettinger-3/+3
2010-09-09Experiment: Let collections.namedtuple() do the work. This should work now t...Raymond Hettinger-39/+3
2010-09-09Improve the repr for the TokenInfo named tuple.Raymond Hettinger-1/+28
2010-09-03Remove unused import, fix typo and rewrap docstrings.Florent Xicluna-17/+18
2010-08-30handle names starting with non-ascii characters correctly #9712Benjamin Peterson-5/+10
2010-03-18fix for files with coding cookies and BOMsBenjamin Peterson-3/+5
2010-03-18in tokenize.detect_encoding(), return utf-8-sig when a BOM is foundBenjamin Peterson-6/+12
2009-11-14use some more itertools magic to make '' be yielded after readline is doneBenjamin Peterson-3/+4
2009-11-14simply by using itertools.chain()Benjamin Peterson-10/+5
2009-11-13Merged revisions 75149,75260-75263,75265-75267,75292,75300,75376,75405,75429-...Benjamin Peterson-13/+20
2009-10-09normalize latin-1 and utf-8 variant encodings like the builtin tokenizer doesBenjamin Peterson-1/+12
2009-04-29Remove dependency on the collections module.Raymond Hettinger-3/+41
2009-04-29Issue #5857: tokenize.tokenize() now returns named tuples.Raymond Hettinger-19/+22
2009-03-24reuse tokenize.detect_encoding in linecache instead of a custom solutionBenjamin Peterson-3/+4
2008-12-12raise a SyntaxError in detect_encoding() when a codec lookup fails like the b...Benjamin Peterson-13/+20
2008-08-19#2834: Change re module semantics, so that str and bytes mixing is forbidden,Antoine Pitrou-6/+8
2008-06-05use the more idomatic (and Py3k faster) while TrueBenjamin Peterson-1/+1
2008-03-28Merged revisions 61964-61979 via svnmerge fromChristian Heimes-0/+9
2008-03-18- Issue #719888: Updated tokenize to use a bytes API. generate_tokens has beenTrent Nelson-57/+130
2008-01-19Merged revisions 60080-60089,60091-60093 via svnmerge fromGeorg Brandl-3/+3
2007-11-12Patch 1420 by Ron Adam.Guido van Rossum-18/+18
2007-08-30Raise statement normalization in Lib/.Collin Winter-2/+2
2007-06-13Merged revisions 55817-55961 via svnmerge fromGuido van Rossum-4/+5
2007-05-15Merged revisions 55328-55341 via svnmerge fromGuido van Rossum-1/+2
2007-04-21PEP 3114: rename .next() to .__next__() and add next() builtin.Georg Brandl-2/+2
2007-04-15Hide list comp variables and support set comprehensionsNick Coghlan-1/+0
2007-03-18Make ELLIPSIS a separate token. This makes it a syntax error to write ". . ...Georg Brandl-3/+3
2007-02-09Fix most trivially-findable print statements.Guido van Rossum-2/+2
2006-12-28PEP 3107 - Function Annotations thanks to Tony LowndsNeal Norwitz-1/+1
2006-12-13Four months of trunk changes (including a few releases...)Thomas Wouters-32/+77
2006-08-25Remove support for backticks from the grammar and compiler.Brett Cannon-1/+1
2006-08-24Killed the <> operator. You must now use !=.Guido van Rossum-1/+1
2006-08-21Merge current trunk into p3yk. This includes the PyNumber_Index API change,Thomas Wouters-1/+2
2006-04-21Merge p3yk branch with the trunk up to revision 45595. This breaks a fairThomas Wouters-1/+1
2005-06-21SF bug #1224621: tokenize module does not detect inconsistent dedentsRaymond Hettinger-0/+3
2005-06-10Add untokenize() function to allow full round-trip tokenization.Raymond Hettinger-3/+49
2004-08-02PEP-0318, @decorator-style. In Guido's words:Anthony Baxter-1/+1
2003-02-27Get rid of many apply() calls.Guido van Rossum-3/+3
2002-11-05SF 633560: tokenize.__all__ needs "generate_tokens"Raymond Hettinger-1/+2
2002-08-24Speed up the most egregious "if token in (long tuple)" cases by usingGuido van Rossum-10/+19
2002-05-23Whitespace normalization.Tim Peters-5/+5
2002-05-15Added docstrings excerpted from Python Library Reference.Raymond Hettinger-0/+25
2002-04-01Remove some now-obsolete generator future statements.Tim Peters-2/+0
2002-03-26Cleanup x so it is not left in moduleNeal Norwitz-0/+1