[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-04-30 Thread Eli Bendersky

Eli Bendersky eli...@gmail.com added the comment:

Can this be committed and closed? [it's still an annoying problem for some 
Windows users who want to compile Python]

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11034
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11962] FreeBSD-AMD64 bot sporadic hanging

2011-04-30 Thread Stefan Krah

New submission from Stefan Krah stefan-use...@bytereef.org:

The FreeBSD-AMD64 bot exhibits sporadic hanging in unspecific places.
FreeBSD is running under kvm in the background. When the hanging occurs,
the virtual machine uses 100% CPU and I can't log in via ssh, so I have
to kill the kvm process.

The fact that the ssh login fails if a user process is misbehaving
seems like a FreeBSD/kvm issue to me. However, this problem did not
occur when I set up the bot a couple of weeks ago.


I've started a series of older revision builds to see if anything
recent causes this.

--
components: Tests
messages: 134839
nosy: pitrou, skrah
priority: normal
severity: normal
status: open
title: FreeBSD-AMD64 bot sporadic hanging
type: behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11962
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-04-30 Thread Bernhard Rosenkraenzer

Bernhard Rosenkraenzer b...@arklinux.org added the comment:

Not sure how to get it into verbose mode (I presume you don't mean python 
-v), but normal mode (22 tests) works fine:


Python 2.7.1 (r271:86832, Apr 22 2011, 13:40:40)
[GCC 4.6.0] on linux2
Type help, copyright, credits or license for more information.
 from test.test_httplib import test_main as f
 f()
test_auto_headers (test.test_httplib.HeaderTests) ... ok
test_ipv6host_header (test.test_httplib.HeaderTests) ... ok
test_putheader (test.test_httplib.HeaderTests) ... ok
test_responses (test.test_httplib.OfflineTest) ... ok
test_bad_status_repr (test.test_httplib.BasicTest) ... ok
test_chunked (test.test_httplib.BasicTest) ... ok
test_chunked_head (test.test_httplib.BasicTest) ... ok
test_epipe (test.test_httplib.BasicTest) ... ok
test_filenoattr (test.test_httplib.BasicTest) ... ok
test_host_port (test.test_httplib.BasicTest) ... ok
test_incomplete_read (test.test_httplib.BasicTest) ... ok
test_negative_content_length (test.test_httplib.BasicTest) ... ok
test_partial_reads (test.test_httplib.BasicTest) ... ok
test_read_head (test.test_httplib.BasicTest) ... ok
test_response_headers (test.test_httplib.BasicTest) ... ok
test_send (test.test_httplib.BasicTest) ... ok
test_send_file (test.test_httplib.BasicTest) ... ok
test_status_lines (test.test_httplib.BasicTest) ... ok
testTimeoutAttribute (test.test_httplib.TimeoutTest)
This will prove that the timeout gets through ... ok
test_attributes (test.test_httplib.HTTPSTimeoutTest) ... ok
testHTTPConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok
testHTTPSConnectionSourceAddress (test.test_httplib.SourceAddressTest) ... ok

--
Ran 22 tests in 0.004s

OK


Not sure if this is an issue with 3.x - I haven't used 3.x so far.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11898
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11949] Make float('nan') unorderable

2011-04-30 Thread Mark Dickinson

Changes by Mark Dickinson dicki...@gmail.com:


--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11949
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11949] Make float('nan') unorderable

2011-04-30 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

 sqrt(-0.0) to return -0.0.  Does anyone know what the relevant standard says?

sqrt(-0.0) should indeed be -0.0, according to IEEE 754.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11949
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11949] Make float('nan') unorderable

2011-04-30 Thread Mark Dickinson

Mark Dickinson dicki...@gmail.com added the comment:

Alexander,

There are lots of almost-equality tests in the test-suite already, between 
test_math, test_float, test_cmath and test_complex.  Do you need to implement 
another one here, or can you reuse one of the existing ones?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11949
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-30 Thread Łukasz Langa

Łukasz Langa luk...@langa.pl added the comment:

the_isz, for serious Unicode support you might try using the configparser 3.2 
backport:

http://pypi.python.org/pypi/configparser

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11597
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11324] ConfigParser(interpolation=None) doesn't work

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 08996a664ed3 by Łukasz Langa in branch '3.2':
Mentioned issues #11324 and #11858.
http://hg.python.org/cpython/rev/08996a664ed3

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11324
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11324] ConfigParser(interpolation=None) doesn't work

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 0c21de0cca44 by Łukasz Langa in branch 'default':
Merged mentions of issues #11324 and #11858.
http://hg.python.org/cpython/rev/0c21de0cca44

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11324
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11034] Build problem on Windows with MSVC++ Express 2008

2011-04-30 Thread Martin v . Löwis

Martin v. Löwis mar...@v.loewis.de added the comment:

I'm closing it as rejected. Python doesn't use subversion anymore.

--
resolution:  - rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11034
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-30 Thread the_isz

the_isz the_...@gmx.de added the comment:

