[issue3026] mmap broken with large files on 64bit system

2008-06-12 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- priority: - critical versions: +Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3026 ___ ___

[issue3013] disutils fails with GNU ld (GNU Binutils) 2.18.50.20080523

2008-06-12 Thread Georg Brandl
Changes by Georg Brandl [EMAIL PROTECTED]: -- resolution: - duplicate status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3013 ___ ___

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Tim Golden
Tim Golden [EMAIL PROTECTED] added the comment: Giampaolo Rodola' wrote: New submission from Giampaolo Rodola' [EMAIL PROTECTED]: By using: http://www.python.org/dev/daily-msi/python-2.6.14041.msi C:\C:\python26\python Python 2.6a3 (r26a3:62864, May 9 2008, 14:16:26) [MSC v.1500 32

[issue1676] Fork/exec issues with Tk 8.5/Python 2.5.1 on OS X

2008-06-12 Thread C. E. Ball
Changes by C. E. Ball [EMAIL PROTECTED]: -- nosy: +ceball ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1676 ___ ___ Python-bugs-list mailing list

[issue2848] Remove mimetools usage from the stdlib

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Jun 11, 2008 at 11:09 PM, Barry A. Warsaw [EMAIL PROTECTED] wrote: Barry A. Warsaw [EMAIL PROTECTED] added the comment: r64164 in Python 3.0. This doesn't apply cleanly to Python 2.6; could someone please back port it? Why

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Guilherme Polo
Guilherme Polo [EMAIL PROTECTED] added the comment: I just checked that sys.maxsize was added May 20, so you just need a newer build. -- nosy: +gpolo status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3086

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: It passes for me on Leopard. Can you post the test running in verbose mode so we can see where it hangs? -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue3086] sys.maxsize not available by using the latest Win32 build

2008-06-12 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- resolution: - out of date ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3086 ___ ___

[issue2848] Remove mimetools usage from the stdlib

2008-06-12 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 12, 2008, at 8:57 AM, Benjamin Peterson wrote: Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Jun 11, 2008 at 11:09 PM, Barry A. Warsaw [EMAIL PROTECTED] wrote: Barry

[issue3090] ARCHFLAGS parsing/concatenation in unixccompiler.py breaks when set to a string

