[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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

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

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

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

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

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

[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

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

[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

[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

[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

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

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

[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

[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

[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

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

[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

[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

[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

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

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

[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

[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

[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

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

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

[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

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

[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

[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

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

[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

[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

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

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

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

[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

[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

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

[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

[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} ;; *)

[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

[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

[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

[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

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

[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

[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

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

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

[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

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

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

[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

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

[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

[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

[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

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

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

[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

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

[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

[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