[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: Oops, there is a dummy typo in imp_init_builtin() that makes test_importlib to crash (which proves that importlib has a good coverage :-)): replace "s:" by "U:" in if (!PyArg_ParseTuple(args, "s:init_builtin", &name)). --

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Past experience has shown that a cheatsheet in the main repository gets neglected. How about we open it up via a wiki or somesuch so that the community if free to update it? -- ___ Python tracker

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: test_reprlib fails on Windows, because '\' in quoted '\\' in the filename on repr(module). Workaround: *** index b0dc4d7..e476941 100644 --- a/Lib/test/test_reprlib.py +++ b/Lib/test/test_reprlib.py @@ -234,7 +234,7 @@ class LongReprTest(unittest.TestCase)

[issue3080] Full unicode import system

2011-01-20 Thread STINNER Victor
STINNER Victor added the comment: test_runpy fails on Windows on make_legacy_pyc() (of test.support), I don't know why. -- ___ Python tracker ___ ___

[issue4819] Misc/cheatsheet needs updating

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: Leaving it in the wiki for a while so that the community can update and improve it might be a good idea, but ultimately I think it should go in the doc. -- ___ Python tracker __

[issue5380] pty.read raises IOError when slave pty device is closed

2011-01-20 Thread Zac Medico
Zac Medico added the comment: This issue no longer appears to be a problem for my purposes, since it seems that array.fromfile() does not lose any data as long as the input file is opened in unbuffered mode (I use fdopen with 0 for the bufsize argument). -- __

[issue10968] Timer class inheritance issue

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Works for me: >>> from timeit import Timer >>> class A(Timer): pass ... (Tested with Python 3.1 and 3.2 on OSX.) -- nosy: +belopolsky ___ Python tracker _

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: If the width is specified with a percentage, a min-width should be specified too. In the py3k doc the sidebar can be collapsed though, so I'm not sure it's worth changing this. Georg? -- keywords: +easy stage: -> needs patch __

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2011-01-20 Thread Christoph Gohlke
Changes by Christoph Gohlke : -- nosy: +cgohlke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-20 Thread R. David Murray
R. David Murray added the comment: I think the module should be reviewed and made consistent, as Antoine did for nntplib. I don't know enough about the IMAP protocol to do such a review, or even weigh in meaningfully on the immediate question, nor am I likely to have time to learn enough bef

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-20 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jan 20, 2011 at 10:08 PM, R. David Murray wrote: .. > (*) The asymetry in the names of these two functions is already a wart. Not to mention the use of CamelCase. -- ___ Python tracker

[issue9196] Improve docs for string interpolation "%s" re Unicode strings

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: Python 3 checks the return types of __bytes__ and __str__, raising an error if it's not bytes and str respectively: >>> str(C()) TypeError: __str__ returned non-string (type bytes) >>> bytes(C()) TypeError: __bytes__ returned non-bytes (type str) The Python 2 do

[issue10854] Output .pyd name in error message of ImportError when DLL load fails

2011-01-20 Thread Christoph Gohlke
Changes by Christoph Gohlke : -- nosy: +cgohlke ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue10573] Consistency in unittest assert methods: order of actual, expected

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: Not all the arg names in the doc match with the actual name of the args (probably because the methods are expected to be used with positional args only), that's why the changes affects only the doc. -- ___ Python tra

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: As Ezio noted, the coming versions of the Python 3 documentation provide a way to collapse the sidebar completely. Perhaps a min-width should be specified, but I'm not convinced that's a good idea. The sidebar problem is fairly significant, and the collaps

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: The min-width is necessary in case the CSS is changed to resize the sidebar dynamically. If it gets too narrow it would start getting unusable and the text will start overflowing. Possible alternatives are: 1) use a percentage and min-width; 2) like 1) but also

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: On Thu, Jan 20, 2011 at 11:18 PM, Ezio Melotti wrote: > If it gets too narrow it would start getting unusable and the text will start > overflowing. If someone is zooming that much, it's because they really need the size of the text more than anything (tr

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Ezio Melotti
Ezio Melotti added the comment: I did some tests using 20% instead of 230px and found the following problems: 1) while zooming, even if the width of the sidebar doesn't change, the font size does, overflowing from the sidebar; 2) min-width can't be used because the width of the sidebar is given

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

