summaryrefslogtreecommitdiff
path: root/src/if_python.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.1.1021: pyeval() and py3eval() leak memoryv8.1.1021Bram Moolenaar2019-03-191-19/+5
| | | | | | Problem: pyeval() and py3eval() leak memory. Solution: Do not increase the reference count twice. (Ozaki Kiichi, closes #4129)
* patch 8.1.0950: using :python sets 'pyxversion' even when not executedv8.1.0950Bram Moolenaar2019-02-181-3/+3
| | | | | Problem: Using :python sets 'pyxversion' even when not executed. Solution: Check the "skip" flag. (Shane Harper, closes #3995)
* patch 8.1.0941: macros for MS-Windows are inconsistentv8.1.0941Bram Moolenaar2019-02-171-2/+2
| | | | | | | Problem: Macros for MS-Windows are inconsistent, using "32", "3264 and others. Solution: Use MSWIN for all MS-Windows builds. Use FEAT_GUI_MSWIN for the GUI build. (Hirohito Higashi, closes #3932)
* patch 8.1.0867: cannot build Python interface with Python 2.4v8.1.0867Bram Moolenaar2019-02-011-9/+11
| | | | | Problem: Cannot build Python interface with Python 2.4. (Tom G. Christensen) Solution: Define PyBytes_FromStringAndSize. (Ken Takata, closes #3888)
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-7/+7
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0735: cannot handle binary datav8.1.0735Bram Moolenaar2019-01-121-0/+1
| | | | | Problem: Cannot handle binary data. Solution: Add the Blob type. (Yasuhiro Matsumoto, closes #3638)
* patch 8.0.1846: Python interface is incompatible with lldbv8.0.1846Bram Moolenaar2018-05-151-0/+3
| | | | | | Problem: Python interface is incompatible with lldb. Solution: For OutputType set the base to be PyFile_Type. (Boxu Zhang) Partly disabled to avoid a crash.
* patch 8.0.1654: warnings for conversion of void to function pointerv8.0.1654Bram Moolenaar2018-03-291-7/+6
| | | | | Problem: Warnings for conversion of void to function pointer. Solution: Use a temp variable that is a function pointer.
* patch 8.0.1550: various small problems in source filesv8.0.1550Bram Moolenaar2018-02-271-1/+1
| | | | | Problem: Various small problems in source files. Solution: Fix the problems.
* patch 8.0.1451: difficult to set the python home directories properlyv8.0.1451Bram Moolenaar2018-01-311-3/+10
| | | | | | | Problem: It is difficult to set the python home directory properly for Python 2.7 and 3.5 since both use $PYTHONHOME. Solution: Add the 'pythonhome' and 'pythonthreehome' options. (Kazuki Sakamoto, closes #1266)
* patch 8.0.1236: Mac features are confusingv8.0.1236Bram Moolenaar2017-10-281-20/+0
| | | | | | Problem: Mac features are confusing. Solution: Make feature names more consistent, add "osxdarwin". Rename feature flags, cleanup Mac code. (Kazunobu Kuriyama, closes #2178)
* patch 8.0.1118: FEAT_WINDOWS adds a lot of #ifdefsv8.0.1118Bram Moolenaar2017-09-161-2/+0
| | | | | | Problem: FEAT_WINDOWS adds a lot of #ifdefs while it is nearly always enabled and only adds 7% to the binary size of the tiny build. Solution: Graduate FEAT_WINDOWS.
* patch 8.0.0698: crash on exit when using Python function in timer.v8.0.0698Bram Moolenaar2017-07-071-1/+5
| | | | | | | | Problem: When a timer uses ":pyeval" or another Python command and it happens to be triggered while exiting a Crash may happen. (Ricky Zhou) Solution: Avoid running a Python command after python_end() was called. Do not trigger timers while exiting. (closes #1824)
* patch 8.0.0251: not easy to select Python 2 or 3v8.0.0251Bram Moolenaar2017-01-281-0/+9
| | | | | | Problem: It is not so easy to write a script that works with both Python 2 and Python 3, even when the Python code works with both. Solution: Add 'pyxversion', :pyx, etc. (Marc Weber, Ken Takata)
* patch 7.4.1769v7.4.1769Bram Moolenaar2016-04-211-1/+4
| | | | | Problem: No "closed", "errors" and "encoding" attribute on Python output. Solution: Add attributes and more tests. (Roland Puntaier, closes #622)
* patch 7.4.1731v7.4.1731Bram Moolenaar2016-04-141-5/+5
| | | | | Problem: Python: turns partial into simple funcref. Solution: Use partials like partials. (Nikolai Pavlov, closes #734)
* patch 7.4.1559v7.4.1559Bram Moolenaar2016-03-141-0/+1
| | | | | Problem: Passing cookie to a callback is clumsy. Solution: Change function() to take arguments and return a partial.
* patch 7.4.1334v7.4.1334Bram Moolenaar2016-02-161-0/+9
| | | | | Problem: Many compiler warnings with MingW. Solution: Add type casts. (Yasuhiro Matsumoto)
* patch 7.4.1315v7.4.1315Bram Moolenaar2016-02-131-0/+1
| | | | | Problem: Using a channel handle does not allow for freeing it when unused. Solution: Add the Channel variable type.
* patch 7.4.1280v7.4.1280Bram Moolenaar2016-02-071-0/+1
| | | | | Problem: Missing case value. Solution: Add VAR_JOB.
* patch 7.4.1272v7.4.1272Bram Moolenaar2016-02-061-1/+0
| | | | | Problem: Using future enum value. Solution: Remove it.
* patch 7.4.1270v7.4.1270Bram Moolenaar2016-02-061-0/+6
| | | | | Problem: Warnings for missing values in switch. Solution: Change switch to if-else or add values.
* patch 7.4.1208v7.4.1208Bram Moolenaar2016-01-301-2/+2
| | | | | | Problem: Using old style function declarations. Solution: Change to new style function declarations. (script by Hirohito Higashi)
* patch 7.4.1065v7.4.1065Bram Moolenaar2016-01-091-6/+1
| | | | | | Problem: Cannot use the "dll" options on MS-Windows. Solution: Support the options on all platforms. Use the built-in name as the default, so that it's clear what Vim is looking for.
* patch 7.4.1012v7.4.1012Bram Moolenaar2015-12-311-1/+4
| | | | | | Problem: Vim overwrites the value of $PYTHONHOME. Solution: Do not set $PYTHONHOME if it is already set. (Kazuki Sakamoto, closes #500)
* patch 7.4.907v7.4.907Bram Moolenaar2015-11-021-1/+6
| | | | | | | Problem: Libraries for dynamically loading interfaces can only be defined at compile time. Solution: Add options to specify the dll names. (Kazuki Sakamoto, closes #452)
* updated for version 7.4.609v7.4.609Bram Moolenaar2015-02-031-2/+2
| | | | | | | Problem: For complicated list and dict use the garbage collector can run out of stack space. Solution: Use a stack of dicts and lists to be marked, thus making it iterative instead of recursive. (Ben Fritz)
* updated for version 7.4.380v7.4.380Bram Moolenaar2014-07-231-0/+31
| | | | | Problem: Loading python may cause Vim to exit. Solution: Avoid loading the "site" module. (Taro Muraoka)
* updated for version 7.4.228v7.4.228Bram Moolenaar2014-03-301-0/+2
| | | | | Problem: Compiler warnings when building with Python 3.2. Solution: Make type cast depend on Python version. (Ken Takata)
* updated for version 7.4.188v7.4.188Bram Moolenaar2014-02-231-1/+1
| | | | | Problem: SIZEOF_LONG clashes with similar defines in header files. Solution: Rename to a name starting with VIM_. Also for SIZEOF_INT.
* updated for version 7.4.153v7.4.153Bram Moolenaar2014-01-141-1/+1
| | | | | Problem: Compiler warning for pointer type. Solution: Add type cast.
* updated for version 7.4.151v7.4.151Bram Moolenaar2014-01-141-15/+8
| | | | | Problem: Python: slices with steps are not supported. Solution: Support slices in Python vim.List. (ZyX)
* updated for version 7.4.060v7.4.060Bram Moolenaar2013-11-031-1/+1
| | | | | Problem: Declaration has wrong return type for PyObject_SetAttrString(). Solution: Use int instead of PyObject. (Andreas Schwab)
* updated for version 7.3.1287v7.3.1287Bram Moolenaar2013-07-011-0/+4
| | | | | | Problem: Python SystemExit exception is not handled properly. Solution: Catch the exception and give an error. (Yasuhiro Matsumoto, Ken Takata)
* updated for version 7.3.1238v7.3.1238Bram Moolenaar2013-06-241-2/+2
| | | | | | Problem: Crash in Python interface on 64 bit machines. Solution: Change argument type of PyString_AsStringAndSize. (Taro Muraoka, Jun Takimoto)
* updated for version 7.3.1236v7.3.1236Bram Moolenaar2013-06-231-2/+1
| | | | | Problem: Python: WindowSetattr() missing support for NUMBER_UNSIGNED. Solution: Add NUMBER_UNSIGNED, add more tests. Various fixes. (ZyX)
* updated for version 7.3.1231v7.3.1231Bram Moolenaar2013-06-231-0/+13
| | | | | Problem: Python: use of numbers not consistent. Solution: Add support for Number protocol. (ZyX)
* updated for version 7.3.1230v7.3.1230Bram Moolenaar2013-06-231-0/+3
| | | | | Problem: Python: Exception messages are not clear. Solution: Make exception messages more verbose. (ZyX)
* updated for version 7.3.1228v7.3.1228Bram Moolenaar2013-06-231-6/+3
| | | | | | | Problem: Python: various inconsistencies and problems. Solution: StringToLine now supports both bytes() and unicode() objects. Make function names consistant. Fix memory leak fixed in StringToLine. (ZyX)
* updated for version 7.3.1174v7.3.1174Bram Moolenaar2013-06-121-199/+0
| | | | | Problem: Python 2 and 3 use different ways to load modules. Solution: Use the same method. (ZyX)
* updated for version 7.3.1172v7.3.1172Bram Moolenaar2013-06-121-61/+157
| | | | | Problem: Python 2: loading modules doesn't work well. Solution: Fix the code. Add more tests. (ZyX)
* updated for version 7.3.1163v7.3.1163Bram Moolenaar2013-06-101-8/+133
| | | | | | Problem: Not easy to load Python modules. Solution: Search "python2", "python3" and "pythonx" directories in 'runtimepath' for Python modules. (ZyX)
* updated for version 7.3.1162v7.3.1162Bram Moolenaar2013-06-101-12/+4
| | | | | Problem: Python: Memory leaks Solution: Add more Py_DECREF(). (ZyX)
* updated for version 7.3.1158v7.3.1158Bram Moolenaar2013-06-101-4/+7
| | | | | Problem: Crash when running test 86. (Jun Takimoto) Solution: Define PY_SSIZE_T_CLEAN early. (Elimar Riesebieter)
* updated for version 7.3.1099v7.3.1099Bram Moolenaar2013-06-021-2/+6
| | | | | | Problem: Python: Changing directory with os.chdir() causes problems for Vim's notion of directories. Solution: Add vim.chdir() and vim.fchdir(). (ZyX)
* updated for version 7.3.1070v7.3.1070Bram Moolenaar2013-05-301-0/+15
| | | | | Problem: Vim crashes in Python tests. Compiler warning for unused function. Solution: Disable the tests for now. Move the function.
* updated for version 7.3.1065v7.3.1065Bram Moolenaar2013-05-301-7/+10
| | | | | Problem: Python: key mapping is not standard. Solution: Puthon patch 24: use PyMapping_Keys. (ZyX)
* updated for version 7.3.1061v7.3.1061Bram Moolenaar2013-05-301-3/+11
| | | | | Problem: Python: Dictionary is not standard. Solution: Python patch 20: Add standard methods and fields. (ZyX)
* updated for version 7.3.1059v7.3.1059Bram Moolenaar2013-05-301-0/+3
| | | | | Problem: Python: Using fixed size buffers. Solution: Python patch 18: Use python's own formatter. (ZyX)
* updated for version 7.3.1047v7.3.1047Bram Moolenaar2013-05-291-0/+10
| | | | | | | | Problem: Python: dir() does not work properly. Solution: Python patch 8. Add __dir__ method to all objects with custom tp_getattr supplemented by __members__ attribute for at least python-2* versions. __members__ is not mentioned in python-3* dir() output even if it is accessible. (ZyX)