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

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Standard policy is that new features only go into the next version (3.2 in this case). 3.1 will only get bug fixes now that it has been released. -- nosy: +r.david.murray ___ Python tracker

[issue6431] Fraction fails equality test with a user-defined type

2009-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Applied in r74078 (py3k), r74079 (release31-maint). I'll backport to 2.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6431 ___

[issue6514] python -m unittest testmodule does not run any tests

2009-07-18 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: exar...@boson:~$ cat test_foo.py from unittest import TestCase class SomeTests(TestCase): def test_foo(self): pass exar...@boson:~$ python -m unittest test_foo

[issue6515] http://docs.python.org/dev/library/unittest.html#load-tests-protocol doesn't make it clear when load_tests support was introduced

2009-07-18 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone exar...@divmod.com: The load_tests feature will be new in 2.7. Earlier in the unittest documentation, there's a mention that loadTestsFromModule was changed in 2.7 to add support for load_tests. However, the main documentation for load_tests doesn't say

[issue6431] Fraction fails equality test with a user-defined type

2009-07-18 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Backported to trunk in r74080. I don't think it's worth fixing this in 2.6: it seems unlikely that the changed comparison behaviour would cause breakage, but I don't want to take the chance. Thanks Case for the report and patches!

[issue6515] http://docs.python.org/dev/library/unittest.html#load-tests-protocol doesn't make it clear when load_tests support was introduced

2009-07-18 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: georg.brandl - michael.foord nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6515 ___

[issue6512] UnicodeDecodeError: 'utf8' codec can't decode bytes in position 0-1: illegal encoding

2009-07-18 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Do you know what 8.5.x version were you running before? You should report it to #1028, apparently they were trying to find out the affected versions there. -- ___ Python tracker

[issue1886] Permit to easily use distutils --formats=tar, gztar, bztar on all systems

2009-07-18 Thread Till Maas
Changes by Till Maas opensou...@till.name: -- nosy: +till ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1886 ___ ___ Python-bugs-list mailing list

[issue6516] reset owner/group to root for distutils tarballs

2009-07-18 Thread Till Maas
New submission from Till Maas opensou...@till.name: Please allow to create tarballs with owner/group of files be set to root. One possible fix is to change cmd in distutils/archive_util.py to this: cmd = [tar, -cf, archive_name, --owner=root, --group=root, base_dir] -- assignee: tarek

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

2009-07-18 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: In many ways, this is a bug fix and not a new feature. os.islink is already in the ntpath module, but simply doesn't perform its intended purpose. Similarly, os.symlink exists and is defined for unix platforms, but is just absent on the

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

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'm inclined to agree with you. -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue4753] Faster opcode dispatch on gcc