Thanks for the hint, Łukasz, but like I stated earlier, I already worked around
this problem by using the json module instead.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11597
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-04-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
assignee: michael.foord - ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11960] Python crashes when running numpy test

2011-04-30 Thread Amaury Forgeot d'Arc

Amaury Forgeot d'Arc amaur...@gmail.com added the comment:

The issue is actually in numpy. In numpy/f2py/src/fortranobject.c, function 
array_from_pyobj(), there is::

sprintf(mess,failed to initialize intent(inout|inplace|cache) array
 -- input must be array but got %s,
PyString_AsString(PyObject_Str(PyObject_Type(obj)))
);

(In numpy headers, PyString_AsString is aliased to PyBytes_AsString.)
Besides the reference leaks, this function will fail when given the unicode 
string returned by PyObject_Str(), and sprintf receives the null string...
Please report this to numpy.

--
nosy: +amaury.forgeotdarc
resolution:  - invalid
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11960
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-04-30 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

Attached a revised patch.
While I agree that an error should be raised when extra args are provided in 
the context manager form, this is out of the scope of the issue, so I didn't 
include those changes.

--
stage: needs patch - patch review
Added file: http://bugs.python.org/file21839/issue10775-2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-04-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Added file: http://bugs.python.org/file21840/issue10775-2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-04-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


Removed file: http://bugs.python.org/file21840/issue10775-2.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10775
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

RE: msg134751 - Thanks for responding, George -

This bug is still an issue for me, as even though I now have Python-3.3
having passed its test suite, installed and running OK, and even
went so far as to 'cd /usr/bin; rm -f python; ln -s python3.3 python;'
(/usr/bin/python2.7 executable still exists) all the software
I now attempt to build insists on using python2 , which is built
against an old glibc and has started giving anomalous results
after upgrade to newer glibc - see : 
https://bugzilla.gnome.org/show_bug.cgi?id=648863
where I found that my python-2.7 was failing to 
 'from . import config'
whereas the FC-14 python 2.7 got past this .

So I still need to find a way of building python 2.7.1 to replace
my broken old system python2 .

When I tried this, doing :
$ /usr/src/Python-2.7.1/configure --prefix=/usr --libdir=/usr/lib64 
--enable-shared CXX=${CXX} CXXFLAGS=$CXXFLAGS

(I only added the CXX= args because configure complained that while
 I did have $CXX set to /usr/bin/g++ , c++ would be used )

the build failed complaining that the 'bsddb185 dl gdbm' modules
could not be built; I had to change the $CPPFLAGS to contain
'-I/usr/include/db4' and --libs to contain '-ldb-4.5 -lgdbm' and
comment out and modify the lines in Module/Setup :

  #dl dlmodule.c
...
  #gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm
...
  #_bsddb _bsddb.c -I$(DBINC) -L$(DBLIB) -ldb-$(DBLIBVER)

and then the build succeeded , but with these errors from dlmodule :

test_dl
test test_dl crashed -- type 'exceptions.SystemError': module dl requires 
sizeof(int) == sizeof(long) == sizeof(char*)

My point is, if this test_dl works only in 32-bit mode, it should
have failed during its build, not during test !
If it is meant to be 32-bit only, say something like :

#if __LONG_MAX__  0x
#error dlmodule only works in 32-bit mode.
#endif

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

Not sure why you would prefer an unstable, unreleased hg trunk version to a 
stable, released one.

And as you've seen, Python 2 and Python 3 are quite different things.

As for dl failing on build, you've already stated that it does *not* build, 
together with bsddb185 and gdbm (for which the library headers are missing).  
setup.py does exactly that test for 64-bit platforms.  Then you activate it 
explicitly, and complain that it does build...

And lastly, all these things are *not* a build failure of Python: missing 
modules just means that, well, these modules won't be there.  And failing tests 
just means that there *may* be a problem when using the respective module -- 
but for platform-dependent modules it could just as well mean that your system 
is configured in a special way.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11786] ConfigParser.[Raw]ConfigParser optionxform()

2011-04-30 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

The point is, all gratuitous changes to such branches are a nuisance to the 
release manager who decides what needs to go into a security release.

Also, doc changes in 2.6 are almost completely gratuitous, since the docs are 
never again built and put online somewhere.  (Source-only releases don't have 
build doc releases.)

--
nosy: +georg.brandl

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11786
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

Now I'm really confused.

After linked /usr/bin/python to python3.3  :

  $ cd /usr/bin; rm -f python; ln -s python3.3 python;

the 2.7.1 build now succeeds ! 
(with the patched Lib/test/test_commands.py and the 'make test'
 run as non-root ).
This time I don't get any build errors for missing modules
and don't have to edit Module/Setup .
BTW, the missing modules that caused the build to fail before
was :
'bsddb185 dl gdbm imageop'
; after the new ./python executable was built, it did some 
'configure modules' stage which DID fail with these missing
modules, but now /usr/bin/python is python3.3, it DOESN'T fail.

