[issue8395] shutil.copytree() add a copy_func parameter.

2010-04-13 Thread Ray.Allen
New submission from Ray.Allen : The shutil.copytree() function copies the whole tree recursively, and copy one single regular file with copy2(). I hope it can be more powerful(), that is, allow specifying a customerized copy function, rather than copy2(). To be specific, add an optional keywor

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-13 Thread Brian Curtin
Changes by Brian Curtin : -- assignee: -> theller components: +ctypes nosy: +theller stage: -> unit test needed type: -> behavior ___ Python tracker ___ ___

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-13 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- assignee: michael.foord -> cjerdonek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Neal Norwitz
Neal Norwitz added the comment: Thanks for taking care of this guys. Sorry, I got swamped with mail and had to archive 3,000+ messages. It looks like it's in good hands. Let me know if there's anything you need. I may not have access to the box anymore, however, I can always contact Kurt. -

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-13 Thread Craig McQueen
Craig McQueen added the comment: I just realised--I didn't have c:\mingw\bin in my path. Once I added that to the path, then the build worked fine. So I guess the issue is only that the error message is somewhat cryptic. -- ___ Python tracker

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-13 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file16897/surrogates-5.patch ___ Python tracker ___ ___ Python-bugs-list maili

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-13 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +ctypes.dlopen() doesn't support surrogates ___ Python tracker ___ ___ Python-bugs-list ma

[issue8394] ctypes.dlopen() doesn't support surrogates

2010-04-13 Thread STINNER Victor
New submission from STINNER Victor : The PEP 383 introduces filename using surrogates. ctypes.dlopen() support them. ctypes.cdll.LoadLibrary('libc\uDCff.so.6') fails with: UnicodeEncodeError: 'utf-8' codec can't encode character '\udcff' in position 4: surrogates not allowed Attached pa

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-13 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +subprocess: support undecodable current working directory on POSIX OS ___ Python tracker ___ ___

[issue8391] os.execvpe() doesn't support surrogates in env

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: See also #8393. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: See also #8391. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue8393] subprocess: support undecodable current working directory on POSIX OS

2010-04-13 Thread STINNER Victor
New submission from STINNER Victor : In py3k, subprocess uses _posixsubprocess.fork_exec() function. This function uses surrogateescape error handler for most arguments, but not for the current working directory (cwd). Attached patch uses PyUnicode_FSConverter() as done for other arguments. I

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: New version of the patch: all tests pass except of 3 (test_ftplib, test_pep3120, test_traceback). -- Added file: http://bugs.python.org/file16919/surrogates-6.patch ___ Python tracker

[issue7316] Add a timeout functionality to common locking operations

2010-04-13 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Thanks, looks good. Sorry for the delay. -- resolution: -> accepted ___ Python tracker ___ ___ Pyt

[issue8392] unit tests rather light on testing __import__(..., level)

2010-04-13 Thread Skip Montanaro
New submission from Skip Montanaro : At work we are in the process of migrating from Python 2.4 to 2.6. One bit of Boost.Python code needs to use PyImport_ImportModuleLevel which references the __import__ docs. That describes the use of the level arg. I then went around looking for examples and

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-13 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +os.execvpe() doesn't support surrogates in env ___ Python tracker ___ ___ Python-bugs-lis

[issue8391] os.execvpe() doesn't support surrogates in env

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: See also issue #4036. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8391] os.execvpe() doesn't support surrogates in env

2010-04-13 Thread STINNER Victor
New submission from STINNER Victor : It would be nice to support the PEP 383 (surrogateescape) for environment variables in os.execvpe(). Attached patch uses PyUnicode_AsEncodedString(val, Py_FileSystemDefaultEncoding, "surrogateescape") to encode an environment variable value. I'm not sure t

[issue8390] tarfile: use surrogates for undecode fields

2010-04-13 Thread STINNER Victor
New submission from STINNER Victor : When reading a tar archive, tarfile decodes fields using "replace" error handler by default. The result is that we loose informations if there is an undecodable character. Since the PEP 383, undecodable filenames are stored using surrogates in Python3. I t

[issue8299] Improve GIL in 2.7

2010-04-13 Thread David Beazley
David Beazley added the comment: What bothers me most about this discussion is that the Windows implementation (legacy GIL) is being held up as an example of what we should be doing on posix. Yet, if I go run the same thread tests that I presented in my GIL talks on a multicore Windows machi

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-04-13 Thread Alex Willmer
Alex Willmer added the comment: On 14 April 2010 00:33, Matthew Barnett wrote: > I think I might have identified the cause of the problem, although I still > haven't been able to reproduce it, so I can't be certain. Performed 76 Passed Looks like you got it. -- ___

