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

2009-09-05 Thread Cheese Lee
New submission from Cheese Lee cheese...@126.com: 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

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

2009-09-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r74666, will be merged to other branches soon. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6841

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

2009-09-05 Thread John Van Praag
New submission from John Van Praag j...@jvp247.com: 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

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

2009-09-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

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

2009-09-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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:

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

2009-09-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[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 exar...@divmod.com: Added file: http://bugs.python.org/file14839/subprocess-conversion-doc.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5329 ___

[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 exar...@divmod.com added the comment: Ah, thanks for the clarification, Philip. I've attached another patch updating those docs. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5329

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

2009-09-05 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: 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:

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread Alan Isaac
New submission from Alan Isaac alan.is...@gmail.com: 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

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

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

[issue6837] Mark the compiler package as deprecated

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

[issue6837] Mark the compiler package as deprecated

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

[issue6837] Mark the compiler package as deprecated

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com added the comment: Oops. I wrote In contract in my previous message. I meant In contrast. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6837 ___

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

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

[issue6845] ftplib rest support for storbinary

2009-09-05 Thread Pablo Mouzo
New submission from Pablo Mouzo pablomo...@gmail.com: 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

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

2009-09-05 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com 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

[issue6837] Mark the compiler package as deprecated

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

[issue6845] ftplib rest support for storbinary

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

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

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

[issue6846] bytearray.pop() returns negative ints

2009-09-05 Thread Hagen Fürstenau
New submission from Hagen Fürstenau hfuerste...@gmx.net: 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()

[issue6846] bytearray.pop() returns negative ints

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

[issue6847] Exception strings for bytearray say bytes

2009-09-05 Thread Hagen Fürstenau
New submission from Hagen Fürstenau hfuerste...@gmx.net: 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

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

2009-09-05 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com 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

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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: http://twistedmatrix.com/trac/changeset/27062). This seemed reasonable

[issue6844] BaseException DeprecationError raises inappropriately

2009-09-05 Thread ivank
ivank i...@ludios.org added the comment: That trac link should be http://twistedmatrix.com/trac/changeset/27062 -- nosy: +ivank ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6844 ___

[issue6839] zipfile can't extract file

2009-09-05 Thread Kim Kyung Don
Kim Kyung Don newercoo...@gmail.com added the comment: P.S I tested extraction by using 7-zip. It works fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6839 ___