I don't think the current state of the installed system python
should be able to affect in any way the build of a new python -
that to me is a fundamental, critical bug in the build system.

Maybe I should open a new bug on that issue ?

But yes, the issue of this specific bug is now closed -
python-2.7.1 now builds OK - but PLEASE, put these 
lines or something like them in dlmodule.c :

#if __LONG_MAX__  0xU /* cpp -dM  builtin : __LONG_MAX__ */
#error dlmodule only works in 32-bit mode.
#endif

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

BTW, while I'm here :

Any advice on how to setup a truly multi-architecture python installation? 

I'm considering doing something like :

1. build same python source for both 32-bit and 64-bit, with
   64-bit installing /usr/lib/python-$V as /usr/lib64/python-$V  
   32-bit installing /usr/lib/python-$V as /usr/lib32/python-$V

2. Replace /usr/bin/python with a shell script or program which does
   something like (in shell):
  
   #!/bin/sh
   if `uname -m` = i686 ; then # I'm in a 'setarch i686' env
  exec /usr/bin/32/python${0#python} $*
   else
  exec /usr/bin/python${0#python} $*
   fi

Any thoughts about / advice on doing something like this ?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10914] Python sub-interpreter test

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 5a983773c09a by Victor Stinner in branch '3.2':
Issue #10914: Py_NewInterpreter() uses PyErr_PrintEx(0)
http://hg.python.org/cpython/rev/5a983773c09a

New changeset 2caf82aee7a4 by Victor Stinner in branch '3.2':
Issue #10914: Initialize correctly the filesystem codec when creating a new
http://hg.python.org/cpython/rev/2caf82aee7a4

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10914
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

Aha ! Is the above multi-arch config what would result if I did :

  --with-universal-archs=ARCH
  select architectures for universal build  
 (32-bit,
  64-bit, 3-way, intel or all)

ie: --with-univeral-archs='64-bit 32-bit' 

??

The fact that the python --configure ignores my '--libdir=/usr/lib64'
setting and installs files under /usr/lib regardless suggest this
would NOT work as I expect.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10914] Python sub-interpreter test

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Victor, the fix needs to go into 3.2 as well.

Oh, I thought that Modules/_testembed.c was only in 3.3. Anyway, it is a real 
bug in 3.2, and it is now fixed (I backported the 2 fixes in 3.2).

--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10914
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11762] Ast doc: warning and version number

2011-04-30 Thread Daniel Urban

Changes by Daniel Urban urban.dani...@gmail.com:


--
nosy: +durban

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11762
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

So to get python multi-arch working as I expect I'd have to wrap the C header:

   /usr/include/python-2.7/pyconfig.h

with something like:

#ifdef __i386__
#include python-2.7/32/pyconfig.h
#else
#include python-2.7/64/pyconfig.h
#endif

and that's it ! After building i686-Python-2.7.1,  I can do
my standard python post-install script :

$ ABI=64; V=2.7
$ DESTDIR=`pwd`/inst make install
$ cd inst/usr
$ mv lib${ABI}/python${V}/* lib/python$V
$ rmdir lib${ABI}/python-${V}
$ mv lib/python-${V} lib$ABI
$ rmdir lib

And then:
$ cd inst/usr/include/python$V
$ for f in *; do cmp $f /usr/include/python2.7/$f; done
pyconfig.h /usr/include/python2.7/pyconfig.h differ: char 11124, line 393
$ $ diff -U0 pyconfig.h /usr/include/python2.7/pyconfig.h
--- pyconfig.h  2011-04-30 13:34:21.0 +0100
+++ /usr/include/python2.7/pyconfig.h   2011-04-30 12:34:23.0 +0100
@@ -393 +393 @@
-#define HAVE_LARGEFILE_SUPPORT 1
+/* #undef HAVE_LARGEFILE_SUPPORT */
@@ -989 +989 @@
-#define SIZEOF_LONG 4
+#define SIZEOF_LONG 8
@@ -992 +992 @@
-#define SIZEOF_LONG_DOUBLE 12
+#define SIZEOF_LONG_DOUBLE 16
@@ -1004 +1004 @@
-#define SIZEOF_PTHREAD_T 4
+#define SIZEOF_PTHREAD_T 8
@@ -1010 +1010 @@
-#define SIZEOF_SIZE_T 4
+#define SIZEOF_SIZE_T 8
@@ -1013 +1013 @@
-#define SIZEOF_TIME_T 4
+#define SIZEOF_TIME_T 8
@@ -1016 +1016 @@
-#define SIZEOF_UINTPTR_T 4
+#define SIZEOF_UINTPTR_T 8
@@ -1019 +1019 @@
-#define SIZEOF_VOID_P 4
+#define SIZEOF_VOID_P 8
@@ -1069 +1069 @@
-/* #undef VA_LIST_IS_ARRAY */
+#define VA_LIST_IS_ARRAY 1
@@ -1121 +1121 @@
-#define X87_DOUBLE_ROUNDING 1
+/* #undef X87_DOUBLE_ROUNDING */

