nghung270192 / colorama

Automatically exported from code.google.com/p/colorama
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

pypy support #26

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. import colorama
Python 2.7.1 (aefc70438132+, Apr 29 2011, 12:45:42)
[PyPy 1.5.0-alpha0 with MSC v.1600 32 bit] on win32
Type "help", "copyright", "credits" or "license" for more information.
And now for something completely different: ``<arigato> no, normal work is such
much less tiring than vacations''
>>>> import colorama
c:\pypy\site-packages\colorama\win32.py:17: RuntimeWarning: C function without 
declared arguments called
  STDOUT: windll.kernel32.GetStdHandle(STDOUT),
c:\pypy\site-packages\colorama\win32.py:17: RuntimeWarning: C function without 
declared return type called
  STDOUT: windll.kernel32.GetStdHandle(STDOUT),
c:\pypy\site-packages\colorama\win32.py:18: RuntimeWarning: C function without 
declared arguments called
  STDERR: windll.kernel32.GetStdHandle(STDERR),
c:\pypy\site-packages\colorama\win32.py:18: RuntimeWarning: C function without 
declared return type called
  STDERR: windll.kernel32.GetStdHandle(STDERR),
c:\pypy\site-packages\colorama\win32.py:56: RuntimeWarning: C function without 
declared arguments called
  handle, byref(csbi))
c:\pypy\site-packages\colorama\win32.py:56: RuntimeWarning: C function without 
declared return type called
  handle, byref(csbi))

What is the expected output? What do you see instead?
No out put, but se above

What version of the product are you using? On what operating system?
0.1.18

Please provide any additional information below.
seams to work even thoug its bad to have this error message

Original issue reported on code.google.com by nepp...@gmail.com on 17 Jun 2011 at 2:25

GoogleCodeExporter commented 9 years ago
Thanks for the report, I'll check it out. If anyone has any idea whether I 
should be able to call the above win32 functions from Pypy, I'd appreciate any 
pointers.

Original comment by Jonat...@rangespan.com on 17 Jun 2011 at 4:13

GoogleCodeExporter commented 9 years ago
These asserts were failing for at least three users in different circumstances, 
and one person reports that although the win32 functions returned 
'success=False', they had apparently succeeded because colored text was 
visible. So I've removed the asserts. This might pass now, or worst case, 
silently fail instead of raising.

Original comment by tart...@gmail.com on 20 Jun 2011 at 3:40

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I still get these warnings on PyPy 1.6

path\to\colorama\win32.py:17: RuntimeWarning: C function without declared 
arguments called
  STDOUT: windll.kernel32.GetStdHandle(STDOUT),
path\to\colorama\win32.py:18: RuntimeWarning: C function without declared 
arguments called
  STDERR: windll.kernel32.GetStdHandle(STDERR),
path\to\colorama\win32.py:64: RuntimeWarning: C function without declared 
arguments called
  handle, byref(csbi))
path\to\colorama\win32.py:70: RuntimeWarning: C function without declared 
arguments called
  return windll.kernel32.SetConsoleTextAttribute(handle, attrs)

Original comment by Gui...@gmail.com on 18 Jul 2012 at 6:50

GoogleCodeExporter commented 9 years ago
Note that colored text seems to be correctly displayed.

Original comment by Gui...@gmail.com on 18 Jul 2012 at 6:51