[issue4570] Bad example in set tutorial

2010-04-07 Thread Kelda
Changes by Kelda kel...@gmail.com: Removed file: http://bugs.python.org/file16790/datastructures.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4570 ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-07 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Rietveld link: http://codereview.appspot.com/810044/show This patch changes unittest.TestLoader.loadTestsFromName() so that ImportErrors will bubble up when importing from a module with a bad import statement. Before the method

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-07 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: I committed a somewhat different version of this patch to py3k to handle the warn options now calling for wchars, but this needs more work. Some of the buildbots are unhappy Seems like the py3k version either needs to fully decode the env

[issue8327] unintuitive behaviour of logging message propagation

2010-04-07 Thread Pascal Chambon
Pascal Chambon chambon.pas...@gmail.com added the comment: Thanks for the doc patch, if you don't mind I'd just add the paragraph below too, to clarify the fact that logger levels are only entry points levels, ignored he rest of the time. There might be slight redundancies with the rest of

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-04-07 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: I also found out that, according to RFC 3629, surrogates are considered invalid and they can't be encoded/decoded, but the UTF-8 codec actually

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-04-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I also found out that, according to RFC 3629, surrogates are considered invalid and they can't be encoded/decoded, but the UTF-8 codec actually does it. Python2 does, but Python3 raises an error. (...) I wonder how

[issue8332] regrtest single TestClass/test_method

2010-04-07 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: It would be convenient for debug to execute single test_method or TestClass. Running all tests in file can take a long time. -- components: Tests messages: 102524 nosy: techtonik severity: normal status: open title: regrtest

[issue8332] regrtest single TestClass/test_method

2010-04-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: regrtest [options] test_file.TestClass regrtest [options] test_file.test_method -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8332

[issue4026] fcntl extension fails to build on AIX 6.1

2010-04-07 Thread Michael Haubenwallner
Michael Haubenwallner michael.haubenwall...@salomon.at added the comment: This very same problem happens (with Python-2.6.2) on AIX5.3 now too, after upgrading to: $ oslevel -s 5300-08-09-1013 Unlike before (comparing with old build logs), this AIX5.3 now provides flock() in sys/file.h and

[issue8331] a documentation grammar fix in logging module

2010-04-07 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Fix checked into trunk (r79888). -- resolution: accepted - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8331

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It's surprising that test_ulonglong fails, while test_longlong passes: can the Linux Sparc ABI really be treating these two types differently? Maybe more information could be gained by supplying a more interesting test value than 42---some

[issue4026] fcntl extension fails to build on AIX 6.1

2010-04-07 Thread Michael Haubenwallner
Michael Haubenwallner michael.haubenwall...@salomon.at added the comment: Ohw, looking on another machine, being AIX5.3 TL6: $ oslevel -s 5300-06-00- Here flock() is provided in libbsd.a(shr.o) (32bit only) too, but it isn't declared in any header-file. So that recent AIX5.3 patchset just

[issue7585] difflib should separate filename from timestamp with tab

2010-04-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Added unittest for tab with and without set filedate. Removed #7583 dependency with NORMALIZE_WHITESPACE. -- Added file: http://bugs.python.org/file16797/issue7585.difflib-tab-unittest.diff ___

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I have just studied the issue in detail; v8.S is indeed missing support for unsigned long long. Here is a patch. -- keywords: +patch nosy: +loewis Added file: http://bugs.python.org/file16798/sparc.diff

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Committed as r79892. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8314 ___

[issue7834] socket.connect() no longer works with AF_BLUETOOTH L2CAP sockets

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: I've zero experience with programming bluetooth (to be honest, I only tackled this bug because I'm learning how to contribute to Python and it seemed ultra-easy), so I'm not an authoritative source on whether such a 'loopback' test is

[issue6090] zipfile DeprecationWarning Python in 2.6, failure in 2.7

2010-04-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: This is not a bug in the code, but in the application. You are passing a date before 1980; this is not supported in zipfiles. Try passing 1980 instead of 1. I think the error message could be better, though; it should probably be a

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-04-07 Thread Cyril
Cyril c...@excellency.fr added the comment: Here is a patch that implements SSLSocket.get_mode/set_mode, with the SSL_MODE_ENABLE_PARTIAL_WRITE and SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER constants defined in the ssl module. The patch contains a test case and documentation. It's made against

[issue6610] Subprocess descriptor debacle

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: It seems to me that subprocess is protected against this flaw. Python 2.x has a pure-Python implementation of the child logic (which is susceptible to an unrelated issue). Python 3.x has a C implementation which falls back to pure-Python if

[issue8271] str.decode('utf8', 'replace') -- conformance with Unicode 5.2.0

