[issue2771] Test issue

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: Test new irker. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue17465] Gut devinabox

2013-03-18 Thread R. David Murray
R. David Murray added the comment: A script to do all the steps is what devinabox currently is, but it is rather fagile. As far as I know (Brett would know for sure) it has never worked without tweaking from one Core Sprint to the next. -- ___ Pyth

[issue17476] Pydoc allmethods does not return all methods

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Thanks, Matt. I figured out a way to make the test *somewhat* less fragile. Oh, and that helper method really is operating on an object, not a class, so I changed the paramter name back (and added inspect.builtin...which Python2 didn't have, but I figure as

[issue17476] Pydoc allmethods does not return all methods

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a9b42de49d5 by R David Murray in branch '3.2': #17476: make allmethods actually return all methods. http://hg.python.org/cpython/rev/0a9b42de49d5 New changeset 7127fbc363bb by R David Murray in branch '3.3': #17476: make allmethods actually return

[issue17462] argparse FAQ: how it is different from optparse

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: Indeed a paragraph about it could be added at the beginning. -- nosy: +bethard stage: -> needs patch type: -> enhancement versions: +Python 3.2, Python 3.4 ___ Python tracker _

[issue17465] Gut devinabox

2013-03-18 Thread Ezio Melotti
Ezio Melotti added the comment: > What devinabox should become instead is a README listing what people > should checkout/download and build. Isn't this already covered in the devguide? If it's not I think it should be added there rather than on a README. I'm also not sure what the current de

[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: that patch looks good for imaplib. i'll follow up on the subprocess side of things to see if the default behavior should be changed to better match what happened in 2.7 (or if not: to make sure the change in behavior is sufficiently documented and not relied o

[issue17477] update the bsddb module do build with db 5.x versions

2013-03-18 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +jcea -gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue17466] I can't make assignments to a list.

2013-03-18 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> committed/rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry Mohammad, I concur with David Murray's reasoning. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue17477] update the bsddb module do build with db 5.x versions

2013-03-18 Thread Matthias Klose
Changes by Matthias Klose : -- nosy: +barry, benjamin.peterson, dmalcolm, gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list

[issue17477] update the bsddb module do build with db 5.x versions

2013-03-18 Thread Matthias Klose
Changes by Matthias Klose : -- keywords: +patch Added file: http://bugs.python.org/file29475/bsddb.diff ___ Python tracker ___ ___ Pyt

[issue17477] update the bsddb module do build with db 5.x versions

2013-03-18 Thread Matthias Klose
New submission from Matthias Klose: the bsddb module is still supported in 2.7, however only builds using db versions up to 4.8, which at least some Linux distributions ship anymore. Proposing to update the bsddb module to pybsddb 5.3.0, which supports to build using db up to 5.3.0. The down

[issue17445] Handle bytes comparisons in difflib.Differ

2013-03-18 Thread Greg Ward
Greg Ward added the comment: Thanks for the review, Terry! Here is a revised patch, now on trunk: http://hg.gerg.ca/cpython/rev/6dedcdbe7cd5 I believe I have addressed all of your concerns. Note also that the tests now highlight some dubious behaviour. Further feedback is welcome! I'm happ

[issue17445] Handle bytes comparisons in difflib.Differ

2013-03-18 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, I forgot we didn't do within-line diffs. If we did those, then latin-1 would be less bad choice than ascii+surrogateescape. As it is, either should work in this case (since they just need to tunnel the raw bytes, and aren't being sliced at all). I agree wit

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Jason Ward
Changes by Jason Ward : -- nosy: +Jason.Ward ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17476] Pydoc allmethods does not return all methods

2013-03-18 Thread Matt Bachmann
Matt Bachmann added the comment: Yes! Sorry. -- Added file: http://bugs.python.org/file29474/fix_is_some_method.patch ___ Python tracker ___ _

[issue17476] Pydoc allmethods does not return all methods

2013-03-18 Thread Matt Bachmann
Changes by Matt Bachmann : Removed file: http://bugs.python.org/file29472/pydoc_tests_v3.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue17443] imaplib.IMAP4_stream subprocess is opened unbuffered but ignores short reads

