Age | Commit message (Collapse) | Author | |
---|---|---|---|
2014-04-27 | Fix 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-31 | Fix #2334 (wrong character length for formatting chars) | mathieui | |
2013-07-07 | Correctly use Py_ssize_t instead of int, fix a segfault on some architectures | Florent Le Coz | |
2013-06-27 | Better comments in poopt | Florent Le Coz | |
2013-06-25 | Nicer comments | Florent Le Coz | |
2013-06-25 | Aaaand that’s static | Florent Le Coz | |
2013-06-25 | Workaround for a bug (?) where wcwidth returns -1 for valid printable chars | Florent Le Coz | |
For example 😆 | |||
2013-06-20 | Use a logical order of arguments in the poopt functions, now | Florent Le Coz | |
2013-06-20 | Use the correct arguments in PyArg_ParseTuple | Florent Le Coz | |
2013-06-20 | Little logic change | Florent Le Coz | |
2013-06-20 | Add a poopt function to cut a string by the number of columns it takes | Florent Le Coz | |
2013-06-20 | Fix some compilation warnings in the poopt module | Florent Le Coz | |
2013-06-19 | Exposes the wcswidth function in the poopt module | Florent Le Coz | |
see #2142 | |||
2013-06-19 | Consider the number of columns of each characters in the poopt module | Florent Le Coz | |
Some characters take 0 columns, others take 1 or 2 (full-width characters) fixes #2142 | |||
2013-06-07 | Accept NULL bytes in strings to be cut by the poopt module | Florent Le Coz | |
fix #2296 | |||
2012-11-30 | Fix a byte value in the utf-8 decoding in poopt. | Florent Le Coz | |
2011-11-23 | Remove this usell ++-- from poopt | Florent Le Coz | |
2011-11-08 | poopt now handles correctly the size of the chars by jumping | Florent Le Coz | |
the color attributes properly and ignoring their length. | |||
2011-09-14 | Clean a little bit the poopt module, and fix some comments | Florent Le Coz | |
2011-09-11 | Change license to zlib (MIT sucks :() | Florent Le Coz | |
2011-09-09 | Make it work. MAY segfault. Need intensive testing. | Florent Le Coz | |
Should be A. LOT. FASTER. though. | |||
2011-09-08 | c code that doesn’t work | Florent Le Coz | |