[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 02 février 2012 à 16:43 +, Petri Lehtinen a écrit : > Petri Lehtinen added the comment: > > > > Should OptimizedUnicode be deprecated, too? > > > > I'd say just undocument it. > > Even remove the note from the patch? Well, I guess keeping the n

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: > > Should OptimizedUnicode be deprecated, too? > > I'd say just undocument it. Even remove the note from the patch? -- ___ Python tracker __

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should OptimizedUnicode be deprecated, too? I'd say just undocument it. -- ___ Python tracker ___ __

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +needs review stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- keywords: +patch Added file: http://bugs.python.org/file24397/issue13921.patch ___ Python tracker ___ _

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-02 Thread Petri Lehtinen
Petri Lehtinen added the comment: Attached a patch. It changes OptimizedUnicode to be an alias for PyUnicode_Type and adds a note to the documentation for porters from 2.x that it has no effect on py3k. The patch removes/refactors all OptimizedUnicode and allow_8bit_chars related obsolete co

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for removing, it makes no sense under Python 3. -- nosy: +ghaering ___ Python tracker ___ ___ Py

[issue13921] sqlite3: OptimizedUnicode doesn't work in Py3k

2012-02-01 Thread Petri Lehtinen
New submission from Petri Lehtinen : Connection.text_factory can be used to control what objects are returned for the TEXT data type. An excerpt from the docs: For efficiency reasons, there’s also a way to return str objects only for non-ASCII data, and bytes otherwise. To activate i