2010-04-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8271 ___ ___ Python-bugs-list

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I just found a one line example of the problem: EnumValue(HKEY_PERFORMANCE_DATA, 0) Traceback (most recent call last): File stdin, line 1, in module WindowsError: [Error 234] More data is available Other functions are also

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: Great analysis! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: On Windows/amd64, I get loads of pickling errors in test_multiprocessing. Type 1 error: Traceback (most recent call last): File string, line 1, in module File C:\Users\stefan\svn\trunk\lib\multiprocessing\forking.py, line 347, in

[issue8328] longobject.c: silence warnings (Visual Studio)

2010-04-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Committed in trunk (r79885), py3k (r79886) and release31-maint (r79891). Thanks for the review! -- stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: - brian.curtin priority: - normal stage: - needs patch versions: -Python 2.4, Python 2.5, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- assignee: brian.curtin - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___ ___ Python-bugs-list

[issue3672] Ill-formed surrogates not treated as errors during encoding/decoding

2010-04-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3672 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-04-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The patch adds a new feature, which makes it unsuitable for 2.6. I guess it could be applied to the 2.7 trunk, although a beta is being released and I'm not sure new features are really welcome afterwards. This one is really small and

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Tim Golden
Tim Golden m...@timgolden.me.uk added the comment: Seeing the same thing on 32-bit WinXP on x86 On 07/04/2010 14:34, Stefan Krah wrote: New submission from Stefan Krahstefan-use...@bytereef.org: On Windows/amd64, I get loads of pickling errors in test_multiprocessing. Type 1 error:

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Daniel Stutzbach
New submission from Daniel Stutzbach dan...@stutzbachenterprises.com: The Windows RegQueryValue function returns a registry value without returning the corresponding type information (e.g., REG_SZ for string, REG_BINARY for binary data, REG_DWORD for a 32-bit number, etc.). The corresponding

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- components: +Extension Modules -Library (Lib) nosy: +brian.curtin priority: - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8334 ___

[issue8275] callback function on win64 results in bad behavior. mem corruption?

2010-04-07 Thread Jasmit
Jasmit jsi...@roguewave.com added the comment: I was able to fix the issue by modifying and re-compiling ctypes project in Visual Studio 2008. The following properties were modified: Release: configuration Properties-C/C++-Optimization-Optimization: Disabled(/Od) configuration

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8334 ___ ___ Python-bugs-list mailing

[issue8334] winreg.QueryValue should return bytes, not unicode

2010-04-07 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: Jumped the gun here. RegQueryValue returns ERROR_DATA_INVALID if the value isn't a string, so converting to Unicode is OK. -- status: open - closed ___ Python tracker

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: Added file: http://bugs.python.org/file16802/winreg_test.pach ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: -- keywords: +patch Added file: http://bugs.python.org/file16803/winreg.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: Removed file: http://bugs.python.org/file16728/more_data_is_available.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Daniel Stutzbach
Changes by Daniel Stutzbach dan...@stutzbachenterprises.com: Removed file: http://bugs.python.org/file16729/more_data_is_available2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2810 ___

[issue8330] Failures seen in test_gdb on buildbots

2010-04-07 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: There's also a deprecation warning in that log: /home/doko/buildarea/trunk.klose-debian-alpha/build/Lib/test/test_gdb.py:229: DeprecationWarning: BaseException.message has been deprecated as of Python 2.6 if e.message != 'unichr() arg not in

[issue2810] _winreg.EnumValue fails when the registry data includes multibyte unicode characters

2010-04-07 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com added the comment: I've uploaded two patches (against trunk): one to add test cases that demonstrate this bug and another to fix the bug. -- ___ Python tracker rep...@bugs.python.org

[issue7472] email.encoders.encode_7or8bit(): typo iso-2202. iso-2022 is correct.

2010-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: After tracing the code further I now understand what the original patch is doing, and yes the spelling correction is the correct fix. (The issue is that there are two different encodings involved: the input encoding in which the body

[issue8297] AttributeError message text should include module name

2010-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: This is a feature request, so it only applies to unreleased versions. It'll be up to Benjamin whether it can go into 2.7, if the change is approved, since 2.7 is now technically in feature freeze. The patch also needs unit tests. I do

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: The unit test passes on trunk for me without the fix applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue7585] difflib should separate filename from timestamp with tab

2010-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Great, thanks. I'll check this in when the branch is unfrozen. -- dependencies: -doctest should normalize tabs when comparing output ___ Python tracker rep...@bugs.python.org

[issue8335] distutils test_build_ext's test_get_outputs fails in bootstrap environment

2010-04-07 Thread jan matejek
New submission from jan matejek jmate...@suse.cz: when running testsuite in a clean environment without pre-installed system python, test_distutils fail in test_build_ext, test_get_outputs: /usr/lib64/gcc/x86_64-suse-linux/4.5/../../../../x86_64-suse-linux/bin/ld: cannot find -lpython2.6

