[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 bit
 (Intel)] on
  win32
 Type help, copyright, credits or license for more information.
 import sys
 sys.maxsize
 Traceback (most recent call last):
   File stdin, line 1, in module
 AttributeError: 'module' object has no attribute 'maxsize'

It's there in a trunk build

dump

Python 2.6a3+ (trunk:64120:64164M, Jun 12 2008, 08:49:20)
Type help, copyright, credits or license for more
 import sys
[34171 refs]
 sys.maxsize
2147483647
[34173 refs]


/dump

--
nosy: +tim.golden

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3086
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 does it need to be in 2.6? mimetools is still there.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2848
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 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 does it need to be in 2.6? mimetools is still there.

I guess you're right, it doesn't.

- -Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSFEfD3EjvBPtnXfVAQKrBwQAoOOjFenHlq0DVEtfeVSuG5/rPWHrzfQw
OwoSlYWa5zkqWqjFdRG780rElbfAjgtz3J7Od8HENxUfsHBvH3bFM0PZCLSQRZMI
UVP8dM1KIcBDOZoQPMoahM1Q7l16iCsayhauWEnJP2MIVje7D/rXO9jjpkQixRyi
3wkfmkNin0k=
=gAB6
-END PGP SIGNATURE-

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2848
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 don't unset it, here's the error:

  File /Users/jesse/open_source/subversion/python-
trunk/Lib/distutils/ccompiler.py, line 697, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
  File /Users/jesse/open_source/subversion/python-
trunk/Lib/distutils/unixccompiler.py, line 176, in _compile
compiler_so = _darwin_compiler_fixup(compiler_so, cc_args + 
extra_postargs)
  File /Users/jesse/open_source/subversion/python-
trunk/Lib/distutils/unixccompiler.py, line 79, in 
_darwin_compiler_fixup
compiler_so = compiler_so + ' ' + os.environ['ARCHFLAGS']
TypeError: can only concatenate list (not str) to list
make: *** [sharedmods] Error 1

I've attached a possible patch for this which does a .split() on the 
os.environ['ARCHFLAGS'] variable, which fixes the issue

--
components: Build
files: unixccompiler.py.diff
keywords: patch
messages: 68061
nosy: jnoller
severity: normal
status: open
title: ARCHFLAGS parsing/concatenation in unixccompiler.py breaks when set to a 
string
versions: Python 2.6
Added file: http://bugs.python.org/file10599/unixccompiler.py.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3090
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-
3000/Modules/_multiprocessing/semaphore.c:515: warning: unused variable 
‘sval’

--
nosy: +jnoller

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 standalone, though it crashes about half the  
time.  Running it under gdb doesn't help; it always gives me an  
interrupted syste call in os.waidpid() in forking.py.

The hang occurs during 'make test', and it's always the second run  
that hangs.  Perhaps some lock isn't getting cleaned up properly the  
first time?

- -Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSFEicXEjvBPtnXfVAQLGNwP/S6f2IrO7c7SET0Gx8FXqdPmot3jcmopx
TFxDA5csh/pVaDQCVW6DiLMXsu2TkQGPPbbo8Bx9iPmV/iIHFqy4nDtETqqjKdRp
BvVtBmvSrP6wmymlKFlFC5qdfbbvguZq/hO60XulQk+WU4F8N7oHQck0tA2JhdDh
lS5SAFAIovA=
=xzs6
-END PGP SIGNATURE-

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 restoring some global setting or
environment var) or the fault of the test that fails (making unwarranted
assumptions or not initializing some needed settings before starting).

If it works for some folks and not for others, on the same platform,
compare the set of extension modules that are not built, reported by
make in a message starting with Failed to find the necessary bits to
build these modules:. Likely, Barry has the most complete set, while
Jesse has a few more extensions missing.

Finding this is usually a painful process of bisecting the set of tests
run.  Randomizing the tests with regrtest.py -r might also be helpful.