so this is the ONLY file that needs to be wrapped to work in a 
multi-arch environment.

BTW, I know you can't use runtime expressions such as 
  'sizeof(char*)' 
in cpp macros, but you CAN get much the same effect by
using cpp 'builtin macros' :
e.g. you could write :

#if __LONG_MAX__  0xU 
#define SIZEOF_LONG 8 /*works until you want to support 128 / 256 bit */
#else
#define SIZEOF_LONG 4 /* guess you don't want to support 16 or 8 bit ?*/
#endif

and then pyconfig.h would not need to be wrapped .

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11223] interruption of locks by signals not guaranteed when locks are implemented using POSIX condition variables; add sys.thread_info

2011-04-30 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
title: interruption of locks by signals not guaranteed when locks are 
implemented using POSIX condition variables - interruption of locks by signals 
not guaranteed when locks are implemented using POSIX condition variables; add 
sys.thread_info

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11223
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11223] interruption of locks by signals not guaranteed when locks are implemented using POSIX condition variables; add sys.thread_info

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 2b21fcf3d9a9 by Victor Stinner in branch 'default':
Issue #11223: Replace threading._info() by sys.thread_info
http://hg.python.org/cpython/rev/2b21fcf3d9a9

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11223
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Georg Brandl

Georg Brandl ge...@python.org added the comment:

I'm going to state this one again: missing modules are *NOT* a build failure.

It is pretty common to not install a certain library (or headers for them), if 
you don't need/want the Python module using it.  (And editing Modules/Setup to 
add modules that setup.py detects as not buildable won't make them buildable in 
99% of cases.)

As for the dl module, the existing check in setup.py is just fine, especially 
since dl is deprecated and not present anymore in 3.x.  There will always be 
ways to shoot yourself in the foot.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 28b9702a83d1 by Victor Stinner in branch 'default':
Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetch
http://hg.python.org/cpython/rev/28b9702a83d1

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

OK, the last two comment contained complete instructions for setting
up a working dual 64-bit + 32-bit python installation.

Final, working /usr/bin/python :

$ cat /usr/bin/python
#!/bin/sh
ME=$0
ME=${ME##*/}
VERSION=${ME#python}
VERSION=${VERSION:-2.7}
ARCH=`uname -m`
case $ARCH in
  i686)
 exec /usr/bin/32/${ME} $*
 ;;
  *)
 exec /usr/bin/python${VERSION} $*
 ;;
esac

So now, in a native 64-bit env :

$ python
Python 2.7.1 (r271:86832, Apr 30 2011, 11:55:52)
[GCC 4.6.0] on linux2
Type help, copyright, credits or license for more information.

^D
$ setarch i686
$ python
Python 2.7.1 (r271:86832, Apr 30 2011, 13:29:12)
[GCC 4.6.0] on linux2
Type help, copyright, credits or license for more information.


See the build times, they are different executables !

And final, complete working /usr/include/python2.7/pyconfig.h :

$ echo '#include python2.7/pyconfig.h'  pyc.c
$ cpp pyc.c
$ cpp pyc.c
# 1 pyc.c
# 1 built-in
# 1 command-line
# 1 pyc.c
# 1 /usr/include/python2.7/pyconfig.h 1 3 4



# 1 /usr/include/python2.7/64/pyconfig.h 1 3 4
# 5 /usr/include/python2.7/pyconfig.h 2 3 4
# 1 pyc.c 2
$ cpp -m32 pyc.c
# 1 pyc.c
# 1 built-in
# 1 command-line
# 1 pyc.c
# 1 /usr/include/python2.7/pyconfig.h 1 3 4

# 1 /usr/include/python2.7/32/pyconfig.h 1 3 4
# 3 /usr/include/python2.7/pyconfig.h 2 3 4
# 1 pyc.c 2


$ cat /usr/include/python2.7/pyconfig.h
#ifdef __i386__
#include python2.7/32/pyconfig.h
#else
#include python2.7/64/pyconfig.h
#endif

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11859] test_interrupted_write_text() of test_io failed of Python 3.3 on FreeBSD 7.2

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

New changeset 28b9702a83d1 by Victor Stinner in branch 'default':
Issue #8407, issue #11859: Add signal.pthread_sigmask() function to fetch
http://hg.python.org/cpython/rev/28b9702a83d1

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11859
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11147] _Py_ANNOTATE_MEMORY_ORDER has unused argument, effects code which includes Python.h

2011-04-30 Thread Vegar

Changes by Vegar storv...@gmail.com:


--
nosy: +storvann

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11147
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11786] ConfigParser.

2011-04-30 Thread Łukasz Langa

Łukasz Langa luk...@langa.pl added the comment:

Yup, the fact that the docs won't be rebuilt ever again makes my 2.6 commit 
effectively pointless and harmful for the RM. I will clean it up when I get 
home.

Thanks for the thorough explanation.

