[issue18352] collections.Counter with added attributes are not deepcopied properly.
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18352] collections.Counter with added attributes are not deepcopied properly.
Raymond Hettinger added the comment: I don't want the current behavior to change. The copy() method does not guarantee that it will copy added attributes. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13871] namedtuple does not normalize field names when checking for duplicates
Raymond Hettinger added the comment: Closing this for the reasons listed above. -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13871 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13004] pprint: add option to truncate sequences
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13004 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7434] general pprint rewrite
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13396] new method random.getrandbytes()
Raymond Hettinger added the comment: Closing for the reasons listed above. -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13396 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12740] Add struct.Struct.nmemb
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12740 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12916] Add inspect.splitdoc
Raymond Hettinger added the comment: Unassigning. I don't recall what I intended to do to further this along. -- assignee: rhettinger - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12916 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18365] Idle: mock Text class and test thereof
Terry J. Reedy added the comment: A little more polishing and the tests pass again. I think I am done with the implemented methods. Before I commit, I want to review the set of 'pass' functions. It seems a bit haphazard. I think display changing methods like .see are fine.I am not sure about including internal operation methods like .mark_set (until actually needed). -- Added file: http://bugs.python.org/file30899/mock_text6.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18415] Normalize single/double quote usage in importlib
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: commit review - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12165] Nonlocal does not include global; clarify doc
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: rhettinger - versions: +Python 3.4 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12165 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18432] sched modules queue property should return a list, not an iterator
New submission from Raymond Hettinger: In Python 2, the queue attribute was a list and it is still documented that way in Python 3: http://docs.python.org/3/library/sched.html#sched.scheduler.queue This appears to be a mistake made during the 2-to-3 conversion. -- components: Library (Lib) files: sched.diff keywords: patch messages: 192927 nosy: rhettinger priority: normal severity: normal stage: patch review status: open title: sched modules queue property should return a list, not an iterator type: behavior versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30900/sched.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11822] Improve disassembly to show embedded code objects
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- stage: - needs patch versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17642] IDLE add font resizing hot keys
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - roger.serwy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17642 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11012] Add log1p(), exp1m(), gamma(), and lgamma() to cmath
Raymond Hettinger added the comment: Closed due to lack of interest. -- resolution: - postponed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11012 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17172] Add turtledemo to IDLE menu
Raymond Hettinger added the comment: Ezio, would you like to take it from here? -- assignee: - ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17172 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13404] Add support for system.methodSignature() to XMLRPC Server
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13404 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11698] Improve repr for structseq objects to show named, but unindexed fields
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18365] Idle: mock Text class and test thereof
Terry J. Reedy added the comment: I want to commit this patch more or less as is so we can move forward with the tests that do not need anything more. We can then elaborate mock Text as needed and desired. Looking at http://effbot.org/tkinterbook/text.htm, for instance, I see that 'lineend' is an expression modifier in that same category as +/- chars/lines. So _decode should not really handle it until it handles such modifiers more generally. As near as I could tell from experiment, 'm.n lineend' is the same as 'm.end', so the former is never needed and could be changed to the latter in Idle code. As far as you know, correct? The use for 'lineend' would seem to be after other modifiers, as in '1.0 +100c lineend', where the line whose end we go to is likely not line 1. Remember that for advanced Text use, we have the option of using tk.Text for a test, at least at first. The gain would be not having to reproduce baroque behavior*. The cost would be making the test a gui test and running on fewer buildbots. I felt that the basic mock done so far would be worth the time because a) it would be useful for many tests and b) I would learn the Text widget and how to experiment with it to determine its under-documented behavior. *For instance, having optional spaces within modifiers as well as using them to separate modifiers. Do you know if there is a coherent index grammar anywhere? Or is it only defined by the Text.index C code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18352] collections.Counter with added attributes are not deepcopied properly.
Serhiy Storchaka added the comment: What about pickling? OrderedDict.__reduce__() saves added attributes, but Counter.__reduce__() does not. One of them should be changed for consistency. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18432] sched modules queue property should return a list, not an iterator
Serhiy Storchaka added the comment: Perhaps it will be better document it as an iterator? In any case we can call list() to get a list. -- nosy: +giampaolo.rodola, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18418] Thread.isAlive() sometimes True after fork
Charles-François Natali added the comment: This is just a special-case of the more general problem of forking() in a multi-threaded program (see #16500 and #6721). Since fork() can occur at any time, even though your data structures are protected by locks, they can end up in an inconsistent state in the child process. There's nothing we can do about it, and it affects *every code that's not atomic*. For example, even though your patch fixes this specific issue, you can still end up with the thread both in _active and _limbo at the same time (which shouldn't be a problem since both are cleared after fork(), but still). OTOH, the patch is simple and safe, so it might be interesting (another maybe better approach would be to also iterate over _limbo in _after_fork()). As for the reproduction in 3.3, you're probably having trouble to reproduce it because of the GIL change. You might want to play with sys.setswitchinterval(). -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18418 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18365] Idle: mock Text class and test thereof
Phil Webster added the comment: Using tk.Text for more involved tests sounds good (at least as a start). The pass functions were used to get the FormatParagraph test (#18226) working. I've been using the same effbot.org site as a reference and haven't found anything more detailed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18415] Normalize single/double quote usage in importlib
Brett Cannon added the comment: Why the stage change? I set it to commit review on purpose as I already did a cursory check and it was fine. I have only have one more paranoid check before do the commit myself. I purposely didn't set patch review as I didn't want anyone wasting their time doing one as I'm going to do the one more and that's enough for committal. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18352] collections.Counter with added attributes are not deepcopied properly.
Olivier Gagnon added the comment: I can understand that the current behaviour can be correct in regard with the added attributes of the object. However, should I open a new issue for the following inheritance behaviour which the reduce function affects also. class myCounter(Counter): def __init__(self, bar, *args): self.foo = bar super().__init__(*args) class myDict(dict): def __init__(self, bar, *args): self.foo = bar super().__init__(*args) c = myCounter(bar) l = myDict(bar) print(c.foo) # prints bar print(l.foo) # prints bar cc = copy.copy(c) ll = copy.copy(l) print(cc.foo) # prints {} print(ll.foo) # prints bar -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18100] socket.sendall() cannot send buffers of 2GB or more
Anton Tyurin added the comment: According to man send: only sendmsg() if input length argument overflows a ssize_t on OS X. But truncating extradata in sendall() without exception is bad idea, because sendall() never returns count of successfully sent bytes. So we'll never know about incomplete data transmition. Is it good idea to test such buffer on Unix socket, for example? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18100 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18433] Clarify venv docs about which methods check for pre-existing paths
New submission from Brett Cannon: E.g. setup_python and create_directories both check that the paths they will create pre-exist, but the docs don't mention this. -- assignee: docs@python components: Documentation messages: 192938 nosy: brett.cannon, carljm, docs@python priority: normal severity: normal status: open title: Clarify venv docs about which methods check for pre-existing paths versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18434] Update venv example to use setuptools
New submission from Brett Cannon: Now that Distribute is just a shell for setuptools 0.8, the example in the venv docs for installing pip and setuptools in a venv should be updated to use setuptools (in case anyone uses that code as a script themselves). -- assignee: docs@python components: Documentation messages: 192939 nosy: brett.cannon, carljm, docs@python priority: normal severity: normal status: open title: Update venv example to use setuptools versions: Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13340] list.index does not accept None as start or stop
Changes by Aaron Meurer asmeu...@gmail.com: -- nosy: +Aaron.Meurer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18362] Make build_cpython.py from dev-in-a-box work outside of a box
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18362 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18362] Make build_cpython.py from dev-in-a-box work outside of a box
Brett Cannon added the comment: changeset fe1c35cbc9a0 -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18362 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18361] Move dev-in-a-box to os.cpu_count()
New submission from Brett Cannon: changeset 3446dee09265 -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18361 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ImportError in ceval.c
Changes by Brett Cannon br...@python.org: -- title: Use the repr of a module name for ModuleNotFoundError in ceval.c - Use the repr of a module name for ImportError in ceval.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18363] Change use of acronym tag in devinabox index.html to abbr
Brett Cannon added the comment: changeset fae104051a63 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18363 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18415] Normalize single/double quote usage in importlib
Roundup Robot added the comment: New changeset 33d379c2bb79 by Brett Cannon in branch 'default': Issue #18415: Normalize what type of quotes are used with string http://hg.python.org/cpython/rev/33d379c2bb79 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18415] Normalize single/double quote usage in importlib
Brett Cannon added the comment: Thanks for the path, Madison! I also cleaned up the instances using double quotes since it was because I was faking the use of a string's repr instead of explicitly using {!r}. -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18388] Link to the contributor agreement from devinabox
New submission from Brett Cannon: changeset 28294583a9c9 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18388 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17911] Extracting tracebacks does too much work
Changes by Björn Sandberg Lynch adaptivelo...@gmail.com: Added file: http://bugs.python.org/file30901/traceback2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ImportError in ceval.c
Roundup Robot added the comment: New changeset c3f9292c8efe by Brett Cannon in branch 'default': Issue #18342: Use the repr of a module name for ``from ... import http://hg.python.org/cpython/rev/c3f9292c8efe -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18342] Use the repr of a module name for ImportError in ceval.c
Brett Cannon added the comment: Patch is in (only moved the tests to a different class) and added Tomasz to the ACKS file. Thanks for the patch! -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17845] Clarify successful build message
Roundup Robot added the comment: New changeset e13ff9fdfaf9 by Brett Cannon in branch 'default': Issue #17845: Clarify the message setup.py prints upon successfully http://hg.python.org/cpython/rev/e13ff9fdfaf9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17845] Clarify successful build message
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17845 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18415] Normalize single/double quote usage in importlib
Madison May added the comment: No problem, Brett. Glad to hear you could get rid of those few last pesky double quotes. I'm partial to the single quotes as well. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18415 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18390] Better documenting of ``hg revert -r`` when merging with another branch
Changes by Brett Cannon br...@python.org: -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18390 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18390] Better documenting of ``hg revert -r`` when merging with another branch
Roundup Robot added the comment: New changeset 15249b189347 by Brett Cannon in branch 'default': Issue #18390: Add a little comment on how to do a proper file http://hg.python.org/devguide/rev/15249b189347 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18390 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17840] base64_codec uses assert for runtime validity checks
Alex Henderson added the comment: OK, now raises ValueError on passing anything other than 'strict'. Note that for the incremental classes I've put checking in __init__ so that ValueError is raised when non-'strict' values are passed to the constructor, not when the incremental encode/decode methods are subsequently called. -- Added file: http://bugs.python.org/file30902/issue17840.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17840 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18369] X509 cert class for ssl module
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18369 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18428] IDLE startup error
Mike added the comment: Thanks Ned, I have solved the issue by deleting all my previous py files on my computer. But I couldn't figure out what really triggered this error, as those files did not create any problems before. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18353] PyUnicode_WRITE_CHAR macro definition missing
Corey Brune added the comment: Hello all, I removed the reference to PyUnicode_WRITE_CHAR macro in unicode.rst. Thanks, Corey -- keywords: +patch nosy: +cbrune Added file: http://bugs.python.org/file30903/unicode.rst.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10984] argparse add_mutually_exclusive_group should accept existing arguments to register conflicts
paul j3 added the comment: While playing with some examples, I found that exclusive group formatting has another failure case. If the usage line is long enough to wrap, optionals and positionals are formatted separately, with positionals appearing on a separate line(s). That means that if a group includes a positional, it will not be marked. So (shortening lines for convenience sake), instead of: usage: [-h] ... (-a | -b | x) we get usage: [-h] ... [-a] [-b] x This is true even if arguments are added to the group in the normal way. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10984 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18435] Move venv from a custom Context class to types.SimpleNamespace
Changes by Brett Cannon br...@python.org: -- components: Library (Lib) nosy: brett.cannon, carljm, eric.snow priority: normal severity: normal stage: needs patch status: open title: Move venv from a custom Context class to types.SimpleNamespace versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18435] Move venv from a custom Context class to types.SimpleNamespace
New submission from Brett Cannon: The venv module has a Context class purely to hold attributes of data. This happens to be exactly what types.SimpleNamespace was created for, so it should probably replace Context. Luckily the class is not documented (nor what gets set on it for that matter) so swapping it out should be safe. -- keywords: +easy priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18435] Move venv from a custom Context class to types.SimpleNamespace
Changes by Brett Cannon br...@python.org: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18434] Update venv example to use setuptools
Changes by Brett Cannon br...@python.org: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18433] Clarify venv docs about which methods check for pre-existing paths
Changes by Brett Cannon br...@python.org: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18368 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18372] _Pickler_New() doesn't call PyObject_GC_Track(self)
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18372 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18305] [patch] Fast sum() for non-numbers
Sergey added the comment: This optimisation is a semantic change. It breaks backward compatibility in cases where a = a + b and a += b do not result in the name a having the same value. In particular this breaks backward compatibility for numpy users. I didn't knew that. Then I guess original fastsum.patch can't be used. Since this is not the first time when someone suggests to use __add__+__iadd__ in sum, I suggest to extend existing warning with your example so that future developers would not be tempted to follow the same approach. Patch fastsum-iadd_warning.patch attached and can be applied to 2.7.5, 3.3.2 and hg-tip. Apart from this patch there're still 3 options remaining (special case in sum() for some types; general interface for sequence-like types; individual optimisation for individual types), that are to be discussed yet. Example patch of special case for lists and tuples attached. -- Added file: http://bugs.python.org/file30904/fastsum-iadd_warning.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18305 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18428] IDLE startup error
Ned Deily added the comment: If deleting .py files solved the problem, you probably had created a .py file with the same name as a Python standard library module. If that file is in your Documents folder (if you are using /Applications/Python3.3/IDLE.app) or your current working directory (if you use /usr/local/bin/idle3.3), that directory is inserted first on Python's search path for modules and the files there will be found before the normal standard library version. For example, if you create a dummy text file named socket.py in Documents and then double-click on IDLE.app, you should see the same message that the subprocess didn't make a connection because the dummy socket.py shadows the standard library socket module. In any case, I'm glad that the problem is resolved for you. -- resolution: - works for me stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18428 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18373] implement sys.get/setbyteswarningflag()
STINNER Victor added the comment: When I added os.environb, I had issues with the ByteWarning, in os.get_exec_path() if I remember correctly. I had to play with warmings.catch_warning(). A thread variable would simplify the code. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18373 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails
Serhiy Storchaka added the comment: A similar issue: #14909. -- nosy: +kristjan.jonsson, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18368 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18373] implement sys.get/setbyteswarningflag()
Serhiy Storchaka added the comment: Read only access to bytes warning flag already implemented as sys.flags.bytes_warning. How new functions are related to it? And I concur with David. Why not just run your program with -b or -bb? Besides the testing purpose. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18373 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18433] Clarify venv docs about which methods check for pre-existing paths
Vinay Sajip added the comment: I noticed that create_directories is now ensure_directories in the code, but the docs don't reflect this. I've posted changes, do they cover your concerns or have I missed something? -- assignee: docs@python - vinay.sajip keywords: +patch stage: - patch review Added file: http://bugs.python.org/file30905/changes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18434] Update venv example to use setuptools
Roundup Robot added the comment: New changeset 1641a03dbe7b by Vinay Sajip in branch '3.3': Issue #18434: Updated example script in venv docs to use setuptools rather than Distribute. http://hg.python.org/cpython/rev/1641a03dbe7b New changeset 24a55f04a571 by Vinay Sajip in branch 'default': Closes #18434: Merged documentation update from 3.3. http://hg.python.org/cpython/rev/24a55f04a571 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18431] Encoded words in structured headers are not decoded by the new parser.
Roundup Robot added the comment: New changeset 1f3c57ac07ed by R David Murray in branch '3.3': #18431: Decode encoded words in atoms in new email parser. http://hg.python.org/cpython/rev/1f3c57ac07ed New changeset 0c161b360ffe by R David Murray in branch 'default': Merge: #18431: Decode encoded words in atoms in new email parser. http://hg.python.org/cpython/rev/0c161b360ffe -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18431] Encoded words in structured headers are not decoded by the new parser.
R. David Murray added the comment: Fixed. Thanks for the report, Tim. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18431 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18433] Clarify venv docs about which methods check for pre-existing paths
Brett Cannon added the comment: LGTM On Fri, Jul 12, 2013 at 3:42 PM, Vinay Sajip rep...@bugs.python.org wrote: Vinay Sajip added the comment: I noticed that create_directories is now ensure_directories in the code, but the docs don't reflect this. I've posted changes, do they cover your concerns or have I missed something? -- assignee: docs@python - vinay.sajip keywords: +patch stage: - patch review Added file: http://bugs.python.org/file30905/changes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18433 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18366] Look into using setuptools 0.8 with devinabox
Brett Cannon added the comment: So this actually works out very nicely. The basic steps are: 1. Download ez_setup.py for setuptools 2. Create a venv 3. Install coverage.py (build actually works as expected which was a pleasant surprise) 4. Run coverage.py with PYTHONPATH set to fullcoverage as if coverage.py was installed 5. Generate coverage report as normal 6. Delete the venv (since coverage/tracer.so will not be built for the user's binary and they will be on a different platform which means the venv won't be linked properly, etc.) 7. Wipe out the built files in the coverage.py checkout (or just blow out the clone and re-clone) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18435] Move venv from a custom Context class to types.SimpleNamespace
Roundup Robot added the comment: New changeset fc340fcd43d2 by Vinay Sajip in branch '3.3': Issue #18435: Replaced simple attribute container class Context with types.SimpleNamespace. http://hg.python.org/cpython/rev/fc340fcd43d2 New changeset 113bfefbe5c5 by Vinay Sajip in branch 'default': Closes #18435: Merged fix from 3.3. http://hg.python.org/cpython/rev/113bfefbe5c5 -- nosy: +python-dev resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18435 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18368] PyOS_StdioReadline() leaks memory when realloc() fails
Kristján Valur Jónsson added the comment: Is it sufficient to check incr INT_MAX to guard against overflow? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18368 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18436] Add mapping of symbol to function to operator module
New submission from Zachary Ware: In a thread on python-ideas[1], Nick mentioned the idea of ``operator.by_symbol['+=']`` which would be an alternative method of getting the operator.iadd function. The idea struck my fancy, so I implemented it (regardless of the very real possibility of being rejected anyway, judging by the current split vote in the thread :)). I also implemented Brett's suggestion of supporting '.attribute' and '[item]' as well. Here's the (still a bit rough) patch. [1] http://mail.python.org/pipermail/python-ideas/2013-July/022078.html -- components: Library (Lib) files: operator-symbol-map.diff keywords: patch messages: 192970 nosy: barry, belopolsky, brett.cannon, ncoghlan, serhiy.storchaka, zach.ware priority: normal severity: normal status: open title: Add mapping of symbol to function to operator module type: enhancement versions: Python 3.4 Added file: http://bugs.python.org/file30906/operator-symbol-map.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18434] Update venv example to use setuptools
Roundup Robot added the comment: New changeset f8c3d05994e4 by Vinay Sajip in branch '3.3': Issue #18434: Updated example script to tidy up resources. http://hg.python.org/cpython/rev/f8c3d05994e4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18434 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18433] Clarify venv docs about which methods check for pre-existing paths
Roundup Robot added the comment: New changeset 0ca31c07e85e by Vinay Sajip in branch '3.3': Issue #18433: Clarified venv documentation. http://hg.python.org/cpython/rev/0ca31c07e85e New changeset d292635314c9 by Vinay Sajip in branch 'default': Closes #18433: Merged documentation update from 3.3. http://hg.python.org/cpython/rev/d292635314c9 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18433 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18430] gzip, bz2, lzma: peek advances file position of existing file object
R. David Murray added the comment: I don't think the comment about save and restore of the file position adds enough value to be worth the possible confusion (do I only need to save and restore around peek? Why?) I think the sentence should read, ex, Calling a :class:`LZMAFile` object's :meth:`peek` method does not advance its access position, but the access position of the underlying :term:`file object` may be affected. Note that I have no objection to making the two sync up, if it is in fact possible. But if Serhiy says it can't be, I expect he's right. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18436] Add mapping of symbol to function to operator module
Éric Araujo added the comment: Added some comments on Rietveld. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18436 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18112] PEP 442 implementation
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file30907/f5ddbd98c2bf.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18112] PEP 442 implementation
Antoine Pitrou added the comment: Updated patch (again). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18374] ast.parse gives wrong position (col_offset) for some BinOp-s
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18374 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18389] document that os.path.relpath does not interrogate the file system
Roundup Robot added the comment: New changeset 70837970c5d8 by R David Murray in branch '3.3': #18389: Clarify that relpath does not access the file system. http://hg.python.org/cpython/rev/70837970c5d8 New changeset 7de05609e390 by R David Murray in branch 'default': #18389: Clarify that relpath does not access the file system. http://hg.python.org/cpython/rev/7de05609e390 New changeset 1345d8dbcb19 by R David Murray in branch '2.7': #18389: Clarify that relpath does not access the file system. http://hg.python.org/cpython/rev/1345d8dbcb19 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18375] python -m test --randseed 1234 does not randomize tests
Terry J. Reedy added the comment: I know that there is no proper regrtest doc to update, but is there a docstring somewhere in the manual? Or should this be closed? -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18375 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18376] show the effective count of process when running the testsuite
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18376 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18389] document that os.path.relpath does not interrogate the file system
R. David Murray added the comment: Thanks, Madison. I tweaked the wording slightly, but the essence is the same :). -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18430] gzip, bz2, lzma: peek advances file position of existing file object
Serhiy Storchaka added the comment: A file can be non-seekable (pipe, socket) and we can't unread unused data back. We can't implement GzipFile.peek() in terms of underlied file's peek() because peek() doesn't guaranteed return more than one byte, but it should return at least one byte if the file is not ended. We can't detect the end of compressed data without reading some data past the end of compressed data. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18383] test_warnings modifies warnings.filters when running with -W default
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18383 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18389] document that os.path.relpath does not interrogate the file system
Madison May added the comment: Thanks, David. I like your changes -- sounds a lot cleaner and more explicit. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18389 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18112] PEP 442 implementation
Benjamin Peterson added the comment: Sorry for taking forever. I got half-way through version 1, but now I suppose I'm terribly behind the latest and greatest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18112 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18365] Idle: mock Text class and test thereof
Roundup Robot added the comment: New changeset 5ac2ec0a34a5 by Terry Jan Reedy in branch '2.7': Issue #18365: Add mock Text class and test thereof versus tk.Text. http://hg.python.org/cpython/rev/5ac2ec0a34a5 New changeset 8f13fb4c5826 by Terry Jan Reedy in branch '3.3': Issue #18365: Add mock Text class and test thereof versus tk.Text. http://hg.python.org/cpython/rev/8f13fb4c5826 New changeset 5611d3a954f8 by Terry Jan Reedy in branch '3.3': Issue #18365: normalize whitespace http://hg.python.org/cpython/rev/5611d3a954f8 New changeset 86cc1983a94d by Terry Jan Reedy in branch '2.7': Issue #18365: normalize whitespace http://hg.python.org/cpython/rev/86cc1983a94d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18365] Idle: mock Text class and test thereof
Terry J. Reedy added the comment: I documented and left most of the 'pass' methods. The bind method is inherited from Misc class and is not specifically a Text method, but I will leave it here for now. These def undo_block_start(self, *args): pass def undo_block_stop(self, *args): pass are not Text methods, so I removed them. We can discuss what you intended as part of the FormatParagraph issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2292] Missing *-unpacking generalizations
Joshua Landau added the comment: http://www.python.org/dev/peps/pep-0448/ is out; see what you think. See http://mail.python.org/pipermail/python-ideas/2013-July/021872.html for all the juicy discussion so far. -- nosy: +Joshua.Landau ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18429] IDLE: Format Paragraph doesn't function with comment blocks
Terry J. Reedy added the comment: I expect to find things like this while writing tests. A small fix can be part of the test file commit, like I did with configSectionNameDialog and its test. In any case, where is the test that fails without the patch and passes with it? It should be part of this patch, whether it is included with the test patch or kept separate. -- stage: - test needed versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18429 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18410] IDLE Improvements: Unit test for SearchDialog.py
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18432] sched modules queue property should return a list, not an iterator
Raymond Hettinger added the comment: It's pretty weird to use a property for an iterator. It we really wanted iteration, the appropriate method would be __iter__. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18432 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18409] IDLE Improvements: Unit test for AutoComplete.py
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18409 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18365] Idle: mock Text class and test thereof
R. David Murray added the comment: Looks like this is causing buildbot failures: http://buildbot.python.org/all/builders/x86%20RHEL%206%203.x/builds/2330/steps/test/logs/stdio http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/6094/steps/test/logs/stdio -- nosy: +r.david.murray stage: commit review - needs patch status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18365 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18430] gzip, bz2, lzma: peek advances file position of existing file object
Nick Bargnesi added the comment: I'd suggest sticking with file position instead of switching to access position. E.g., the complete lzma wording would be: Return buffered data without advancing the file position. At least one byte of data will be returned, unless EOF has been reached. The exact number of bytes returned is unspecified (the *size* argument is ignored). Although calling a :class:`LZMAFile` object's :meth:`peek` method does not advance its file position, the file position of the underlying :term:`file object` may be affected. The point about mentioning save and restore notwithstanding, *any* documentation about the effect on position change is a step in the right direction. If the file position not changing is the better scenario, having the side effect documented is at least good. We can save people's time by being explicit about the side effect _and_ maintain code readability. Imagine hunting for a bug manifesting itself as a change in file position only to find out a peek() call was the cause. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18430] gzip, bz2, lzma: peek advances file position of existing file object
R. David Murray added the comment: I chose 'access position' because that's the terminology used in the 'seek' man page. 'file position' sounds odd to me, but since that is the term already used it does make sense to be consistent. -- assignee: - docs@python components: +Documentation -Library (Lib) nosy: +docs@python stage: - needs patch versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18430 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18437] Typo in comment inside class Charset about output_charset
New submission from Vajrasky Kok: Python 3.4, line 197: output_charset: Some character sets must be converted before the can be It is supposed to be: output_charset: Some character sets must be converted before they can be -- assignee: docs@python components: Documentation files: fix_typo_charset.txt messages: 192990 nosy: docs@python, r.david.murray, vajrasky priority: normal severity: normal status: open title: Typo in comment inside class Charset about output_charset versions: Python 3.4 Added file: http://bugs.python.org/file30908/fix_typo_charset.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18437 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18437] Typo in comment inside class Charset about output_charset
Roundup Robot added the comment: New changeset f91e6d0eb0f7 by R David Murray in branch '3.3': #18437: fix comment typo. http://hg.python.org/cpython/rev/f91e6d0eb0f7 New changeset da7d97ca1ef6 by R David Murray in branch 'default': Merge: #18437: fix comment typo. http://hg.python.org/cpython/rev/da7d97ca1ef6 New changeset 868010ed641c by R David Murray in branch '2.7': #18437: fix comment typo. http://hg.python.org/cpython/rev/868010ed641c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18437 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18437] Typo in comment inside class Charset about output_charset
R. David Murray added the comment: Thanks. Fixed. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18437 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18279] IDLE Unit test for RstripExtension.py
Terry J. Reedy added the comment: Phil (and everyone else): PLEASE submit patches with 4 space indents and no tabs and no trailing spaces. Even if the code below runs in the CPython interpreter, self.undo = mockUndoDelegator() 8 spaces 4 spaces def get_selection_indices(self): 4 spaces first = self.text.index('1.0') 4 spaces, 1 tab class mockUndoDelegator: def undo_block_start(*args): 1 tab pass 2 tabs the CPython repository whitespace pre-commit will say this: remote: - file Lib/idlelib/idle_test/test_text.py is not whitespace-normalized in 979905090779 remote: * Run Tools/scripts/reindent.py on .py files or Tools/scripts /reindent-rst.py on .rst files listed above remote: * and commit that change before pushing to this repo. remote: transaction abort! remote: rollback completed as happened with the mock_tk/test_text patch. I already fixed this file, but next time... About no trailing whitespace: that is not an option when committing, so I will change the string literal to use explicit \n and implicit catenation, as in 'ab \n' 'cd\n' == 'ab \ncd\n'. This will make the trailing ws visible anyway. The way to not get the tk=added \n is to use 'insert' rather than 'end', as inself.text.get('1.0','insert'). 'Insert' is the end of user input, before the guard. Will commit patch soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18279 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com