[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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:

[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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

[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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) -

[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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

[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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:

[issue5035] Compilation --without-threads fails

2009-01-23 Thread Antoine Pitrou
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 ___

[issue5035] Compilation --without-threads fails

2009-01-23 Thread Jesse Noller
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

[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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 ___

[issue5035] Compilation --without-threads fails

2009-01-23 Thread STINNER Victor
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 ___

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-23 Thread Amaury Forgeot d'Arc
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

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-23 Thread STINNER Victor
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

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-23 Thread Amaury Forgeot d'Arc
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.

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-23 Thread Jesse Noller
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

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-23 Thread Jesse Noller
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

[issue5035] Compilation --without-threads fails

2009-01-23 Thread Jesse Noller
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 ___

[issue3807] _multiprocessing build fails when configure --without-threads

2009-01-23 Thread STINNER Victor
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 ___

[issue5031] Thread.daemon docs

2009-01-23 Thread Jesse Noller
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

[issue2527] Pass a namespace to timeit

2009-01-23 Thread Steven D'Aprano
Changes by Steven D'Aprano st...@pearwood.info: -- nosy: +stevenjd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2527 ___ ___ Python-bugs-list

[issue4106] multiprocessing occasionally spits out exception during shutdown

2009-01-23 Thread Jesse Noller
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

[issue5037] unexpected unicode behavior for proxy objects

2009-01-23 Thread Taldor
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

[issue3551] multiprocessing.Pipe terminates with ERROR_NO_SYSTEM_RESOURCES if large data is sent (win2000)

2009-01-23 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: -- type: resource usage - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3551 ___ ___

[issue4106] multiprocessing occasionally spits out exception during shutdown

2009-01-23 Thread Jesse Noller
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 ___

[issue5034] itertools.fixlen

2009-01-23 Thread Robert Lehmann
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:

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-01-23 Thread jan matejek
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

[issue1518] Fast globals/builtins access (patch)

2009-01-23 Thread Collin Winter
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 ___

[issue3881] IDLE won't start in custom directory.

2009-01-23 Thread Zlm
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 ___

[issue4908] adding a get_metadata in distutils

2009-01-23 Thread Ray
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 ___

[issue5038] urrlib2/httplib doesn't reset file position between requests

2009-01-23 Thread Gabriel Genellina
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

[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__

2009-01-23 Thread Gabriel Genellina
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:

[issue5039] Adjust reference-counting note

2009-01-23 Thread Terry J. Reedy
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

[issue5031] Thread.daemon docs

2009-01-23 Thread Gabriel Genellina
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

[issue5031] Thread.daemon docs

2009-01-23 Thread Jesse Noller
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

[issue5031] Thread.daemon docs

2009-01-23 Thread Jesse Noller
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 ___

[issue4992] yield's documentation not updated

2009-01-23 Thread Terry J. Reedy
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

[issue5031] Thread.daemon docs

2009-01-23 Thread Jesse Noller
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 ___

[issue5031] Thread.daemon docs

2009-01-23 Thread Jesse Noller
Changes by Jesse Noller jnol...@gmail.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5031 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5031] Thread.daemon docs

2009-01-23 Thread Jesse Noller
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

[issue4672] Distutils SWIG support blocks use of SWIG -outdir option

2009-01-23 Thread William Fulton
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@',

[issue5031] Thread.daemon docs

2009-01-23 Thread Gabriel Genellina
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

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-23 Thread Gabriel Genellina
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

[issue5037] unicode(x) for weakref.proxy objects invokes __str__ instead of __unicode__

2009-01-23 Thread Benjamin Peterson
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

[issue3677] importing from UNC roots doesn't work

2009-01-23 Thread Gabriel Genellina
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

[issue4999] multiprocessing.Queue does not order objects

2009-01-23 Thread Gabriel Genellina
Changes by Gabriel Genellina gagsl-...@yahoo.com.ar: -- nosy: +gagenellina ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4999 ___ ___

[issue5036] xml.parsers.expat make a dictionary which keys are broken if buffer_text is False.

2009-01-23 Thread Takeshi Matsuyama
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.

[issue4111] Add DTrace probes

2009-01-23 Thread Laszlo (Laca) Peter
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

[issue4965] Can doc index of html version be separately scrollable?

2009-01-23 Thread Senthil
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.