Changes by yuriy_levchenko <iro...@mail.ru>:
--
type: -> behavior
___
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue26480>
___
__
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
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
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
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
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>
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
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
Changes by yuriy_levchenko levchenko.yuriy.vladimirov...@gmail.com:
--
type: - behavior
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23638
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
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
11 matches
Mail list logo