[issue22525] ast.literal_eval() doesn't do what the documentation says

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22525

[issue22558] Missing hint to source code - complete

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: The source links have been added where the code proved to be readable, easy to understand, and self documenting, and have been omitted when the code is complicated and not self documenting. This has been done under the assumption that reading the code might

[issue22612] Add block info to unicodedata

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I needed this in the past and had to implement it myself, so adding it to unicodedata might be OK. A script to generate the list of blocks from the official Unicode files should probably be created and used whenever we update the version of the Unicode

[issue22671] Typo in class io.BufferedIOBase docs

2014-11-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +pitrou stage: - needs patch versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22671

[issue22716] Add reference to the object missing an attribute to AttributeError

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I think we should be pursued together with #18156, so I'm going to close this. Serhiy already added a reference to this issue there. -- nosy: +ezio.melotti resolution: - duplicate stage: - resolved status: open - closed

[issue18156] Add an 'attr' attribute to AttributeError

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: I closed #22716 in favor of this, since I think both should be tackled together. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18156

[issue22751] Fix test___all__ warning about modified environment

2014-11-02 Thread Ezio Melotti
Ezio Melotti added the comment: The buildbot seems happy, so I'm going to close this. Thanks for the patch! -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue15279] Spurious unittest warnings

2014-11-01 Thread Ezio Melotti
Ezio Melotti added the comment: I'm going to close this. If someone can reproduce it again, feel free to reopen it. -- resolution: - out of date stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue16056] shadowed test names in std lib regression tests

2014-11-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16056

[issue22452] addTypeEqualityFunc is not used in assertListEqual

2014-11-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rbcollins ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22452 ___ ___ Python-bugs-list

[issue22364] Improve some re error messages using regex for hints

2014-11-01 Thread Ezio Melotti
Ezio Melotti added the comment: +1 on the idea. -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22364 ___ ___ Python-bugs

[issue16007] Improved Error message for failing re expressions

2014-11-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16007 ___ ___ Python-bugs

[issue21931] Nonsense errors reported by msilib.FCICreate for bad argument

2014-11-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21931

[issue21400] Code coverage documentation is out-of-date.

2014-11-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - patch review type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21400

[issue21815] imaplib truncates some untagged responses

2014-11-01 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patches Lita, however it's better if you can upload a single patch with all the required changes. This will make it easier to apply/review it. -- stage: test needed - patch review ___ Python tracker

