[issue3385] cPickle to pickle conversion in py3k missing methods

2008-07-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: A use case: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/572213 shows how code can use the Pickler.dispatch dict, but also some Pickler.save_xxx function which should be exposed as well. ___

[issue3208] function annotation for builtin and C function

2008-07-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: - A immmutable object may contain mutable members. Try with a tuple containing a list. Then, I don't think that something says that CFunctionObjects are immutable. They don't have any modifiable attribute, until today! - (Did I say

[issue2523] binary buffered reading is quadratic

2008-07-23 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: When I revised the patch I had a weak understanding of nonblocking I/O. I thought the exponential reads were for nonblocking I/O, but I see now that is non-sense. Fine, so it will make the patch simpler. As for non-blocking IO, I think we

[issue3379] Option to not-exit on test

2008-07-23 Thread J. Pablo Fernández
J. Pablo Fernández [EMAIL PROTECTED] added the comment: What about always returning the results. Granted, when sys.exit is run there will be no results returned, but then nothing to get the results. If we divided in two functions, would one be unittest.main and the other unittest.nonExitingMain?

[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-07-23 Thread Antoine Pitrou
Changes by Antoine Pitrou [EMAIL PROTECTED]: -- nosy: +pitrou priority: - normal ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2417 ___ ___

[issue874900] threading module can deadlock after fork

2008-07-23 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Greg, I'm not sure your improvement patch is right, since some code may be holding a reference to the former _MainThread instance and expecting it to still be part of the active threads container. On the other hand there are things in the

[issue3256] Multiprocessing docs are not 3.0-ready

2008-07-23 Thread Andrii V. Mishkovskyi
Changes by Andrii V. Mishkovskyi [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10848/multiprocessing.rst.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3256 ___

[issue3256] Multiprocessing docs are not 3.0-ready

2008-07-23 Thread Andrii V. Mishkovskyi
Changes by Andrii V. Mishkovskyi [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10960/issue3256.multiprocessing.rst.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3256 ___

[issue3256] Multiprocessing docs are not 3.0-ready

2008-07-23 Thread Andrii V. Mishkovskyi
Andrii V. Mishkovskyi [EMAIL PROTECTED] added the comment: Here is the updated version of multiprocessing.rst patch. Not much has changes, as you can see (if you've seen the previous version, of course ;) ). I have only one question left about multiprocessing.rst, it's about

[issue3431] multiprocessing uses Pickler.dispatch which isn't in 3.0 _pickle

2008-07-23 Thread Georg Brandl
New submission from Georg Brandl [EMAIL PROTECTED]: multiprocessing's new ForkingPickler uses Pickler's dispatch attribute which is only present in the Python version, not the C one. As a result, a straightforward merge isn't possible. -- assignee: jnoller components: Library (Lib)

[issue1524] os.system() fails for commands with multiple quoted file names

2008-07-23 Thread qiang
qiang [EMAIL PROTECTED] added the comment: in subprocess.py , change line 788: args = comspec + /c + args to: args = comspec + args it will be ok. -- nosy: +likes ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1524

[issue3208] function annotation for builtin and C function

2008-07-23 Thread Haoyu Bai
Haoyu Bai [EMAIL PROTECTED] added the comment: I think there is reason that CFunctionObjects are immutable: single CFunctionObject is shared by mutiple Python interpreters, so any change of CFunctionObject would affect other Python interpreters. Is that right? If it should be immutable, then

[issue3208] function annotation for builtin and C function

2008-07-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: There never should be multiple Python interpreters running in the same process, though. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3208

[issue3359] add 'rbU' mode to open()

2008-07-23 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: As I indicated in msg69679 if you want to see the line endings just open the file in binary mode ('rb'). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3359

[issue3353] make built-in tokenizer available via Python C API

2008-07-23 Thread Andy
Andy [EMAIL PROTECTED] added the comment: Sorry for the terribly dumb question about this. Are you meaning that, at this stage, all that is required is: 1. the application of the PyAPI_FUNC macro 2. move the file to the Include directory 3. update Makefile.pre.in to point to the new

[issue2975] VS8 include dirs grow without bound

2008-07-23 Thread Jim Kleckner
Jim Kleckner [EMAIL PROTECTED] added the comment: Any new thoughts on this? I had to patch my local copy again after a reinstall. It would be nice to fix it upstream. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2975

[issue2975] VS8 include dirs grow without bound

2008-07-23 Thread Jim Kleckner
Jim Kleckner [EMAIL PROTECTED] added the comment: Sorry, posted too quickly. Actually, the problem was a little different. There was an environment variable with '=' characters in it. Here is a patch to deal with that: --- msvc9compiler.py.orig 2008-07-23 16:13:25.248438400 -0700 +++

[issue3431] multiprocessing uses Pickler.dispatch which isn't in 3.0 _pickle

2008-07-23 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Duplicate of issue3385 -- resolution: - duplicate status: open - closed superseder: - cPickle to pickle conversion in py3k missing methods ___ Python tracker [EMAIL PROTECTED]

[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-07-23 Thread Facundo Batista
Facundo Batista [EMAIL PROTECTED] added the comment: Alexander, tried the issue2417a.diff patch against 65210, and does not apply cleanly, could you please submit an updated one? Thanks! ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2417

[issue3208] function annotation for builtin and C function

2008-07-23 Thread Haoyu Bai
Haoyu Bai [EMAIL PROTECTED] added the comment: As I understand, at least C extension modules, which built as shared library, would be shared among Python interpreter in different process space. Is that correct? ___ Python tracker [EMAIL PROTECTED]

[issue1758146] Crash in PyObject_Malloc

2008-07-23 Thread Graham Dumpleton
Graham Dumpleton [EMAIL PROTECTED] added the comment: Franco, you said 'I found that you cannot create additional thread states against the first interpreter and swap between them w/o this assertion occurring. ...' Since the Py_DEBUG check is checking against the simplified GIL state API

[issue2417] [py3k] Integer floor division (//): small int check omitted

2008-07-23 Thread Alexander Belopolsky
Alexander Belopolsky [EMAIL PROTECTED] added the comment: It looks like e-mail submission did not work. Uploading updated patch as issue2417b.diff . Added file: http://bugs.python.org/file10962/issue2417b.diff ___ Python tracker [EMAIL PROTECTED]

[issue3432] Mac, 2.6 framework install error

2008-07-23 Thread Robin Dunn
New submission from Robin Dunn [EMAIL PROTECTED]: OSX Leopard (10.5.4) Python-2.6b2 tarball ./configure --enable-universalsdk --enable-framework make sudo make install Ends with this error: cd Mac make installmacsubtree DESTDIR= Creating directory

[issue3433] Mac, 3.0 framework install error with fink cp

2008-07-23 Thread Robin Dunn
New submission from Robin Dunn [EMAIL PROTECTED]: OSX Leopard (10.5.4) Python-3.0b2 tarball ./configure --enable-universalsdk --enable-framework make sudo make install Ends with this error: cd PythonLauncher make install DESTDIR= test -d /Applications/Python 3.0 || mkdir -p

[issue3434] Mac, 3.0 framework install, Python.app not created

2008-07-23 Thread Robin Dunn
New submission from Robin Dunn [EMAIL PROTECTED]: OS X Leopard (10.5.4) Python-3.0b2 tarball ./configure --enable-universalsdk --enable-framework make sudo make install /Library/Frameworks/Python.framework/Versions/3.0/Resources/Python.app is not created by the install step, but it is needed

[issue3208] function annotation for builtin and C function

2008-07-23 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Jul 23, 2008 at 8:44 PM, Haoyu Bai [EMAIL PROTECTED] wrote: Haoyu Bai [EMAIL PROTECTED] added the comment: As I understand, at least C extension modules, which built as shared library, would be shared among Python interpreter