summaryrefslogtreecommitdiff
path: root/src/pooptmodule.c
AgeCommit message (Collapse)Author
2014-04-27Fix memleaks in pooptmodule.cut_text (ref #1914)mathieui
- we need to decrement the refcount after giving the tuple to the retlist in order to transfer ownership The example script below will quickly take gigabytes of ram with the old module, while the new will not take noticeably more memory. The leak is not very visible on launch, because we “only” leaked each tuple returned, and (int, int) is not heavy. However, after weeks of use and many messages, the memory still isn’t freed and it shows. import poopt import gc a = 'coucouco ' * 1000 for i in range(100000): if not (i % 10000): print(i) poopt.cut_text(a, 50)
2013-07-31Fix #2334 (wrong character length for formatting chars)mathieui
2013-07-07Correctly use Py_ssize_t instead of int, fix a segfault on some architecturesFlorent Le Coz
2013-06-27Better comments in pooptFlorent Le Coz
2013-06-25Nicer commentsFlorent Le Coz
2013-06-25Aaaand that’s staticFlorent Le Coz
2013-06-25Workaround for a bug (?) where wcwidth returns -1 for valid printable charsFlorent Le Coz
For example 😆
2013-06-20Use a logical order of arguments in the poopt functions, nowFlorent Le Coz
2013-06-20Use the correct arguments in PyArg_ParseTupleFlorent Le Coz
2013-06-20Little logic changeFlorent Le Coz
2013-06-20Add a poopt function to cut a string by the number of columns it takesFlorent Le Coz
2013-06-20Fix some compilation warnings in the poopt moduleFlorent Le Coz
2013-06-19Exposes the wcswidth function in the poopt moduleFlorent Le Coz
see #2142
2013-06-19Consider the number of columns of each characters in the poopt moduleFlorent Le Coz
Some characters take 0 columns, others take 1 or 2 (full-width characters) fixes #2142
2013-06-07Accept NULL bytes in strings to be cut by the poopt moduleFlorent Le Coz
fix #2296
2012-11-30Fix a byte value in the utf-8 decoding in poopt.Florent Le Coz
2011-11-23Remove this usell ++-- from pooptFlorent Le Coz
2011-11-08poopt now handles correctly the size of the chars by jumpingFlorent Le Coz
the color attributes properly and ignoring their length.
2011-09-14Clean a little bit the poopt module, and fix some commentsFlorent Le Coz
2011-09-11Change license to zlib (MIT sucks :()Florent Le Coz
2011-09-09Make it work. MAY segfault. Need intensive testing.Florent Le Coz
Should be A. LOT. FASTER. though.
2011-09-08c code that doesn’t workFlorent Le Coz