[issue6092] Changed Shortcuts don't show up in menu

2009-05-22 Thread jamesie
New submission from jamesie : After having changed the key binding for run-module to C-r it still says F5 in the menu and in the general section of configuration. Check Module has the same behaviour. Seen with Debian Lenny's IDLE 1.2.2 on Python 2.5.2 and with IDLE 3.1b1 on Python 3.1b1. ---

[issue5761] add file name to py3k IO objects repr()

2009-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, by "reused for f's repr" do you mean adding 'name=' into > the existing repr (probably before the encoding)? Exactly. -- ___ Python tracker

[issue5761] add file name to py3k IO objects repr()

2009-05-22 Thread R. David Murray
R. David Murray added the comment: Antoine, by "reused for f's repr" do you mean adding 'name=' into the existing repr (probably before the encoding)? Benjamin, by "bytes" do you mean BytesIO objects? Would it be acceptible to give them a 'name' attribute set to 'None'? -- nosy: +

[issue4066] smtplib SMTP_SSL._get_socket doesn't return a value

2009-05-22 Thread R. David Murray
R. David Murray added the comment: Applied to trunk in r72835, with some test fixes after (to skip the test if SSL isn't installed). Applied to py3k in r72836, ditto on fixes. I also backported the fix and test to 26-maint and 30-maint. -- nosy: +r.david.murray resolution: -> fixed s

[issue6091] Curses segfaulting in FreeBSD/amd64

2009-05-22 Thread Jack Miller
New submission from Jack Miller : I have some code that gets a Pycurses window object, grabs the standard ncurses WINDOW* out of it and proceeds to use that as usual. Works great on Linux. Segfaults on FreeBSD/amd64. static PyObject * mvw(PyObject *self, PyObject *args) { PyObject *window;

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-05-22 Thread Robert Cronk
Robert Cronk added the comment: I will go through the code and make sure I am not mistaken, but I do believe I have a single process, multiple threads, and only one handler for this file and I'm getting the same types of error messages shown on this page. I'm probably doing something wrong.

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-05-22 Thread Vinay Sajip
Vinay Sajip added the comment: This exact problem? Single process, multiple threads, one single handler for a given file? Can you post an example which demonstrates your issue? Multiple threads *are* supported by the logging package, as mentioned in the documentation. If you can post a an examp

[issue6071] no longer possible to hash arrays

2009-05-22 Thread Gregory P. Smith
Gregory P. Smith added the comment: to confirm, this is only a problem in 2.7 trunk right? if so, i won't rush a fix. but yes fallback code for legacy types or adding buffer api support to array would work. -- assignee: -> gregory.p.smith ___ Pyt

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-22 Thread Oleg Broytmann
Oleg Broytmann added the comment: I will try to look at import.c, though I must say I am a bad C programmer. I have switched to Python after ten years of Pascal. Low priority is ok. -- ___ Python tracker _

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-22 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think it matters which version of 2to3 is used. It has a same function. -- ___ Python tracker ___ ___

[issue6071] no longer possible to hash arrays

2009-05-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Perhaps Gregory has some idea about how this can most easily be resolved, since I think he did the work on #3745 which introduced this change in behavior. -- nosy: +gregory.p.smith ___ Python tracker

[issue6070] Pyhon 2.6 makes .pyc/.pyo bytecode files executable

2009-05-22 Thread Joe Amenta
Joe Amenta added the comment: Python writes compiled files with the same file permissions as the source module. In your specific example: $ python2.6 -c 'import module' This will produce module.pyc with the same attributes as module.py While I am not familiar with modifying C stat structs, I

[issue6071] no longer possible to hash arrays

2009-05-22 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: I would certainly like to, but unfortunately at present I am unable to. -- ___ Python tracker ___ _

[issue6081] str.format_from_mapping()

2009-05-22 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-05-22 Thread Robert Cronk
Robert Cronk added the comment: I have had this problem with 2.6.1 on windows from multiple _threads_ instead of multiple processes. Is that not supported either? If not, what is the workaround for logging from multiple threads? Shouldn't it be easy to use a semaphore within the logging co

[issue6089] str.format raises SystemError

2009-05-22 Thread Eric Smith
Eric Smith added the comment: Any character after a ']' other than '.' or '[' triggers this bug: >>> '{0[0]x}'.format([None]) Assertion failed: (0), function FieldNameIterator_next, file Objects/stringlib/string_format.h, line 379. I'll fix it this weekend. -- assignee: -> eric.smith

[issue6083] Reference counting bug in setrlimit

2009-05-22 Thread Georg Brandl
Georg Brandl added the comment: That is a good point. IMHO we'll be fine with a warning in the docs, and fixing our own two instances. Martin, what do you think? -- assignee: -> loewis nosy: +georg.brandl, loewis ___ Python tracker

[issue6078] freeze.py doesn't work

2009-05-22 Thread Georg Brandl
Georg Brandl added the comment: Added in r72833. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue6089] str.format raises SystemError

2009-05-22 Thread R. David Murray
Changes by R. David Murray : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue6089] str.format raises SystemError

