[issue6839] zipfile can't extract file

2009-09-05 Thread Kim Kyung Don
Kim Kyung Don added the comment: P.S I tested extraction by using 7-zip. It works fine. -- ___ Python tracker ___ ___ Python-bugs-list

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread ivank
ivank added the comment: That trac link should be http://twistedmatrix.com/trac/changeset/27062 -- nosy: +ivank ___ Python tracker ___ ___

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: This also affects Twisted. We worked around it a couple months ago by putting a read-only `message` property onto our Exception subclass (Here's the revision: ). This seemed reasonable enough, but it turns ou

[issue3366] Add gamma function, error functions and other C99 math.h functions to math module

2009-09-05 Thread Mark Dickinson
Mark Dickinson added the comment: Finally got around to looking at this properly. Here's a first attempt at a patch to add gamma, lgamma, erf and erfc to the math module. It uses the pymath.c.diff code from nirinA, and adds docs, tests, and the extra infrastructure needed for the build syste

[issue6847] Exception strings for bytearray say "bytes"

2009-09-05 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : Various exceptions thrown by bytearray objects talk of "bytes" instead of "bytearray". Correction attached. -- components: Interpreter Core files: bytearray_strings.patch keywords: patch messages: 92293 nosy: hagen severity: normal status: open title

[issue6846] bytearray.pop() returns negative ints

2009-09-05 Thread Hagen Fürstenau
Changes by Hagen Fürstenau : -- keywords: +patch Added file: http://bugs.python.org/file14842/bytearray.patch ___ Python tracker ___ __

[issue6846] bytearray.pop() returns negative ints

2009-09-05 Thread Hagen Fürstenau
New submission from Hagen Fürstenau : This looks pretty bad: >>> b = bytearray(b"\xff") >>> b[0] 255 >>> b.pop() -1 Fortunately it's easy too fix (attached). -- components: Interpreter Core messages: 92292 nosy: hagen severity: normal status: open title: bytearray.pop() returns negativ

[issue6843] No documentation for the module argument to warnings.filterwarnings

2009-09-05 Thread Georg Brandl
Georg Brandl added the comment: A simple isolated test here shows that the module argument works as intended. I can't help with your problem without more information (but you probably should debug this somewhere in warnings.py/_warnings.c). But you're right, this is not a subject for the bugtr

[issue6845] ftplib rest support for storbinary

2009-09-05 Thread Pablo Mouzo
Pablo Mouzo added the comment: I attached a patch. -- keywords: +patch Added file: http://bugs.python.org/file14841/issue6845.patch ___ Python tracker ___ ___

[issue6837] Mark the compiler package as deprecated

2009-09-05 Thread Georg Brandl
Georg Brandl added the comment: "Bugs are not fixed" is somewhat misleading -- I assume you're referring to bugs like the one I closed recently. Those are all bugs that have been in the compiler package for ages, and users that hit them know them or work around them. If a regression comes up, i

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: After a short time and some more learning about Mercurial, I discovered how to rebase my local repository and create a new unified diff against the latest py3k branch. This latest patch (7) supercedes all previous patches. I hope this patch is suitable for pa

[issue6845] ftplib rest support for storbinary

2009-09-05 Thread Pablo Mouzo
New submission from Pablo Mouzo : FPT class doesn't support the rest parameter in storbinary method. -- components: None messages: 92287 nosy: pablomouzo severity: normal status: open title: ftplib rest support for storbinary type: feature request versions: Python 2.7 __

[issue6843] No documentation for the module argument to warnings.filterwarnings

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Thanks for that Georg. I'm still having trouble with this. I'm aware that the issue tracking isn't the right place to ask for help with writing programs, but I think that since I still can't get this code to work, even looking at the new documentation, th

[issue6837] Mark the compiler package as deprecated

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Oops. I wrote "In contract" in my previous message. I meant "In contrast". -- ___ Python tracker ___

[issue6837] Mark the compiler package as deprecated

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Hi Georg, thanks for your comment. I'm not sure I fully understand, though. The compiler package is widely used, okay. So I suppose that means that the desire here is to make those users happy? But the compiler package is deprecated, and has known bugs

[issue6837] Mark the compiler package as deprecated

2009-09-05 Thread Georg Brandl
Georg Brandl added the comment: The compiler package is surprisingly often used; we already had complaints when (I think) 2.6 began emitting lots of new DeprecationWarnings, but for modules/APIs whose replacements was straightforward. Replacing usage of the compiler package is usually not strai

[issue6843] No documentation for the module argument to warnings.filterwarnings

2009-09-05 Thread Georg Brandl
Georg Brandl added the comment: The values for a filter entry are documented under the "The Warnings Filter" heading. I've added a link to it from filterwarnings in r74671. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread Alan Isaac
New submission from Alan Isaac : In Python 2.6 if I subclass Exception and intialize my instances with a `message` attribute, I get a DeprecationError via BaseException. Of course there is no problem in Py3, because adding a `message` attribute to instances of a subclass is in fact **not** a pro

[issue6843] No documentation for the module argument to warnings.filterwarnings

2009-09-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : None of the documentation seems to cover this parameter. The test suite doesn't even seem to exercise it, either. What does it do? What kind of values are expected to be passed for it? -- assignee: georg.brandl components: Documentation messag

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Ah, thanks for the clarification, Philip. I've attached another patch updating those docs. -- ___ Python tracker ___ _

[issue5329] os.popen2 and os.popen3 in python 2.6 incompatible with os.popen* in python 2.5

2009-09-05 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : Added file: http://bugs.python.org/file14839/subprocess-conversion-doc.patch ___ Python tracker ___ ___ Python

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: This second patch adds the documentation to os.rst to formally define the behavior of the symlink function in Windows. Only changes needed to be made to the lstat and symlink functions. readlink remains Unix-only. We may consider implementing this method for W

[issue1578269] Add os.link() and os.symlink() and os.path.islink() support for Windows

2009-09-05 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've made two subsequent patches. I found after reading the symlink documentation that I had gotten the parameters mixed up. This patch, tagged r4274, addresses that issue. -- Added file: http://bugs.python.org/file14837/python-core_rev4274.patch ___

[issue6842] program run in interpreter, fails at command line

2009-09-05 Thread Mark Dickinson
Mark Dickinson added the comment: You're probably trying to run it under Python 2.5 or Python 2.6 instead of Python 3.1. The line you show only makes sense for Python 3.x. You code runs fine for me (using python3.1, on OS X 10.5). -- nosy: +marketdickinson resolution: -> works for m

[issue6842] program run in interpreter, fails at command line

2009-09-05 Thread John Van Praag
New submission from John Van Praag : My platform: Win XP. Program fibo.py from the tutorial runs correctly in the interpreter. When I run it from the command line I get the following error: file "fibo.py" line 6 print(b, end=' ') ^ -- components: Windows files: fibo.py m

[issue6841] A typo in Doc/library/stdtypes.rst

2009-09-05 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r74666, will be merged to other branches soon. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue6841] A typo in Doc/library/stdtypes.rst

2009-09-05 Thread Cheese Lee
New submission from Cheese Lee : See the patch. This typo is found in all branches. -- assignee: georg.brandl components: Documentation files: stdtypes-rst-cheese.patch keywords: patch messages: 92273 nosy: cheeselee, georg.brandl severity: normal status: open title: A typo in Doc/librar