FWIW, when I tried (on Leopard) make test
TESTOPTS=test_multiprocessing it hung on the first set.  When I ran
./python Lib/test/test_multiprocess.py -v it reported 122 tests
passed.  But when I ran ./python Lib/test/regrtest.py -v
test_multiprocessing one test failed:

==
ERROR: test_remote (test.test_multiprocessing.WithManagerTestRemoteManager)
--
Traceback (most recent call last):
  File /Users/guido/p/Lib/test/test_multiprocessing.py, line 1167, in
test_remote
queue = manager2.get_queue()
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 650, in temp
authkey=self._authkey, exposed=exp
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 902, in
AutoProxy
incref=incref)
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 711, in
__init__
self._incref()
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 758, in
_incref
dispatch(conn, None, 'incref', (self._id,))
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 94, in
dispatch
raise convert_to_error(kind, result)
RemoteError: 
---
Traceback (most recent call last):
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 196, in
handle_request
result = func(c, *args, **kwds)
  File /Users/guido/p/Lib/multiprocessing/managers.py, line 412, in incref
self.id_to_refcount[ident] += 1
KeyError: '5f2828'
---

--
nosy: +gvanrossum

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 seconds, while the second one
occasionally hangs. I tried running with -v as extra argument but can't
get it to hang in that case (to figure out which test is the culprit).

--
nosy: +paulmelis

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
-Wstrict-prototypes -I. -I/Users/skip/src/python/py3k/./Include
-I/Users/skip/local/include -I. -IInclude -I./Include
-I/opt/local/include -I/Users/skip/src/python/py3k/Include
-I/Users/skip/src/python/py3k -c
/Users/skip/src/python/py3k/Modules/strftime.c -o
build/temp.macosx-10.3-i386-3.0/Users/skip/src/python/py3k/Modules/strftime.o
/Users/skip/src/python/py3k/Modules/strftime.c: In function '_fmt':
/Users/skip/src/python/py3k/Modules/strftime.c:377: error: 'tm'
undeclared (first use in this function)
/Users/skip/src/python/py3k/Modules/strftime.c:377: error: (Each
undeclared identifier is reported only once
/Users/skip/src/python/py3k/Modules/strftime.c:377: error: for each
function it appears in.)
building 'datetime' extension
gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall
-Wstrict-prototypes -I. -I/Users/skip/src/python/py3k/./Include
-I/Users/skip/local/include -I. -IInclude -I./Include
-I/opt/local/include -I/Users/skip/src/python/py3k/Include
-I/Users/skip/src/python/py3k -c
/Users/skip/src/python/py3k/Modules/strftime.c -o
build/temp.macosx-10.3-i386-3.0/Users/skip/src/python/py3k/Modules/strftime.o
/Users/skip/src/python/py3k/Modules/strftime.c: In function '_fmt':
/Users/skip/src/python/py3k/Modules/strftime.c:377: error: 'tm'
undeclared (first use in this function)
/Users/skip/src/python/py3k/Modules/strftime.c:377: error: (Each
undeclared identifier is reported only once
/Users/skip/src/python/py3k/Modules/strftime.c:377: error: for each
function it appears in.)

The environment is Mac OS X 10.5.3.

Assigning to Barry since we're so close to beta.

Skip

--
assignee: barry
messages: 68069
nosy: barry, skip.montanaro
severity: normal
status: open
title: Can't build datetime or time on py3k (r64171)
versions: Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue1819
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue2917
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 20080523
1.2.3

Unfortunately, I don't know what is the set of all possible version 
formats that ld -v can return.  So, I don't know how to devise a 
regular expression guaranteed to work for all ld versions including 
future ones.

AFAICT, we have only two options to resolve this issue:

1. Improve the regular expression as best we can and continue to 
change it as necessary in the future.

2. Remove the fragile version checking all together and make an 
explicit decision to only support modern binutils.

