[issue2888] pprint produces different output in 2.6 and 3.0
New submission from Alexandre Vassalotti [EMAIL PROTECTED]: The indent argument produces different output in Python 2.6 and 3.0: Python 3.0a5+ (py3k:63349:63350M, May 16 2008, 00:37:17) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits or license for more information. import pprint stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] stuff.insert(0, stuff[:]) pprint.pprint(stuff, indent=4) [ ['spam', 'eggs', 'lumberjack', 'knights', 'ni'], 'spam', 'eggs', 'lumberjack', 'knights', 'ni'] Python 2.6a3+ (trunk:63323, May 15 2008, 16:09:01) [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Type help, copyright, credits or license for more information. import pprint stuff = ['spam', 'eggs', 'lumberjack', 'knights', 'ni'] stuff.insert(0, stuff[:]) pprint.pprint(stuff, indent=4) [ [ 'spam', 'eggs', 'lumberjack', 'knights', 'ni'], 'spam', 'eggs', 'lumberjack', 'knights', 'ni'] -- components: Library (Lib) messages: 66919 nosy: alexandre.vassalotti priority: low severity: normal status: open title: pprint produces different output in 2.6 and 3.0 type: behavior versions: Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2888 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2889] curses for windows (alternative patch)
New submission from anatoly techtonik [EMAIL PROTECTED]: Make curses available on Windows by using PDCurses library. Alternative patch for issue 1005895 using current trunk. Attached .bat file is used to compile it under MinGW, but I'd be glad to know how to integrate the patch into Python build system. PDCurses includes support for mouse functions compatible with ncurses, but to turn it on if requires to define NCURSES_MOUSE_VERSION to 2 before curses.h is included. I am not familiar with configure.* stuff, so I've just pasted required definitions into _cursesmodule.c With attached .bat file it works by external definition. Some functions, such as initterm are not available on Windows platform and were defined out. I hope that curses module will be included in next Python 2.6 -- components: Extension Modules files: curses_win_port.patch.txt messages: 66920 nosy: techtonik severity: normal status: open title: curses for windows (alternative patch) versions: Python 2.6 Added file: http://bugs.python.org/file10339/curses_win_port.patch.txt __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2889 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2880] Rename repr to reprlib
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: -- assignee: - alexandre.vassalotti nosy: +alexandre.vassalotti __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2880 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2889] curses for windows (alternative patch)
Changes by anatoly techtonik [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10340/curses_win_compile.bat __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2889 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2880] Rename repr to reprlib
Changes by Alexandre Vassalotti [EMAIL PROTECTED]: -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2880 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
New submission from Ismail Donmez [EMAIL PROTECTED]: os module have varios O_ declerations but it doesn't define O_ASYNC. Same for fcntl module which doesn't define FASYNC. Simply defining O_ASYNC = 02 works fine but its not as elegant as saying os.O_ASYNC. -- components: Library (Lib) messages: 66921 nosy: cartman severity: normal status: open title: O_ASYNC and FASYNC should be defined for *nix systems versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Changes by Ismail Donmez [EMAIL PROTECTED]: -- type: - feature request __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Andrii V. Mishkovskyi [EMAIL PROTECTED] added the comment: These flags are non-posix, linux-specific constants. Python 'os' module uses 'posix' module for all *nix systems, including those, that do not support O_ASYNC and FASYNC flags. I think your feature request should be rejected. -- nosy: +mishok13 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Ismail Donmez [EMAIL PROTECTED] added the comment: I think they at least should be supported on Linux then. It does work if you use the value itself anyway. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Andrii V. Mishkovskyi [EMAIL PROTECTED] added the comment: I think they at least should be supported on Linux then. And what happens if some Unix flavor (i.e. Solaris) adds new flag, say O_NONLINUXSYNC and it has the same value as linux's O_ASYNC? And then FreeBSD adds O_BSDSYNC flag with the same number and so on. Then Python will have to have separate system-specific module for each *nix system that uses Python. Why do you think Python maintainers would want that? It does work if you use the value itself anyway. It's the way fcntl works -- it's just a thin layer on top of fcntl() and ioctl() calls. But that's not a good reason for including non-posix flags to 'posix' module __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2870] cmathmodule.c compile error
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: - christian.heimes nosy: +christian.heimes priority: - critical __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2870 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Platform-specific values are not a problem. On win32 os.O_NOINHERIT == 128, and on linux os.O_EXCL has the same value. Python just exposes the available #defines at the module level. (btw, the posix module is also available on windows. It is named 'nt', but it is really the same module) And in posixmodule.c, There are already some GNU extensions: os.O_DIRECT, os.O_NOFOLLOW... -- nosy: +amaury.forgeotdarc __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2863] Generator __name__ and better repr()
Georg Brandl [EMAIL PROTECTED] added the comment: Changed in r63364. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2863 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2869] Wrong doc for `calendar.Calendar.iterweekdays`
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r63365. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2869 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2870] cmathmodule.c compile error
Christian Heimes [EMAIL PROTECTED] added the comment: Fixed in r63366 -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2870 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2891] urllib not handling ftp servers that do not support REST
New submission from daggett [EMAIL PROTECTED]: I reported a bug in fedora bugzilla : https://bugzilla.redhat.com/show_bug.cgi?id=443033 I thought this was an Anaconda (Fedora installer written in Python) error, but someone wrote this is a Python urllib error, so I post it here to be sure this is a Python error or not. The bug is: When downloading a file from an FTP server, it uses the REST command everytime and don't bother to check if the FTP server supports this command. So if the FTP server does not support the REST command, the download just fails and there is no alternative: no mean to download a file. But it should have detected that the FTP server does not support the REST command and try to download using the GET command instead. It happened when net-installing Fedora8 from ftp://ftp.proxad.net which does not support the REST command (for more information, see the URL to the bug I submitted to Fedora Bugzilla). regards, Dag -- components: Build messages: 66928 nosy: daggett severity: normal status: open title: urllib not handling ftp servers that do not support REST type: behavior versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2891 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Ismail Donmez [EMAIL PROTECTED] added the comment: Add O_ASYNC and FASYNC as GNU extensions. -- keywords: +patch Added file: http://bugs.python.org/file10341/async.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined for *nix systems
Changes by Ismail Donmez [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10341/async.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined if available
Changes by Ismail Donmez [EMAIL PROTECTED]: -- title: O_ASYNC and FASYNC should be defined for *nix systems - O_ASYNC and FASYNC should be defined if available __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2755] IDLE ignores module change before restart
Mark Veldhuis [EMAIL PROTECTED] added the comment: I think this solves my problem, I took away the -n from the launcher so the command is just /usr/bin/idle-python2.5. Now Idle does not show the No subprocesses text, and when I press F5 the Python shell displays a line with Restart. I tested my case and the value change in the imported module was recognised as expected. The launcher under applications still gives the no subprocesses version. But for other Ubuntu users the problem may persist, where does the /usr/bin/idle-python2.5 -n come from? I installed idle using System-Administration-Synaptic package manager, where I selected Idle-python2.5 I don't know enough about it to say whether the command comes from there or is interpreted somehow during the installation, or some other way. Thank you for your help so far, it makes my Python learning so much easier __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2755 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2892] improve cElementTree iterparse error handling
New submission from Hrvoje Nikšić [EMAIL PROTECTED]: In some cases it is unfortunate that any error in the XML chunk seen by the buffer prevents the events generated before the error from being delivered. For example, in some cases valid XML is embedded in a larger file or stream, and it is useful to be able to ignore text that follows the root tag, if any. The iterparse API and expat itself make this possible, but it doesn't work because in case of a parsing exception, iterparse doesn't deliver the events generated before the exception. A simple change to iterparse makes this possible, however. I would like to share the change with you for possible inclusion in a future release. Note that this change shouldn't affect the semantics of iterparse: the exception is still delivered to the caller, the only difference is that the events generated by expat before the exception are not forgotten. I am attaching a diff between the current implementation of iterparse, and a modified one that fixes this problem. -- components: Extension Modules files: patch messages: 66935 nosy: hniksic severity: normal status: open title: improve cElementTree iterparse error handling type: behavior versions: Python 2.5 Added file: http://bugs.python.org/file10343/patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2892 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2882] Create the html package
Changes by Fred L. Drake, Jr. [EMAIL PROTECTED]: -- assignee: - fdrake nosy: +fdrake __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2882 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2755] IDLE ignores module change before restart
Kurt B. Kaiser [EMAIL PROTECTED] added the comment: Yes, removing the -n is the way to fix your problem. We went to quite a bit of effort to run user code from scratch on each Run/F5 using the subprocess. Running without the subprocess is considered 'expert' mode these days. (Although it's still used on Windows if the user edits a file via the right click menu - something we hope to fix.) There is a way around your difficulty - it involves using 'reload', but I didn't want to tell you about that too soon :-) Now I need to look at Debian/Ubuntu to find out why the switch was added. I run Debian, but not Ubuntu, and I use the command line pretty exclusively, so it didn't bite me. If this is the way the IDLE package is configured, I'm surprised the issue hasn't been reported previously. Thanks for the report! -- assignee: - kbk __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2755 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2892] improve cElementTree iterparse error handling
Changes by Georg Brandl [EMAIL PROTECTED]: -- assignee: - effbot nosy: +effbot __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2892 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined if available
Georg Brandl [EMAIL PROTECTED] added the comment: OK, committed patch in r63368. Thanks! -- nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined if available
Ismail Donmez [EMAIL PROTECTED] added the comment: Thanks, can you also apply to py3k branch? :) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined if available
Georg Brandl [EMAIL PROTECTED] added the comment: That will happen automatically. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2867] curses-howto link in curses module documentation gives a 404
Georg Brandl [EMAIL PROTECTED] added the comment: Especially with the rollover to the new docs. When both trunk and stable version have the same base again, I'll continue backporting doc changes as usual. -- resolution: - wont fix status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2867 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2845] shutil.copy2() copies permission bits
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r63369. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2845 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined if available
Ismail Donmez [EMAIL PROTECTED] added the comment: Documentation patch is added too. Added file: http://bugs.python.org/file10344/async-doc.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1574217] isinstance swallows exceptions
Georg Brandl [EMAIL PROTECTED] added the comment: There are more locations in abstract.c where exceptions are unconditionally masked after a GetAttr operation: * line 1630, 1717 in PyNumber_{Long,Int} when looking for .__trunc__ * line 2932, in PyObject_IsInstance -- nosy: +benjamin.peterson, georg.brandl _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1574217 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2890] O_ASYNC and FASYNC should be defined if available
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, applied in r63373. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2890 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2893] dict.has_key() expected in h2py.py.
New submission from David Binger [EMAIL PROTECTED]: The h2py.py script is invoked at the end of make install on OS X. It raises an exception on the line where dict.has_key() is called. (There seem to be many calls to has_key() in the current 3.0 tree. I bet there are other cases like this one.) -- components: Installation messages: 66946 nosy: dbinger severity: normal status: open title: dict.has_key() expected in h2py.py. type: behavior versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2893 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2883] Create the http package
Changes by Juracy Filho [EMAIL PROTECTED]: -- nosy: +juracy __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2883 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2819] Full precision summation
Mark Dickinson [EMAIL PROTECTED] added the comment: Here's (msum.py) an example in Python of one fairly straightforward way of dealing with overflow correctly, without needing more than one pass through the data, and without significant slowdown in the normal case. (The Python code is needlessly inefficient in places, notably in that partials[1:] creates a new list; this is obviously not a problem in C.) The idea is essentially just to maintain the sum modulo integer multiples of 2.**1024. partials[0] is reserved for keeping track of the current multiple of 2.**!024. So at each stage, the sum so far is sum(partials[1:], 0.0) + 2.**1024 * partials[0]. I'm 97.3% convinced that the proof of correctness goes through: it's still true with this modification that partials always consists of nonadjacent, nonzero values of increasing magnitude. One of the keys to proving this is to note that for any value x between 2**1023 and 2**1024, both x-2**1023 and x-2**1024 are exactly representable. --- There's one more 'nice-to-have' that I think should be considered: it would be nice if the result of msum were always correctly rounded. One aspect of correct rounding is that it provides a guarantee that the sum is independent of the order of the summands, so msum(list) == msum(sorted(list)) would hold true. Added file: http://bugs.python.org/file10345/msum.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2664] The position of special value tables (cmathmodule.c)
Mark Dickinson [EMAIL PROTECTED] added the comment: I agree that having lines = 80 characters long is ugly (and violates PEP 7). But I think this particular case falls under the 'rules are made to be broken' comment at the start of PEP 7. I like the fact that if you squint at the tables hard enough, each one looks almost like a copy of the complex plane. :-). -- resolution: - wont fix status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2664 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2734] 2to3 converts long(itude) argument to int
Georg Brandl [EMAIL PROTECTED] added the comment: Let me note that this also happens for assignments like: long = Type(long, l) -- nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2734 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2894] 2to3 discards comments before import statements
New submission from Georg Brandl [EMAIL PROTECTED]: I got this diff from Tools/freeze/freeze.py: - - -# Import the freeze-private modules - -import checkextensions -import makeconfig -import makefreeze -import makemakefile -import parsesetup -import bkfile +from . import checkextensions +from . import makeconfig +from . import makefreeze +from . import makemakefile +from . import parsesetup +from . import bkfile -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool) messages: 66950 nosy: collinwinter, georg.brandl severity: normal status: open title: 2to3 discards comments before import statements type: behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2894 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2839] Moving lib-tk to tkinter package
Guilherme Polo [EMAIL PROTECTED] added the comment: New patch, this one does the following: * Fix tkinter imports in idlelib, pydoc and Canvas (deprecated) * Creates stub modules for all old Tkinter modules, except tkFileDialog and tkSimpleDialog * Updates test_py3kwarn for all these renames What is missing now: * Merging tkSimpleDialog into tkinter.simpledialog and tkFileDialog into tkinter.filedialog, I believe this should be done using svn merge and then correct the result a bit. * Update docs Added file: http://bugs.python.org/file10346/tkinter_step2.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2839] Moving lib-tk to tkinter package
Georg Brandl [EMAIL PROTECTED] added the comment: Committed step 2 patch as r63376. -- nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2819] Full precision summation
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10306/unnamed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2819] Full precision summation
Jean Brouwers [EMAIL PROTECTED] added the comment: Two tests failed with Python 2.6a3 on MacOS X Intel. Test 11 failed: 9007199254740992.0 vs 9007199254740991.0 expected for [9007199254740992.0, -0.5, -5.5511151231257827e-17]. Test 12 failed: inf vs 1.7976931348623157e+308 expected for [8.9884656743115785e+307, -1.0, 8.9884656743115795e+307]. /Jeab Brouwers Added file: http://bugs.python.org/file10347/msum3.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2819] Full precision summation
Mark Dickinson [EMAIL PROTECTED] added the comment: Test 11 failed: 9007199254740992.0 vs 9007199254740991.0 expected for [9007199254740992.0, -0.5, -5.5511151231257827e-17]. Yes: that's the lack of correct rounding rearing its ugly head... Test 12 failed: inf vs 1.7976931348623157e+308 expected for [8.9884656743115785e+307, -1.0, 8.9884656743115795e+307]. I'm still trying to work out how to get around this one; again, the result's not out by much, but it would be nice to be able to guarantee correctly rounded answers *all* the time, instead of just *most* of the time. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2885] Create the urllib package
Changes by Facundo Batista [EMAIL PROTECTED]: -- nosy: +facundobatista __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2885 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2839] Moving lib-tk to tkinter package
Guilherme Polo [EMAIL PROTECTED] added the comment: Patching for updating the docs added. I've also added a script that should be executed after the patch is applied, it will rename scrolledtext.rst to tkinter.scrolledtext.rst; tix.rst to tkinter.rst and turtle.rst to tkinter.turtle.rst. Added file: http://bugs.python.org/file10348/tkinter_doc_updates.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2839] Moving lib-tk to tkinter package
Changes by Guilherme Polo [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10349/rename_tkdocs.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2893] dict.has_key() expected in h2py.py.
Georg Brandl [EMAIL PROTECTED] added the comment: Fixed, among with all other files in Tools/, in r63378. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2893 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2839] Moving lib-tk to tkinter package
Guilherme Polo [EMAIL PROTECTED] added the comment: After merging all these changes in py3k, lib-tk should be removed from sys.path there. Patch added for this. Note that the iss script at PC/VS7.1 should be regenerated Added file: http://bugs.python.org/file10350/remove_libtk_path.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2839 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2895] Crash in ParseTupleAndKeywords when passing byte string keywords
New submission from Stefan Behnel [EMAIL PROTECTED]: Using 3.0a5, the following code crashes in vgetargskeywords (getargs.c:1542) d = {bencoding: abc} str(babc, **d) It should raise a TypeError instead, i.e. line 1535 should read if (!PyUnicode_Check(key)) { instead of if (!PyString_Check(key) !PyUnicode_Check(key)) { -- components: Interpreter Core messages: 66958 nosy: scoder severity: normal status: open title: Crash in ParseTupleAndKeywords when passing byte string keywords type: crash versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2895 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2858] bsddb.db.DBEnv.lock_get test_lock.test03_set_timeout crashes
Jesús Cea Avión [EMAIL PROTECTED] added the comment: Neal Norwitz did a patch for this. Hope it solves this issue. Neal, please, post the svn r number. -- nosy: +nnorwitz __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2858 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2895] Crash in ParseTupleAndKeywords when passing byte string keywords
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, added a test and fixed in r63379. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2895 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2884] Create the tkinter package
Changes by Georg Brandl [EMAIL PROTECTED]: -- resolution: - duplicate status: open - closed superseder: - Moving lib-tk to tkinter package __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2884 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2775] Implement PEP 3108
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Quentin Gallet-Gilles wrote: I've found some places where configparser, copyreg, queue and socketserver haven't been renamed. The attached patch 'renaming_leftovers_2.6.patch' corrects this. Thanks! Applied in r63384. -- nosy: +alexandre.vassalotti __ 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
[issue2896] cmathmodule.c compilation error
New submission from Stéphane JEANNENOT [EMAIL PROTECTED]: Build infos : Python 3.0a5+ (py3k:63383, May 16 2008, 19:58:25) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Build options : ./configure --with-fpectl --with-wctype-functions --with-pymalloc --with-doc-strings --with-threads --with-signal-module --with-system-ffi Same bug as issue 2870, certainly same correction ! -- components: Extension Modules messages: 66962 nosy: Juno, christian.heimes severity: normal status: open title: cmathmodule.c compilation error type: compile error versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2896 __ ___ 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
Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Brett wrote: This will require moving over to using the named tuple features of os.stat() along with adding methods to the object that the stat module has as functions. How do you add new methods to a PyStructSequence? -- nosy: +alexandre.vassalotti __ 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
Re: [issue2874] Remove use of the stat module in the stdlib
On Fri, May 16, 2008 at 11:56 AM, Alexandre Vassalotti [EMAIL PROTECTED] wrote: Alexandre Vassalotti [EMAIL PROTECTED] added the comment: Brett wrote: This will require moving over to using the named tuple features of os.stat() along with adding methods to the object that the stat module has as functions. How do you add new methods to a PyStructSequence? No clue. =) Might not be doable. In the end a custom class might be needed that supports indexes. ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2819] Full precision summation
Mark Dickinson [EMAIL PROTECTED] added the comment: Ensuring correct rounding isn't as onerous as I expected it to be. crsum.py is a snippet of Python code showing how to add nonadjacent floats and get the correctly rounded result. Added file: http://bugs.python.org/file10351/crsum.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2819 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1793] ctypes.util.find_msvcrt() function
Thomas Heller [EMAIL PROTECTED] added the comment: Committed in trunk as rev. 63395. I've changed the code that Amaury suggested so that None is returned when get_build_version() returns None. Thanks. -- resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1793 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue689895] Imports can deadlock
Changes by Adam Olsen [EMAIL PROTECTED]: -- nosy: +Rhamphoryncus Tracker [EMAIL PROTECTED] http://bugs.python.org/issue689895 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1489051] keyword and topic help broken in Pythonwin IDE
Terry J. Reedy [EMAIL PROTECTED] added the comment: Py3.0a5 installed in C;/Program Files/ Start/Python30/Python Manuals, using Python30.chm, works great. Thank you for that. In the interpreter (and IDLE) help(object) works fine. Ditto. But for topics and keywords, I got the same message as the OP. Opinion: After 2 years, I think the priority of this issue should be raised: help should 'just work' as installed, especially on Windows. Until is does, the instructions need to be improved so that normal users and Python beginners, and not just DOS/Windows experts, can fix it. The instruction ''' On the Microsoft Windows operating system, the files can be built by running hh -decompile . PythonNN.chm in the C:\PythonNN\Doc directory.''' makes several assumptions about knowledge that many do not have. Since a running Python knows its version and starting location, it should make the implied substitutions itself. With that done, here are two possible interpretations of 'run... in... 1. '''Open Start/Run, enter hh -decompile . C:/Program Files/Python30/Doc/Python30.chm in the box, and click OK'''. [Since I did not try this, I do not really know if this will put the result in the right place.] 2. '''Open Start/All programs/Accessories/Command Prompt, enter cd C:/Program Files/Python30/Doc, enter dir to check that Python30.chm is present, enter hh -decompile . Python30.chm, and enter dir' again and you should see several new files and directories.''' I suspect that very few of additions are needed by help() for topics and keywords. If I am correct, then instead of a complete decompile,... Suggestion 1a (permanent): When installing on Windows, include in /Doc the minimum html files needed by help() so no decompile is needed. Suggestion 1b (interim): expand instructions as indicated above. After closing and restarting Python, I still got the same error message. I assumed because the Python HTML documentation files could not be found. If you have installed them, please set the environment variable PYTHONDOCS to indicate their location. indicated the problem. But what should one do with more than one version of Python present, which is or will be normal for most who install 3.0. Suggeston 2a (permanent): help should just look in the default location for the version it is running on. Or it should set its own copy on first use. Or the interpreter should. Suggestion 2b (interim): give details on how to set an e.v. Python is the first Windows XP program I can remember that asked me to do this. XP procedure: To set for all users, switch to admin account. Open Start/Control Panel/System. Click Advanced tab and Environment Variables button. For all users, add a System variable. Otherwise, add a User variable. In either case, set PYTHONDOCS to C:\Program Files\Python30\Doc However, after I did this, I restarted Python, and listed os.environ.items() to verify ('PYTHONDOCS', 'C:\\Program Files\\Python30\\Doc'). However help still does not work. ? -- nosy: +tjreedy _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1489051 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1574217] isinstance swallows exceptions
Benjamin Peterson [EMAIL PROTECTED] added the comment: I'd like to clarify the approach to fixing these types of problems. I fixed a issue (#2196) like this by only propagating exceptions that didn't descend from Exception because of this sentence in the hasattr docs: This is implemented by calling getattr(object, name) and seeing whether it raises an exception or not.) However, I like constricting it to AttributeError only as that would make it much less confusing. This might be something to bring up on python-dev. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1574217 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2750] Add simplejson to Python 2.6/3.0 standard library
Benjamin Peterson [EMAIL PROTECTED] added the comment: Let's see: 1. Fix up and add to trunk. Check! 2. Convert docs to reST. Check! 3. Port to 3.0. Check! 4. Fix docs in 3.0. Check! Yes, we can close this. -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2750 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1489051] keyword and topic help broken in Pythonwin IDE
Martin v. Löwis [EMAIL PROTECTED] added the comment: Opinion: After 2 years, I think the priority of this issue should be raised: help should 'just work' as installed, especially on Windows. Until is does, the instructions need to be improved so that normal users and Python beginners, and not just DOS/Windows experts, can fix it. Counter-opinion: contributions are welcome. Raising the priority does NOTHING to accelerate the processing. The effecting of raisig it a little is zero; the effect of raising it much is that it gets lowered if it remains unresolved an a release approaches. However, after I did this, I restarted Python, and listed os.environ.items() to verify ('PYTHONDOCS', 'C:\\Program Files\\Python30\\Doc'). However help still does not work. ? Without checking: it's most likely that the actual HTML file names have changed in 2.6, so that the interactive invocation of HTML pages would work on no system. Either you provide a fix, or it remains unfixed until somebody provides a fix. Unassigning myself, as I will have no time to work on this in the coming months. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1489051 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1489051] keyword and topic help broken in Pythonwin IDE
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- assignee: loewis - _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1489051 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2897] include structmember.h in Python.h
New submission from Benjamin Peterson [EMAIL PROTECTED]: As the comment in descrobject.c says: /* Why is this not included in Python.h? */ -- messages: 66972 nosy: benjamin.peterson severity: normal status: open title: include structmember.h in Python.h type: feature request __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2897 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2897] include structmember.h in Python.h
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- components: +Interpreter Core versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2897 __ ___ 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
Benjamin Peterson [EMAIL PROTECTED] added the comment: mimetools.Message is compatible with email.message.Message, right? -- nosy: +barry, benjamin.peterson __ 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
[issue1362475] Text.edit_modified() doesn't work
Guilherme Polo [EMAIL PROTECTED] added the comment: This bug still exists, I'm attaching a patch against current python-trunk. This patch is based on the fact that documentation tk 8.4 (version which edit command was added) and tk 8.5 says only edit_modified is supposed to return something, which is either 0 or 1, so there was no reason to use _gettints on that tk.call, and returning an empty tuple is against the expected value, 0. -- keywords: +patch nosy: +gpolo Added file: http://bugs.python.org/file10352/edit_modified.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1362475 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com