2009-05-22 Thread R. David Murray
Changes by R. David Murray : -- priority: -> release blocker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6089] str.format raises SystemError

2009-05-22 Thread R. David Murray
R. David Murray added the comment: trunk and py3k debug build gives this: >>> '{0[0](10)}'.format([None]) python: Objects/stringlib/string_format.h:379: FieldNameIterator_next: Assertion `0' failed. zsh: abort ./python -- nosy: +r.david.murray

[issue6090] zipfile DeprecationWarning Python 2.6.2

2009-05-22 Thread Ivan Bykov
New submission from Ivan Bykov : Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit (Intel)] on win32 IDLE 2.6.2 >>> import zipfile >>> new = zipfile.ZipFile('C:\\x', 'w', zipfile.ZIP_DEFLATED) >>> zi = zipfile.ZipInfo('test',(1,2,3,4,5,6)) >>> new.writestr(zi,'fgh') Warn

[issue6079] SyntaxError in xmlrpc.client examples

2009-05-22 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r72832. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6042] Document and slightly simplify lnotab tracing

2009-05-22 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: I had two reasons to change PyCode_CheckLineNumber to _PyCode_CheckLineNumber: First, its behavior is changing without its signature changing. Without a name change, that could break users silently (if there are any codesearch missed). Second, I think it's an i

[issue6089] str.format raises SystemError

2009-05-22 Thread Mark Florisson
New submission from Mark Florisson : >>> '{0[0](10)}'.format([None]) Traceback (most recent call last): File "", line 1, in SystemError: error return without exception set -- components: Interpreter Core messages: 88198 nosy: eggy severity: normal status: open title: str.format raises

[issue6088] Python3.0.1.1 is not available when system locale is zh_TW.eucTW

2009-05-22 Thread R. David Murray
R. David Murray added the comment: I can't reproduce this on trunk (or 3.0 maint) on Gentoo Linux: ~/python/py3k>./python Python 3.1b1+ (py3k:72816, May 21 2009, 22:01:55) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import locale [50411 refs

[issue6042] Document and slightly simplify lnotab tracing

2009-05-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why you changed PyCode_CheckLineNumber to _PyCode_CheckLineNumber. Other than that, I suppose you know what you're doing :) -- ___ Python tracker _

[issue6088] Python3.0.1.1 is not available when system locale is zh_TW.eucTW

2009-05-22 Thread Leeon
New submission from Leeon : Python3.0.1 is not available when system locale is zh_TW.eucTW Expected result: python3.0 interpreter should works fine. Actual result: python3.0 interpreter can not execute any statement or ran python program. Steps to reproduce this bug: 1. Login HP-UX with a local

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2009-05-22 Thread Vinay Sajip
New submission from Vinay Sajip : When used with a build from source (i.e. non-installed) of Python, get_python_lib gives the result (on Linux) [prefix]/lib/python[version] Shouldn't this be [prefix]/Lib? Note that get_python_inc() returns "Include". That's because it makes use of the "python_

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-22 Thread Ned Deily
Ned Deily added the comment: Sorry, my assertion "no changes were made to the makefiles" is not quite correct. r71372 did change the altinstall target for Issue1590, the precipitator of this issue. -- ___ Python tracker

[issue6086] Correct minor typos in doanddont.rst and urllib2.rst howto documents.

2009-05-22 Thread Georg Brandl
Georg Brandl added the comment: Committed in trunk r72830 and py3k r72831. Thanks! -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-22 Thread Ned Deily
Ned Deily added the comment: Ronald, no changes were made to the makefiles, just to setup.py in r71400 and r71936 (which also renamed idle and pydoc): [...] Modified: python/branches/py3k/setup.py == --- python/branch

[issue6086] Correct minor typos in doanddont.rst and urllib2.rst howto documents.

2009-05-22 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : Added file: http://bugs.python.org/file14042/doc_typo_py3k_may_22_2009.patch ___ Python tracker ___ ___ Python-bug

[issue6086] Correct minor typos in doanddont.rst and urllib2.rst howto documents.

2009-05-22 Thread Vikram U Shenoy
Changes by Vikram U Shenoy : -- keywords: +patch Added file: http://bugs.python.org/file14041/doc_typo_trunk_may_22_2009.patch ___ Python tracker ___ _

[issue6086] Correct minor typos in doanddont.rst and urllib2.rst howto documents.

2009-05-22 Thread Vikram U Shenoy
New submission from Vikram U Shenoy : Attached are two patches (for trunk and py3k): * Correct a trivial typo in doanddont.rst * Correct a mistake in urllib2.rst, where URLError was being used instead of the HTTPError, in case the urllib2.urlopen() was raising an exception. -- assignee

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2009-05-22 Thread Wentao Han
New submission from Wentao Han : The invocation of socket.getfqdn to get FQDN of the host may delay for several seconds on some platforms when no appropriate host name is found. This causes lag when using SimpleXMLRPCServer and other class derived from BaseHTTPServer for every request. --

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-22 Thread Ronald Oussoren
Ronald Oussoren added the comment: Ned: the 2to3 is not installed anymore by the main makefiles, I don't know why. I'm actually happy that smtpd.py isn't installed anymore, this always looked more like an example that a real tool to me. -- ___ Pyt

[issue5272] OS X installer: fix makefile target changed for 3.x

2009-05-22 Thread Ned Deily
Ned Deily added the comment: With the decision to have references to py3k scripts always contain a "3", I agree that "make fullinstall" is no longer appropriate. With r72723 and current py3k, however, there are still some issues. Compare ls -l bin from 2.6.2, 3.0.1, and current py3k: $ cd /

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-22 Thread Ned Deily
Ned Deily added the comment: Reopening as RELEASE BLOCKER. r71936 does indeed install pydoc and idle with a 3 suffix. However, it also removed the 2to3 and smtp.py scripts previously installed by setup.py without providing any replacements for them, versioned or not. Section 25.4.1 of the 3

[issue6084] documentation of zip function is error

2009-05-22 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r72822. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue6084] documentation of zip function is error

2009-05-22 Thread bones7456
bones7456 added the comment: >>> type(x) >>> type(x2) It cann't be equal... -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6084] documentation of zip function is error

2009-05-22 Thread bones7456
New submission from bones7456 : http://docs.python.org/library/functions.html?highlight=zip#zip In this page, the example is error: Python 2.6.2 (r262:71600, Apr 24 2009, 10:04:30) [GCC 4.3.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> x = [1, 2, 3] >>

[issue6083] Reference counting bug in setrlimit

2009-05-22 Thread Bill McCloskey
New submission from Bill McCloskey : The code for resource_setrlimit in Modules/resource.c does not handle reference counting properly. The following Python code segfaults for me on Ubuntu 8.10 in Python 2.5.2 and also a custom-built 2.6.1. -- import resource l = [0, 0] class MyNum: def __

[issue6078] freeze.py doesn't work

2009-05-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The problem is that the warnings module's init function does not adhere to the standard Python naming scheme for extension modules: it's called _PyWarnings_Init rather than init_warnings. This C helper module was added to Python 2.6. OTOH, warnings is a bui