--
title: ConfigParser.[Raw]ConfigParser optionxform() - ConfigParser.

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11786
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8407] expose signalfd(2) and pthread_sigmask in the signal module

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

signalfd.patch: Add signal.signalfd(), signal.SFD_CLOEXEC and 
signal.SFD_NONLOCK.

The patch is based on http://codereview.appspot.com/1132041 and the last 
version (bzr) of python-signalfd.

The patch uses also PyModule_AddIntMacro() for the 3 constants added in my last 
(pthread_sigmask), and changes pthread_sigmask() to raise an OSError instead of 
a RuntimeError.

Note: python-signalfd has a bug: it doesn't pass the fd argument to signalfd(), 
it always pass -1.

--
Added file: http://bugs.python.org/file21841/signalfd.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8407
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11959] smtpd cannot be used without affecting global state

2011-04-30 Thread Vinay Sajip

Vinay Sajip vinay_sa...@yahoo.co.uk added the comment:

I don't want to use two different maps - I just want to use a single map which 
is not the global socket_map in asyncore.

asyncore.dispatcher and asynchat.async_chat allow for a map to be passed in so 
that the default global is not used, but smtpd does not allow this. Note that 
asyncore.loop() also allows a map to be passed in, so I'm sure this 
functionality is by design.

I mentioned two places where the map is to be used - passed to SMTPServer 
constructor (and saved in SMPTServer instance) and the *same* map used to 
initialise the SMTPChannel from SMTPServer.handle_accepted().

Since asyncore and asynchat support using a passed-in map to avoid using a 
global, it's not unreasonable to expect smtpd to support it too. After all, 
using it relies on asyncore.loop(), and passing an explicit map is allowed here.

I initially came across this because I got some warnings from regrtest.py about 
changed state, when I was trying to implement a TestSMTPServer class (derived 
from smtpd.SMTPServer) to test the SMTPHandler in logging.

I've taken out the functionality from test_logging for now, but I have a test 
script here:

https://gist.github.com/949744

This successfully uses a non-global map (my_map), but notice how much I had 
to resort to copypasta.

If I've missed some neat solution which avoids this hackery, please let me 
know! This is my first use of the smtpd module :-)

As I say, what I'm trying to do is to avoid changing global state in the unit 
test suite.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11959
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7517] freeze.py not ported to python3

2011-04-30 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


Removed file: http://bugs.python.org/file15570/unnamed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7517
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue7517] freeze.py not ported to python3

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Closing as duplicate, please use the other bug report to discuss.

--
nosy: +eric.araujo
resolution:  - duplicate
stage: needs patch - committed/rejected
status: open - closed
superseder:  - freeze.py broken due to ABI flags

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7517
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11963] Use real assert* for test_trigger_memory_error (test_parser)

2011-04-30 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

I’ve always found strange that one test relied on visual (i.e. human) checking 
instead of using an assert* method.  I changed it and found that the test still 
passed (see attached patch).  Is there any reason to do it the old way?

--
components: Tests
files: real-assert-in-test_parser.diff
keywords: patch
messages: 134868
nosy: benjamin.peterson, eric.araujo, mark.dickinson
priority: normal
severity: normal
stage: patch review
status: open
title: Use real assert* for test_trigger_memory_error (test_parser)
type: behavior
versions: Python 3.3
Added file: http://bugs.python.org/file21842/real-assert-in-test_parser.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11963
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-04-30 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

I found out that the indent parameter of json.dump was changed in 3.2: it can 
be a string as well as an int.  The docstring was not updated; the reST doc 
was, but without a versionchanged directive.

This probably applies to the doc and docstring of the classes implementing 
dump, too, and there may be other half-documented changes.

--
assignee: docs@python
components: Documentation, Library (Lib)
keywords: easy
messages: 134869
nosy: bob.ippolito, docs@python, eric.araujo, rhettinger
priority: normal
severity: normal
stage: needs patch
status: open
title: Undocumented change to indent param of json.dump in 3.2
versions: Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11964
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11965] Simplify context manager in os.popen

2011-04-30 Thread Éric Araujo

New submission from Éric Araujo mer...@netwok.org:

Previous to 3.2, os.popen was made a context manager thanks to a private 
helper, os._wrap_close (contextlib.closing was maybe unavailable due to a 
bootstrapping issue).  Now that subprocess.Popen directly implements the 
context manager protocol, this could be cleaned up.

--
components: Library (Lib)
keywords: easy
messages: 134870
nosy: eric.araujo
priority: normal
severity: normal
stage: needs patch
status: open
title: Simplify context manager in os.popen
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11965
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

It seems strange to build and test Python as root.

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11956
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11955] 3.3 : test_argparse.py fails 'make test'

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

The helpers in test_argparse could be enhanced to print the tested string and 
expected result in case of failure.  Or the real line number.

--
nosy: +bethard, eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11955
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11344] Add os.path.splitpath(path) function

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

To clarify one point: Python does not try to mimic the shell, but the os module 
exposes system calls as they are.

