среда, 5 июня 2013 г., 4:01:33 UTC+4 пользователь Ken Takata написал: > Hi, > > 2013/06/05 Wed 4:47:42 UTC+9 ZyX wrote: > > os.fchdir does not exist there. And vim.*chdir is similar to posix.chdir: > > you are not supposed to use this directly, but it holds implementation of > > functions in os.* in case somebody needs this. Even tests are using os.*, > > not vim.*. > > Now I understand what vim.*chdir are. But crash should be avoided. > I think my patch is needed because vim.fchdir *can* be called directly. > > Isn't it better to rename vim.*chdir to vim._*chdir to explain that > the functions are not intended to be used directly? > > Thanks, > Ken Takata
vim._*chdir is holding original implementations: I do not want to collect references at exit in python*_end() functions if I can just record them in the vim module and be sure that they both won't get garbage-collected and will be correctly Py_DECREFed at exit. -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