2008-06-12 Thread Jesse Noller
New submission from Jesse Noller [EMAIL PROTECTED]: This is on osx 10.5.3, latest gcc tool chain. I have $ARCHFLAGS set to -arch i386 to prevent the OS/X gcc from building PPC code (as I don't want/need it) - if I leave this set as-is, other applications build without error, intel only. If I

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: On python-3000 trunk, _multiprocessing doesn't even compile: /Users/jesse/open_source/subversion/python- 3000/Modules/_multiprocessing/semaphore.c: In function ‘semlock_iszero’: /Users/jesse/open_source/subversion/python-

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 12, 2008, at 9:02 AM, Benjamin Peterson wrote: It passes for me on Leopard. Can you post the test running in verbose mode so we can see where it hangs? It never hangs when run

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: I did a make clean ./configure make and it started compiling for me again. Sorry for the noise. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: If it's only failing during the second run of make test, typically there's some implicit dependency on something that is disturbed by running a test that's later in the suite of tests. This could be either the fault of that other test (not

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Guido van Rossum
Guido van Rossum [EMAIL PROTECTED] added the comment: I should add this was in the trunk (2.6). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___ ___

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Paul Melis
Paul Melis [EMAIL PROTECTED] added the comment: I think I'm having a similar lockup on fedora core 4 (smp machine). This is with the py3k branch, freshly svn updated. When running make test TESTOPTS=test_multiprocessing the first of the two test runs always succeeds in something like 10-15

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Paul Melis
Paul Melis [EMAIL PROTECTED] added the comment: After a few more runs with -v and redirecting output to a file it seems the lockup I get is in test_notify_all (test.test_multiprocessing.WithManagerTestCondition) ___ Python tracker [EMAIL PROTECTED]

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Skip Montanaro
New submission from Skip Montanaro [EMAIL PROTECTED]: I'm fully up-to-date on my py3k branch (r64171). After a make clean I find that I can't build either the time or datetime modules. Here are errors from gcc: building 'time' extension gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall

[issue1819] Speed hack for function calls with named parameters

2008-06-12 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: And here is a patch adding a new test in pybench as suggested by Marc-Andre Lemburg. Added file: http://bugs.python.org/file10600/pybench.patch ___ Python tracker [EMAIL PROTECTED]

[issue2917] merge pickle and cPickle in 3.0

2008-06-12 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Okay, I fixed _pickle's integers unpickling on 64bit platforms. Here is the patch. Added file: http://bugs.python.org/file10601/fix_pickle_int64.diff ___ Python tracker [EMAIL PROTECTED]

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: It's taking me longer to get to this than I planned, any help is appreciated. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-12 Thread Jason Tishler
Jason Tishler [EMAIL PROTECTED] added the comment: I tested the regular expression in #3: (\d+\.\d+(\.(\d+))?([ab](\d+))?) and it worked for both '2.18.50.20080523' '1.2.3a'. Additionally, it worked for the following test cases that I tried: 2.18.50a.20080523 2.18.50a 20080523 2.18.50

[issue3066] FD leak in urllib2

2008-06-12 Thread Bohdan Vlasyuk
Bohdan Vlasyuk [EMAIL PROTECTED] added the comment: The list is not the problem. The problem is the other reference, from socket._fileobject object at 0xf7d42c34. Also note that the workaround (u.fp.recv = None) removes the second reference. This is fine (at least in CPython), because the

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Where does the strftime.c come from? It is not in the Python sources -- is this a Mac-specific thing? -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3091

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Antoine Pitrou
New submission from Antoine Pitrou [EMAIL PROTECTED]: In py3k, pybench wrongly detects UCS2 builds as UCS4. Patch attached. -- components: Demos and Tools files: pybench_ucs.patch keywords: patch messages: 68076 nosy: pitrou severity: normal status: open title: Wrong unicode size

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: I can get an intermittent (1 every 15 or so runs) lock in: test_get (__main__.WithProcessesTestQueue) ... Executed like this: ./python Lib/test/test_multiprocessing.py When I control-c it the stack looks like this: ...snip File

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Adam Olsen
New submission from Adam Olsen [EMAIL PROTECTED]: All these in multiprocessing.h are lacking suitable py/_py/Py/_Py/PY/_PY prefixes: PyObject *mp_SetError(PyObject *Type, int num); extern PyObject *pickle_dumps; extern PyObject *pickle_loads; extern PyObject *pickle_protocol; extern PyObject

[issue3088] test_multiprocessing hangs on OS X 10.5.3

2008-06-12 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- nosy: +roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3088 ___ ___ Python-bugs-list mailing list

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- nosy: +jnoller, roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3093 ___ ___ Python-bugs-list

[issue3094] By default, HTTPSConnection should send header Host: somehost instead of Host: somehost:443

2008-06-12 Thread Steven Wong
New submission from Steven Wong [EMAIL PROTECTED]: Communicating over HTTPS at the default port of 443: import httplib conn = httplib.HTTPSConnection(my-secure-domain.com) conn.request(GET, /) res = conn.getresponse() In the current implementation, the Host header sent in the request is:

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Is this really that much of an issue? multiprocessing lives in it's own directory and isn't part of the Python public API. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED]

[issue3095] multiprocessing initializes flags dict unsafely

2008-06-12 Thread Adam Olsen
New submission from Adam Olsen [EMAIL PROTECTED]: multiprocessing.c currently has code like this: temp = PyDict_New(); if (!temp) return; if (PyModule_AddObject(module, flags, temp) 0) return; PyModule_AddObject consumes the reference to

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-06-12 21:50, Antoine Pitrou wrote: New submission from Antoine Pitrou [EMAIL PROTECTED]: In py3k, pybench wrongly detects UCS2 builds as UCS4. Patch attached. Why is that ? Doesn't chr(10) raise an exception in UCS2 builds

[issue3095] multiprocessing initializes flags dict unsafely

2008-06-12 Thread Jesse Noller
Changes by Jesse Noller [EMAIL PROTECTED]: -- nosy: +jnoller, roudkerk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3095 ___ ___ Python-bugs-list

[issue2849] Remove usage of rfc822 from the stdlib