2011-01-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10675] unittest should have an assertChanges context manager

2011-01-20 Thread Ezio Melotti
Changes by Ezio Melotti : -- components: +Tests nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10969] Make Tcl recommendation more prominent

2011-01-20 Thread Raymond Hettinger
New submission from Raymond Hettinger : On the releases page at http://www.python.org/download/releases/3.2/ the note about Tcl needs to be made more prominent for the 32/64 bit Mac OS installer. Right now, it's buried in another page referenced in a footnote at the bottom of the release. I

[issue10967] move regrtest over to using more unittest infrastructure

2011-01-20 Thread Sandro Tosi
Changes by Sandro Tosi : -- nosy: +sandro.tosi ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue3080] Full unicode import system

2011-01-20 Thread Nick Coghlan
Nick Coghlan added the comment: After applying the patch, doing a make clean and rebuild, I found that test_importlib fails with a segmentation fault, but the default test suite otherwise runs without error (that's on Linux with a UTF-8 filesystem, though). I'll see how a -uall run fares. --

[issue10970] "string".encode('base64') is not the same as base64.b64encode("string")

2011-01-20 Thread Mahmoud Abdelkader
New submission from Mahmoud Abdelkader : Given a string, encoding it with .encode('base64') is not the same as using base64's b64encode function. I think this is very unclear and unintuitive. Here's some example code to demonstrate the problem. Before I attempt to submit a patch, is this done

[issue10947] imaplib: Internaldate2tuple and ParseFlags require (and latter returns) bytes arrays; should allow/return str

2011-01-20 Thread Joe Peterson
Joe Peterson added the comment: These are all good comments. And I agree that the naming of the functions is not good (and the CamelCase). Overall, yes, it should be made consistent and the types returned and passed in should be appropriate. I did a little experimenting, using more imaplib

[issue9884] The 4th parameter of method always None or 0 on x64 Windows.

2011-01-20 Thread Owen
Owen added the comment: I tested this issue in Python2.7.1, Python3.1.3 and Python 3.2rc1. It's still can reproduce. Would you please check this "Callback functions" issue? -- ___ Python tracker __

[issue3341] "Suggest a change" link

2011-01-20 Thread Georg Brandl
Georg Brandl added the comment: And still this is a thing that Sphinx needs to do (already does, but needs to be finalized.) -- status: open -> closed ___ Python tracker ___ ___

[issue10906] wsgiref should mention that CGI scripts usually expect HTTPS variable to be set to 'on'

2011-01-20 Thread Georg Brandl
Georg Brandl added the comment: The doc for this function is not a place to discuss what CGI scripts do. It describes what guess_scheme() does, and it does so sufficiently. -- status: open -> closed ___ Python tracker

[issue10961] Pydoc touchups in new browser for 3.2

2011-01-20 Thread Georg Brandl
Georg Brandl added the comment: Sigh... that might have come a little earlier. As it is, I'll review it before rc2. -- assignee: -> georg.brandl priority: normal -> release blocker ___ Python tracker ___

[issue10964] Mac installer need not add things to /usr/local

2011-01-20 Thread Ned Deily
Ned Deily added the comment: Adding the symlinks to /usr/local is an option in the OS X installer. Although it is enabled by default, you can easily disable it in Installer.app by selecting "Customize" and then unchecking the install of the "UNIX command-line tools" package. The main reason

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Christopher Dunn
Christopher Dunn added the comment: I see what @ezio means about the apparent overflow when the bodywrapper left margin is at 20%. (It's not really overflow, since the sidebar is actually the width of the screen.) How about this change to basic.css? 44 div.sphinxsidebar { 45 float: left

[issue10936] Simple CSS fix for left margin at docs.python.org

2011-01-20 Thread Christopher Dunn
Christopher Dunn added the comment: For narrow-width screens, there really shouldn't be a sidebar. Maybe a dynamic element would be better. Could it unhide and overlap the main body with a click or mouse-over? Then the main body could take the full screen width. Just an idea. -- ___

[issue3080] Full unicode import system

2011-01-20 Thread Nick Coghlan
Nick Coghlan added the comment: As for the more limited run, I get a clean run with -uall except for the segfault in test_importlib. I'll switch to a pydebug build and see how a verbose run of that test fares. -- ___ Python tracker

<    1   2