Source

pypy / pypy / objspace / std / unicodetype.py

Author Commit Message Labels Comments Date
Alex Gaynor
Remove rope support from std objspace
Maciej Fijalkowski
merge default
Branches
kill-someobject
Maciej Fijalkowski
use newer shinier interface a bit everywhere
Branches
kill-someobject
Amaury Forgeot d'Arc
Issue1285: Python2 allows lone surrogates, also in string literals which appear in marshalled code. Also use more direct code for functions that are often used.
Maciej Fijalkowski
try to use more consistently space.is_none
Branches
kill-someobject
Armin Rigo
(fijal, arigo) in-progress: refactoring the NoneNotWrapped away, yay
Branches
kill-someobject
Amaury Forgeot d'Arc
An attempt to reduce differences in rlib/runicode.py, between default and py3k branches. - by default, utf_8 functions don't allow lone surrogates. The 2.7 implementation has to pass 'allow_surrogates=True' - unicode_encode_unicode_escape() is a generated function. py3k needs a very similar function for repr(), but which returns unicode. and the 'u' suffix is now an option.
Justin Peel
make all files use space.isinstance_w instead of space.is_true(space.isinstance(...)) in objspace/std/
Alex Gaynor
Fix unicode % unicode_subclass
Amaury Forgeot d'Arc
Subclasses of unicode should call their eventual __unicode__ method when they are rendered with %s or "{}".format
Amaury Forgeot d'Arc
str.decode('utf-8') must call the decoder with final=True
Armin Rigo
Add the internal method str._formatter_field_name_split().
Armin Rigo
Implement str._formatter_parser().
Amaury Forgeot d'Arc
hg merge default
Branches
fast-forward
Armin Rigo
Make the "default" argument of getname() optional. Remove usage of the '?' at least in the interpreter/ and the objspace/ directories.
Dan Villiom Podlaski Christiansen
No-op merge to register the merge done in 0e3099e3cc33 with Mercurial.
Branches
fast-forward
Armin Rigo
Revert half of r75146, which was half-done (see e.g. test_runicode failures). I tried to finish it but it gives a growing mess. Instead, I reverted to Unicode{De,En}codeError being RPython exceptions with no attributes, and just pass an error handler when calling rlib/runicode from objspace/std/unicodeobject.py. The error handler knows about the space and raises directly the app-level exception.
Amaury Forgeot d'Arc
Give argument names to unicode.encode(), allow test_expandtabs to raise a MemoryError
Branches
fast-forward
Benjamin Peterson
merge from trunk
Branches
fast-forward
Benjamin Peterson
merge from trunk
Branches
fast-forward
Benjamin Peterson
implement advanced string formatting - add space.format() and a format() builtin - add unicode/str format() method - implement formatting for integers and string Floats, complex, and locale aware formatting will follow.
Branches
fast-forward
Maciej Fijalkowski
Leave a comment that we might want to have a perf shortcut here
Maciej Fijalkowski
More convoluted logic :( This is kind of bug-to-bug compatibility
Antonio Cuni
make sure that unicode(x) calls __unicode__ if x is an instance of subclass of unicode
Armin Rigo
(antocuni, arigo) Fix various minor issues with unicodes, in particular the case of __str__ returning a unicode.
Armin Rigo
Test and fix. The test comes from CPython.
Maciej Fijalkowski
Check-in merge attempt. Diff is to huge to read it.
Armin Rigo
Experimental big cuts in the amount of indirections.
Armin Rigo
Rename keyword argument for unicode().
Carl Friedrich Bolz
merge the ropes branch: svn merge -r 48691:HEAD svn+ssh://codespeak.net/svn/pypy/branch/ropes-unicode log: ------------------------------------------------------------------------ r48691 | cfbolz | 2007-11-14 20:39:36 +0100 (Wed, 14 Nov 2007) | 2 lines Changed paths: A /pypy/branch/ropes-unicode (from /pypy/dist:48690) a new branch to try some crazy ideas about ropes and unicode ----------------------------------…
  1. Prev
  2. 1
  3. 2
  4. Next