2008-06-12 Thread Humberto Diogenes
Humberto Diogenes [EMAIL PROTECTED] added the comment: [msg68060] Why does it need to be in 2.6? mimetools is still there. I guess you're right, it doesn't. So, does it make sense to backport this too? ___ Python tracker [EMAIL PROTECTED]

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Georg Georg Brandl [EMAIL PROTECTED] added the comment: Georg Where does the strftime.c come from? It is not in the Python Georg sources -- is this a Mac-specific thing? Whoops. My bad. Modified sandbox. Please reject. Skip

[issue2234] cygwinccompiler.py fails for latest MinGW releases.

2008-06-12 Thread Will Brown
Will Brown [EMAIL PROTECTED] added the comment: Maybe I have a problem with my test code... import re def test_re(out_string): result = re.search('(\d+\.\d+(\.(\d+))?([ab](\d+))?)', out_string) print '--- msg00622 ---' print result.group(1) print

[issue3091] Can't build datetime or time on py3k (r64171)

2008-06-12 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: My bad. Sorry for the noise. mods in my sandbox... -- resolution: - invalid status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3091

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le jeudi 12 juin 2008 à 20:26 +, Marc-Andre Lemburg a écrit : Doesn't chr(10) raise an exception in UCS2 builds ? No, it returns a 2-character string. Note that sys.maxunicode is not available in Python 2.1 which is why I chose

[issue1778443] robotparser.py fixes

2008-06-12 Thread Aristotelis Mikropoulos
Aristotelis Mikropoulos [EMAIL PROTECTED] added the comment: So, finally, will this patch be applied? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1778443 ___

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: No, it returns a 2-character string. Which hopefully is the proper surrogate sequence :) -- nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3092

[issue1778443] robotparser.py fixes

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Can we have a unified diff as per http://www.python.org/dev/patches/? -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1778443

[issue2849] Remove usage of rfc822 from the stdlib

2008-06-12 Thread Barry A. Warsaw
Barry A. Warsaw [EMAIL PROTECTED] added the comment: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Jun 12, 2008, at 4:36 PM, Humberto Diogenes wrote: Humberto Diogenes [EMAIL PROTECTED] added the comment: [msg68060] Why does it need to be in 2.6? mimetools is still there. I guess

[issue2848] Remove mimetools usage from the stdlib

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is done. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2848 ___

[issue2775] Implement PEP 3108

2008-06-12 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- dependencies: -Remove mimetools usage from the stdlib ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 ___

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Which hopefully is the proper surrogate sequence :) Well at least that's what the doc string says! ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3092

[issue3092] Wrong unicode size detection in pybench

2008-06-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-06-12 22:58, Antoine Pitrou wrote: Antoine Pitrou [EMAIL PROTECTED] added the comment: Le jeudi 12 juin 2008 à 20:26 +, Marc-Andre Lemburg a écrit : Doesn't chr(10) raise an exception in UCS2 builds ? No, it returns

[issue1569291] Speed-up in array_repeat()

2008-06-12 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: Georg, do you want to take it from here. -- assignee: rhettinger - georg.brandl nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1569291

[issue3096] sphinx: sort warnings by filename

2008-06-12 Thread Marius Gedminas
New submission from Marius Gedminas [EMAIL PROTECTED]: Here's a patch that makes Sphinx sort warnings about unused documents by file name. Without it you get them in seemingly arbitrary order, which makes it harder to parse, when your documents are scattered in a large tree. --

[issue2912] let platform.uname try harder

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks for doing this. Would you please try on Windows the patch, I'm attaching now? Added file: http://bugs.python.org/file10607/platform2.diff ___ Python tracker [EMAIL PROTECTED]

[issue3096] sphinx: sort warnings by filename

2008-06-12 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, added in r64201. -- resolution: - accepted status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3096 ___

[issue3097] sphinx: config option for exclude_dirnames

2008-06-12 Thread Marius Gedminas
New submission from Marius Gedminas [EMAIL PROTECTED]: I'm building developer documentation for an existing project that already had reStructuredText files scattered in the source tree. Unfortunately these use the same extension (.txt) as functional doctest files, but fortunately tests live

[issue2493] Remove unused constants from optimized code objects

2008-06-12 Thread Raymond Hettinger
Raymond Hettinger [EMAIL PROTECTED] added the comment: The issue with unused constants is an artifact of the peepholer running after the bytecode generation phase. When constant folding was written, I intentionally left-out a step to remove unused constants because of the code complexity,

