STINNER Victor victor.stin...@haypocalc.com added the comment:
Why is PyGILState_Ensure() defined in Include/pystate.h in there is not
thread? PyGILState_Ensure() implementation is conditional (in
Python/pystate.c). Here is a patch to make the definition optional.
Added file:
STINNER Victor victor.stin...@haypocalc.com added the comment:
Another patch to fix _sqlite without thread support.
Added file: http://bugs.python.org/file12839/_sqlite_nothread.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5035
STINNER Victor victor.stin...@haypocalc.com added the comment:
_multiprocessing modules doesn't compile but I don't know how to fix it:
- conn_poll() has a _save argument, but the argument is not used in
both conn_poll() implementations (pipe_connection.c and socket_connection.c)
-
STINNER Victor victor.stin...@haypocalc.com added the comment:
Oops, here is a fix for my regression.
--
keywords: +patch
Added file: http://bugs.python.org/file12837/object_dump_nothread.patch
___
Python tracker rep...@bugs.python.org
STINNER Victor victor.stin...@haypocalc.com added the comment:
Here is a patch to remove the unused _save argument of conn_poll()
function from the _multiprocessing mode. It fixes one of the compilation
problem without thread support.
Added file:
Antoine Pitrou pit...@free.fr added the comment:
There is already a separate issue for multiprocessing compilation: #3807
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5035
___
Jesse Noller jnol...@gmail.com added the comment:
Victor - there is already another bug and a pending patchbto fix
multiprocessing when thread support is enabled. Please do not focus on
that.
___
Python tracker rep...@bugs.python.org
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file:
http://bugs.python.org/file12840/_multiprocessing_remove_save.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5035
___
STINNER Victor victor.stin...@haypocalc.com added the comment:
@pitou and @jnoller: Ok ok, fine, I will check #3807.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5035
___
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
This second patch is good and does fix the error.
--
keywords: -needs review
resolution: - accepted
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3807
STINNER Victor victor.stin...@haypocalc.com added the comment:
I don't understand the usage of _save argument of conn_poll() function
(of the _multiprocessing module). Here is a patch to remove it. I first
wrote this patch to try to compile _multiprocessing without thread
support (which is
Amaury Forgeot d'Arc amaur...@gmail.com added the comment:
_save is used, by the Py_BLOCK_THREADS macros.
(when threads are enabled, of course).
I think that you should not try to compile _multiprocessing without
threads enabled. multiprocessing does need multiple threads to work.
Jesse Noller jnol...@gmail.com added the comment:
Amaury is correct - without thread support, a lot of mp internals will
yak, so we're just going to disable it
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3807
Jesse Noller jnol...@gmail.com added the comment:
my patch is in py3k as 68875 and trunk as r68874
--
resolution: accepted - fixed
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3807
Jesse Noller jnol...@gmail.com added the comment:
I've committed the fix for issue 3807 to resolve the mp issues.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5035
___
Changes by STINNER Victor victor.stin...@haypocalc.com:
Removed file:
http://bugs.python.org/file12841/_multiprocessing_remove_save.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3807
___
Jesse Noller jnol...@gmail.com added the comment:
Attached is a patch to the docs which reflects the nature of the daemon
property based on trunk
--
keywords: +needs review, patch
nosy: +jnoller
Added file: http://bugs.python.org/file12842/issue5031.patch
Changes by Steven D'Aprano st...@pearwood.info:
--
nosy: +stevenjd
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2527
___
___
Python-bugs-list
Jesse Noller jnol...@gmail.com added the comment:
Skip, using this:
while ((x++ 500)) ; do echo '!'$i ; ./python.exe test_proc.py; done |
egrep '!'
I don't see the exception in python-trunk, freshly compiled. It could be
an OS thing (I'm on OS/X) - I just want to confirm that you're still
New submission from Taldor tinu...@skynet.be:
Calling the unicode function on a proxy object, doesn't use the proxi-ed
object's __unicode__ method, but its __str__ method.
class A(object):
... def __str__(self):
... return str
... def __unicode__(self):
... return unicode
Changes by Jesse Noller jnol...@gmail.com:
--
type: resource usage - feature request
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3551
___
___
Jesse Noller jnol...@gmail.com added the comment:
Ah ha. I see it if I run it with the loop set to 3000 - it is pretty rare.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4106
___
Robert Lehmann lehman...@gmail.com added the comment:
When I started writing this patch this was actually what I intended. But
having ``fixlen(range(3), 2)`` return 0 1 2 struck me as odd. Renaming
the function to `pad` would help there indeed.
It depends on which use case is more common:
New submission from jan matejek jmate...@suse.cz:
since 2.6 httplib supports reading from file-like objects.
Now consider the following situation:
There are two handlers in urrlib2, first is plain http, second is basic
auth.
I want to POST a file to a service, and pass the open file object as
Changes by Collin Winter coll...@gmail.com:
--
nosy: +collinwinter, jyasskin
type: feature request - performance
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1518
___
Zlm zemari...@gmail.com added the comment:
I got my problem fixed in 4 days!
Thank you for all your help, Martin!
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3881
___
Ray rayjohnterr...@gmail.com added the comment:
any chance of getting a patch that would work in 2.4?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4908
___
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
This happens in other implementations too, not just urllib2.
If the server supports it, the best way is to send an 'Expect: 100-
Continue' header field before attempting to send the actual file.
--
nosy: +gagenellina
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
Same results on trunk.
--
components: +Interpreter Core -None
nosy: +gagenellina
title: unexpected unicode behavior for proxy objects - unicode(x) for
weakref.proxy objects invokes __str__ instead of __unicode__
versions:
New submission from Terry J. Reedy tjre...@udel.edu:
Language / Data model / Objects, values and types (2.6-3.1)
third paragraph, has the following note:
(Implementation note: the current implementation uses a
reference-counting scheme with (optional) delayed detection of
cyclically linked
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
This is a boolean value, and is False by default.
Not true; the next sentence in the description explains where the
default value comes from.
I'd join both paragraphs to make it more clear:
A boolean value indicating whether this
Jesse Noller jnol...@gmail.com added the comment:
Not true; the next sentence in the description explains where the
default value comes from.
Hmm, unless your threads are spawned by daemonized threads; the value
always defaults to false. That's why I said it defaults to False. Hows
this:
A
Changes by Jesse Noller jnol...@gmail.com:
Removed file: http://bugs.python.org/file12842/issue5031.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5031
___
Terry J. Reedy tjre...@udel.edu added the comment:
I would go with the first suggestion as that was the intent of adding
next() as a builtin function.
--
nosy: +tjreedy
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4992
Jesse Noller jnol...@gmail.com added the comment:
Hows this Gabriel?
Added file: http://bugs.python.org/file12843/issue5031.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5031
___
Changes by Jesse Noller jnol...@gmail.com:
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5031
___
___
Python-bugs-list mailing list
Unsubscribe:
Jesse Noller jnol...@gmail.com added the comment:
Hows the new patch Gabriel?
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5031
___
___
Python-bugs-list
William Fulton w...@fultondesigns.co.uk added the comment:
This error can be replicated on the command line with suitable quoting
of the -outdir option:
swig -c++ -outdir .
You need to pass the options correctly by separating them out, so use:
swig_opts=['-c++', '-...@hepmcincpath@',
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
Looks fine to me. Bah, perhaps purists would write `daemon` =
``False`` , but I think the meaning is perfectly clear now.
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5031
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
If the xml file is small enough, could you attach it to the issue? Or
provide a download location? I could not find it myself (without
downloading the whole package)
(Note that Python 2.5 only gets security fixes now, so unless this
Benjamin Peterson benja...@python.org added the comment:
This was broken by r64791. The problem is that PyObject_Unicode now uses
_PyType_Lookup instead of PyObject_GetItem, so that the proxy's custom
__getattr__ implementation is bypassed.
--
nosy: +benjamin.peterson, ncoghlan
Gabriel Genellina gagsl-...@yahoo.com.ar added the comment:
The path variable should be PyMem_Free'd (in both trunk and py3k)
(also, I don't see any specific test - is there any?)
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar:
--
nosy: +gagenellina
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4999
___
___
Takeshi Matsuyama tksmas...@gmail.com added the comment:
Thanks for reply!
If the xml file is small enough, could you attach it to the issue? Or
provide a download location?
Sorry, I found here.
Laszlo (Laca) Peter l...@sun.com added the comment:
Please see here for discussion about the -G flag on OS X:
http://markmail.org/message/4nheqnexjr2o6mcx
If I read it correctly, on OS X, you will need to use -h
instead of -G and it won't emit an object file (dtrace.o)
so you will not need to
Senthil orsent...@gmail.com added the comment:
Terry, I think you mean the Sidebar content, right?
Yes, I agree with you. It would be desirable to have the Sidebar
Fixed, while we scroll the document (Like this:
http://www.w3.org/Style/CSS/)
This has to be worked out in the Sphnix CSS.
46 matches
Mail list logo