New submission from Maries Ionel Cristian [EMAIL PROTECTED]:
The docs on epoll object's register method say: Registering a file
descriptor that’s already registered is not an error, and has the same
effect as registering the descriptor exactly once.
However when calling register twice
Maries Ionel Cristian [EMAIL PROTECTED] added the comment:
Why don't just fix the docs ?
I think it's consistent with the epoll api the way it is now.
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3848
New submission from Maries Ionel Cristian [EMAIL PROTECTED]:
http://docs.python.org/dev/library/select.html#id1
Docs say: select.control(changelist, max_events=0[, timeout=None])
However, control requires 2 params (TypeError: control() takes at least
2 arguments (1 given)).
Also, it should
New submission from Maries Ionel Cristian:
Running the file couple of times will make the interpreter fail with:
libgcc_s.so.1 must be installed for pthread_cancel to work
From what I've seen it is triggered from PyThread_delete_key (tries to load
libgcc_s.so at that time).
How does
Maries Ionel Cristian added the comment:
What is the version of your libc library? Try something like dpkg -l
libc6.
2.15-0ubuntu10.4
I don't think it's that obscure ... uwsgi has this issue
https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsgi
Maries Ionel Cristian added the comment:
Correct link
https://www.google.com/search?q=libgcc_s.so.1+must+be+installed+for+pthread_cancel+to+work+uwsgi+site:lists.unbit.it
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18748
Maries Ionel Cristian added the comment:
Well anyway, is there any way to preload libgcc ? Because in python2.x it
wasn't loaded at runtime.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue18748
Maries Ionel Cristian added the comment:
Alright ... would it be a very big hack to preload libgcc in the thread module
(at import time) ? There is platform specific code there anyway, it wouldn't be
such a big deal would it?
--
___
Python tracker
New submission from Maries Ionel Cristian:
One of these doesn't work depending on how you write the exception name.
python3 -mdoctest src/tete.rst
python -mdoctest src/tete.rst
One cannot put an ellipsis in the exception name so you see how this is a
problem.
--
components
Changes by Maries Ionel Cristian ionel...@gmail.com:
Added file: http://bugs.python.org/file33237/tete.rst
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20036
Maries Ionel Cristian added the comment:
Oooops, sorry.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20036
___
___
Python-bugs-list mailing
New submission from Maries Ionel Cristian:
cp65001 is purported to be an alias for utf8.
I get these results:
C:\Python27chcp 65001
Active code page: 65001
C:\Python27python
Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on
win32
Type help, copyright, credits
New submission from Maries Ionel Cristian:
It appears it just does a reference check:
https://hg.python.org/cpython/file/3.4/Objects/typeobject.c#l1300
It appears it's the same in 2.7:
https://hg.python.org/cpython/file/2.7/Objects/typeobject.c#l1161
But this is not the intended behaviour
New submission from Maries Ionel Cristian:
Example code:
import os
import sys
import threading
def run():
sys.stderr.write(in parent thread\n)
threading.Thread(target=run).start()
pid = os.fork()
if pid:
os.waitpid(pid, 0)
else:
sys.stderr.write(in child\n)
To run: while
Maries Ionel Cristian added the comment:
Serhiy, I don't think this is a duplicate. Odd that you closed this without any
explanation.
This happens in a internal lock in cpython's runtime, while the other bug is
about locks used in the logging module (which are very different
Changes by Maries Ionel Cristian ionel...@gmail.com:
--
nosy: +ionel.mc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6721
___
___
Python-bugs
Maries Ionel Cristian added the comment:
You can see that theme in action at
http://python-aspectlib.readthedocs.org/en/latest/
--
nosy: +ionel.mc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23312
Maries Ionel Cristian added the comment:
Sure, take anything you want.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23312
___
___
Python-bugs
Changes by Maries Ionel Cristian ionel...@gmail.com:
--
nosy: +ionel.mc
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue17799
___
___
Python-bugs
New submission from Maries Ionel Cristian:
It appears that callable doesn't really care for the descriptor protocol, so it
return True even if __call__ is actually an descriptor that raise
AttributeError (clearly not callable at all).
Eg:
Python 3.4.3 (v3.4.3:9b73f1c3e601, Feb 24 2015, 22:44
Maries Ionel Cristian added the comment:
For context this respects the descriptor protocol:
a()
Traceback (most recent call last):
File stdin, line 1, in module
File stdin, line 4, in __call__
AttributeError: go away
Mind you, this is legal use:
class B:
... @property
... def __call__
21 matches
Mail list logo