[issue6022] test_distutils leaves a 'foo' file behind in the cwd

2010-04-07 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: see issue 8335 -- nosy: +matejcik ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6022 ___ ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-07 Thread Chris Jerdonek
Chris Jerdonek chris.jerdo...@gmail.com added the comment: Thanks, David. Sorry about that. The test probably requires one additional level of nesting so that parts_copy is not False: +if not parts_copy or not module_not_found: raise --

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333 ___ ___ Python-bugs-list

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Jesse Noller
Jesse Noller jnol...@gmail.com added the comment: When did this problem start? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333 ___ ___

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: It was introduced in r79623, and the attached patch makes the problem go away. I would be happy to apply it, but I perhaps you and Michael could analyze if there are unwanted dependencies between multiprocessing and unittest. --

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +patch Added file: http://bugs.python.org/file16805/issue8333.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333 ___

[issue8336] PyObject_CallObject - Not reference-count-neutral

2010-04-07 Thread Krauzi
New submission from Krauzi krauzi_g...@yahoo.de: In the docs there is written: PyObject_CallObject() is “reference-count-neutral” with respect to its arguments. This is not correct. Its only reference-count neutral if the call was SUCCESSFUL otherwise the argument is INCREFED! Can anyone

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Martin v . Löwis
New submission from Martin v. Löwis mar...@v.loewis.de: test_gdb fails on Sparc-Ubuntu, e.g. http://www.python.org/dev/buildbot/trunk/builders/sparc%20Ubuntu%20trunk/builds/45/steps/test/logs/stdio test test_gdb failed -- Traceback (most recent call last): File

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Test disabled in r79896. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8337 ___ ___

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: See also #8330, same failure, different buildbot. Unless they need to be tracked separately I'll close this as duplicate -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I expect the unittest tests will fail with that patch applied however... No problem with switching to just using StringIO in unittest though - preferably with a comment as to why. -- ___

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - duplicate status: open - closed superseder: - Failures seen in test_gdb on buildbots ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8337

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: ( #8330 has a patch for a DeprecationWarning ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8337 ___

[issue3871] cross and native build of python for mingw32 with distutils

2010-04-07 Thread Roumen Petrov
Changes by Roumen Petrov bugtr...@roumenpetrov.info: Added file: http://bugs.python.org/file16806/python-trunk-20100407-MINGW.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871

[issue8240] ssl.SSLSocket.write may fail on non-blocking sockets

2010-04-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Wouldn't it be nicer if mode was a property? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8240 ___

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Perhaps we could run the multiprocessing tests unbuffered? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333 ___

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: BTW, this is also causing all Windows buildbots to fail. -- keywords: +buildbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333 ___

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- priority: high - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333 ___ ___

[issue4484] struct: per item endianess specification

2010-04-07 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: I don't see any reasonale reason for mixing endianess inside a struct, and don't know of any real-life protocol using per-item endianess. Unless someone comes up with a good reason for doing so, and since no one else seems to be

[issue8338] Outdated information

2010-04-07 Thread David W. Lambert
New submission from David W. Lambert b49p23t...@stny.rr.com: http://docs.python.org/py3k/library/multiprocessing.html Doc/library/multiprocessing.rst refers to SimpleHTTPServer.HttpServer. The patch changes this to SimpleHTTPRequestHandler although you may prefer

[issue4484] struct: per item endianess specification

2010-04-07 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I agree that this seems like something that would rarely be needed. If it's really necessary, it's possible to break up the format and do the packing/unpacking in fixed-endian pieces. -- nosy: +mark.dickinson resolution: -

[issue8339] urlunparse(urlparse('x://')) now returns 'x:' instead of 'x://'

2010-04-07 Thread Michael Glassford
New submission from Michael Glassford glassford...@gmail.com: An unfortunate side-effect of this change: http://svn.python.org/view/python/branches/release26-maint/Lib/urlparse.py?r1=66717r2=78235 which was made to fix this issue: http://bugs.python.org/issue7904 is that

[issue4484] struct: per item endianess specification

2010-04-07 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: FWIW, I concur with Mark and Charles-Francois. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4484

[issue8330] Failures seen in test_gdb on buildbots

2010-04-07 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: Both of the failing tests use set inside gdb to try to corrupt the memory of the inferior process. I believe the issue here is that reading through 0xDEADBEEF within gdb on this machine isn't generating a RuntimeError; perhaps that _is_ a

[issue8337] test_gdb fails on Sparc Ubuntu

2010-04-07 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: ( #8330 has a patch which may fix this ) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8337 ___

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: TestResult creates its StringIO buffers even if they aren't use. I can create them on first use and use StringIO.StringIO rather than cStringIO. Will fix now. -- ___ Python tracker

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Although merely switching to StringIO may not be enough. TestResult objects keep a reference to sys.stdout when they are instantiated and you can't pickle that either. It is preferable for the reference to be taken at instantiation

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

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: While trying to reproduce the transient test_tarfile errors, I found two more tests that appear to be failing when symlinks cannot be created, now skipped by patch 27. -- Added file: http://bugs.python.org/file16809/windows symlink

[issue8340] bytearray undocumented on trunk

2010-04-07 Thread Brian Curtin
New submission from Brian Curtin cur...@acm.org: It looks like the bytearray documentation wasn't backported when the bytearray code was. See Doc/library/functions.rst -- assignee: georg.brandl components: Documentation messages: 102576 nosy: brian.curtin, georg.brandl severity: normal

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Changing unittest.TestResult to use StringIO instead of cStringIO isn't sufficient. regrtest.py also needs to use StringIO... -- ___ Python tracker rep...@bugs.python.org

[issue2824] zipfile to handle duplicate files in archive

2010-04-07 Thread Yaniv Aknin
Yaniv Aknin yaniv.ak...@gmail.com added the comment: This affect 3.x as well. Regardless of the exact version this will come out in, I think the only proper solution is one with which we eventually, maybe in two versions' time, end up with a behaviour that raises an exception upon double

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I believe this issue to now be fixed on trunk. We can close this when the buildbots are passing again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8333

[issue8339] urlunparse(urlparse('x://')) now returns 'x:' instead of 'x://'

2010-04-07 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: To fix this, urlparse would have to differentiate between a null netloc and no netloc characters specified at all. This could be done by using None for one an '' for the other. I'm not sure that behavior change could be backported to

[issue8333] test_multiprocessing: pickling failures

2010-04-07 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Green build on Windows XP, trunk. http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%20trunk/builds/282 -- resolution: - accepted stage: needs patch - committed/rejected status: open - closed

[issue7301] Add environment variable $PYTHONWARNINGS

2010-04-07 Thread Philip Jenvey
Philip Jenvey pjen...@underboss.org added the comment: Here's a patch for py3k using the same char2wchar as the argv decoder for posix, and better windows handling. Plus an additional nonascii value test. Patch is against r79980 for clarity -- Added file:

[issue8341] sphinx bug?

2010-04-07 Thread David W. Lambert
New submission from David W. Lambert b49p23t...@stny.rr.com: http://docs.python.org/py3k/library/multiprocessing.html Indentation is incorrect as displayed and copied from google chrome browser: from multiprocessing import Process def f(name): print('hello', name) if __name__ ==

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Jason R. Coombs
New submission from Jason R. Coombs jar...@jaraco.com: While trying to work out a failing test_platform.PlatformTest.test_architecture_via_symlink, I found a more fundamental problem. In the build environment, python.exe depends on pythonXX.dll being in the same directory as sys.executable

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: This attached patch against the py3k branch adds a test that reproduces the described behavior. -- keywords: +patch Added file: http://bugs.python.org/file16811/reproduction as test.patch ___

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: I have this fixed locally in a version of your os.symlink patch. The solution is to add the directory sys.executable is from to os.environ[Path], then that test should pass the custom environment when the subprocess is created. I meant to update

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

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: I've been fighting a failing test in test_platform (when test.support.can_symlink() is True). Turns out the problem is caused by the fact that the Python DLL cannot be resolved when the executable isn't in the same directory (which is the

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

2010-04-07 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16196/windows symlink draft 25.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

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

2010-04-07 Thread Jason R. Coombs
Changes by Jason R. Coombs jar...@jaraco.com: Removed file: http://bugs.python.org/file16761/windows symlink draft 26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1578269 ___

[issue8342] Python fails to run if launched from NTFS symlink and DLL not in PATH

2010-04-07 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8342 ___ ___ Python-bugs-list

[issue8339] urlunparse(urlparse('x://')) now returns 'x:' instead of 'x://'

2010-04-07 Thread Michael Glassford
Michael Glassford glassford...@gmail.com added the comment: It caused a minor issue with the Schemes extension for Mercurial: the output changed, which caused a unit test to fail. I'm pretty sure I have a Mercurial patch to fix that issue, however. --

[issue8029] bug in 2to3 dealing with print FOO, followed by sys.stdout.write('')

2010-04-07 Thread Matt Bond
Matt Bond bo...@uoguelph.ca added the comment: I've attached a patch that fixes this particular idiom as well as a problem with the handling of bare 'print' statements. It also includes updated tests for these issues. -- keywords: +patch nosy: +zxaos Added file: