[issue4281] Idle - incorrectly displaying a character (Latin capital letter sharp s)

2008-11-08 Thread Vlastimil Brom

Vlastimil Brom <[EMAIL PROTECTED]> added the comment:

I'm aware, that it isn't an issue of unicodedata, it was just the way I 
came to try such a "modern" unicode character.
I also see, that tk works pretty well in finding an appropriate font 
(e.g. compared to wx, which I use more often) - it took me quite some 
time to find another clearly unavailable character - PHAGS-PA 
LETTER ... :-), which however behaves like I'd expect - a square is 
displayed.

Regarding capital eszet/sharp s missing in windows' charmap, this isn't 
anything special, as its character database seems to be quite ancient 
(acording to http://www.babelstone.co.uk/Software/BabelMap.html it 
might be Unicode 2.0, instead of the current 5.1). Capital sharp s was 
added in this last version of the Unicode standard - 5.1. (The 
mentioned tool also has a tool to find a font containing a given 
unicode block.)
In the unicode database, there is a "crossreference" to the small sharp 
s, but I'm not sure, how this info should be interpretted, it's a 
different item than the plain lower/capital pair.

However, is there something to look into to check, what might be 
misconfigured on my system?

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4275] socketserver example code not correctly ported to py3k

2008-11-08 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

Why not using bytes() instead of bytearray()? Eg. replace 
s.send('Hello, world') by s.send(b'Hello, world').

--
nosy: +haypo

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4281] Idle - incorrectly displaying a character (Latin capital letter sharp s)

2008-11-08 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

On my system, a square box is drawn indeed.

First, I would like to confirm that this is not a bug in Python. Can you
please install Tcl 8.5 separately, run wish, and execute

   label .l -text "\u1e9e"
   pack .l

IIUC, Tk will try to find a font that contains the character. First,
there is a list of fallback fonts per family. If none supports the
character, there is a global fallback list. If the character is still
not found, it will enumerate all fonts in the system, and invokes
GetFontData, asking for the resource 0x636d6170 - this should give the
list of all characters supported in the font.

It would be useful to find out what specific font Tk has chosen.
Unfortunately, there seems to be no direct way to find out. In the
Tktest Tcl extension, there is a command "testfont subfonts "
which you can use to find out what subfonts have been loaded; this might
give a clue what subfont was used.

If you are willing to recompile Tk, you can augment
tkWinFont.c:FindSubFontForChar to print a message when this specific
char gets looked up, and what the resulting subfont was.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4251] library.pdf documentation: "See also: Module " does not link to xxx inside the PDF File

2008-11-08 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Should be fixed in Sphinx rev 735:a4019921bdf4.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4283] "python3.0 setup.py install --user" raises AttributeError

2008-11-08 Thread Hagen Fürstenau

New submission from Hagen Fürstenau <[EMAIL PROTECTED]>:

A simple left-over "dict.iteritems". Patch is attached.

--
components: Distutils
files: distutils.patch
keywords: patch
messages: 75634
nosy: hagen
severity: normal
status: open
title: "python3.0 setup.py install --user" raises AttributeError
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file11965/distutils.patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue2433] Merge audio modules

2008-11-08 Thread STINNER Victor

STINNER Victor <[EMAIL PROTECTED]> added the comment:

Which modules? And where is the patch? :-)

--
nosy: +haypo
stage:  -> needs patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4275] socketserver example code not correctly ported to py3k

2008-11-08 Thread Brad Miller

Brad Miller <[EMAIL PROTECTED]> added the comment:

For the example in unixclient.py using b'Hello World' works fine.  But for
the example in the socketserver documentation the strings to convert come
from argv[1:]

On Sat, Nov 8, 2008 at 5:48 AM, STINNER Victor <[EMAIL PROTECTED]>wrote:

>
> STINNER Victor <[EMAIL PROTECTED]> added the comment:
>
> Why not using bytes() instead of bytearray()? Eg. replace
> s.send('Hello, world') by s.send(b'Hello, world').
>
> --
> nosy: +haypo
>
> ___
> Python tracker <[EMAIL PROTECTED]>
> 
> ___
>

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

___
Python tracker <[EMAIL PROTECTED]>

___For the example in unixclient.py using b'Hello World' works fine. 
 But for the example in the socketserver documentation the strings to 
convert come from argv[1:]On Sat, Nov 8, 2008 
at 5:48 AM, STINNER Victor [EMAIL PROTECTED]> wrote:

STINNER Victor [EMAIL PROTECTED]> 
added the comment:

Why not using bytes() instead of bytearray()? Eg. replace
s.send('Hello, world') by s.send(b'Hello, world').