Any opinions?

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2234
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 socket is destroyed when the
refcount reaches zero, thus calling the finalizer.

Added file: http://bugs.python.org/file10602/unnamed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3066
___The list is not the problem. The problem is the other reference, from 
quot;lt;socket._fileobject object at 0xf7d42c34gt;quot;.brbrAlso note 
that the workaround (u.fp.recv = None) removes the second reference.brbr
div class=gmail_quoteblockquote class=gmail_quote style=border-left: 
1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;On 
the other hand, it should also be noted that in close method, the socket is not 
explicitly closed and for a single urlopen, atleast 3 sockets are opened.br

/blockquotedivThis is fine (at least in CPython), because the socket is 
destroyed when the refcount reaches zero, thus calling the 
finalizer.brbr/div/div
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 detection in pybench
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file10603/pybench_ucs.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 /root/py/python-3000/Lib/multiprocessing/pool.py, line 57, in 
worker
task = get()
  File /root/py/python-3000/Lib/multiprocessing/queues.py, line 337, 
in get
task = get()
  File /root/py/python-3000/Lib/multiprocessing/queues.py, line 339, 
in get
racquire()
KeyboardInterrupt
task = get()
  File /root/py/python-3000/Lib/multiprocessing/queues.py, line 337, 
in get
task = get()
  File /root/py/python-3000/Lib/multiprocessing/queues.py, line 337, 
in get
return recv()
  File /root/py/python-3000/Lib/pickle.py, line 1327, in loads
racquire()
KeyboardInterrupt
racquire()
KeyboardInterrupt
def loads(s, *, encoding=ASCII, errors=strict):
KeyboardInterrupt


I'm not seeing frequent locks/failures when run with regrtest, but I am 
seeing them with make test TESTOPTS=test_multiprocessing

I've attached full output. Still trying to figure it out

Added file: http://bugs.python.org/file10604/test_get.output

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3088
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 *BufferTooShort;
extern PyTypeObject SemLockType;
extern PyTypeObject ConnectionType;
extern PyTypeObject PipeConnectionType;
extern HANDLE sigint_event;

Additionally, win32_functions.c exposes Win32Type and
create_win32_namespace.

semaphore.c has sem_timedwait_save.

multiprocessing.c has ProcessError.

--
messages: 68078
nosy: Rhamphoryncus
severity: normal
status: open
title: Namespace polution from multiprocessing

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:

  Host: my-secure-domain.com:443

The :443 is unnecessary because the default port of HTTPS is 443. The
attached patch file fixes this so that the Host header sent is simply:

  Host: my-secure-domain.com

--
components: Library (Lib)
files: httplib.py.patch
keywords: patch
messages: 68079
nosy: steven.w
severity: normal
status: open
title: By default, HTTPSConnection should send header Host: somehost instead 
of Host: somehost:443
type: behavior
versions: Python 2.5
Added file: http://bugs.python.org/file10605/httplib.py.patch

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3094
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue3093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 temp, so it could
conceivable be deleted before the rest of this function finishes.

--
messages: 68081
nosy: Rhamphoryncus
severity: normal
status: open
title: multiprocessing initializes flags dict unsafely
versions: Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3095
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 ?

unichr(10) does raise an exception in Py2.x.

Note that sys.maxunicode is not available in Python 2.1
which is why I chose try-except approach.

--
nosy: +lemburg

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue2849
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3091
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 result.group(2)
print result.group(3)
print result.group(4)
print

if __name__ == '__main__':
out_string = '2.18.50.20080523'
test_re(out_string)

out_string = '1.2.3a'
test_re(out_string)

out_string = '2.18.50a.20080523'
test_re(out_string)

Results...
--- msg00622 ---
2.18.50
.50
50
None

--- msg00622 ---
1.2.3
.3
3
None

--- msg00622 ---
2.18.50
.50
50
None


I would expect GNU to have a standard for version strings so this
doesn't happen to EVERYONE when they deviate from the expected. 

