[issue26480] add a flag that will not give the set a sys.stdin

2016-03-04 Thread yuriy_levchenko
Changes by yuriy_levchenko <iro...@mail.ru>: -- type: -> behavior ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue26480> ___ __

[issue26480] add a flag that will not give the set a sys.stdin

2016-03-04 Thread yuriy_levchenko
New submission from yuriy_levchenko: i have Fatal Error "Py_Initialize: can't initialize sys standard streams" because fail to create fd = fileno(stdin); std = create_stdio(iomod, fd, 0, "", encoding, errors); I do not need to create this input|output if i comment

[issue26454] add support string that are not inherited from PyStringObject

2016-02-28 Thread yuriy_levchenko
New submission from yuriy_levchenko: i have my string object based on COW (https://en.wikibooks.org/wiki/More_C%2B%2B_Idioms/Copy-on-write) i think i need add flag Py_TPFLAGS_STRING_SUBCLASS https://bugs.python.org/issue26421 but this only for bases on PyStringObject -- messages

[issue26421] string_richcompare invalid check Py_NotImplemented

2016-02-26 Thread yuriy_levchenko
yuriy_levchenko added the comment: because, PyObject_GetAttr(PyObject *v, PyObject *name) have this code if (!PyString_Check(name)) { and PyDict_GetItem(PyObject *op, PyObject *key) have this code if (!PyString_CheckExact(key) || (hash = ((PyStringObject *) key)->ob_sh

[issue26421] string_richcompare invalid check Py_NotImplemented

2016-02-23 Thread yuriy_levchenko
New submission from yuriy_levchenko: i have object with flag Py_TPFLAGS_STRING_SUBCLASS stringobject.c (line 1192) in function string_richcompare we have check string PyString_Check but, #define PyString_Check(op) \ PyType_FastSubclass(Py_TYPE(op), Py_TPFLAGS_STRING_SUBCLASS

[issue26215] Make GC_Head a compile-time option

2016-02-14 Thread yuriy_levchenko
yuriy_levchenko added the comment: I'm going to do this under define, as an option. In my application it consumes several mBs + it's some performance for handling this structure. -- ___ Python tracker <rep...@bugs.python.org>

[issue26215] remove gc from CPython

2016-01-27 Thread yuriy_levchenko
New submission from yuriy_levchenko: I permanently use gc.disable() but CPython create object with GC_Head. it's use big memory. I suggest add define to a few file that remove use GC_Head and allocate extra memory. -- messages: 259013 nosy: yuriy_levchenko priority: normal severity

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread yuriy_levchenko
yuriy_levchenko added the comment: Thanks for the clarifications. Yes parameter will be a good solution! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23638

[issue23638] shutil.copytree makedirs exception

2015-03-12 Thread yuriy_levchenko
Changes by yuriy_levchenko levchenko.yuriy.vladimirov...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23638

[issue23638] shutil.copytree makedirs exception

2015-03-11 Thread yuriy_levchenko
New submission from yuriy_levchenko: We have a code: names = os.listdir(src) if ignore is not None: ignored_names = ignore(src, names) else: ignored_names = set() os.makedirs(dst) errors = [] But if I had created this folder. I have exception

[issue12548] Add suport native Functor

2011-07-14 Thread yuriy_levchenko
yuriy_levchenko levchenko.yuriy.vladimirov...@gmail.com added the comment: http://www.python.org/dev/peps/pep-0309/#note Abandoned Syntax Proposal I originally suggested the syntax fn@(*args, **kw), meaning the same