--
nosy: +haypo

___
Python tracker [EMAIL 
PROTECTED]>
http://bugs.python.org/issue4275>
___
-- Brad 
MillerAssistant Professor, Computer ScienceLuther College
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4283] "python3.0 setup.py install --user" raises AttributeError

2008-11-08 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

Thanks, fixed in r67160.

--
nosy: +georg.brandl
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4246] execution model - clear and complete example in documentation

2008-11-08 Thread robwolfe

robwolfe <[EMAIL PROTECTED]> added the comment:

People seem to understand that they can not use variable before
definition. But this dramatically change when they come across nested
functions. They don't understand when variable can be resolved from
outer scope and when can not, e.g:

def outer():
x = 1
def inner1():
print(x)
def inner2():
print(x)
# [... some instructions (maybe a lot) ...]
x = 1

They are always confused why `inner1` works but `inner2` doesn't.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4275] socketserver example code not correctly ported to py3k

2008-11-08 Thread Brad Miller

Brad Miller <[EMAIL PROTECTED]> added the comment:

Here's a combined patch that fixes:

Doc/library/socketserver.rst  examples tested and working
Demo/sockets/udpecho.py
Demo/sockets/unixclient.py

Added file: http://bugs.python.org/file11967/socketpatches.patch

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4275] socketserver example code not correctly ported to py3k

2008-11-08 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Thanks! Fixed in r67168.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4250] urllib2.py: HTTPResponse instance has no attribute 'code'

2008-11-08 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
status: pending -> open

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4250] urllib2.py: HTTPResponse instance has no attribute 'code'

2008-11-08 Thread Benjamin Peterson

Changes by Benjamin Peterson <[EMAIL PROTECTED]>:


--
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4118] Built-in compile() and ast module doc issues

2008-11-08 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Thanks for the suggestions! Changed in r67162.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4281] Idle - incorrectly displaying a character (Latin capital letter sharp s)

2008-11-08 Thread Vlastimil Brom

Vlastimil Brom <[EMAIL PROTECTED]> added the comment:

I can confirm, that TCL displays the same character as Idle, hence it 
itsn't a bug in Python (cf. the screenshot).
Unfortunately, I couldn't identify the font used here; I'm not able to 
modify and recompile Tk, as suggested, but I tried to check the 
possible serif fonts visually.
None of the fonts listed in Word is identical to the one used for 
capital sharp s in tcl (I created a simple app with Tkinter Label-s 
showing the pairs of the characters in question using the potentially 
similar fonts; while some are really close, in all cases there are 
various differences in glyphs; )

In any case, I guess this isn't a problem in python, which would have 
to be further examined; I have quite a lot of fonts installed, probably 
with some of them behaving in some "non-standard" ways

Added file: http://bugs.python.org/file11968/capital-sharp-s-TCL-Idle.jpg

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4271] conversion tool does not fix "from Tkinter import N,E"

2008-11-08 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

The other problem is fixed in r67170.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4281] Idle - incorrectly displaying a character (Latin capital letter sharp s)

2008-11-08 Thread Martin v. Löwis

Changes by Martin v. Löwis <[EMAIL PROTECTED]>:


--
resolution:  -> works for me
status: open -> closed
versions: +3rd party -Python 2.6, Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4284] Python 2.6 64-bit + Vista 64 = Bad MSVCRT

2008-11-08 Thread Anthony Awtrey

New submission from Anthony Awtrey <[EMAIL PROTECTED]>:

Here is the reproduction process. Get Windows box running Vista 64-bit.
Download the Python 2.6 64-bit version. Write a script that imports
escape from saxutils. See this:

C:\Python26>python.exe example_xml_script.py > out.xml
Traceback (most recent call last):
  File "example_xml_script.py", line 11, in 
from xml.sax.saxutils import escape
  File "C:\Python26\lib\xml\sax\saxutils.py", line 6, in 
import os, urlparse, urllib, types
  File "C:\Python26\lib\urllib.py", line 26, in 
import socket
  File "C:\Python26\lib\socket.py", line 46, in 
import _socket
ImportError: DLL load failed: The application has failed to start
because its side-by-side configuration is incorrect. Please see the
application event log for more detail.

EventViewer says:

Activation context generation failed for "C:\Python26\DLLs\_socket.pyd".
Error in manifest or policy file
"C:\Python26DLLs\Microsoft.VC90.CRT.MANIFEST" on line 12. 
The value "../msvcr90.dll" of attribute "name" in element
"urn:schemas-microsoft-com:asm.v1^file" is invalid.