A quick check in Google returned the following links for other
packages... 

http://publib.boulder.ibm.com/tividd/td/ITCM/SC23-4712-01/en_US/HTML/cmm
st19.htm
http://java.sun.com/j2se/versioning_naming.html
http://www.osgi.org/javadoc/r4/org/osgi/framework/Version.html

Given that, I think I prefer 1 to 2.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2234
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 try-except approach.

I understand, but is the py3k version of pybench still
compatible with Python 2.1?

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 you're right, it doesn't.

 So, does it make sense to backport this too?

No.

Thanks,
- -Barry

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (Darwin)

iQCVAwUBSFGSL3EjvBPtnXfVAQLooAP+PQK6Q9p6lDbmLkBgbQio5CXdckssMMyI
yvj0DYvK5wBYCurCjOTZ5VFUQZTEloj6p/89qf3HScfUASlIie1vJJRUqCktPDLs
THBicAS9lUXWLhmrD6ADgaLN88JMlTGnzpe03vBpScgFfy3fp8QHBoMzjud38amn
ozB6lzB+mAQ=
=qHGu
-END PGP SIGNATURE-

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2849
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 a 2-character string.

Interesting... I wonder how applications will deal with this. They'd
normally expect to get a length 1 string from chr() or unichr().

I think chr() should only behave in this way if given an option.
Otherwise, it will definitely introduce hard to find bugs in
ported applications (and probably even in newly written ones).

Something like chr(x, surrogates=True) to enable returning
2 code points instead of raising an exception.

 Note that sys.maxunicode is not available in Python 2.1
 which is why I chose try-except approach.
 
 I understand, but is the py3k version of pybench still
 compatible with Python 2.1?

You're right: probably not. Would be great to have the test on the
Py2.x version as well - to see the difference in performance.

Thanks,
-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Jun 12 2008)
  Python/Zope Consulting and Support ...http://www.egenix.com/
  mxODBC.Zope.Database.Adapter ... http://zope.egenix.com/
  mxODBC, mxDateTime, mxTextTools ...http://python.egenix.com/

2008-07-07: EuroPython 2008, Vilnius, Lithuania24 days to go

 Try mxODBC.Zope.DA for Windows,Linux,Solaris,MacOSX for free ! 

eGenix.com Software, Skills and Services GmbH  Pastor-Loeh-Str.48
 D-40764 Langenfeld, Germany. CEO Dipl.-Math. Marc-Andre Lemburg
Registered at Amtsgericht Duesseldorf: HRB 46611

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3092
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
assignee: georg.brandl
components: Documentation tools (Sphinx)
files: sphinx-sort-warnings-by-filename.diff
keywords: patch
messages: 68097
nosy: georg.brandl, mgedmin
severity: normal
status: open
title: sphinx: sort warnings by filename
type: behavior
Added file: 
http://bugs.python.org/file10606/sphinx-sort-warnings-by-filename.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3096
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue2912
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 only in subdirectories named 'ftests'.
 Unfortunately, sphinx doesn't support globs in exclude_dirs or
exclude_trees, so I cannot just exclude **/ftests.

It would help me if I could specify the exclude_dirnames option that's
currently hardcoded inside BuildEnvironment.find_files in my conf.py.

--
assignee: georg.brandl
components: Documentation tools (Sphinx)
messages: 68100
nosy: georg.brandl, mgedmin
severity: normal
status: open
title: sphinx: config option for exclude_dirnames
type: feature request

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3097
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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, the fragility of the process, because 
the benefits were inconsequential, and because it added to compilation 
time.  

It would be better to wait for the AST optimizer to replace the 
peepholer.  AST optimizations are upstream from bytecode generation, so 
the unused constant issue simply disappears.

--
resolution:  - rejected
status: open - closed

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2493
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 429, in check_sizeof
self.assertEqual(result, size2, msg + str(size2))
AssertionError: wrong size for type 'unicode': got 28, expected
50.5109328552