2009-07-18 Thread Michele Dionisio
Michele Dionisio michele.dioni...@gmail.com added the comment: I have patch the code of python3.1 to use computed goto tecnique also with Visual Studio. The performance result is not good (I really don't know why). But it is a good work-araound for use the computed goto also on windows. The only

[issue6517] configparser: add possibility to escape formatstrings

2009-07-18 Thread Till Maas
New submission from Till Maas opensou...@till.name: There seems to be no way to add a config item with a value containing a formatstring without this formatstring beeing handled by configparser. A possible way to escape the formatstrings could be to double the %-sign, e.g.: [foo] bar =

[issue6461] multiprocessing: freezing apps on Windows

2009-07-18 Thread Stuart Mentzer
Stuart Mentzer s...@objexx.com added the comment: Thanks Jesse. If you make broader changes that my patch I am happy to test on Windows and with py2exe if that is helpful. I will try to get the py2exe folks to look at the broader multiprocessing issues I describe as well. If multiprocessing

[issue6461] multiprocessing: freezing apps on Windows

2009-07-18 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: Sounds good - I've personally never used freeze on windows, so having some docs and a patch to help make it better for those that do is a definite plus -- ___ Python tracker rep...@bugs.python.org

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The backport to 2.6 needs adjustment. The test fails: Traceback (most recent call last): File /home/rdmurray/python/release26-maint/Lib/test/test_warnings.py, line 350, in test_bad_str with self.assertRaises(ValueError): TypeError:

[issue6517] configparser: add possibility to escape formatstrings

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The formatstring is a Python % formatting code, and doubling the %% is the way to escape one, so what you suggest is in fact the way it works. Do you have a test case demonstrating that it doesn't work as documented (it works for me)?

[issue6517] configparser: add possibility to escape formatstrings

2009-07-18 Thread Till Maas
Till Maas opensou...@till.name added the comment: Afacs it is not documented to work. Here is the testcase: #!/usr/bin/python # vim: fileencoding=utf8 import ConfigParser import tempfile file = tempfile.TemporaryFile(mode='rw+b') file.write([s]\nf=%%(b)s\n) file.seek(0) config =

[issue6517] configparser: add possibility to escape formatstrings

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, that's because you aren't using SafeConfigParser (which the docs recommend that you do unless you have to use ConfigParser for backward compatibility reasons). Your test case works with SafeConfigParser. You are correct that it is

[issue6517] configparser: add possibility to escape formatstrings

2009-07-18 Thread Till Maas
Till Maas opensou...@till.name added the comment: It would be nice if you could expand the patch to also use only one name for the support of format strings. In the beginning it is introduced as reference expansion, but later in the document, several variatons of interpolation are used: magical

[issue6518] Enable 'with' statement in ossaudiodev module

2009-07-18 Thread Jerzy Jalocha N
New submission from Jerzy Jalocha N jjalo...@gmail.com: Actually, it is not possible to use the 'with' statement in the ossaudiodev module: import ossaudiodev with ossaudiodev.open('/dev/dsp', 'r') as device: ... pass ... Traceback (most recent call last): File stdin, line 1 in module

[issue6519] Reorder 'with' statement for files in Python Tutorial

2009-07-18 Thread Jerzy Jalocha N
New submission from Jerzy Jalocha N jjalo...@gmail.com: Actually, the Python Tutorial recommends the use of the 'with' statement in Section 7.2.1. Methods of File Objects: It is good practice to use the with keyword when dealing with file objects. [etc.] But the example and description are

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

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to 2.6 in r74085, py3k in r74058 (by alexandre vassalotti), and 3.1 in r74086. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6070

[issue5230] pydoc reports misleading failure if target module raises an ImportError

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Benjamin merged this to py3k/3.1 as part of r73623/r73625. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5230

[issue5102] urllib2.py timeouts do not propagate across redirects for 2.6.1 (and 3.x?)

2009-07-18 Thread Senthil
Senthil orsent...@gmail.com added the comment: Fixed and committed in revision 74089 and revision 74090. Should this be backported? -- resolution: - fixed versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue5102] urllib2.py timeouts do not propagate across redirects for 2.6.1 (and 3.x?)

2009-07-18 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: It's hard to imagine anyone depending on the broken behavior, so I'd vote yes. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5102

[issue6520] urllib.urlopen does not have timeout parameter where as urllib2.urlopen has

2009-07-18 Thread Senthil
New submission from Senthil orsent...@gmail.com: Just noticed this while fixing another bug issue5102. Need to figure out why urllib.urlopen does not have timeout in the first account and if it was due to some overlook, then: 1) add timeout parameter to urllib.urlopen 2) propage it across

[issue5102] urllib2.py timeouts do not propagate across redirects for 2.6.1 (and 3.x?)

2009-07-18 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- versions: +Python 2.7 -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5102 ___ ___

[issue6415] warnings.warn segfaults on bad formatted string

2009-07-18 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Thank you, I've fixed it in r74091. I should have checked test results on all branches. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6415

[issue5102] urllib2.py timeouts do not propagate across redirects for 2.6.1 (and 3.x?)

2009-07-18 Thread Senthil
Senthil orsent...@gmail.com added the comment: backported to release26-maint in the revision 74093 and release31-maint in the revision 74092 Closing this issue. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5102] urllib2.py timeouts do not propagate across redirects for 2.6.1 (and 3.x?)

2009-07-18 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- versions: +Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5102 ___ ___

[issue1006238] cross compile patch

2009-07-18 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: Coming back to this issue, I really want to resolve it on TRUNK and for it to make its way into 2.6.3 and 2.x trunk, as well as 3.0.2 and 3.x trunk. I am more than happy to sign a contributor agreement if this will push things along quicker.

<    1   2