[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: For context this respects the descriptor protocol: >>> a() Traceback (most recent call last): File "", line 1, in File "", line 4, in __call__ AttributeError: go away Mind you, this is legal use: >>> class B:

[issue23990] Callable builtin doesn't respect descriptors

2015-04-17 Thread Maries Ionel Cristian
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,

[issue17799] settrace docs are wrong about "c_call" events

2015-03-18 Thread Maries Ionel Cristian
Changes by Maries Ionel Cristian : -- nosy: +ionel.mc ___ Python tracker <http://bugs.python.org/issue17799> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue23312] google thinks the docs are mobile unfriendly

2015-01-25 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: Sure, take anything you want. -- ___ Python tracker <http://bugs.python.org/issue23312> ___ ___ Python-bugs-list mailin

[issue23312] google thinks the docs are mobile unfriendly

2015-01-25 Thread Maries Ionel Cristian
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 <http://bugs.python.org/issue23

[issue6721] Locks in the standard library should be sanitized on fork

2014-11-02 Thread Maries Ionel Cristian
Changes by Maries Ionel Cristian : -- nosy: +ionel.mc ___ Python tracker <http://bugs.python.org/issue6721> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22697] Deadlock with writing to stderr from forked process

2014-11-02 Thread Maries Ionel Cristian
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

[issue22697] Deadlock with writing to stderr from forked process

2014-10-22 Thread Maries Ionel Cristian
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&quo

[issue22507] PyType_IsSubtype doesn't call __subclasscheck__

2014-09-27 Thread Maries Ionel Cristian
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 beha

[issue21808] 65001 code page not supported

2014-06-19 Thread Maries Ionel Cristian
New submission from Maries Ionel Cristian: cp65001 is purported to be an alias for utf8. I get these results: C:\Python27>chcp 65001 Active code page: 65001 C:\Python27>python Python 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] on win32 Type "help&q

[issue20036] Running same doctests not possible on both py3 and py2

2013-12-20 Thread Maries Ionel Cristian
Maries Ionel Cristian added the comment: Oooops, sorry. -- ___ Python tracker <http://bugs.python.org/issue20036> ___ ___ Python-bugs-list mailing list Unsub

[issue20036] Running same doctests not possible on both py3 and py2

2013-12-20 Thread Maries Ionel Cristian
Changes by Maries Ionel Cristian : Added file: http://bugs.python.org/file33237/tete.rst ___ Python tracker <http://bugs.python.org/issue20036> ___ ___ Python-bugs-list m

[issue20036] Running same doctests not possible on both py3 and py2

2013-12-20 Thread Maries Ionel Cristian
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. -- compo

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
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 tr

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
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 <http://bugs.python.org/is

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
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 <http://bugs.python.org/issue18

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-17 Thread Maries Ionel Cristian
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+install

[issue18748] libgcc_s.so.1 must be installed for pthread_cancel to work

2013-08-15 Thread Maries Ionel Cristian
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).

[issue3852] kqueue.control requires 2 params while docs say max_events (the second) defaults to 0

2008-09-12 Thread Maries Ionel Cristian
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 (

[issue3848] select.epoll calling register with the same fd fails

2008-09-12 Thread Maries Ionel Cristian
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://

[issue3848] select.epoll calling register with the same fd fails

2008-09-12 Thread Maries Ionel Cristian
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 callin