(Unrelated remark: pkgutil.get_data can replace a lot of uses of 
dirname(dirname(__file__)))

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11344
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

Oops, thought there may be gotchas to that multi-arch python wrapper -
it wasn't quoting its arguments properly - here is now what I have as
/usr/bin/python :

$ cat python
#!/bin/bash
ME=$0
ME=${ME##*/}
VERSION=${ME#python}
VERSION=${VERSION:-2.7}
ARCH=`uname -m`
CMD=''
case $ARCH in
  i686)
 CMD=/usr/bin/32/${ME}
 ;;
  *)
 CMD=/usr/bin/python${VERSION}.bin
 ;;
esac
for((a=1;a=$#;a++));do CMD=${CMD} '$(eval 'echo -n $'$a'')' ;done
eval exec $CMD

I had to move the /usr/bin/python${VERSION} executables to 
/usr/bin/python${VERSION}.bin , and replace them with copies
of this python script (which runs whichever version it is named by).

And I can do:

$ python -c 'import os
import sys
import commands
print commands.getstatus(ls -ld /.)
'
drwxr-xr-x. 25 root root 4096 Apr 20 15:28 /.

under both the native x86_64 and a 'setarch i686' environment with
the same results.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11956] 3.3 : test_import.py causes 'make test' to fail

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Disregard my remark; David in msg134804 expressed support for this, and given 
that there are Python programs run as root for sysadmin tasks, it makes sense 
to make sure the code is tested when run by root.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11956
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-04-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

This change was made by Raymond in issue 5729.  It is the only feature added by 
that patch; the missing versionchanged was an oversight and I don't think it 
makes any more likely that other features were added that weren't documented.

If you are updating doc strings, note that there is more than one docstring 
that mentions indent and all should be updated.

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11964
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11948] Tutorial/Modules - small fix to better clarify the modules search path

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

One caveat to Terry’s suggestion: never ever change the case of a Python 
identifier or keyword (“Sys”).

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11948
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11898] Sending binary data with a POST request in httplib can cause Unicode exceptions

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 Not sure how to get it into verbose mode

See http://diveintopython.org/http_web_services/debugging.html

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11898
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11966] Typo in PyModule_AddIntMacro's documentation

2011-04-30 Thread Andreas Stührk

New submission from Andreas Stührk andy-pyt...@hammerhartes.de:

The example says PyModule_AddConstant instead of PyModule_AddIntMacro. 
Attached is a patch for 3.1 branch, but it applies to all branches.

--
assignee: docs@python
components: Documentation
files: PyModule_AddIntMacro_doc.patch
keywords: patch
messages: 134879
nosy: Trundle, docs@python
priority: normal
severity: normal
status: open
title: Typo in PyModule_AddIntMacro's documentation
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21843/PyModule_AddIntMacro_doc.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11966
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-04-30 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 This change was made by Raymond in issue 5729.  It is the only feature
 added by that patch; the missing versionchanged was an oversight and I
 don't think it makes any more likely that other features were added
 that weren't documented.
Ah, I’m relieved, thanks.  I can fix it but I don’t know when I’ll be able to 
push again.

 If you are updating doc strings, note that there is more than one
 docstring that mentions indent and all should be updated.
I’m aware of that: “This probably applies to the doc and docstring of the 
classes implementing dump too”.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11964
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11946] 2.7.1 'test_commands' build test fails

2011-04-30 Thread Jason Vas Dias

Jason Vas Dias jason.vas.d...@gmail.com added the comment:

final python wrapper script :

$ cat python
#!/bin/bash
ME=$0
ME=${ME##*/}
VERSION=${ME#python}
VERSION=${VERSION:-2.7.1}
ARCH=`uname -m`
CMD=''
case $ARCH in
  i686)
 CMD=/usr/bin/32/${ME}
 ;;
  *)
 CMD=/usr/bin/python${VERSION}.bin
 ;;
esac
for((a=1;a=$#;a++));do CMD=${CMD} '$(eval 'echo -e $'$a'' | sed 
's/[''']/'/g')'  ;done
eval exec $CMD


now handles:

