[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, I don't want to change the kind of exception being raised (an API change from AttributeError to TypeError) without a really good reason. In general, in-place methods are not required to return NotImplemented (for example, (3).__iadd__(4.5) raises an

[issue22417] PEP 476: verify HTTPS certificates by default

2014-10-31 Thread Alex Gaynor
Alex Gaynor added the comment: New version of the patch based on feedback from benjamin, should make it easier to do the 3.4 branch stuff. -- Added file: http://bugs.python.org/file37094/issue22417.diff ___ Python tracker

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-10-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Can you attach a proposed patch and I will make a decision. FWIW, I'm very happy with the current documentation at https://docs.python.org/2.7/library/functions.html#enumerate Between the text, example, and pure python equivalent, it does a great job com

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread R. David Murray
R. David Murray added the comment: Ah, I see. Those don't work in my shell, since the '*' gets interpreted as a globbing character. I didn't know it worked on Windows. -- ___ Python tracker _

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Semi-useful: print a numeric expression without spaces C:\Users\Terry>python -c print(2**50) 1125899906842624 Less useful: print a string expression without spaces or double quotes C:\Users\Terry>python -c print('*'*50) **

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread R. David Murray
R. David Murray added the comment: The replacement of the term 'special methods' and the examples with the jargon (used nowhere else in the docs that I'm aware of) of '__dunder__' makes the text very confusing. Please restore 'special methods' and the examples...you could include non-compari

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread R. David Murray
R. David Murray added the comment: We have a suggestion for a wording improvement (that does not change the sentence to which you refer) that has been accepted as better than the existing wording by a couple of committers. This improvement is actually independent of what the variable is named

[issue20069] Add unit test for os.chown

2014-10-31 Thread Cormac O'Brien
Cormac O'Brien added the comment: The unit test has changed significantly since R. David Murray posted his suggestions, but I've at least moved the test over to the new format as noted in the last comment of the v5 patch. -- nosy: +cormac-obrien Added file: http://bugs.python.org/file3

[issue22701] Write unescaped unicode characters (Japanese, Chinese, etc) in JSON module when "ensure_ascii=False"

2014-10-31 Thread R. David Murray
R. David Murray added the comment: That error message indicates you've opened the output file in binary mode instead of text mode. -- ___ Python tracker ___

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread R. David Murray
R. David Murray added the comment: I am hard pressed to come up with anything useful you can do with the argument to -c without quoting it. -- ___ Python tracker ___ ___

[issue22763] load_tests chaining into discover from non-discover entry point gets top_level_dir wrong

2014-10-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Tests stage: -> test needed versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-

[issue22761] Catching StopIteraion inside generator expression.

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: (One copy of a message is enough; I unlinked the duplicate.) I am not sure what you mean by you initial sentence, but I do not think it is correct. In any case, "next(it) for it in iters" is a generator expression, not a list comprehension. The tuple call swa

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: The "sequence" parameter name is an unfortunate hold-over from olden times were many things that accepted iterables were marked as taking sequences. This was fixed in Python 3, but it can't be changed in Py2.7 because the parameter name is exposed as a keyw

[issue22761] Catching StopIteraion inside list comprehension

2014-10-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- Removed message: http://bugs.python.org/msg230248 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue22701] Write unescaped unicode characters (Japanese, Chinese, etc) in JSON module when "ensure_ascii=False"

2014-10-31 Thread Michael Kuss
Michael Kuss added the comment: Pardon the delay - this json dump function is embedded in a much larger script, so it took some untangling to get it running on Python 3.3, and scrub some personal identifying info from it. This script also does not work in Python 3.3: File "C:/Users/mkuss/Py

[issue22742] IDLE shows traceback when printing non-BMP character

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think Idle should consistently display astral chars with their \U escape. It sometimes does, just not always. >>> s='\U0001f680' >>> s '\U0001f680' >>> str(s) '\U0001f680' >>> repr(s) "'\U0001f680'" >>> print(s) # gives error above. >>> print(str(s)) #ditto

[issue22739] "There is no disk in the drive" error

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: Lachian, I am closing this because I agree with Tim. This tracker is for bug fixes (and enhancements) to the code at hg.python.org/cpython (and a couple of the sibling repositories). Bugs need to be demonstrated with a .py or .c program. This is almost certai

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread Ethan Furman
Changes by Ethan Furman : -- stage: needs patch -> resolved status: open -> closed versions: +Python 3.5 ___ Python tracker ___ ___ Py

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 26d0a17affb5 by Ethan Furman in branch 'default': issue22780: update NotImplemented description https://hg.python.org/cpython/rev/26d0a17affb5 -- nosy: +python-dev ___ Python tracker

[issue22738] improve 'python -h' documentation for '-c'

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Win7, current Firefox, '-c' looks the same (definitely lowercase) for 2.7,8, 3.4.2, and 3.5.0a0, I agree both that the sys.argv entry should be left as is and that 'interpret' is better than 'feed' or the current verbiage. I think 'cmd' should be left as

[issue22780] NotImplemented doc section needs update

2014-10-31 Thread Ethan Furman
New submission from Ethan Furman: https://docs.python.org/3/library/constants.html current --- Special value which can be returned by the “rich comparison” special methods (__eq__(), __lt__(), and friends), to indicate that the comparison is not implemented with respect to the other ty

[issue22737] Provide a rejected execution model and implementations for futures.

2014-10-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> needs patch versions: +Python 3.5 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list ma

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, it's true that the message is better. If we don't want to change behaviour, we should simply catch the AttributeError and return NotImplemented from there. -- ___ Python tracker

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Ethan Furman
Ethan Furman added the comment: Nevertheless, that is the behavior if NotImplemented is returned by a method. Here's some code to demonstrate: --8<--- from collections import Counter class Spam(int): "for sake of example" def __radd__(self, other):

[issue22725] improve documentation for enumerate() (built-in function)

2014-10-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first argument of enumerate is 'iterable' in the 2.7 docstring also. "enumerate(iterable[, start]) -> iterator for index, value of iterable Return an enumerate object. iterable must be another object that supportsniteration. The enumerate object yields p

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue22778] list's in-place add doesn't return NotImplemented when appropriate

2014-10-31 Thread Ethan Furman
Ethan Furman added the comment: My understanding was that if a different patch will be needed, it is not the same issue. Is that not correct? Here's the test: def test_iadd(self): ... self.assertRaises(TypeError, u.__iadd__, None) It would still pass, as returning NotImpl

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread STINNER Victor
STINNER Victor added the comment: If the platform doesn't provide anything, we can maybe adopt the same approach than Mac OS X: force the encoding to UTF-8 and just don't use the C library. -- ___ Python tracker __

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: You misread that paragraph: """ For instance, to execute the statement x += y, where x is an instance of a class that has an __iadd__() method, x.__iadd__(y) is called.""" This is the present case, and the case of most mutable containers. """If x is an instan

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Ethan Furman
Ethan Furman added the comment: https://docs.python.org/2/reference/datamodel.html#object.__iadd__ -- [...] These methods should attempt to do the operation in-place (modifying self) and return the result (which could be, but does n

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: The test should be 0x0600. -- Added file: http://bugs.python.org/file37092/Issue22773.txt ___ Python tracker ___ ___

[issue22779] deque in-place addition does not return NotImplemented when appropriate

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: This behavior was intended. It was modeled after the behavior for lists. Any change here would break code such as: d = deque() d += 'abc' # This is specially allowed (note, we have a test for it) -- resolution: -> not a bug status: open

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think I've changed my mind on this. The important distinction is not between "ducktyping" or "cooperating". It's that this is an in-place mutating operation. A mutating operation should always be the responsibility of the receiver, and so it sounds wrong to

[issue22778] list's in-place add doesn't return NotImplemented when appropriate

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please don't replicate existing issues. Also, this behavior for lists is long-standing, tested, and designed by Guido. More than a little code relies on this behavior. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> not a bug status:

[issue22779] deque in-place addition does not return NotImplemented when appropriate

2014-10-31 Thread Ethan Furman
New submission from Ethan Furman: --> from collections import deque --> d = deque() --> d += 1 Traceback (most recent call last): File "", line 1, in TypeError: 'int' object is not iterable deque should be returning NotImplemented, which would generate a more appropriate error message: Type

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Ethan Furman
Ethan Furman added the comment: The behavior exhibited by set() is correct, and the behavior for array and bytearray are fine, as the error message is even more helpful. Issues opened for list (issue22778) and deque (issue22779). -- ___ Python track

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Note, the += operation is conceptually similar to update() methods with are usually duck typeable: >>> d = {} >>> d.update(1) Traceback (most recent call last): File "", line 1, in d.update(1) TypeError: 'int' object is not iterable >>> s = set() >>>

[issue22779] deque in-place addition does not return NotImplemented when appropriate

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Please don't replicate the same variant of the issue multiple times. -- ___ Python tracker ___ __

[issue22778] list's in-place add doesn't return NotImplemented when appropriate

2014-10-31 Thread Ethan Furman
New submission from Ethan Furman: --> s = [] --> s += 1 Traceback (most recent call last): File "", line 1, in TypeError: 'int' object is not iterable For comparison, when NotImplemented is appropriately returned the message looks like this: --> s -= 1 Traceback (most recent call last): F

[issue22777] Test pickling with all protocols

2014-10-31 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Some pickling tests use only default protocol. Other tests use only lower protocols (0, 1, and may be 2). Proposed match makes all pickling tests using all existing protocols from 0 to HIGHEST_PROTOCOL inclusive. Also fixed some minor bugs. -- com

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread Stefan Krah
Stefan Krah added the comment: To expand a little, here ... https://code.google.com/p/android/issues/list ... I cannot find either a localeconv() or an nl_langinfo() issue. Perhaps the maintainers would be willing to add minimal versions? -- __

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread Matt Frank
Matt Frank added the comment: I am working on using my resources at Intel to put some pressure on Google to fix some of the (many) problems in the Bionic libc. I have a sort of "polyfill" library that implements locale.h, langinfo.h, as well as the structure definitions for wchar.h, and it bor

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Ned Deily
Ned Deily added the comment: The test works OK with libedit now, thanks. But are you sure about the readline version test? Testing with a GNU readline 6.3: >>> print('%x' % readline._READLINE_RUNTIME_VERSION) 603 so the test_readline check: readline._READLINE_VERSION < 0x6000 causes the

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread Stefan Krah
Stefan Krah added the comment: Has anyone made an effort to get this fixed in Android? I find it strange that hundreds of projects now work around Android bugs instead of putting (friendly) pressure on the Android maintainers. Minimal langinfo.h and locale.h support should be trivial to imple

[issue22683] bisect index out of bounds issue

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: > treat the hi in the precondition in the same way as the lo parameter Originally, there was no special test for lo. The test was added only because negative lo value failed in an unfortunate way (with an infinite loop). No change to hi was made because (

[issue22766] collections.Counter's in-place operators should return NotImplemented for unsupported types

2014-10-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here is what other mutable types do: >>> s = [] >>> s.__iadd__(1) Traceback (most recent call last): File "", line 1, in s.__iadd__(1) TypeError: 'int' object is not iterable >>> s = set() >>> s.__ior__(1) NotImplemented >>> from collections import d

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: Okay, grouping was wrong in my initial attempt. New patch attached. -- Added file: http://bugs.python.org/file37090/Issue22773.txt ___ Python tracker _

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Ned Deily
Ned Deily added the comment: Something like: @unittest.skipIf(("libedit" not in readline.__doc__) and (readline._READLINE_VERSION < 0x6000), "not supported in this library version") should work. -- _

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: @ned.deily Can you offer a suggestion of how you you like the skipIf test modified to check __doc__ for "libedit"? -- ___ Python tracker ___ __

[issue22747] Interpreter fails in initialize on systems where HAVE_LANGINFO_H is undefined

2014-10-31 Thread Matt Frank
Matt Frank added the comment: My platform is the Android command-line shell. Essentially it is like an embedded linux platform with a very quirky partially implemented libc (not glibc). It has no langinfo.h and while it has locale.h, the implementations of setlocale() and localeconv() do not

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread STINNER Victor
STINNER Victor added the comment: In the past, I added sys.thread_info to be able to skip tests on some old platforms. Maybe we need something similar: an object with runtime version, build version, implementation name, etc. -- ___ Python tracker <

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Ned Deily
Ned Deily added the comment: Make that: The documented way of differentiating the two cases is by checking the __doc__ string for "libedit". -- ___ Python tracker ___ __

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Ned Deily
Ned Deily added the comment: The patch doesn't take into account that the readline module may be linked with BSD libedit (as is the default on OS X and is preferred by some third-party distributors) rather than GNU readline. The patch causes the test to be incorrectly skipped on those platfor

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-10-31 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> patch review versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue13884] IDLE: Remove tear-off menu feature

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: I haven't seen any other program using it, so I wouldn't mind if they were removed. People with disabilities probably have better ways to deal with menus, but if adding the option is trivial it's probably better to add it. -- __

[issue16518] add "buffer protocol" to glossary

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: See #22581. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue21278] Running the test suite with -v makes the test_ctypes and the test_zipimport erroneously reported as failed

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: > If no one is able to reproduce it, I guess we can close it. OK > you all receive updates even if the bug is closed, right? Yes. -- resolution: works for me -> out of date stage: -> resolved status: open -> closed ___

[issue12458] Tracebacks should contain the first line of continuation lines

2014-10-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22751] Fix test___all__ warning about modified environment

2014-10-31 Thread Zachary Ware
Zachary Ware added the comment: It doesn't look like "import locale" can fail ("import _locale" can, but locale.py has emulation that would work with this patch). LGTM. -- stage: patch review -> commit review versions: -Python 3.6 ___ Python tracke

[issue10712] 2to3 fixer for deprecated unittest method names

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.

[issue22143] rlcompleter.Completer has duplicate matches

2014-10-31 Thread Lorenz Quack
Lorenz Quack added the comment: I couldn't find anything concerning order in the docs so I didn't see any reason the have them sorted. I'm not opposed to sorting them. I guess you could call me +0 on returning sorted(set(matches)) -- ___ Python trac

[issue22678] An OSError subclass for "no space left on device" would be nice: NoSpaceError

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22581] Other mentions of the buffer protocol

2014-10-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- type: -> enhancement versions: +Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list maili

[issue11957] re.sub confusion between count and flags args

2014-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I think that the enum solution is worth pursuing, and that we need general class which represents the set of specified named flags. I'm working on implementation of enum.IntFlags. -- ___ Python tracker

[issue22680] unittest discovery is fragile

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22680] unittest discovery is fragile

2014-10-31 Thread Ethan Furman
Ethan Furman added the comment: Michael Foord opined: - > Maybe discovery should special case that class and not treat it as a normal > TestCase. Not a bad idea. On the other hand, I don't believe unittest is advertised as supporting 'from ... import *', which *is* usually

[issue22680] unittest discovery is fragile

2014-10-31 Thread Michael Foord
Michael Foord added the comment: Ah. Test discovery is discovering FunctionTestCase and attempting to instantiate it as a test. And failing. Maybe discovery should special case that class and not treat it as a normal TestCase. -- ___ Python tracker

[issue22680] unittest discovery is fragile

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Or perhaps everything that has as a __module__ something which has the attribute __unittest = True? (the attribute is there for a reason, right?) -- ___ Python tracker __

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Indeed, I think there's no ambiguity here. Victor, are you ok with the patch? -- ___ Python tracker ___

[issue22680] unittest discovery is fragile

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: btw, in case that's not clear from the traceback, discover was mistaking FunctionTestCase as one of my test classes (while it was just there because of the "import *"). -- ___ Python tracker

[issue22680] unittest discovery is fragile

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Does removing "from unittest import *" from somewhere fix the issue? Yes. > Is this a bug in your code, or did that import reveal a bug in unittest? Your choice :-) -- ___ Python tracker

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread David Edelsohn
David Edelsohn added the comment: I am trying to follow the precedent of zlibmodule with the naming so that users of Python modules have as consistent an experience and user interface as possible. -- ___ Python tracker

[issue22680] unittest discovery is fragile

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: Does removing "from unittest import *" from somewhere fix the issue? Is this a bug in your code, or did that import reveal a bug in unittest? -- ___ Python tracker __

[issue19884] Importing readline produces erroneous output

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Naming it _READLINE_BUILDTIME_VERSION instead of _READLINE_VERSION would avoid ambiguity. -- nosy: +Arfrever ___ Python tracker __

[issue22701] Write unescaped unicode characters (Japanese, Chinese, etc) in JSON module when "ensure_ascii=False"

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: The example works for me with both python 2 and 3. I'm going to close this in a while if OP doesn't reply. $ python2 -c "import json; json.dump({'name': '港区'}, open('py2.json', 'w'), indent=4, separators=(',', ': '), ensure_ascii=False)" && cat py2.json { "

[issue22758] Regression in Python 3.2 cookie parsing

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22751] Fix test___all__ warning about modified environment

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-10-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue22776] SyslogHandler's record formatting during emit(..) not covered by try-except block

2014-10-31 Thread Yoel
Changes by Yoel : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org

[issue22776] SyslogHandler's record formatting during emit(..) not covered by try-except block

2014-10-31 Thread Yoel
New submission from Yoel: Not all exceptions occurring during SyslogHandler's emit(..) method are caught and handled since the try-except block only covers the latter part of the method. Thus, since handleError is not invoked, such exceptions might cause the whole program to crash, even though

[issue22758] Regression in Python 3.2 cookie parsing

2014-10-31 Thread Tim Graham
Tim Graham added the comment: FYI, I created #22775 and submitted a patch for the issue that SimpleCookie doesn't pickle properly with HIGHEST_PROTOCOL. -- ___ Python tracker __

[issue22751] Fix test___all__ warning about modified environment

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: Are there cases where "import locale" might fail? If so, it should maybe be moved in the try, otherwise the patch LGTM. -- assignee: -> ezio.melotti nosy: +serhiy.storchaka, zach.ware stage: -> patch review ___ Python

[issue22746] cgitb html: wrong encoding for utf-8

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: > In normal HTML utf-8 works fine, doesn't it? It does, in fact as long as the encoding used by the browser matches the one used in the file, no charrefs needs to be used (except > < and "). Of course, if non-Unicode encodings are used, the range of available c

[issue22706] Idle extension configuration and key bindings

2014-10-31 Thread Saimadhav Heblikar
Changes by Saimadhav Heblikar : -- nosy: +sahutd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue17717] Set up nasm from external.bat

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't say anything about the patch, but thank you for automating this! One less manual step :-) -- ___ Python tracker ___ ___

[issue17717] Set up nasm from external.bat

2014-10-31 Thread Zachary Ware
Zachary Ware added the comment: Fairly simple patch for default. -- keywords: +patch Added file: http://bugs.python.org/file37089/issue17717-default.diff ___ Python tracker ___ _

[issue11957] re.sub confusion between count and flags args

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: I agree about 767fd62b59a9, there should be tests for args passed both by position and as keyword args. Serhiy, do you think the enum solution is worth pursuing, or is it better to just turn those args to keyword-only (after a proper deprecation process)? -

[issue22769] Tttk tag_has() throws TypeError when called without item

2014-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank your for your report David. Here is a patch which fixes the bug and adds tests for Treeview.tag_has(). -- stage: needs patch -> patch review ___ Python tracker ___

[issue22143] rlcompleter.Completer has duplicate matches

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: +return list(set(matches)) Shouldn't this be sorted before being returned? -- ___ Python tracker ___

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-10-31 Thread Tim Graham
Tim Graham added the comment: By the way, this is my first patch for Python and I submitted a CLA 2 days ago. -- ___ Python tracker ___ __

[issue22775] SimpleCookie not picklable with HIGHEST_PROTOCOL

2014-10-31 Thread Tim Graham
New submission from Tim Graham: Expected: >>> import pickle >>> from http.cookies import SimpleCookie >>> pickle.loads(pickle.dumps(SimpleCookie('hi=there'),2)) # Actual Patch is based on the suggestion from Georg Brandl in #22758 (I added the "else" as the fix did not work without it). ---

[issue22153] Documentation of TestCase.runTest is incorrect and confusing

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: > Oh, one thought - in testtools we split out 'docs for test writers' and > 'docs for framework folk'. That would facilitate getting runTest out of > test writers face while still documenting it appropriately. This has already been discussed in the past, and IIRC

[issue17717] Set up nasm from external.bat

2014-10-31 Thread Zachary Ware
Zachary Ware added the comment: Ok, I've imported nasm-2.11.06 to: http://svn.python.org/projects/external/nasm-2.11.06 I'll work on a patch for default and see what (if anything) will need to change in the openssl checkout. -- ___ Python tracke

[issue9179] Lookback with group references incorrect (two issues?)

2014-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If there are no objections I'm going to commit the patch soon. -- ___ Python tracker ___ ___ Python

[issue17381] IGNORECASE breaks unicode literal range matching

2014-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Antoine for your review. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue12728] Python re lib fails case insensitive matches on Unicode data

2014-10-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here are complete patch and script used to generate equivalence table. -- Added file: http://bugs.python.org/file37086/re_ignore_case_2.patch Added file: http://bugs.python.org/file37087/re_cases.py ___ Python track

[issue22774] Weird S.rstrip() result

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: It may be unexpected, but it's not a bug. From the documentation: """Return a copy of the string with trailing characters removed. The chars argument is a string specifying the set of characters to be removed. If omitted or None, the chars argument defaults to

[issue22773] Export Readline version and expect ANSI sequence for version < 0x6000

2014-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for the patch. -- stage: -> patch review versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ __

  1   2   >