Ezio Melotti | 1 Jul 2009 01:01
Favicon

[issue1571184] Generate numeric/space/linebreak from Unicode database.


Changes by Ezio Melotti <ezio.melotti <at> gmail.com>:

----------
nosy: +ezio.melotti

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue1571184>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Ezio Melotti | 1 Jul 2009 01:06
Favicon

[issue6312] httplib fails with HEAD requests to pages with "transfer-encoding: chunked"


Changes by Ezio Melotti <ezio.melotti <at> gmail.com>:

----------
stage:  -> patch review

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue6312>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Ezio Melotti | 1 Jul 2009 01:21
Favicon

[issue5388] Green-box doc glitch: winhelp version only


Ezio Melotti <ezio.melotti <at> gmail.com> added the comment:

This is what I see here (see attached image). The only scrollbar is the
one at the bottom for the whole page. The file is under Start ->
Programs -> Python 3.1 -> Python Manuals, and the path/file is
C:\Programs\Python31\Doc\python31.chm (you can see it right-clicking on
it from start menu and selecting properties).

I'm using WinXP SP2, the versions of the HTML Help Components are:
HHCTRL.OCX 5.02.3790.2453
ITSS.DLL   5.02.3790.2453
ITIRCL.DLL 5.02.3790.2453
HHA.DLL    4.74.8702.0

Compiled with HHA Version 4.74.8702

You can find this information right-clicking on WinHelp in the
application bar (or on the small icon on the left of the title bar) and
then on "Version...". Maybe you are running an older (or newer) version
of WinHelp.

Tomorrow I'll check with some other Windows.

----------
Added file: http://bugs.python.org/file14412/py31doc.png

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue5388>
(Continue reading)

Adam Olsen | 1 Jul 2009 01:52
Favicon

[issue6326] Add a "swap" method to list


Adam Olsen <rhamph <at> gmail.com> added the comment:

Fix it at its source: patch your database engine to use the type you
want.  Or wrap the list without subclassing (__iter__ may be the only
method you need to wrap).

Obscure performance hacks don't warrant language extensions.

----------
nosy: +Rhamphoryncus

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue6326>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Kristján Valur Jónsson | 1 Jul 2009 02:03
Favicon

[issue6326] Add a "swap" method to list


Kristján Valur Jónsson <kristjan <at> ccpgames.com> added the comment:

fyi, here is the thread from python-ideas:

http://mail.python.org/pipermail/python-ideas/2009-June/005042.html

The parallel to C++´s future "rvalue reference" is interesting 
(http://www.artima.com/cppsource/rvalue.html, see the "move" 
application) 

Especially, perhaps, in light of this quote from http://evanjones.ca/rvalue-references.html,
criticising the concept:

"...Or add a swap member function. This is not "elegant" nor is it as 
general. However, this is what we've been using for decades. It also 
requires zero changes to C++ compilers, and requires users to learn 
nothing. It has been immortalized in books like Effective C++ (Item 25: 
Consider support for a non-throwing swap)."

This, incidentally, is where the name 'swap' comes from, me being an old 
C++ programmer.

----------

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue6326>
_______________________________________
_______________________________________________
(Continue reading)

Amaury Forgeot d'Arc | 1 Jul 2009 02:03
Favicon

[issue1571184] Generate numeric/space/linebreak from Unicode database.


Amaury Forgeot d'Arc <amauryfa <at> gmail.com> added the comment:

Here is a refreshed version of the patch, without the generated files.
The patch combines several changes which are fairly independent from 
each other:

- Using the unicode database to generate the functions adds 143 new 
codepoints to PyUnicode_ToNumeric, and one codepoint to 
PyUnicode_IsWhitespace.

- In addition, PyUnicode_ToNumeric now contains code for all numerics; 
previously those which are also digits fell in the 'default:' case and 
were converted with PyUnicode_ToDigit(). This adds 468 new codepoints, 
but removes the need to call PyUnicode_ToDigit()

- The Unihan.txt files (two files to download, 25Mb each) are now 
parsed, and this adds 73 more codepoints to PyUnicode_ToNumeric. (There 
are now 1009 entries in this function.)
The 3.2.0 version of this file contains two huge numbers: 1e16 and 1e20, 
I had to widen the type of 'change_record.numeric_changed' from 'int' to 
'double'.  It is possible that these were removed from the Unicode 
database between versions 4.1 and 5.1.