$ ./python -c 'import os
import sys
import commands
print commands.getstatus('''/.''')
'
drwxr-xr-x. 25 root root 4096 Apr 20 15:28 /.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11946
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11966] Typo in PyModule_AddIntMacro's documentation

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset b3e7ffe6d727 by Benjamin Peterson in branch '3.1':
fix function name in example (closes #11966)
http://hg.python.org/cpython/rev/b3e7ffe6d727

New changeset fb709d9fe92a by Benjamin Peterson in branch '2.7':
fix function name in example (closes #11966)
http://hg.python.org/cpython/rev/fb709d9fe92a

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11966
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-04-30 Thread Prashanth Raghu

Prashanth Raghu p.is.prasha...@gmail.com added the comment:

The .rst file that was downloaded as of 30-04-2011 (dd-mm-) had the updated 
doc .

--
nosy: +Prashanth.Raghu

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11964
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 34d2fb56de9a by R David Murray in branch '2.7':
#11901: post-commit review fixes per Georg Brandl
http://hg.python.org/cpython/rev/34d2fb56de9a

New changeset 2ddb4d6f826a by R David Murray in branch '3.1':
#11901: post-commit review fixes per Georg Brandl
http://hg.python.org/cpython/rev/2ddb4d6f826a

New changeset 591a09cf9e62 by R David Murray in branch '3.2':
Merge #11901: post-commit review fixes per Georg Brandl
http://hg.python.org/cpython/rev/591a09cf9e62

New changeset ca8e2fe68ecb by R David Murray in branch 'default':
Merge #11901: post-commit review fixes per Georg Brandl
http://hg.python.org/cpython/rev/ca8e2fe68ecb

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11901
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11883] Call connect() before sending an email with smtplib

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 5c61c1d583fd by R David Murray in branch '3.2':
#11883: replace incorrect call to sendmail with correct call to send_message
http://hg.python.org/cpython/rev/5c61c1d583fd

New changeset fcfaeab42f6e by R David Murray in branch 'default':
Merge #11883: replace incorrect call to sendmail with correct call to 
send_message
http://hg.python.org/cpython/rev/fcfaeab42f6e

--
nosy: +python-dev

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11883
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11883] Call connect() before sending an email with smtplib

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset a9cb47d0241e by R David Murray in branch '2.7':
#11883: fix email examples by adding 'localhost' to SMTP constructor calls
http://hg.python.org/cpython/rev/a9cb47d0241e

New changeset 00ff8825f551 by R David Murray in branch '3.1':
#11883: fix email examples by adding 'localhost' to SMTP constructor calls
http://hg.python.org/cpython/rev/00ff8825f551

New changeset 0f14dd4e644e by R David Murray in branch '3.2':
Merge #11883: fix email examples by adding 'localhost' to SMTP constructor calls
http://hg.python.org/cpython/rev/0f14dd4e644e

New changeset cfc02e132c12 by R David Murray in branch 'default':
Merge #11883: fix email examples by adding 'localhost' to SMTP constructor calls
http://hg.python.org/cpython/rev/cfc02e132c12

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11883
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11883] Call connect() before sending an email with smtplib

2011-04-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The call to connect() is not required in the first example, since the hostname 
is passed to the constructor in that case.  Since these examples are about the 
email package rather than smtplib, I preferred to change the other examples to 
pass localhost to the constructor as well, rather than call connect with no 
arguments after a no argument call to the constructor.

--
resolution:  - fixed
stage: patch review - committed/rejected
status: open - closed
type:  - behavior

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11883
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11935] MMDF/MBOX mailbox need utime

2011-04-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The problem with this patch is that it would also show 'new mail' if what had 
in fact happened was that a message had been *deleted* (see the comments at the 
beginning of the flush method).  So actually fixing this is a bit more 
complicated.

A proper fix for this should also consider fixing issue 7359.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11935
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11964] Undocumented change to indent param of json.dump in 3.2

2011-04-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11964
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11882] test_imaplib failed on x86 ubuntu

2011-04-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Kasun, were you able to reproduce the problem (or show it doesn't happen) 
calling mktime directly from C?

--
resolution:  - invalid
stage:  - committed/rejected
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11882
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11962] FreeBSD-AMD64 bot sporadic hanging

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 The FreeBSD-AMD64 bot exhibits sporadic hanging in unspecific places.

You can try a shorter regrtest timeout, edit Lib/test/regrtest.py near:

if hasattr(faulthandler, 'dump_tracebacks_later'):
timeout = 60*60

(or use --timeout option of the regrtest.py program)

If you have an access to a terminal (using ssh), you can also set a signal to 
dump the traceback: edit regrtest.py to add import signal; 
faulthandler.register(signal.SIGUSR1, all_threads=True) after 
faulthandler.enable(). Then use kill -USR1 pid to dump the traceback.

Or the problem is an unlimited loop while dumping the traceback because of a 
timeout :-D In this case, disable the timeout using --timeout=0 option of 
regrtest.py.

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11962
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11361] suggestion for os.kill(pid,CTRL_C_EVENT) in tests

2011-04-30 Thread STINNER Victor

Changes by STINNER Victor victor.stin...@haypocalc.com:


--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11361
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11958] test.test_ftplib.TestIPv6Environment failure

2011-04-30 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset e680564efa8c by Victor Stinner in branch 'default':
Close #11958: Fix FTP tests for IPv6, bind to ::1 instead of localhost.
http://hg.python.org/cpython/rev/e680564efa8c

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11958
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11958] test.test_ftplib.TestIPv6Environment failure

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

We may have a support.HOST_IPV6 constant, but I would imply to modify many 
tests to use it. I prefer to apply your simple patch, thanks!

--
nosy: +haypo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11958
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11887] unittest fails on comparing str with bytes if python has the -bb option

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

unittest_str_bytes-2.patch:
 - add new tests to reproduce the bug
 - fix the bug: ignore temporary BytesWarning warnings while comparing objects 