[issue3098] sys.sizeof test fails with wide unicode

2008-06-12 Thread Benjamin Peterson
New submission from Benjamin Peterson [EMAIL PROTECTED]: test test_sys failed -- Traceback (most recent call last): File /temp/python/trunk/Lib/test/test_sys.py, line 549, in test_specialtypes size2=basicsize + sys.getsizeof(str(s))) File /temp/python/trunk/Lib/test/test_sys.py, line

[issue2849] Remove usage of rfc822 from the stdlib

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I've removed the whole module in r64203. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2849

[issue2775] Implement PEP 3108

2008-06-12 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- dependencies: -Remove usage of rfc822 from the stdlib ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2775 ___

[issue3098] sys.sizeof test fails with wide unicode

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: It was recommended by Georg that you expose Py_UNICODE_SIZE in the _testcapi, since the size is not consistent across all platforms. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3098

[issue2874] Remove use of the stat module in the stdlib

2008-06-12 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: This is a proof of concept how to add methods to a structseq type. Of course PyStructSequence_InitType could also get a companion PyStructSequence_InitTypeEx that takes a PyMethodDef* array. -- keywords: +patch nosy: +georg.brandl Added

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-12 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- assignee: - amaury.forgeotdarc ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2065 ___ ___

[issue2159] dbmmodule inquiry function is performance prohibitive

2008-06-12 Thread Jesús Cea Avión
Jesús Cea Avión [EMAIL PROTECTED] added the comment: johansen, could you be happy returning True of False according to database being open/closed?. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2159 ___

[issue2159] dbmmodule inquiry function is performance prohibitive

2008-06-12 Thread johansen
johansen [EMAIL PROTECTED] added the comment: Yes, True/False should be sufficient for our purposes. IIRC, we were trying to determine if we had a stale handle to the database and needed to open it again. ___ Python tracker [EMAIL PROTECTED]

[issue2912] let platform.uname try harder

2008-06-12 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: Your patch works perfectly on windows. Thanks for your help. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2912 ___

[issue1683] Thread local storage and PyGILState_* mucked up by os.fork()

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I applied this in r64212. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1683 ___

[issue3093] Namespace polution from multiprocessing

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: The directory is irrelevant. C typically uses a flat namespace for symbols. If python loads this library it will conflict with any other libraries using the same name. This has happened numerous times in the past, so there's no questioning the

[issue2912] let platform.uname try harder

2008-06-12 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Marc, could you look at this please? -- assignee: - lemburg nosy: +lemburg ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2912 ___

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-12 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Thank you for progress! - The patch for 2.5 is OK for me. We could just add the a paragraph that appears in your patch for trunk (PC/VC6/readme.txt): +_msi +_msi.c. You need to install Windows Installer SDK to build this module. I

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: I just committed r64214, that can compile with vc6. When compiled with a separate SDK, socket.ioctl is available. With the stock vc6, the function is disabled ___ Python tracker [EMAIL PROTECTED]

[issue3095] multiprocessing initializes flags dict unsafely

2008-06-12 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: I believe this patch solves the problem. I added the line Py_DECREF(temp) after the code block shown above. I also changed the line if (PyDict_SetItemString(temp, #name, Py_BuildValue(i, name)) 0) return to if

[issue3099] On windows, import nul always succeed

2008-06-12 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc [EMAIL PROTECTED]: on Windows, the stat() function always returns True for some special device names (nul, con, com1, lpt1...), even when followed by an extension. Thus import con manages to find that con.py exists, and tries to read from it... fun. A

[issue2065] trunk version does not compile with vs8 and vc6

2008-06-12 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed r64215 on py3k branch. Now both trunk and py3k compile with VC6, VS8 and VS9. I cannot run VS7.1; I will do 2.5 shortly. I also filed issue3099 about the funny import nul. ___ Python tracker

[issue3095] multiprocessing initializes flags dict unsafely

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: This doesn't look right. PyDict_SetItemString doesn't steal the references passed to it, so your reference to flags will be leaked each time. Besides, I think it's a little cleaner to INCREF it before call PyModule_AddObject, then DECREF it at

[issue3079] sys.exit() called from optparse - bad, bad, bad

2008-06-12 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3079 ___ ___ Python-bugs-list

[issue3094] By default, HTTPSConnection should send header Host: somehost instead of Host: somehost:443

2008-06-12 Thread Senthil
Senthil [EMAIL PROTECTED] added the comment: The HTTPSConnection class derives from HTTPConnection and the methods in the HTTPConnection assume that 1) It is either over the default HTTP port or 2) Over a different port (be it different HTTP port(8080?) or 443 for HTTPS etc) and in that case it