2013-03-18 Thread Diane Trout
Diane Trout added the comment: After bumping into r.david.murray in the elevator I got the impression setting the bufsize argument to the Popen call would be a better idea. I found that BufferedReader/Writer were using a DEFAULT_BUFFER_SIZE set somewhere in the c part of io. To cut down on mag

[issue17476] Pydoc allmethods does not return all methods

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Looks like you uploaded the wrong patch file. Additional note: while pydoc itself does not use the allmethods method (which is doubtless why the bug wasn't found previously), I found through google that numpy at least uses it. So it does need to be fixed. -

[issue5045] imaplib should remove length of literal strings

2013-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: Since I wrote this, a new method has been added to the IMAP4 class (starttls(ssl_context=None), 3.2) and a new parameter to the IMAP_SSL subclass initialization (3.3). So the module is not dead. Thomas is correct that a new method or, more likely, module util

[issue17473] -m is not universally applicable

2013-03-18 Thread R. David Murray
R. David Murray added the comment: I think this is a reasonble idea, however there is no intrinsic relationship between these modules, so adding -m to each one should be a separate issue. We can use this issue as a master and make the other issues dependencies of this one. As a new feature a

[issue17476] Pydoc allmethods does not return all methods

2013-03-18 Thread Matt Bachmann
New submission from Matt Bachmann: Somewhere between python 2.7 and now the definition of a method changed causing this helper method in pydoc to break. This was discovered in http://bugs.python.org/issue17464 by r.david.murray when he found it curious that a test I wrote was passing. I had as

[issue17470] random.choice should accept a set as input

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Choice is a very simple function. If it supported sets, it would have to convert the set to a sequence *each time* choice was called. It is probably better to leave this as a task for the user of choice to perform. Sample, on the other hand, does quite a b

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Jason Ward
Changes by Jason Ward : -- keywords: +patch Added file: http://bugs.python.org/file29471/17470.patch ___ Python tracker ___ ___ Python

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread R. David Murray
R. David Murray added the comment: As discussed with Matt, I deleted the allmethods tests, since the current behavior is actually a bug. pydoc itself doesn't use allmethods, but I did find that numpy at least does so. A separate issue will be opened for that bug. -- resolution: -> f

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 474f078ec958 by R David Murray in branch 'default': #17464: improve pydoc test coverage. http://hg.python.org/cpython/rev/474f078ec958 -- nosy: +python-dev ___ Python tracker

[issue5045] imaplib should remove length of literal strings

2013-03-18 Thread Thomas Fenzl
Thomas Fenzl added the comment: that change would require a new interface. Since there is a drop-in threaded implementation of imaplib (imaplib2) and a higher-level wrapper (imapclient) which uses imaplib2 if available and falls back to imaplib if not, I think it is better to fully revise the

[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2013-03-18 Thread Trent Nelson
Trent Nelson added the comment: I remember looking at what multiprocessing did and not really liking it; I ended up writing a C version that works across a wider range of platforms, accessible via posixmodule.c:posix_cpu_count() (os.cpu_count()): http://hg.python.org/sandbox/trent/file/dd1c2fd

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Matt Bachmann
Matt Bachmann added the comment: Eh, sorry... I tried to do a less fragile way of generating the configuration dict. Tried a few things but it very quickly got messy and even worse started to smell like testing the method with... the method being tested. I am open to ideas though. --

[issue17320] os.path.abspath in window7, return error

2013-03-18 Thread xiaowei
xiaowei added the comment: thank you os: win7 bit64 python: 2.7.3 >>> import sys,locale >>> print(locale.getdefaultlocale()) ('zh_CN', 'cp936') >>> print(sys.getdefaultencoding()) ascii >>> 祝愉快! 肖微 2013年 月 日 2013/3/18 Amaury Forgeot d'Arc > > Amaury Forgeot d'Arc added the comment: > >

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread Matt Bachmann
Matt Bachmann added the comment: Thanks for the feedback :-D Changes: Utilize test.support.temp_cwd() Removed imports that this made unnecessary Awesome trick! Cut line length down. Don't worry about nitpicking. Anything to get this to be as good as possible. I added an explanation to the t

[issue17469] Fix sys.getallocatedblocks() when running on valgrind

2013-03-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue17475] Better doc on using python-gdb.py

2013-03-18 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17444] multiprocessing.cpu_count() should use hw.availcpu on Mac OS X