Go download the MSVCRT directly and install it:

http://www.microsoft.com/downloads/details.aspx?familyid=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&displaylang=en

Then the problem goes away.

This issue is particular only to the Python 2.6 64-bit version, as the
32-bit version runs just fine.

--
components: Windows
messages: 75643
nosy: DaGoodBoy
severity: normal
status: open
title: Python 2.6 64-bit + Vista 64 = Bad MSVCRT
type: crash
versions: Python 2.6

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4251] library.pdf documentation: "See also: Module " does not link to xxx inside the PDF File

2008-11-08 Thread Winfried Plappert

Winfried Plappert <[EMAIL PROTECTED]> added the comment:

Hi, I just checked out sphinx version 67171. It still seems not to
procduce a link to the module. How does Sphinx rev 735:a4019921bdf4
translate into a Python revision?

This is what I did:
 $ make update
svn update tools/sphinx
At revision 67171.
svn update tools/docutils
At revision 67171.
svn update tools/jinja
At revision 67171.
svn update tools/pygments
At revision 67171.
...

make latex; cd build/latex; make

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4251] library.pdf documentation: "See also: Module " does not link to xxx inside the PDF File

2008-11-08 Thread Georg Brandl

Georg Brandl <[EMAIL PROTECTED]> added the comment:

It doesn't directly translate. I'm going to switch the Python docs'
build setup to checkout from Hg soon.

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4284] Python 2.6 64-bit + Vista 64 = Bad MSVCRT

2008-11-08 Thread Martin v. Löwis

Martin v. Löwis <[EMAIL PROTECTED]> added the comment:

This is a duplicate of Issue4018. You need to install Python "for all
users"; "just for me" installation is not supported.

--
nosy: +loewis
resolution:  -> duplicate
superseder:  -> "for me" installer problem on x64 Vista

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4284] Python 2.6 64-bit + Vista 64 = Bad MSVCRT

2008-11-08 Thread Martin v. Löwis

Changes by Martin v. Löwis <[EMAIL PROTECTED]>:


--
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4286] Discrepancy in format string documentation

2008-11-08 Thread dlfjessup

New submission from dlfjessup <[EMAIL PROTECTED]>:

In the documentation for Format Strings
(http://docs.python.org/dev/3.0/library/string.html#formatstrings), the
grammar has the following rule:

> conversion::=  "r" | "s"

However, the documentation later reads:

> Three conversion flags are currently supported: '!s' which calls str()
on the value, '!r' which calls repr() and '!a' which calls ascii().

This implies that the correct rule for the grammar is:

> conversion::=  "a" | "r" | "s"

--
assignee: georg.brandl
components: Documentation
messages: 75648
nosy: dlfjessup, georg.brandl
severity: normal
status: open
title: Discrepancy in format string documentation
versions: Python 3.0

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4287] Broken URL in documentation style guide

2008-11-08 Thread Fernando Correia

New submission from Fernando Correia <[EMAIL PROTECTED]>:

The documentation Style Guide
[http://docs.python.org/dev/documenting/style.html] has a broken link to
http://developer.apple.com/documentation/UserExperience/Conceptual/APStyleGuide/AppleStyleGuide2006.pdf.
This link should be updated to:

http://developer.apple.com/documentation/UserExperience/Conceptual/APStyleGuide/APSG_2008.pdf

--
assignee: georg.brandl
components: Documentation
messages: 75649
nosy: facorreia, georg.brandl
severity: normal
status: open
title: Broken URL in documentation style guide
type: feature request
versions: Python 2.7

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4285] Use a named tuple for sys.version_info

2008-11-08 Thread Brett Cannon

New submission from Brett Cannon <[EMAIL PROTECTED]>:

sys.version_info is just asking for a named tuple consisting of major,
minor, micro, releaselevel, and serial.

This is assuming, of course, that bootstrapping doesn't get in the way.

--
assignee: brett.cannon
components: Extension Modules
keywords: easy
messages: 75647
nosy: brett.cannon
priority: low
severity: normal
stage: needs patch
status: open
title: Use a named tuple for sys.version_info
type: behavior
versions: Python 2.7, Python 3.1

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4287] Broken URL in documentation style guide

2008-11-08 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Thanks! Fixed in r67175.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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



[issue4286] Discrepancy in format string documentation

2008-11-08 Thread Benjamin Peterson

Benjamin Peterson <[EMAIL PROTECTED]> added the comment:

Thanks for the report! Fixed in r67174.

--
nosy: +benjamin.peterson
resolution:  -> fixed
status: open -> closed

___
Python tracker <[EMAIL PROTECTED]>

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