- the database has a new flag, NUMERIC_MASK, used by 
PyUnicode_IsNumeric.  This adds ~350 lines in the arrays of numbers in 
unicodetype_db.h

If this patch is accepted, the md5 checksum in test_unicodedata.py will 
need to change.
(Continue reading)

Greg Ward | 1 Jul 2009 02:43
Favicon

[issue5555] optparse


Greg Ward <greg <at> gerg.ca> added the comment:

> This is an edited-down excerpt form the optparse documentation from:
> 
> http://docs.python.org/library/optparse.html
> 
> "... the traditional Unix syntax is a hyphen (“-“) followed by a 
> single letter [...] Some other option syntaxes that the world has seen
include:
>    * a hyphen followed by a few letters, e.g. "-pf" [...]

Note that the second "[...]" expands to "(this is *not* the same as
multiple options merged into a single argument)".  Which means:

1) optparse *does* implement the traditional Unix option-munging that
has been around since at least the mid-1980s
2) the proposed statement "optparse has chosen to implement a subset of
the GNU coding standard's command line interface guidelines, allowing
for both long and short options, but not the POSIX-style concatenation
of short options." is false

Offhand, I don't see a way for the documentation to be any clearer. 
Maybe an example of "-a" and "-b" munged to "-ab"?

----------

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue5555>
(Continue reading)

Greg Ward | 1 Jul 2009 02:44
Favicon

[issue5555] optparse: clarify option concatenation in docs


Changes by Greg Ward <greg <at> gerg.ca>:

----------
title: optparse -> optparse: clarify option concatenation in docs

_______________________________________
Python tracker <report <at> bugs.python.org>
<http://bugs.python.org/issue5555>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/python-python-bugs-list%40m.gmane.org

Terry J. Reedy | 1 Jul 2009 02:58
Favicon

[issue5388] Green-box doc glitch: winhelp version only


Terry J. Reedy <tjreedy <at> udel.edu> added the comment:

Same path to python31.chm.
I presume color difference is due to difference selections in
Display Properties / Appearance tab.

When I left- or right-click on upper-left icon as depicted in screen
capture, choices are move, resize, ...., close, About HTML Help. No
Versions. Result of selecting last is popup window

About Microsoft HTML Help. 
Html Help Control Version 5.2.3790.4110
Copyright blah blah

Ditto for right-click on entry in task bar as bottom of screen.

Other programs use the same control.

We are obviously running different 'help' programs. WinHelp versus HTML
Help? I wonder if it has anything to do with vendor customization. My XP
Home is from HP. However, wife's machine from Dell with XP Pro uses the
same version of same control for help with various programs also.

My machine does have winhelp.exe (with pure ? icon instead of ? and
page) and winhelp32.exe (with ? on book cover icon), but they are not
listed in programs / accessories. Latter does not recognize python31.chm
as a help file. The former looks for .hlp files.

----------
(Continue reading)

Matt | 1 Jul 2009 05:56
Favicon

[issue6392] IDLE 3.1 will not open


New submission from Matt <matthall.oxford <at> gmail.com>:

IDLE will not open; it does not give an error or even appear on the 
process list.

I am using Windows XP on an IBM Thinkpad. I tried the prescribed 
solution on Issue 4049, and it returned this message:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Matt>cd \python31

C:\Python31>python.exe Lib\idlelib\idle.py
Traceback (most recent call last):
  File "Lib\idlelib\idle.py", line 11, in <module>
    idlelib.PyShell.main()
  File "C:\Python31\Lib\idlelib\PyShell.py", line 1374, in main
    root = Tk(className="Idle")
  File "C:\Python31\Lib\tkinter\__init__.py", line 1632, in __init__
    self.tk = _tkinter.create(screenName, baseName, className, 
interactive, want
objects, useTk, sync, use)
_tkinter.TclError: Can't find a usable init.tcl in the following 
directories:
    {C:\IBMTOOLS\Python22\tcl\tcl8.4} C:/IBMTOOLS/Python22/tcl/tcl8.5 
C:/Python3
1/lib/tcl8.5 C:/lib/tcl8.5 C:/lib/tcl8.5 C:/library C:/library 
C:/tcl8.5.2/libra
(Continue reading)


Gmane