[issue8242] Support surrogates in import ; install Python in a non-ASCII directory

2010-04-13 Thread STINNER Victor
Changes by STINNER Victor : -- dependencies: +test_xmlrpc fails with non-ascii path ___ Python tracker ___ ___ Python-bugs-list mailing

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-04-13 Thread Matthew Barnett
Matthew Barnett added the comment: Oops, forgot the file! :-) -- Added file: http://bugs.python.org/file16916/issue2636-20100414.zip ___ Python tracker ___ __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-04-13 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-20100414.zip is a new version of the regex module. I think I might have identified the cause of the problem, although I still haven't been able to reproduce it, so I can't be certain. -- ___ Python track

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-13 Thread Craig McQueen
Craig McQueen added the comment: \MinGW\bin\ld.exe -v GNU ld (GNU Binutils) 2.20 -- ___ Python tracker ___ ___ Python-bugs-list maili

[issue8389] Incomprehensible import error

2010-04-13 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- title: Incomprehensibly import error -> Incomprehensible import error ___ Python tracker ___ ___ Pyth

[issue8299] Improve GIL in 2.7

2010-04-13 Thread Martin v . Löwis
Martin v. Löwis added the comment: > Maybe the state of this discussion is my fault for not being clear > enough. Let's abandon terms such as "broken" and "roundrobin." CS > theory has the perfectly useful terms "fair" and "unfair." The fact > of the matter is this: the pthread GIL (implemente

[issue8389] Incomprehensibly import error

2010-04-13 Thread Torsten Landschoff
Torsten Landschoff added the comment: Err, typo, in c.py I meant to write # Does not work: import a.b.t as t # Works: # import a.b.t So without renaming it it works. -- ___ Python tracker

[issue8389] Incomprehensibly import error

2010-04-13 Thread Torsten Landschoff
New submission from Torsten Landschoff : I ran into an ImportError I was unable to explain: $ python -c "import a.b" Traceback (most recent call last): File "", line 1, in File "a/b/__init__.py", line 1, in import a.b.c File "a/b/c.py", line 2, in import a.b.t as t AttributeErro

[issue7291] urllib2 cannot handle https with proxy requiring auth

2010-04-13 Thread Mike Beachy
Mike Beachy added the comment: I have worked up a monkey patch for urllib2/httplib for the issue of setting the authentication using a Proxy(Basic|Digest)AuthHandler. The basic approach was to create a new httplib exception (ProxyTunnelError) and raise that with the http response attached so

[issue8388] None shouldn't be passed to traceback.format_exception

2010-04-13 Thread Benjamin Peterson
New submission from Benjamin Peterson : When porting recent unittest patches to py3k, I encountered a failure in testBufferOutputAddErrorOrFailure. The reason is that the test passes None to traceback.format_exception, which works by accident in 2.x. I added these lines in _exc_info_to_string

[issue8299] Improve GIL in 2.7

2010-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Kristjan, > Maybe the state of this discussion is my fault for not being clear enough. It's quite a bit simpler. The first 2.7 beta has been released and there's IMO no way such patches will be accepted. It doesn't seem to be a pressing enough issue to be cons

[issue8299] Improve GIL in 2.7

2010-04-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Maybe the state of this discussion is my fault for not being clear enough. Let's abandon terms such as "broken" and "roundrobin." CS theory has the perfectly useful terms "fair" and "unfair." The fact of the matter is this: the pthread GIL (implemente

[issue8297] AttributeError message text should include module name

2010-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- nosy: +ajaksu2 stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +needs review priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8387] use universal newline mode in csv module examples

2010-04-13 Thread sfinnie
New submission from sfinnie : Running the examples in the csv module docs (http://docs.python.org/library/csv.html) causes problems reading file on a mac. This is highlighted in issue 1072404 (http://bugs.python.org/issue1072404). Commentary on the bug indicates a no fix, meaning most/many p

[issue8370] change module "builtins" to "__builtin__" in __import__ documentation

2010-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- priority: -> normal stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7559] TestLoader.loadTestsFromName swallows import errors

2010-04-13 Thread Daniel Diniz
Changes by Daniel Diniz : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Georg Brandl
Georg Brandl added the comment: Tentatively closing as rejected. There were quite a lot of -0 or -1, and you can include one from me as well. -- nosy: +georg.brandl resolution: -> rejected status: open -> pending ___ Python tracker

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Stefan Krah
Changes by Stefan Krah : -- nosy: -skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7651] Python3: guess text file charset using the BOM