and sequences

--
Added file: http://bugs.python.org/file21844/unittest_str_bytes-2.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11887
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10419] distutils command build_scripts fails with UnicodeDecodeError

2011-04-30 Thread Arfrever Frehtes Taifersar Arahesis

Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment:

Apparently setuptools.command.easy_install.get_script_header() imports 
distutils.command.build_scripts.first_line_re and checks if this regex matches 
a str object, which results in TypeError. If breaking compatibility is not 
acceptable, then the surrogateescape patch should be applied.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10419
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11873] test_regexp() of test_compileall failure on x86 OpenIndiana 3.x

2011-04-30 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

The failing test is launching a subprocess to compile python code, waiting for 
the subprocess to exit, and then checking to see if the file was created.  So 
the timing issue would appear to be that the file created by the subprocess 
doesn't appear to exist to the main program even after the subprocess has 
exited.  Stefan, Jesus, do either of you know of anything about the file 
systems used on your buildbots that might give rise to this problem?  Is there 
some sort of file system sync call we need to make to make sure different 
processes have the same view of the file system?

However, if my theory is true I would expect that other tests in 
test_compileall would also fail randomly.  Does anyone know if it is always 
test_regexp?

--
nosy: +jcea, skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11873
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11963] Use real assert* for test_trigger_memory_error (test_parser)

2011-04-30 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I think the patch is OK.
FWIW I tried to replace sys.stderr with a StringIO to see if it was possible to 
keep using assertRaises and then read the value from the StringIO but that 
didn't work.

--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11963
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11967] Left shift and Right shift for floats

2011-04-30 Thread David Albert Torpey

New submission from David Albert Torpey dt...@users.sourceforge.net:

I would like to left and right shift floats as a fast way to multiply or divide 
by a power of 2 without rounding error.  The only way to do that now is 
t=frexp(x) and y=ldexp(t[0],t[1]+2).  But would be better to type y=x2.  
Thank you.

--
messages: 134897
nosy: dtorp
priority: normal
severity: normal
status: open
title: Left shift and Right shift for floats
versions: Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11967
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11967] Left shift and Right shift for floats

2011-04-30 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +mark.dickinson

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11967
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9756] Crash with custom __getattribute__

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

The test suite crashs randomly with issue9756.patch on my Ubuntu 11.04 (AMD64 
with 4 cores, 4 GB of memory, Linux 2.6.38). I use ./python -bb 
Lib/test/regrtest.py -r to reproduce the crash.

... I tried without the patch, and test_descr does crash quickly in 
test_wrapper_segfault(). It crashs in _PyObject_GC_New(), in a callback used to 
release the memory. Sometimes it fails on update_refs(), sometimes in 
_PyObject_DebugFree(), sometimes in wrapper_dealloc()-_Py_ForgetReference, 
etc. I use ./python Lib/test/regrtest.py -F -v test_descr to reproduce the 
crash (sometimes it takes more than one run to crash).

It's strange because I'm unable to reproduce the bug on a very similar setup 
(Debian Sid, AMD64 with 2 cores, 2 GB of memory, Linux 2.6.38).

Should I run a memcheck on the Ubuntu host? Or is anyone able to reproduce the 
bug?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11967] Left shift and Right shift for floats

2011-04-30 Thread Raymond Hettinger

Changes by Raymond Hettinger raymond.hettin...@gmail.com:


--
components: +Interpreter Core
nosy: +rhettinger
type:  - feature request

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11967
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9756] Crash with custom __getattribute__

2011-04-30 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Oh, the Ubuntu host has a temperature issue and hardware errors... Example of 
mcelog output:

MCE 0
CPU 0 THERMAL EVENT TSC 198d1eb8325
TIME 1304222195 Sun May  1 05:56:35 2011
Processor 0 heated above trip temperature. Throttling enabled.
Please check your system cooling. Performance will be impacted
STATUS 8801000f MCGSTATUS 0
MCGCAP 806 APICID 0 SOCKETID 0
CPUID Vendor Intel Family 6 Model 23
HARDWARE ERROR. This is *NOT* a software problem!
Please contact your hardware vendor


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9756
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11968] wsgiref's wsgi application sample code does not work

2011-04-30 Thread Takayuki SHIMIZUKAWA

New submission from Takayuki SHIMIZUKAWA shimizuk...@gmail.com:

WSGI sapmle code at wsgiref document 
(http://docs.python.org/py3k/library/wsgiref.html#wsgiref.util.setup_testing_defaults)
 was broken.


- status = b'200 OK'
- headers = [(b'Content-type', b'text/plain; charset=utf-8')]
+ status = '200 OK'
+ headers = [('Content-type', 'text/plain; charset=utf-8')]

--
assignee: docs@python
components: Documentation
messages: 134900
nosy: docs@python, shimizukawa
priority: normal
severity: normal
status: open
title: wsgiref's wsgi application sample code does not work
versions: Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11968
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com