[issue2517] Error when printing an exception containing a Unicode string

2008-06-12 Thread Gabriel Genellina
Changes by Gabriel Genellina [EMAIL PROTECTED]: -- nosy: +gagenellina ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2517 ___ ___ Python-bugs-list

[issue2917] merge pickle and cPickle in 3.0

2008-06-12 Thread Alexandre Vassalotti
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Restored _pickle in r64180. -- status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2917 ___

[issue3100] segfault after loading multiprocessing.reduction

2008-06-12 Thread Adam Olsen
New submission from Adam Olsen [EMAIL PROTECTED]: $ ./python Python 2.6a3+ (unknown, Jun 12 2008, 20:10:55) [GCC 4.2.3 (Debian 4.2.3-1)] on linux2 Type help, copyright, credits or license for more information. import multiprocessing.reduction [55604 refs] [55604 refs] Segmentation fault

[issue3100] segfault after loading multiprocessing.reduction

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: op is a KeyedRef instance. The instance being cleared from the module is the multiprocessing.util._afterfork_registry. Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 0xb7d626b0 (LWP 2287)] 0x0809a131 in

[issue3100] segfault from multiprocessing.util.register_after_fork

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: More specific test case. -- title: segfault after loading multiprocessing.reduction - segfault from multiprocessing.util.register_after_fork Added file: http://bugs.python.org/file10610/register_after_fork-crash.py

[issue3100] segfault from multiprocessing.util.register_after_fork

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: Very specific test case, eliminating multiprocessing entirely. It may be an interaction between having the watched obj as its own key in the WeakValueDictionary and the order in which the two modules are cleared. Added file:

[issue3100] segfault from multiprocessing.util.register_after_fork

2008-06-12 Thread Adam Olsen
Changes by Adam Olsen [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10612/inner.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3100 ___ ___

[issue3100] segfault from multiprocessing.util.register_after_fork

2008-06-12 Thread Adam Olsen
Changes by Adam Olsen [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10610/register_after_fork-crash.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3100 ___

[issue3100] segfault with WeakValueDictionary and module clearing

2008-06-12 Thread Adam Olsen
Changes by Adam Olsen [EMAIL PROTECTED]: -- title: segfault from multiprocessing.util.register_after_fork - segfault with WeakValueDictionary and module clearing ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3100

[issue3100] weakref subclass segfault

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: Specific enough yet? Seems the WeakValueDictionary and the module clearing aren't necessary. A subclass of weakref is created. The target of this weakref is added as an attribute of the weakref. So long as a callback is present there will be a

[issue3100] weakref subclass segfault

2008-06-12 Thread Adam Olsen
Changes by Adam Olsen [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10612/inner.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3100 ___ ___

[issue3100] weakref subclass segfault

2008-06-12 Thread Adam Olsen
Changes by Adam Olsen [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10611/outer.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3100 ___ ___

[issue3094] By default, HTTPSConnection should send header Host: somehost instead of Host: somehost:443

2008-06-12 Thread Steven Wong
Steven Wong [EMAIL PROTECTED] added the comment: Clarification: I am not saying that sending Host: somehost:443 for an HTTPS connection at port 443 is a bug. It is in fact legal. Sending Host: somehost is also legal in this situation, and IMHO is the preferred behavior, because :port is

[issue3100] weakref subclass segfault

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: 1. MyRef is released from the module as part of shutdown 2. MyRef's subtype_dealloc DECREFs its dictptr (not clearing it, as MyRef is dead and should be unreachable) 3. the dict DECREFs the Dummy (MyRef's target) 4. Dummy's subtype_dealloc calls

[issue3100] weakref subclass segfault

2008-06-12 Thread Adam Olsen
Adam Olsen [EMAIL PROTECTED] added the comment: Ahh, I missed a detail: when the callback is called the weakref has a refcount of 0, which is ICNREFed to 1 when getting put in the args, then drops down to 0 again when the args are DECREFed (causing it to get _Py_ForgetReference to be called a