[issue12657] Cannot override JSON encoding of basic type subclasses

2014-12-02 Thread Stefan Champailler
Stefan Champailler added the comment: Reading bugs a bit, I see this is quite related to : http://bugs.python.org/issue14886 stF -- ___ Python tracker <http://bugs.python.org/issue12

[issue12657] Cannot override JSON encoding of basic type subclasses

2014-12-02 Thread Stefan Champailler
Stefan Champailler added the comment: I'm adding a scenario for this problem, a real life one, so it gives a bit more substance. I use SQLALchemy. I do queries with it which returns KeyedTuples (an SQLALchemy type). KeyedTuples inherits from tuple. KeyedTuples are, in principle,

[issue1602] windows console doesn't print or input Unicode

2014-09-24 Thread Stefan Champailler
Stefan Champailler added the comment: Thank you all for your quick and good answers. This level of responsiveness is truly amazing. I've played a bit with IPython and it works just fine. I can type the eurosign drectly with "Alt Gr - E" (so I didn't enter a unicode

[issue1602] windows console doesn't print or input Unicode

2014-09-23 Thread Stefan Champailler
Stefan Champailler added the comment: Dear Drekin, > The crash you see is maybe not a crash at all. First it has nothing > to do with printing, the problem is reading of your input line. I guessed that, but thanks for pointing out. > So maybe Python REPL then thinks the input just

[issue1602] windows console doesn't print or input Unicode

2014-09-23 Thread Stefan Champailler
Stefan Champailler added the comment: In my previous comment, I've shown : print '€' which is not valid python 3.4.1 (don't why the interpreter didn't complaing though). So I tested again with missing parenthesis added : C:\PORT-STCA2\pl-PRIVATE\horse>chcp 6500

[issue1602] windows console doesn't print or input Unicode

2014-09-23 Thread Stefan Champailler
Stefan Champailler added the comment: I don't know if this is 100% related, but here I go. Here's a session in a windows console (cmd.exe) : Microsoft Windows [Version 6.1.7601] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Users\stc>chcp 65001 Active code p