--
assignee: schuppenies
components: Interpreter Core
messages: 68102
nosy: benjamin.peterson, schuppenies
priority: critical
severity: normal
status: open
title: sys.sizeof test fails with wide unicode
type: behavior
versions: Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3098
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 file: http://bugs.python.org/file10608/posix.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2874
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue2159
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 correct practises.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3093
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 agree.

- I worked on your patch for trunk/ and py3k/ to allow compilation with
a stock VC6 *without* a modern PlatformSDK installed (i.e NTDDI_VERSION
is not defined)
This is relevant only for socketmodule; with a stock VC6, IPV6 is not
available, WSAIoctl is not exposed, and getaddrinfo() is emulated.

I'm not sure which is better way now. (with or without modern PSDK)
From cleaness of code, I think with modern PSDK is better.
http://archives.devshed.com/forums/development-94/error-building-python-bindings-with-ms-visual-c-6-0t-2074150.html
show subversion already seems to require modern PSDK to build it, if 
python uses modern PSDK and winsock2, workaround for socklen_t is not
needed anymore. clean. (this workaround itself is quite easy though)
Of cause, Amaury wants to go without modern PSDK, there is no strong
reason I will disturb it.

- Replacing _wstat with GetFileAttributesW is good thing: stat(nul)
says that the file exists!
But it is not enough: try to import con or import nul, before and
after your patch. Fun in both cases (if you import con, type some
chars, and press ^Z)

Interesting. Current release25-maint branch has same issue, but
python2.5.2 doesn't have this issue. import con fails with following
message. Something changed from latest release?

 import con
Traceback (most recent call last):
  File stdin, line 1, in module
ImportError: DLL load failed: 指定されたモジュールが見つかりません。

# It says specified module cannot be found in Japanese. Maybe is this
win32 error message via FormatMessage()?

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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]
http://bugs.python.org/issue2065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (PyDict_SetItemString(PyObject_GetAttrString(module, flags), #name,
Py_BuildValue(i, name))  0) return

--
keywords: +patch
nosy: +jjt009
Added file: http://bugs.python.org/file10609/multiprocessing.diff

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3095
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 solution is to use GetFileAttributes() instead.

Note that on python2.5.2, the error message suggest that we have such a
problem, but fortunately the error is still an ImportError::
   import nul
  ImportError: DLL load failed: Le module spécifié est introuvable.

--
components: Windows
messages: 68115
nosy: amaury.forgeotdarc, ocean-city
severity: normal
status: open
title: On windows, import nul always succeed
versions: Python 2.5, Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3099
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 [EMAIL PROTECTED]
http://bugs.python.org/issue2065
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 any point you return.

Additionally, I've just noticed that the result of Py_BuildValue is
getting leaked.  It should be stored to a temporary, added to flags,
then the temporary should be released.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3095
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 sends the port along in the
request header. Thats it. So, there is no bug here.

Morever, RFC 2818 states that, for HTTPS default port is 443, but the
implementation are free to choose any other ports over TLS as well.

Invalid bug can be closed.

Thanks.

--
nosy: +orsenthil

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3094
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 (core dumped)