2013-03-18 Thread STINNER Victor
STINNER Victor added the comment: Here is an interesting, but old (2007), email on darwin-dev: http://lists.apple.com/archives/darwin-dev/2007/Jun/msg00088.html "This can all change in the future, but currently: hw.ncpu is a wart; consider it to be deprecated. hw.physicalcpu is the number of ph

[issue17459] unittest.assertItemsEqual reports wrong order

2013-03-18 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> duplicate stage: -> committed/rejected superseder: -> unittest's assertItemsEqual() method gives wrong order in error output ___ Python tracker ___

[issue17453] logging.config.fileConfig error

2013-03-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +lukasz.langa ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue17445] Handle bytes comparisons in difflib.Differ

2013-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was about to suggested a simplified version of the original one-function version but the new one is better. One change: name = lambda... is discouraged in the stdlib (Guido, pydev, a few years ago). Def statements require only 3 more chars and produce proper

[issue17450] Failed to build _sqlite3

2013-03-18 Thread R. David Murray
R. David Murray added the comment: If you run the script using the python you built and it uses sqlite, then it will raise an ImportError for sqlite. So just try it. If you do need it, then yes you would need to get the appropriate -develop packages installed and then re-run the make. If you

[issue17475] Better doc on using python-gdb.py

2013-03-18 Thread R. David Murray
Changes by R. David Murray : -- nosy: +dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue17475] Better doc on using python-gdb.py

2013-03-18 Thread Cherniavsky Beni
Cherniavsky Beni added the comment: The links to gdb docs presently are broken because sourceware.org is down for maintenance, but it should be back up in a couple days. -- ___ Python tracker _

[issue1100942] Add datetime.time.strptime and datetime.date.strptime

2013-03-18 Thread Sean Reifschneider
Sean Reifschneider added the comment: I've tried to test this but v4 doesn't apply cleanly after pure2 is applied, and v4 doesn't include enough to test it (applying v4 only causes test failures). I reviewed v4 and it looks fine in general. I do see that there are changes in it unrelated to

[issue17474] Remove the deprecated methods of Request class

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset b5980b1171d0 by Senthil Kumaran in branch 'default': #17474 - Remove the various deprecated methods of Request class. http://hg.python.org/cpython/rev/b5980b1171d0 -- nosy: +python-dev ___ Python tracker

[issue8273] move generally useful test.support functions into the unittest package

2013-03-18 Thread Michael Foord
Michael Foord added the comment: If there are specific suggestions to move functionality from test support to unittest then they can be evaluated on a case-by-case basis. As a "general suggestion" I'm closing this issue. -- resolution: -> rejected stage: -> committed/rejected status:

[issue17474] Remove the deprecated methods of Request class

2013-03-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___

[issue17475] Better doc on using python-gdb.py

2013-03-18 Thread Cherniavsky Beni
New submission from Cherniavsky Beni: recent gdb versions by default won't auto-load python-gdb.py. issue15043 fixed this in test_gdb, but manual action is still needed to when a developer actually wants to run gdb. Attached devguide patch. After writing this I noticed it's already explained in

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Well, we are currently skipping the test if /bin/sh doesn't exist. We do have an existing runnable binary used only for testing that is compiled as part of the python build, so that isn't a completely crazy idea. I don't think that it gets installed anywhere

[issue17433] stdlib generator-like iterators don't forward send/throw

2013-03-18 Thread Thomas Wouters
Thomas Wouters added the comment: After writing a simplistic implementation of this for itertools.islice, I'm not sure if this is actually useful. While it's nice for symmetry, I have a hard time imagining how to use it -- so I can't write tests for the new feature, and it may not be a useful

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset fe18f16dc2a6 by Michael Foord in branch 'default': Closes issue 16709. unittest test discovery sorts test files for consistent test ordering http://hg.python.org/cpython/rev/fe18f16dc2a6 -- nosy: +python-dev resolution: -> fixed stage: tes

[issue17464] Improve Test Coverage Of Pydoc

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Thanks for the patch. Rather than create and destroy a directory for every test (setUp/tearDown), it is possible to use the test.support.temp_cwd context manager to create and destroy one inside the single tests that need it. A nit: we prefer to keep the lin

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: hi ned, well, the situation surrounding the bug-reporting that i was doing at the time was a general campaign of "this person is obviously wasting our time because they're developing yet another port/platform, that is obviously a waste of our ti

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Hervé Coatanhay
Hervé Coatanhay added the comment: My complete configuration is this: [loggers] keys = app_admin,root,app_test_py3 [logger_root] handlers = "" [formatters] keys = app_admin,app_test_py3 [handlers] keys = app_admin,app_test_py3 [logger_app_admin] propagate = 1 handlers = app_admin qualname = naga

[issue12707] Deprecate addinfourl getters

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: This commit by Ezio in the tests is related (1bcddc0a3765) -- ___ Python tracker ___ ___ Python-bug

[issue14803] Add feature to allow code execution prior to __main__ invocation

2013-03-18 Thread Gregory P. Smith
Changes by Gregory P. Smith : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue17445] Handle bytes comparisons in difflib.Differ

2013-03-18 Thread Greg Ward
Greg Ward added the comment: Take 3: http://hg.gerg.ca/cpython/rev/78bdb10551ee - uses surrogateescape as suggested by Antoine - seems to work -- ___ Python tracker ___ _

[issue17474] Remove the deprecated methods of Request class

2013-03-18 Thread Senthil Kumaran
New submission from Senthil Kumaran: Number of methods of Request class were deprecated in 3.3 #10050 This issue to to track their removal in 3.4. -- assignee: orsenthil messages: 184565 nosy: orsenthil priority: normal severity: normal status: open title: Remove the deprecated methods o

[issue17473] -m is not universally applicable

2013-03-18 Thread Devin Jeanpierre
New submission from Devin Jeanpierre: Many executables in python are meant to be run on python scripts, but can't run python scripts that are part of a package. For example, one can do `python -m pdb foo.py`, but not `python -m pdb package.foo`. This makes it more difficult to interact with ex

[issue17192] libffi-3.0.13 import

2013-03-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- title: libffi-3.0.12 import -> libffi-3.0.13 import ___ Python tracker ___ ___ Pyt

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2013-03-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10211] BufferObject doesn't support new buffer interface

2013-03-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue10050] urllib.request still has old 2.x urllib primitives

2013-03-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue10050] urllib.request still has old 2.x urllib primitives

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset ea76cfff5851 by Senthil Kumaran in branch '3.3': #10050 - Document DeprecationWarnings for URLopener and FancyURLopener (msg172874 ) http://hg.python.org/cpython/rev/ea76cfff5851 New changeset d4cbd9e2e1cb by Senthil Kumaran in branch 'default': #1

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2013-03-18 Thread Tres Seaver
Tres Seaver added the comment: Patch looks good to me. I would call it a bugfix, not a feature. -- nosy: +tseaver ___ Python tracker ___

[issue10211] BufferObject doesn't support new buffer interface

2013-03-18 Thread Tres Seaver
Tres Seaver added the comment: Looks good to me. -- nosy: +tseaver ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue17192] libffi-3.0.12 import

2013-03-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset b10ec5083a53 by Gregory P. Smith in branch '2.7': Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. This http://hg.python.org/cpython/rev/b10ec5083a53 -- ___ Python tracker

[issue17472] Patch for Additional Test Coverage in urllib.parse

2013-03-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue17472] Patch for Additional Test Coverage in urllib.parse

2013-03-18 Thread Daniel Wozniak
New submission from Daniel Wozniak: Adding additional tests to get 100% coverage in urllib.parse module. It should be noted that line 598 technically has coverage but it does not appear that way due to an peephole optimization, at least we think that is the case. -- components: Tests f

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Radu Voicilas
Radu Voicilas added the comment: Even though it seems kind of weird to have all those keys set to the empty string, I still think that configparser should handle this case, which might be relevant for some other uses cases (not logging configs). The attached patch should take care of this. ---

[issue10050] urllib.request still has old 2.x urllib primitives

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: I think, this issue should have been closed. Or at least be closed now. 1. urlretrieve - change was done. 2. Re: msg172874 - DeprecationWarnings on URLopener have been in place since 3.3. Also in the documentation in the Legacy Interface section, it is mentio

[issue12226] use HTTPS by default for uploading packages to pypi

2013-03-18 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: New changeset f86d46a580d8 by Benjamin Peterson in branch 'default': use the HTTPS for pypi upload http://hg.python.org/cpython/rev/f86d46a580d8 -- ___ Python tracker

[issue13655] Python SSL stack doesn't have a default CA Store

2013-03-18 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue17471] Patch for Additional Test Coverage for urllib.error

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks Daniel. I will commit it. -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___

[issue17471] Patch for Additional Test Coverage for urllib.error

2013-03-18 Thread Daniel Wozniak
New submission from Daniel Wozniak: Adding test to get 100% coverage in urllib.error. -- components: Tests files: patch.diff keywords: patch messages: 184554 nosy: dwoz priority: normal severity: normal status: open title: Patch for Additional Test Coverage for urllib.error type: enhance

[issue12707] Deprecate addinfourl getters

2013-03-18 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue12707] Deprecate addinfourl getters

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: URLOpener (and by inheritance *FancyURLOpener*) -- ___ Python tracker ___ ___ Python-bugs-list mail

[issue12707] Deprecate addinfourl getters

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: And getcode is documented all 3.x documentation now. URLOpener (and by inheritance) raise DeprecationWarning since 3.3. I believe, when class becomes deprecated and removed, their methods go away too? For the URLOpener, I would like that to happen as it will

[issue17409] resource.setrlimit doesn't respect -1

2013-03-18 Thread R. David Murray
R. David Murray added the comment: That would be great, thanks. -- assignee: -> docs@python components: +Documentation nosy: +docs@python versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker __

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread Ned Jackson Lovely
Ned Jackson Lovely added the comment: Fair enough Luke. What is your recommended fix? -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue10212] struct.unpack and cStringIO.StringIO don't support new buffer

2013-03-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: For the backport policy question, since there seems to be disagreement, consider a post on pydev asking for discussion and if no quick consensus, a ruling from Guido or designee. -- ___ Python tracker

[issue1745722] please add wsgi to SimpleXMLRPCServer

2013-03-18 Thread Sanjeev Paskaradevan
Changes by Sanjeev Paskaradevan : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue5051] test_update2 in test_os.py invalid due to os.environ.clear() followed by reliance on environ COMSPEC

2013-03-18 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton added the comment: that's not the correct solution, ned. what that will do is when someone runs a combination of python and MSYS under wine, the test will be skipped incorrectly. thanks to the work that i did back in 2009, wine has now been improved significantly

[issue1745722] please add wsgi to SimpleXMLRPCServer

2013-03-18 Thread Sanjeev Paskaradevan
Changes by Sanjeev Paskaradevan : -- keywords: +patch Added file: http://bugs.python.org/file29464/wsgi_xml_rpc.patch ___ Python tracker ___ ___

[issue17445] Handle bytes comparisons in difflib.Differ

2013-03-18 Thread Nick Coghlan
Nick Coghlan added the comment: Since we don't need to worry about ASCII incompatible encodings (difflib will already have issues with such files due to the assumptions about newlines), it should be possible to use the same approach as that used in urllib.parse, but based on latin-1 rather tha

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-18 Thread Senthil Kumaran
Senthil Kumaran added the comment: Sorry, I went ahead with committing it. But let's continue the discussion. Leaving the parameter when we have said it will be deprecated may be a bad practice. It has remained unused for 2 versions now when the deprecation warning was added. The option 2 fur

[issue6741] Garbage collector release method

2013-03-18 Thread Satshabad Khalsa
Satshabad Khalsa added the comment: This is a test that is supposed to run c that creates two objects, cross references them with embedded python DECREF's the objects. Then it asserts that after Py_fini is called, they have no more references because the gc should have collected them. Unfort

[issue17460] Remove the strict and related params completely removing the 0.9 support

2013-03-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > 2. Making the rest of the arguments as keyword only arguments in order to > prevent people doing mistakes. I am okay with this, people upgrading from > 3.3, will face a problem if they already dont have a keyword only > argument. I thought about how to leave

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-18 Thread Ronald Oussoren
Changes by Ronald Oussoren : -- keywords: +needs review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue17053] pydoc should use inspect.signature instead of inspect.getfullargspec

2013-03-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: See my comment in issue 17424: the code in that issue doesn't work with my patch because __signature__ is defined on the class instead of the method where help is called on. -- ___ Python tracker

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-03-18 Thread Jeff Ramnani
Jeff Ramnani added the comment: Fixed a spelling error. (Part deux) -- Added file: http://bugs.python.org/file29462/issue16709-tests2.patch ___ Python tracker ___ ___

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-03-18 Thread Jeff Ramnani
Jeff Ramnani added the comment: Fixed a spelling error. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue17424] help() should use the class signature

2013-03-18 Thread Ronald Oussoren
Ronald Oussoren added the comment: If I read the code correctly help(pyth.__init__) won't use the __signature__ because that is an attribute of the type, not of the method itself. With the patch in issue17053 help should be better when __init__'s signatuer is set explicitly: class Stock(Str

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-03-18 Thread Jeff Ramnani
Jeff Ramnani added the comment: I've added tests for this behavior by un-sorting the test inputs for test_find_tests, and adding comments that the results should be sorted for reliable test execution. Attaching an updated patch. -- nosy: +jramnani Added file: http://bugs.python.org/fi

[issue17453] logging.config.fileConfig error

2013-03-18 Thread Vinay Sajip
Vinay Sajip added the comment: What is your intent in setting up a configuration like that? How do you expect it to behave? -- ___ Python tracker ___ ___

[issue14916] PyRun_InteractiveLoop fails to run interactively when using a Linux pty that's not tied to stdin/stdout

2013-03-18 Thread emmanuel
emmanuel added the comment: Kevin, These are good points. I had a cursory look at the python source code and observed the following: - There may also be a concern with stderr (used to print the prompt in PyOS_Readline) - PyOS_Readline has two different definitions in files pgenmain.c and myre

[issue8523] shutil.rmtree and os.listdir cannot recover on error conditions

2013-03-18 Thread Andrew Gorcester
Andrew Gorcester added the comment: Product of the #pycon 2013 sprint with r.david.murray's assistance. This implements the list of results as per tarek's suggested 1/ behavior in cases where ignore_errors=True. Parameters accepted are not changed; return value is changed from None to an emp

[issue17445] Return the type you accept

2013-03-18 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Necessary when comparing files with unknown or inconsistent encodings: > there's no way to convert everything to Unicode, so just leave it all > bytes. You could simply use the surrogateescape error handler. -- nosy: +pitrou

[issue17445] Return the type you accept

2013-03-18 Thread Greg Ward
Greg Ward added the comment: OK I now have two competing patches. Both are disgusting, but in different ways. 1) http://hg.gerg.ca/cpython/rev/fcf3d27f20d9 - factor out all the string constants - always concatenate, do not .format() 2) http://hg.gerg.ca/cpython/rev/cebefce2cfd4 - copy

[issue10296] ctypes catches BreakPoint error on windows 32

2013-03-18 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Here is a suggested patch. SEH will now not catch BREAKPOINT exceptions. -- keywords: +patch Added file: http://bugs.python.org/file29459/ctypes.diff ___ Python tracker __

[issue17470] random.choice should accept a set as input

2013-03-18 Thread Mohammad Akram
New submission from Mohammad Akram: I think the random.choice function should support sets. The random.sample function already supports sets and therefore the API should be consistent in this regard. This is how it's done in the sample method (line 295): if isinstance(population, _Set

[issue5024] sndhdr.whathdr returns -1 for WAV file frame count

2013-03-18 Thread R. David Murray
R. David Murray added the comment: Thanks, Ned. -- nosy: +r.david.murray resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

  1   2   3   >