2010-04-13 Thread Walter Dörwald
Walter Dörwald added the comment: Yes, that's the posting I was referring to. I wonder why the link is gone. -- ___ Python tracker ___ ___

[issue8355] diff.py produce unified format by default

2010-04-13 Thread anatoly techtonik
anatoly techtonik added the comment: Seems like a bikeshed was too much of an argument, but I've run out of them discussing such minor issue. The last is that if anybody here has 0's - does my +1 value something? Why can't anybody just commit it and close this, so I can concentrate on resolut

[issue6626] show Python mimetypes module some love

2010-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7651] Python3: guess text file charset using the BOM

2010-04-13 Thread Éric Araujo
Éric Araujo added the comment: The link has gone. Is this the message you’re refering to? http://mail.python.org/pipermail/python-dev/2010-January/097115.html Regards -- nosy: +merwok ___ Python tracker

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: > I think it's simply because we didn't test a wrong program path with execve > in 2.X version of test_os. D'oh! Thank you very much. I'm happy now: my mushroom's stuffed. :) -- ___ Python tracker

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: > I think it's simply because we didn't test a wrong program path > with execve in 2.X version of test_os. Oh, we should add this test to Python2 ;-) -- ___ Python tracker __

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > It looks as though the failed os.execv call messes something up internally, > so that any attempt thereafter to start a thread produces this signal. I > can't see anything obviously wrong with the os.execv implementation (see > posix_execv in Modu

[issue1152248] Enhance file.readlines by making line separator selectable

2010-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-04-13 Thread Alex Willmer
Alex Willmer added the comment: On 13 April 2010 18:10, Matthew Barnett wrote: > Anyway, do: > >    regex.match(ur"\p{Ll}", u"a") >    regex.match(ur'(?u)\w', u'\xe0') > > really return None? Your results suggest that they won't. Python 2.6.5 (r265:79063, Apr 3 2010, 01:56:30) [GCC 4.4.3]

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Eric Smith
Changes by Eric Smith : -- nosy: -eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Skipping test_execvpe_with_bad_program sounds good to me. I'd ideally like to understand why 3.x is failing where 2.x is happy, but life's too short to stuff a mushroom. -- ___ Python tracker

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Brian Curtin
Changes by Brian Curtin : -- nosy: -brian.curtin ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: > I suggest simply skipping the "offending" test on linuxthread > platforms. Good idea > (perhaps as simple as checking for sys.platform == "linux2" > and signal.SIGRTMIN == 35) I would prefer to rely on confstr(): import os try: # 'linuxthreads-0.10' o

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Seems like I have to remind that everybody can still paint their > bikeshed in classic colors with "-c" option, but if you all prefer > unified colors, why do you resist on painting them in these by > default? Custom color options add more to a total price, yo

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Eric Smith
Eric Smith added the comment: To change the default, you need to know how many people it will benefit, and how many people will be negatively impacted by the change. I personally suspect that both numbers are zero, which is why I have a hard time getting excited about it. Are there any real-

[issue8355] diff.py produce unified format by default

2010-04-13 Thread anatoly techtonik
anatoly techtonik added the comment: Seems like I have to remind that everybody can still paint their bikeshed in classic colors with "-c" option, but if you all prefer unified colors, why do you resist on painting them in these by default? Custom color options add more to a total price, you

[issue3783] dbm.sqlite proof of concept

2010-04-13 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8379] if __debug__: has nonobvious behaviour when evaluating .pyo without -O

2010-04-13 Thread Brett Cannon
Brett Cannon added the comment: So technically Python does not know that some bytecode was compiled with optimization flags on; that is simply not carried in the bytecode format. You also cannot rely on file name extensions as the bytecode could have been generated by an interpreter that used

[issue1722344] Thread shutdown exception in Thread.notify()

2010-04-13 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I suggest simply skipping the "offending" test on linuxthread platforms. (perhaps as simple as checking for sys.platform == "linux2" and signal.SIGRTMIN == 35) -- ___ Python tracker

[issue7316] Add a timeout functionality to common locking operations

2010-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch against current py3k. About the timeout limit, an useful point of comparison is select(), which doesn't try to loop either: it just throws OverflowError if the specified timeout value is too large to be represented in a timeval struct. -

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: NPTL was introduced in Linux kernel 2.6(.0). glibc 2.4 requires NPTL: "The LinuxThreads add-on, providing pthreads on Linux 2.4 kernels, is no longer supported. The new NPTL implementation requires Linux 2.6 kernels. For a libc and libpthread that works well

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2010-04-13 Thread James Cooper
Changes by James Cooper : -- nosy: +jamescooper ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: There are many references to "unknown signal 32" errors in Google. Gdb mailing list, December 2002: "SIG32/SIGTRAP issues" http://sources.redhat.com/ml/gdb/2002-12/msg00057.html Gdb mailing list, September 2003: "pthread_create, Program received signal ?, Unk

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: Actually, this bug is just for parsing the IPv6 url. We are having the right set of patches in the bug. I shall commit it soon. The RFC part is separate and we will slowly achieve a good compliance with STD 66. -- _

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-13 Thread Éric Araujo
Éric Araujo added the comment: Hello Thanks for the precision. This particular topic is discussed on #5650, feel free to help there! Better update the code before the doc, though. Regards -- ___ Python tracker

[issue8384] Distutils C extension build with MinGW on Windows fails

2010-04-13 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- components: +Windows ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue2987] RFC2732 support for urlparse (IPv6 addresses)

2010-04-13 Thread Keegan Carruthers-Smith
Keegan Carruthers-Smith added the comment: Just thought I'd point out that RFC2732 was obsoleted by RFC3986 http://www.rfc-editor.org/rfc/rfc3986.txt -- nosy: +Keegan.Carruthers-Smith ___ Python tracker __

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-04-13 Thread Matthew Barnett
Matthew Barnett added the comment: Yes, it passed all the tests, although I've since found a minor bug that isn't covered/caught by them, so I'll need to add a few more tests. Anyway, do: regex.match(ur"\p{Ll}", u"a") regex.match(ur'(?u)\w', u'\xe0') really return None? Your results

[issue8355] diff.py produce unified format by default

2010-04-13 Thread anatoly techtonik
anatoly techtonik added the comment: Stefan, do you use "diff.py"? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Stefan Krah
Stefan Krah added the comment: The requirement to remember the "-u" option is a benefit for the user. If he ever wants to use a standard diff, he doesn't have to relearn things. I don't agree that diff.py should be a custom tool. It's unfortunate that it already deviates from standard diffs, bu

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: signal.__dict__: {... 'NSIG': 65, 'SIGABRT': 6, 'SIGALRM': 14, 'SIGBUS': 7, 'SIGCHLD': 17, 'SIGCLD': 17, 'SIGCONT': 18, 'SIGFPE': 8, 'SIGHUP': 1, 'SIGILL': 4, 'SIGINT': 2, 'SIGIO': 29, 'SIGIOT': 6, 'SIGKILL': 9, 'SIGPIPE': 13, 'SIGPOLL': 29, 'SI

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2010-04-13 Thread Alex Willmer
Alex Willmer added the comment: On 13 April 2010 03:21, Matthew Barnett wrote: > issue2636-20100413.zip is a new version of the regex module. Matthew, When I run test_regex.py 6 tests are failing, with Python 2.6.5 on Ubuntu Lucid and my setup.py. Attached is the output, do all the tests p

[issue8355] diff.py produce unified format by default

2010-04-13 Thread anatoly techtonik
anatoly techtonik added the comment: I'll add a note about preferred "svn diff" way and "diff.py" as a fallback. But first I'd like to see this patch committed to streamline patch submission process by removing requirement to remember "-u" option. Do agree that "diff.py" is not a replacement

[issue2554] test_ioctl failed Python 2.6a2 Solaris 10 SUN C

2010-04-13 Thread Brian Curtin
Brian Curtin added the comment: Removing 2.5 as it's only receiving security fixes. -- nosy: +brian.curtin versions: -Python 2.5 ___ Python tracker ___ _

[issue2554] test_ioctl failed Python 2.6a2 Solaris 10 SUN C

2010-04-13 Thread Martin Ducár
Changes by Martin Ducár : -- versions: +Python 2.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Okay, I think I've got as far as I can, but if anyone else wants to hack on this, please do. The branch name is py3k-issue4970 In that branch: - there's an extra test Lib/test/test_issue4970 that demonstrates the signal 32 failure - Lib/test/regrtest.p

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Brian Curtin
Brian Curtin added the comment: > Don't you want to add a recommendation to use diff.py tool so > that Windows users can also send patches? > http://python.org/dev/patches/ We could add that note but it should not be a recommendation. Patches should ideally be generated using "svn diff" at th

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Here's some fairly minimal Python code that produces the signal: ### begin example ### import os import time import _thread try: os.execv('/usr/bin/dorothyq', ['dorothyq']) except OSError: pass def f(): time.sleep(1.0) # probably irrelevant to th

[issue8355] diff.py produce unified format by default

2010-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Do you really think that Python users shouldn't use tools written in > Python if they are available? Sure, they can. For example, they can use Mercurial and type "hg diff". Or even TortoiseHg and do it all from a GUI. -- nosy: +pitrou __

[issue8386] test_pickle failing

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: he he, ok, no problem. -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___

[issue8386] test_pickle failing

2010-04-13 Thread Tim Golden
Tim Golden added the comment: Well that's embarrassing: I updated but didn't rebuild. Sorry for the noise; all tests passing now. Please close the call. -- ___ Python tracker __

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2010-04-13 Thread Daniel Urban
Daniel Urban added the comment: I've made a patch. This patch adds a datetime_rfcformat function to datetimemodule.c which is available from Python as the datetime.rfcformat method in the datetime module. This method returns the date in RFC 3339 format: -MM-DDTHH:MM:SS[.mm]+HH:MM.

[issue8386] test_pickle failing

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: How did you get these errors? I don't see them in the buildbots (x86 Windows7 3.x, x86 XP-4 3.x): * http://www.python.org/dev/buildbot/builders/x86 Windows7 3.x/builds/408/steps/test/logs/stdio * http://www.python.org/dev/buildbot/builders/x86 XP-4 3.x/buil

[issue8386] test_pickle failing

2010-04-13 Thread Tim Golden
Tim Golden added the comment: Yes: C:\temp>\work_in_progress\make-snapshots\branches Python 3.2a0 (py3k:80030, Apr 13 2010, 11:13:13) Type "help", "copyright", "credits" or "license" >>> '\uDC80'.encode("utf8", "surrogatepass") b'\xed\xb2\x80' >>> -- ___

[issue8386] test_pickle failing

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: Does the follow code work on Windows? >>> '\uDC80'.encode("utf8", "surrogatepass") b'\xed\xb2\x80' -- ___ Python tracker ___ __

[issue8386] test_pickle failing

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: The failing test was introduced by r80031 by me: see issue #8383. I don't understand why the test fails. -- ___ Python tracker ___

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: Results of my simple-minded strategy (see r80033-4, r80037, r80042, r80045, r80047-51): test_execvpe_with_bad_program in ExecTests by itself is enough to trigger the signal 32 error (in combination with test_wait3). See: http://www.python.org/dev/buildbot/b

[issue8386] test_pickle failing

2010-04-13 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- assignee: -> haypo nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue8386] test_pickle failing

2010-04-13 Thread Tim Golden
New submission from Tim Golden : test_pickle failing on WinXP http://svn.python.org/projects/python/branches/py3k/Lib r80044 == ERROR: test_unicode (__main__.CPicklerTests) --

[issue8385] _winreg remaining in test_winsound

2010-04-13 Thread Brian Curtin
Brian Curtin added the comment: Whoops, thanks for catching that, Tim. Fixed in r80044 and 80046. -- assignee: -> brian.curtin nosy: +brian.curtin priority: -> normal resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Py

[issue8385] _winreg remaining in test_winsound

2010-04-13 Thread Tim Golden
Changes by Tim Golden : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread STINNER Victor
STINNER Victor added the comment: Extract of the Prelude ticket https://dev.prelude-ids.com/issues/show/133 : "commenting out sigprocmask(SIG_SETMASK, &set, NULL) seems to fixes the problem (...)" -- nosy: +haypo ___ Python tracker

[issue8385] _winreg remaining in test_winsound

2010-04-13 Thread Tim Golden
New submission from Tim Golden : There is a reference to _winreg left in test_winsound. Trivial patch attached renames this to winreg. -- components: Tests files: test_winsound.patch keywords: patch messages: 103042 nosy: tim.golden severity: normal status: open title: _winreg remaining

[issue7585] difflib should separate filename from timestamp with tab

2010-04-13 Thread R. David Murray
R. David Murray added the comment: Yes, thanks for the typo correction. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8382] StringIO.write() takes any argument and converts it to a string

2010-04-13 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> wont fix stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Mark Dickinson
Mark Dickinson added the comment: > Since linuxthreads is no longer maintained, I'm afraid we can't do much > about this. Agreed. But I think it's still worth trying to narrow down (and possibly work around) the cause of failure, just so that we can make this buildbot useful again on 3.x. P

[issue4970] test_os causes delayed failure on x86 gentoo buildbot: Unknown signal 32

2010-04-13 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: Signal 32 is the first real-time signal, and is indeed used by linuxthreads, so it's very likely a linuxthreads bug, since this signal shouldn't leak to application. Since linuxthreads is no longer maintained, I'm afraid we can't do much about this,

[issue8355] diff.py produce unified format by default

2010-04-13 Thread anatoly techtonik
anatoly techtonik added the comment: Do you really think that Python users shouldn't use tools written in Python if they are available? -- ___ Python tracker ___ ___

  1   2   >