[issue7405] compiling python 3.1.1 using cygwin 1.7.0 and gcc 4.3.4

2009-11-27 Thread jeff deifik
New submission from jeff deifik : In order to compile 3.1.1 with the cygwin environment, it was necessary to edit Modules/main.c after running configure There are a few tests that still fail when running 'make test', but overall, python 3.1.1 works fine. Included is the context diff. -

[issue7404] optparse Documentation References Example Files that do not Exist

2009-11-27 Thread Mark Roddy
Mark Roddy added the comment: Patch takes the contents of required_1.py from the optik source adds it in the optparse documentation as well as removing references to the two files. -- Added file: http://bugs.python.org/file15409/example-inline.diff _

[issue7404] optparse Documentation References Example Files that do not Exist

2009-11-27 Thread Mark Roddy
Mark Roddy added the comment: Patch which references the original optik module when referring to example required option modules. -- Added file: http://bugs.python.org/file15408/reference-optik.diff ___ Python tracker

[issue7404] optparse Documentation References Example Files that do not Exist

2009-11-27 Thread Mark Roddy
Mark Roddy added the comment: Patch which removes reference to example_1.py and example_2.py -- keywords: +patch Added file: http://bugs.python.org/file15407/remove-reference.diff ___ Python tracker ___

[issue7404] optparse Documentation References Example Files that do not Exist

2009-11-27 Thread Mark Roddy
New submission from Mark Roddy : In the 'Terminology' section of the optparse module documentation, under the description of the term 'required option', a reference to example implementations of this concept are stated to be available in two example files of the source distribution: "See example

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Guido van Rossum
Guido van Rossum added the comment: Smells like a feature to me. "Bug" == "coding error" "Feature" == "change in (documented or intended) behavior" I'm fine with this going into 2.7 / 3.2. -- ___ Python tracker

[issue1293741] doctest runner cannot handle non-ascii characters

2009-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +Merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue2811] doctest doesn't treat unicode literals as specified by the file declared encoding

2009-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +Merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Robert Collins
Robert Collins added the comment: Oh man, I looked for a regular unit test - sorry that I missed it. Bah. I've added a call to the method and moved it into test_copy. -- Added file: http://bugs.python.org/file15406/issue1515.patch ___ Python tracker

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > @Antoine, I agree that the tests for copy should be a proper unit test; > that seems orthogonal to this patch though :) Not really, since Lib/test/test_copy.py exists and contains tests for deepcopy; you should add the new test there. > I don't have a checko

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Robert Collins
Robert Collins added the comment: @Antoine, I agree that the tests for copy should be a proper unit test; that seems orthogonal to this patch though :) I don't have a checkout of 3 at the moment, but do you think the test failure on 3 is shallow or deep? -- ___

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: What if you pass shell=True to the subprocess call? -- nosy: +pitrou ___ Python tracker ___ ___ Pyth

[issue7403] Race condition in logging._acquireLock()?

2009-11-27 Thread Vinay Sajip
Vinay Sajip added the comment: Fixes now also in release24-maint and release25-maint (as of r76555). -- ___ Python tracker ___ ___ Pyt

[issue7402] reduce() is an anti-example in "Idioms and Anti-Idioms"

2009-11-27 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: georg.brandl -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list ma

[issue4057] Popen(..., cwd=...) does not set PWD environment variable

2009-11-27 Thread Geoffrey Bache
Geoffrey Bache added the comment: You misunderstand: I am not reading $PWD. I need to call a C program as a subprocess, which is written by a third party and which determines its current working directory by reading $PWD. os.chdir will not have any effect on this script, nor will passing "cwd" t

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: Hugh, for us as Python maintainers there is a distinction between issues with the Python implementation itself and those outside of Python. The former we can solve, the latter not. At best we can work around issues in the environment (I've recently committ

[issue5725] process SysV-Semaphore support

2009-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: jvdias, have you looked at what the multiprocessing module offers? http://docs.python.org/library/multiprocessing.html#synchronization-primitives -- nosy: +pitrou ___ Python tracker

[issue6508] expose setresuid

2009-11-27 Thread Martin v . Löwis
Martin v. Löwis added the comment: I have now added documentation to os.rst, and committed the patch as r76550 and r76552. Thanks for contributing it. -- resolution: -> accepted status: open -> closed ___ Python tracker

[issue7403] Race condition in logging._acquireLock()?

2009-11-27 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7403] Race condition in logging._acquireLock()?

2009-11-27 Thread Vinay Sajip
Vinay Sajip added the comment: Thanks Gavin, fix checked into trunk, py3k and release26-maint (r76551). -- ___ Python tracker ___ ___

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Hugh Secker-Walker
Hugh Secker-Walker added the comment: Well, from *my* perspective it's a Python bug because I code to Python's API and Python misbehaves! ;-) If I start on it soon enough I'll look into duplicating the problem in C. -- ___ Python tracker

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: The test should be a real unittest in Lib/test/test_copy, not something in the __main__ section of Lib/copy.py. Nobody runs these, as a matter of fact if you run Lib/copy.py under the py3k branch it fails. To nitpick a bit, I also think Michael's test above was

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Robert's patch looks fine to me. My concern is changing this in a point release (e.g. 2.6.5). I know Guido said he was fine for this going into 2.6 but that was in January 08, before 2.6 final was released in October 08. At this point, the question is whethe

[issue6845] Restart support in binary upload for ftplib

2009-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch has been committed in r76546 and r76547. Thank you for your contribution! -- resolution: -> fixed status: open -> closed ___ Python tracker _

[issue7403] Race condition in logging._acquireLock()?

2009-11-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> vinay.sajip nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue7403] Race condition in logging._acquireLock()?

2009-11-27 Thread Gavin Panella
New submission from Gavin Panella : The logging module create a global _lock in what looks like a thread-unsafe manner: {{{ _lock = None def _acquireLock(): """ Acquire the module-level lock for serializing access to shared data. This should be released with _releaseLock(). """

[issue7401] os.write and os.close on pipe from separate threads hangs on Mac OS X

2009-11-27 Thread Ronald Oussoren
Ronald Oussoren added the comment: I agree with martin, this is probably an OS bug. BTW. I can confirm that the issue occurs on OSX 10.6 as well (using the binary 2.6.4 installer on the python.org website). I might get around to writing a C equivalent of the script in the future, but wouldn

[issue7402] reduce() is an anti-example in "Idioms and Anti-Idioms"

2009-11-27 Thread Christoph Zwerschke
New submission from Christoph Zwerschke : In the section "Using the batteries" of the "Idioms and Anti-Idioms in Python" document (http://docs.python.org/dev/howto/doanddont.html#using-the-batteries), the reduce statement is used for summing up numbers as an example. I think this is rather an ant

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Robert Collins
Robert Collins added the comment: This affects 2.7 too. -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue1515] deepcopy doesn't copy instance methods

2009-11-27 Thread Robert Collins
Robert Collins added the comment: Ran into this trying to do some test isolation stuff. Notwithstanding the questions about 'why', this is a clear limitation hat can be solved quite simply - is there any harm that will occur if we fix it? I've attached a patch, with a test (in the style of the