python-var-dump
python-var-dump copied to clipboard
PHP's var_dump equivalent function for Python
lots of things possibly wrong with this - i don't know if this works on python2.7 - i don't know if this is a good fix - i don't know...
the sample code contained TabError's where spaces were mixed with tabs causing errors like File "C:\cygwin64\home\hans\tibia\pybot\test.py", line 25 self.no = None TabError: inconsistent use of tabs and spaces in indentation
lots of things possibly wrong with this - i don't know if this works on python2.7 - i don't know if this is a good fix - i don't know...
no matter what the ULARGE_INTEGER actually contains, it will just var_dump as ``` object(c_ulonglong) (0) ``` for example ``` import ctypes import ctypes.wintypes from var_dump import var_dump foo = ctypes.wintypes.ULARGE_INTEGER(123)...
previously var_dump('\x9F'); may cause a crash on windows cmd.exe , fix that by hex-encoding instead of crashing. for more info, see https://github.com/sha256/python-var-dump/issues/19
when stdout is redirected to a file, ```py from var_dump import var_dump var_dump('\x9F'); ``` will crash on Windows. Not sure why, and does not happen on Linux. reproducing the issue...
```bash $PYTHONEXE -m pip install var_dump --upgrade $PYTHONEXE -m pip install var_dump --force-reinstall ``` I'm trying to upgrade, but I'm still getting the implementation from [before the recursion fix](https://github.com/sha256/python-var-dump/pull/22). I...