--
components: Extension Modules
messages: 68120
nosy: Rhamphoryncus
severity: normal
status: open
title: segfault after loading multiprocessing.reduction
type: crash
versions: Python 2.6, Python 3.0

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 _Py_ForgetReference (op=0xb7a9a814) at Objects/object.c:2022
2022if (op == refchain ||
(gdb) bt
#0  0x0809a131 in _Py_ForgetReference (op=0xb7a9a814) at
Objects/object.c:2022
#1  0x0809a1a0 in _Py_Dealloc (op=0xb7a9a814) at Objects/object.c:2043
#2  0x080b436e in tupledealloc (op=0xb79ad1f4) at Objects/tupleobject.c:169
#3  0x0809a1ab in _Py_Dealloc (op=0xb79ad1f4) at Objects/object.c:2044
#4  0x08065bdf in PyObject_CallFunctionObjArgs (callable=0xb79baa84)
at Objects/abstract.c:2716
#5  0x080cabc4 in handle_callback (ref=0xb7a9a814, callback=0xb79baa84)
at Objects/weakrefobject.c:864
#6  0x080cad6e in PyObject_ClearWeakRefs (object=0xb79bd624)
at Objects/weakrefobject.c:910
#7  0x08168971 in func_dealloc (op=0xb79bd624) at Objects/funcobject.c:453
#8  0x0809a1ab in _Py_Dealloc (op=0xb79bd624) at Objects/object.c:2044
#9  0x080b436e in tupledealloc (op=0xb79a65f4) at Objects/tupleobject.c:169
#10 0x0809a1ab in _Py_Dealloc (op=0xb79a65f4) at Objects/object.c:2044
#11 0x080b7c26 in clear_slots (type=0x82af4e4, self=0xb7a9a814)
at Objects/typeobject.c:821
#12 0x080b806e in subtype_dealloc (self=0xb7a9a814) at
Objects/typeobject.c:950
#13 0x0809a1ab in _Py_Dealloc (op=0xb7a9a814) at Objects/object.c:2044
#14 0x080915b2 in dict_dealloc (mp=0xb79b9674) at Objects/dictobject.c:907
#15 0x0809a1ab in _Py_Dealloc (op=0xb79b9674) at Objects/object.c:2044
#16 0x080915b2 in dict_dealloc (mp=0xb79b9494) at Objects/dictobject.c:907
#17 0x0809a1ab in _Py_Dealloc (op=0xb79b9494) at Objects/object.c:2044
#18 0x08068720 in instance_dealloc (inst=0xb79b6edc)
at Objects/classobject.c:668
#19 0x0809a1ab in _Py_Dealloc (op=0xb79b6edc) at Objects/object.c:2044
#20 0x08090517 in insertdict (mp=0xb79a5b74, key=0xb7a9ae38,
hash=-1896994012, 
value=0x81bdd6c) at Objects/dictobject.c:455
#21 0x08090da6 in PyDict_SetItem (op=0xb79a5b74, key=0xb7a9ae38, 
value=0x81bdd6c) at Objects/dictobject.c:697
#22 0x08095ad3 in _PyModule_Clear (m=0xb7a88334) at
Objects/moduleobject.c:125
#23 0x08111443 in PyImport_Cleanup () at Python/import.c:479
#24 0x08120cb3 in Py_Finalize () at Python/pythonrun.c:430
#25 0x0805b618 in Py_Main (argc=1, argv=0xbfbaf434) at Modules/main.c:623
#26 0x0805a2e6 in main (argc=0, argv=0x0) at ./Modules/python.c:23

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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: http://bugs.python.org/file10611/outer.py

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 crash on shutdown.  However, if the callback prints the
attribute, you get a crash right then.  The weakref claims to be dead,
which shouldn't be possible when the weakref's attributes have a strong
reference to the target.

--
title: segfault with WeakValueDictionary and module clearing - weakref 
subclass segfault
Added file: http://bugs.python.org/file10613/weakref_subclass_cycle.py

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 redundant and not required when
the default port of the protocol (HTTPS here) is being used.

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3094
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 PyObject_ClearWeakRefs to notify of its
demise
5. the callback is called, with the dead MyRef as an argument
6. If MyRef's dict is accessed a segfault occurs.  Presumably just
calling the callback does enough damage to explain the segfault without
accessing MyRef's dict.

As I understand, a deleted weakref doesn't call its callback.  However,
subtype_dealloc doesn't call the base type's tp_dealloc until *after* it
does everything else.  Does it need a special case for weakrefs, or
maybe a tp_predealloc slot?

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 second time, which segfaults.)

___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3100
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com