[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

[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 rep...@bugs.python.org http://bugs.python.org/issue22143

[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

[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 gt; lt; and quot;). Of course, if non-Unicode encodings are used, the range

[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

[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 { name

[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 rep...@bugs.python.org http://bugs.python.org/issue22680

[issue22581] Other mentions of the buffer protocol

2014-10-31 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- type: - enhancement versions: +Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22581

[issue10712] 2to3 fixer for deprecated unittest method names

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10712 ___ ___ Python-bugs-list mailing list Unsubscribe

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

2014-10-31 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12458 ___ ___ Python-bugs

[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

[issue16518] add buffer protocol to glossary

2014-10-31 Thread Ezio Melotti
Ezio Melotti added the comment: See #22581. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16518 ___ ___ Python-bugs-list mailing list

[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

[issue22760] re.sub does only first 16 replacements if re.S is used

2014-10-29 Thread Ezio Melotti
Ezio Melotti added the comment: See #11957. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22760 ___ ___ Python-bugs-list mailing list

[issue22177] Incorrect version reported after downgrade

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Can this be closed then? -- resolution: - wont fix status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22177

[issue22173] Update lib2to3.tests and test_lib2to3 to use test discovery

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22173

[issue22153] There is no standard TestCase.runTest implementation

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +rbcollins stage: - patch review versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22153

[issue22217] Reprs for zipfile classes

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM -- nosy: +ezio.melotti stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22217

[issue22233] http.client splits headers on none-\r\n characters

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22233

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Looks like str.splitlines is using STRINGLIB_ISLINEBREAK which in turn uses Py_UNICODE_ISLINEBREAK, so the behavior should be correct. If splitting on \n, \r, and \r\n only is common enough with might add a bool arg to splitlines to restrict the splitting

[issue22237] sorted() docs should state that the sort is stable

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: rhettinger - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue22232] str.splitlines splitting on non-\r\n characters

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: There are some ascii line breaks other than \n, \r, \r\n. unicode=True might be better, but might be confused with unicode strings. Maybe unicode_linebreaks or unicode_newlines? -- ___ Python tracker rep

[issue22242] Doc fix in the Import section in language reference.

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +brett.cannon stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22242

[issue22752] incorrect time.timezone value

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22752 ___ ___ Python-bugs-list

[issue22196] namedtuple documentation could/should mention the new Enum type

2014-10-28 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- assignee: rhettinger - ezio.melotti resolution: - fixed stage: - resolved status: open - closed type: - enhancement versions: +Python 3.4, Python 3.5 ___ Python tracker rep

[issue22753] urllib2 localnet Changed test to lookup IP-address of localhost

2014-10-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, larstiq stage: - patch review type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22753

[issue19980] Improve help('non-topic') response

2014-10-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19980 ___ ___ Python-bugs

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

2014-10-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti versions: +Python 3.4, Python 3.6 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22725

[issue22643] Integer overflow in case_operation

2014-10-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +benjamin.peterson, serhiy.storchaka type: security - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22643

[issue22645] Unable to install Python 3.4.2 amd64 on Windows 8.1 Update 1

2014-10-15 Thread Ezio Melotti
Ezio Melotti added the comment: Can you copy the exact error that you got? Have you tried redownloading it, and/or checking with a different version (x86 or Python 3.3)? Do you have admin privileges on your account? -- nosy: +ezio.melotti ___ Python

[issue22626] Documentation should point people to bugs. over HTTPS

2014-10-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - resolved type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22626

[issue17582] xml.etree.ElementTree does not preserve whitespaces in attributes

2014-10-13 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17582

[issue13664] UnicodeEncodeError in gzip when filename contains non-ascii

2014-10-12 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13664 ___ ___ Python-bugs

[issue11664] Add patch method to unittest.TestCase

2014-10-12 Thread Ezio Melotti
Ezio Melotti added the comment: I'm -0.5 on this as well, and agree that we should try to keep the TestCase API small. On one hand, a patch method available without extra imports would be handy, and having this as a generic function/method in unittest seems more natural to me than having

[issue22594] Add a link to the regex module in re documentation

2014-10-11 Thread Ezio Melotti
Ezio Melotti added the comment: +1 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22594 ___ ___ Python-bugs-list mailing list Unsubscribe

[issue22603] Fix a typo in the contextlib docs

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ncoghlan stage: - commit review type: crash - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22603

[issue22604] assertion error in complex division

2014-10-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22604 ___ ___ Python-bugs

[issue22570] Better stdlib support for Path objects

2014-10-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22570

[issue21231] Issue a python 3 warning when old style classes are defined.

2014-10-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21231 ___ ___ Python-bugs

[issue19489] move quick search box above TOC

2014-10-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - needs patch type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19489

[issue21971] Index and update turtledemo doc.

2014-10-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21971 ___ ___ Python-bugs-list

[issue22001] containers same does not always mean __eq__.

2014-10-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22001 ___ ___ Python-bugs

[issue21999] shlex: bug in posix mode handling of empty strings

2014-10-01 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21999

[issue22516] Windows Installer won't - even when using just for meoption

2014-09-29 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- components: +Windows nosy: +steve.dower, terry.reedy, zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22516

[issue19569] Use __attribute__((deprecated)) to warn usage of deprecated functions and macros

2014-09-27 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19569 ___ ___ Python-bugs

[issue22197] Allow better verbosity / output control in test cases

2014-09-26 Thread Ezio Melotti
Ezio Melotti added the comment: That only works for the CPython test suite (and it's not a public API). FWIW I'm +1 on the idea, but I would have to see how it will get implemented in a patch. -- stage: - needs patch ___ Python tracker rep

[issue22197] Allow better verbosity / output control in test cases

2014-09-26 Thread Ezio Melotti
Ezio Melotti added the comment: As for output buffering, may be replace sys.stdout by file-like object which flushes its buffered content to original stdout on failure and discard it on success. This is what the --buffer option is already supposed to do (I only found out about it thanks

[issue22498] frozenset allows modification via -= operator

2014-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: This doesn't modify f, it replaces it with a new frozenset: f = frozenset({1, 2}) f frozenset({1, 2}) id(f) 3071990668 f -= frozenset({1}) f frozenset({2}) id(f) 3066719340 Notice how the two ids are different. In other words, f

[issue15279] Spurious unittest warnings

2014-09-25 Thread Ezio Melotti
Ezio Melotti added the comment: Is this still an issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15279 ___ ___ Python-bugs-list mailing

[issue22481] Lists within tuples mutability issue

2014-09-24 Thread Ezio Melotti
Ezio Melotti added the comment: See https://docs.python.org/3/faq/programming.html#why-does-a-tuple-i-item-raise-an-exception-when-the-addition-works -- nosy: +ezio.melotti resolution: - not a bug stage: - resolved status: open - closed ___ Python

[issue22472] OSErrors should use str and not repr on paths

2014-09-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22472

[issue22485] Documentation download links (3.4.2

2014-09-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +larry, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22485 ___ ___ Python

[issue22452] addTypeEqualityFunc is not used in assertListEqual

2014-09-21 Thread Ezio Melotti
Ezio Melotti added the comment: Currently assertListEqual calls assertSequenceEqual, and assertSequenceEqual doesn't use any function to compare list elements -- it just does if item1 != item2: (https://hg.python.org/cpython/file/default/Lib/unittest/case.py). Checking the types of the two

[issue22383] Crazy unicode : How g and ɡ look the same but are two different characters

2014-09-10 Thread Ezio Melotti
Ezio Melotti added the comment: The same happens with 'l' and 'I' on some fonts. Forbid those chars or treat them as synonyms is not an option. -- resolution: - not a bug stage: - resolved status: open - closed versions: -Python 3.1, Python 3.2, Python 3.3, Python 3.4

[issue22380] Y2K compliance section in FAQ is 14 years too old

2014-09-10 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +easy nosy: +ezio.melotti stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22380

[issue22316] Add rule about extraneous whitespace around colon to Whitespace In Expressions and Statements of PEP8

2014-08-31 Thread Ezio Melotti
Ezio Melotti added the comment: Yes: ham[lower + offset : upper + offset], ham[lower : upper : 3] This feels a bit weird to me, perhaps because I seldom have expressions in slices and don't feel the need to add further spaces. For the first case I would definitely not put spaces around

[issue18814] Add tools for cleaning surrogate escaped strings

2014-08-24 Thread Ezio Melotti
Ezio Melotti added the comment: I think similar functions should be added in the unicodedata module rather than the string module or as str methods. If I'm not mistaken this was already proposed in another issue. In C we already added macros like IS_{HIGH|LOW|}_SURROGATE and possibly others

[issue18814] Add tools for cleaning surrogate escaped strings

2014-08-24 Thread Ezio Melotti
Ezio Melotti added the comment: That's why I think a function like redecode is a bad idea. With Python 2 I've seen lot of people blindingly trying .decode when .encode failed (and the other way around) whenever they were getting an UnicodeError (and the fact that decoding Unicode results

[issue22250] unittest lowercase methods

2014-08-22 Thread Ezio Melotti
Ezio Melotti added the comment: This has been already proposed and rejected in the past. It's not something that is going to happen (at least until Python 4 or 5). -- nosy: +ezio.melotti resolution: - rejected stage: - resolved status: open - closed

[issue22224] docs.python.org is prone to political blocking in Russia

2014-08-20 Thread Ezio Melotti
Ezio Melotti added the comment: See also #21072. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4 ___ ___ Python-bugs

[issue22212] zipfile.py fails if zlib.so module fails to build.

2014-08-17 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22212

[issue22204] 2014 USA CONFERENCE/INVITATION!!

2014-08-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- Removed message: http://bugs.python.org/msg225350 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22204

[issue22204] spam

2014-08-15 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: -lcarrionr resolution: - not a bug stage: - resolved status: open - closed title: 2014 USA CONFERENCE/INVITATION!! - spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue22190] Integrate tracemalloc into regrtest refleak hunting

2014-08-13 Thread Ezio Melotti
Ezio Melotti added the comment: Isn't this the same as #19816? -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22190

[issue19217] Calling assertEquals for moderately long list takes too long

2014-08-10 Thread Ezio Melotti
Ezio Melotti added the comment: I thought some more about this, and I think we can do better. Since _diffThreshold only affects strings, the goal of this issue is to extend the check to other types. Instead of doing this by adding more attributes and behaviors, I would like to keep things

[issue22177] Incorrect version reported after downgrade

2014-08-09 Thread Ezio Melotti
Ezio Melotti added the comment: Have you checked if there are pyc files left around by the previous installation? Have you specified the full path to python.exe from cmd while running python -V? If you start the interpreter and print sys.version what do you get? Does anything change if you

[issue22170] Typo in iterator doc

2014-08-08 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report! -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-07 Thread Ezio Melotti
Ezio Melotti added the comment: SGTM. The patch still needs docs and there are some comments on rietveld. The name of the decorator should be updated too, and possibly __unittest_base_class__ should be renamed to __unittest_abstract_class__ to match the name of the decorator

[issue22138] patch.object doesn't restore function defaults

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks for the patch, however I don't think this is a robust solution. Other objects might have undeletable attributes too. The current code can delete an attribute without restoring it so an easy solution would be removing the hasattr() check, but that seems

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: If the HTML output was fine, what is the purpose of the change in pyspecific.py? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22150 ___ ___ Python

[issue22123] Provide a direct function for types.SimpleNamespace()

2014-08-06 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22123

[issue14534] Add method to mark unittest.TestCases as do not run.

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: abstractTestClass/abstractBaseClass were up next in the list of names that I was considering, but they are not too explicit about the fact the the test case will get ignored/skipped (especially if one is not familiar iwth the concept and behavior of abstract

[issue22092] Executing some tests inside Lib/unittest/test individually throws Error

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: michael.foord - ezio.melotti resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 2.7 ___ Python tracker rep

[issue19217] Calling assertEquals for moderately long list takes too long

2014-08-06 Thread Ezio Melotti
Ezio Melotti added the comment: Thanks Puneeth for the initial tests and Elena for expanding the fix and the tests to cover assertDictEqual too. I reworked a bit Elena's patch to make the checks in case.py more consistent and simplified the tests. With the attached patch, unittest_scse.py

[issue22143] rlcompleter.Completer has duplicate matches

2014-08-05 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti stage: - patch review type: - behavior versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22143

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Ezio Melotti
Ezio Melotti added the comment: After further investigation it seems to me that read can't raise NotImplementedError. ZipFile also won't raise it, but will raise a RuntimeError: zipfile.ZipFile('spam.zip', 'w', compression=zipfile.ZIP_BZIP2) RuntimeError: Compression requires the (missing

[issue22046] ZipFile.read() should mention that it might throw NotImplementedError

2014-08-05 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW #5701 has a test zipfile (I haven't tried it though). If I'm reading the code right, the compression method is specified and checked in the __init__, so we should know if the compression method was available long before we reach .read(). I will be happy

[issue22150] deprecated-removed directive is broken in Sphinx 1.2.2

2014-08-05 Thread Ezio Melotti
Ezio Melotti added the comment: Does this fix the extra margin visible in broken-deprecated-removed-2.png? Is there something in the HTML that causes the extra margin (e.g. an empty p/p? If that is the reason I think fixing the HTML is better. -- nosy: +ezio.melotti

[issue15826] Increased test coverage of test_glob.py

2014-08-04 Thread Ezio Melotti
Ezio Melotti added the comment: OK, I'll close the issue then. Alessandro, thanks anyway for the patch! -- resolution: - out of date stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http

[issue18588] timeit examples should be consistent

2014-08-04 Thread Ezio Melotti
Ezio Melotti added the comment: Examples updated, thanks for the report! -- resolution: - fixed stage: - resolved status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18588

[issue20402] List comprehensions should be noted in for loop documentation

2014-08-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: needs patch - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20402

[issue21987] TarFile.getmember on directory requires trailing slash iff over 100 chars

2014-08-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21987

[issue20977] pyflakes: undefined ctype in 2 except blocks in the email module

2014-08-04 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- nosy: +ezio.melotti resolution: - fixed stage: needs patch - resolved status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue1011113] Make “install” find the build_base directory

2014-08-04 Thread Ezio Melotti
Ezio Melotti added the comment: Éric, can this be closed then? -- nosy: +ezio.melotti status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue103

<    1   2   3   4   5   6   7   8   9   10   >