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:
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,
Changes by Maries Ionel Cristian :
--
nosy: +ionel.mc
___
Python tracker
<http://bugs.python.org/issue17799>
___
___
Python-bugs-list mailing list
Unsubscribe:
Maries Ionel Cristian added the comment:
Sure, take anything you want.
--
___
Python tracker
<http://bugs.python.org/issue23312>
___
___
Python-bugs-list mailin
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
Changes by Maries Ionel Cristian :
--
nosy: +ionel.mc
___
Python tracker
<http://bugs.python.org/issue6721>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Maries Ionel Cristian added the comment:
Oooops, sorry.
--
___
Python tracker
<http://bugs.python.org/issue20036>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
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
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
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
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).
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 (
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://
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
21 matches
Mail list logo