[issue6078] freeze.py doesn't work

2009-05-22 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com 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,

[issue6083] Reference counting bug in setrlimit

2009-05-22 Thread Bill McCloskey
New submission from Bill McCloskey bi...@cs.berkeley.edu: 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]

[issue6084] documentation of zip function is error

2009-05-22 Thread bones7456
New submission from bones7456 bones7...@gmail.com: 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,

[issue6084] documentation of zip function is error

2009-05-22 Thread bones7456
bones7456 bones7...@gmail.com added the comment: type(x) type 'list' type(x2) type 'tuple' It cann't be equal... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6084 ___

[issue6084] documentation of zip function is error

2009-05-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r72822. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6084 ___

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

2009-05-22 Thread Ned Deily
Ned Deily n...@acm.org 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

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

2009-05-22 Thread Ned Deily
Ned Deily n...@acm.org 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

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

2009-05-22 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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. --

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2009-05-22 Thread Wentao Han
New submission from Wentao Han wentao@gmail.com: 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

[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 vikram.u.she...@gmail.com: 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

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

2009-05-22 Thread Vikram U Shenoy
Changes by Vikram U Shenoy vikram.u.she...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file14041/doc_typo_trunk_may_22_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6086

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

2009-05-22 Thread Vikram U Shenoy
Changes by Vikram U Shenoy vikram.u.she...@gmail.com: Added file: http://bugs.python.org/file14042/doc_typo_py3k_may_22_2009.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6086 ___

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

2009-05-22 Thread Ned Deily
Ned Deily n...@acm.org 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 == ---

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

2009-05-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Committed in trunk r72830 and py3k r72831. Thanks! -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6086

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

2009-05-22 Thread Ned Deily
Ned Deily n...@acm.org 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

[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 vinay_sa...@yahoo.co.uk: 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

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

2009-05-22 Thread Leeon
New submission from Leeon leeon...@ca.com: 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

[issue6042] Document and slightly simplify lnotab tracing

2009-05-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

[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 rdmur...@bitdance.com 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

[issue6089] str.format raises SystemError

2009-05-22 Thread Mark Florisson
New submission from Mark Florisson markflorisso...@gmail.com: '{0[0](10)}'.format([None]) Traceback (most recent call last): File stdin, line 1, in module SystemError: error return without exception set -- components: Interpreter Core messages: 88198 nosy: eggy severity: normal

[issue6042] Document and slightly simplify lnotab tracing

2009-05-22 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com 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).

[issue6079] SyntaxError in xmlrpc.client examples

2009-05-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r72832. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6079 ___

[issue6090] zipfile DeprecationWarning Python 2.6.2

2009-05-22 Thread Ivan Bykov
New submission from Ivan Bykov ivan.by...@gmail.com: 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))

[issue6089] str.format raises SystemError

2009-05-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue6089] str.format raises SystemError

2009-05-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- priority: - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6089 ___ ___

[issue6089] str.format raises SystemError

2009-05-22 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6089 ___ ___ Python-bugs-list

[issue6078] freeze.py doesn't work

2009-05-22 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added in r72833. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6078 ___

[issue6083] Reference counting bug in setrlimit

2009-05-22 Thread Georg Brandl
Georg Brandl ge...@python.org 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

[issue6089] str.format raises SystemError

2009-05-22 Thread Eric Smith
Eric Smith e...@trueblade.com 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. --

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-05-22 Thread Robert Cronk
Robert Cronk cron...@gmail.com 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

[issue6081] str.format_from_mapping()

2009-05-22 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6081 ___ ___ Python-bugs-list mailing

[issue6071] no longer possible to hash arrays

2009-05-22 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: I would certainly like to, but unfortunately at present I am unable to. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6071 ___

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

2009-05-22 Thread Joe Amenta
Joe Amenta ament...@msu.edu 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

[issue6071] no longer possible to hash arrays

2009-05-22 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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

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

2009-05-22 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I don't think it matters which version of 2to3 is used. It has a same function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5756

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

2009-05-22 Thread Oleg Broytmann
Oleg Broytmann p...@phd.pp.ru 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 rep...@bugs.python.org

[issue6071] no longer possible to hash arrays

2009-05-22 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-05-22 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk 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

[issue4749] Issue with RotatingFileHandler logging handler on Windows

2009-05-22 Thread Robert Cronk
Robert Cronk cron...@gmail.com 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

[issue6091] Curses segfaulting in FreeBSD/amd64

2009-05-22 Thread Jack Miller
New submission from Jack Miller j...@codezen.org: 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) {

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

2009-05-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

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

2009-05-22 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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'?

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

2009-05-22 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org