[issue29377] Add the 'wrapper_descriptor' type to the types module

2017-03-31 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +823 ___ Python tracker <http://bugs.python.org/issue29377> ___ ___ Python-bugs-list mailing list Unsub

[issue29963] Remove obsolete declaration PyTokenizer_RestoreEncoding in tokenizer.h

2017-04-02 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Couldn't trace exactly when it was removed from tokenizer.c but the corresponding declaration in the header file survived. I'm not sure how to tag this small clean-up. -- messages: 291033 nosy: Jim Fasarakis-Hilliard priori

[issue29963] Remove obsolete declaration PyTokenizer_RestoreEncoding in tokenizer.h

2017-04-02 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1141 ___ Python tracker <http://bugs.python.org/issue29963> ___ ___ Python-bugs-list mailing list Unsub

[issue29966] typing.get_type_hints doesn't really work for classes with ForwardRefs

2017-04-03 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- components: +Library (Lib) type: -> behavior ___ Python tracker <http://bugs.python.org/issue29966> ___ ___ Python-

[issue29968] Document that no characters are allowed to proceed \ in explicit line joining

2017-04-03 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: After looking through the code, the tokenizer only allows a new line character to proceed `\` in explicit line joining [1]. The Devguide section on it [2] actually states many of the limitations of using `\` but not directly that nothing is allowed

[issue29968] Document that no characters are allowed to proceed \ in explicit line joining

2017-04-03 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Alternatively, stripping all white-space that proceed `\` could be considered if it seems like a good idea. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29968] Document that no characters are allowed to proceed \ in explicit line joining

2017-04-04 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Ah, yes, the Ref. Manual, not the devguide, silly mistake. It definitely isn't a documentation bug (the documentation doesn't state something wrong) as much as I think it might be a slight omission. I really wasn't aware of how strict t

[issue29968] Document that no characters are allowed to proceed \ in explicit line joining

2017-04-04 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Gotcha, thanks for the input, David. I'll leave it to you to decide if the sentence on the trailing comments warrants removal. -- resolution: -> rejected stage: -> resolved status: ope

[issue13290] get vars for object with __slots__

2017-04-04 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue13290> ___ ___ Python-bugs-list mailin

[issue29905] TypeErrors not formatting values correctly

2017-04-04 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: As per #issue25002 and, specifically #msg250151, the TypeError in `asynchat` should probably not be included, I'll just make a PR for the TypeError in asyncio/proactor_events -- ___ Python tracker

[issue28681] About function renaming in the tutorial

2017-04-04 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue28681> ___ ___ Python-bugs-list mailin

[issue7659] Attribute assignment on object() instances raises wrong exception

2017-04-04 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I don't think a change is actually needed here (bumping to decide the fate of this issue) -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/i

[issue29905] TypeErrors not formatting values correctly

2017-04-04 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1166 ___ Python tracker <http://bugs.python.org/issue29905> ___ ___ Python-bugs-list mailing list Unsub

[issue29944] Argumentless super() fails in classes constructed with type()

2017-04-08 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue29944> ___ ___ Python-bugs-list mailin

[issue29963] Remove obsolete declaration PyTokenizer_RestoreEncoding in tokenizer.h

2017-04-08 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue29957] unnecessary LBYL for key contained in defaultdict, lib2to3/btm_matcher

2017-04-08 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: bump to close issue now that PR was merged -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue29

[issue30076] Opcode names BUILD_MAP_UNPACK_WITH_CALL and BUILD_TUPLE_UNPACK_WITH_CALL are too long

2017-04-17 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30076> ___ ___ Python-bugs-list mailin

[issue29950] Rename SlotWrapperType to WrapperDescriptorType

2017-04-18 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1299 ___ Python tracker <http://bugs.python.org/issue29950> ___ ___ Python-bugs-list mailing list Unsub

[issue29950] Rename SlotWrapperType to WrapperDescriptorType

2017-04-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Dong-hee, I apologize. I had made a silly mistake in the title of my PR and, as such, it didn't appear here on bpo. Thanks for the PR, though! :-) -- ___ Python tracker <http://bugs.python.org/is

[issue30094] PDB enhancement

2017-04-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Dunno, if I wanted to see a nice formatted output of the internals I'd run `pp vars(obj)`. That, though, suffers a bit from the fact that `vars` is not the most known of the builtins. -- nosy: +Jim Fasarakis-Hilliard versions: +Pytho

[issue30130] array.array is not an instance of collections.MutableSequence

2017-04-21 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks for the bug report, Alexander. This is related, if not a superseder, of: https://bugs.python.org/issue29727 -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30

[issue29950] Rename SlotWrapperType to WrapperDescriptorType

2017-04-21 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: This was added in python/typing just a couple of days ago, so I'm bumping to maybe get the PR to python/cpython merged too. -- ___ Python tracker <http://bugs.python.org/is

[issue30168] Class Logger is unindented in the documentation.

2017-04-26 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Currently, `Logger` in `logging.rst` doesn't have an indent after `.. class:: Logger`. This causes the formatting for the specific section to look somewhat unexpected [1]. I've already created a PR that indents the methods/attributes a

[issue30168] Class Logger is unindented in the documentation.

2017-04-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1402 ___ Python tracker <http://bugs.python.org/issue30168> ___ ___ Python-bugs-list mailing list Unsub

[issue30178] Indent methods and attributes of MimeTypes class

2017-04-26 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Similar to #30168 opened earlier. The MimeTypes class's methods and attributes aren't indented and the resulting documentation is not indented and duplicates the class name. Didn't find anything that might indicate this was intentio

[issue30178] Indent methods and attributes of MimeTypes class

2017-04-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1413 ___ Python tracker <http://bugs.python.org/issue30178> ___ ___ Python-bugs-list mailing list Unsub

[issue30196] Add __matmul__ to collections.Counter

2017-04-28 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30196> ___ ___ Python-bugs-list mailin

[issue30196] Add __matmul__ to collections.Counter

2017-04-28 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- versions: -Python 3.3, Python 3.4, Python 3.5, Python 3.6 ___ Python tracker <http://bugs.python.org/issue30196> ___ ___

[issue30230] Move quick test in PyObject_IsSubClass outside if PyType_CheckExact guard

2017-05-02 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Currently the first lines in PyObject_IsSubClass are: /* We know what type's __subclasscheck__ does. */ if (PyType_CheckExact(cls)) { /* Quick test for an exact match */ if (derived == cls) return 1; r

[issue30234] Remove duplicate checks in test_isinstance

2017-05-02 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: The test file duplicates some isinstance and issubclass checks due to the distinction of classes in Python 2. Proposed PR removes duplicate asserts. -- components: Tests messages: 292784 nosy: Jim Fasarakis-Hilliard priority: normal

[issue30234] Remove duplicate checks in test_isinstance

2017-05-02 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1500 ___ Python tracker <http://bugs.python.org/issue30234> ___ ___ Python-bugs-list mailing list Unsub

[issue30234] Remove duplicate checks in test_isinstance

2017-05-02 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.or

[issue12857] Expose called function on frame object

2017-05-04 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue12857> ___ ___ Python-bugs-list mailin

[issue30230] Move quick test in PyObject_IsSubClass outside of PyType_CheckExact guard

2017-05-08 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Additional question, are tests required to check this behavior? (Also, bumping) -- ___ Python tracker <http://bugs.python.org/issue30

[issue30335] Document deprecated alias of assertNotRegex

2017-05-10 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: The assertNotRegexpMatches name was deprecated in 3.2 in favor of assertNotRegex [1]. This is currently not documented in unittest.rst. [1]: https://github.com/python/cpython/commit/ed3a7d2d601ce1e65b0bacf24676440631158ec8 -- components

[issue30335] Document deprecated alias of assertNotRegex

2017-05-10 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1635 ___ Python tracker <http://bugs.python.org/issue30335> ___ ___ Python-bugs-list mailing list Unsub

[issue9850] obsolete macpath module dangerously broken and should be removed

2017-05-10 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Bump, any update on what to do with this issue? -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue9

[issue30230] Move quick test in PyObject_IsSubClass outside of PyType_CheckExact guard

2017-05-10 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: > he said, "I'm not sure if this was placed inside there due to some wild > edge-case," As a new contributor, I'll always lean on the side of me not seeing something rather than confidently stating that something is defin

[issue30178] Indent methods and attributes of MimeTypes class

2017-05-13 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: bump -- ___ Python tracker <http://bugs.python.org/issue30178> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue29950] Rename SlotWrapperType to WrapperDescriptorType

2017-05-13 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- stage: -> resolved status: open -> closed ___ Python tracker <http://bugs.python.org/issue29950> ___ ___ Python-bugs-

[issue9850] obsolete macpath module dangerously broken and should be removed

2017-05-15 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Great! Also, as Mariatta mentioned in a previous message, shouldn't an entry in PEP-4 be made? -- ___ Python tracker <http://bugs.python.org/i

[issue30416] constant folding opens compiler to quadratic time hashing

2017-05-21 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30416> ___ ___ Python-bugs-list mailin

[issue26219] implement per-opcode cache in ceval

2017-05-25 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue26219> ___ ___ Python-bugs-list mailin

[issue26280] ceval: Optimize list[int] (subscript) operation similarly to CPython 2.7

2017-05-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue26280> ___ ___ Python-bugs-list mailin

[issue30486] Allow setting cell value

2017-05-26 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30486> ___ ___ Python-bugs-list mailin

[issue13349] Non-informative error message in index() and remove() functions

2017-05-28 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks, I understand why this isn't the best idea now. > shouldn't we change error messages that contains the repr of not found value? That is what I was thinking too, apart from removing the repr from other messages it will also unify

[issue30506] Replace 'list' with 'array' in array.remove and array.index

2017-05-29 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Changes the error message for array.remove and array.index to say 'array.(x): x not in array' instead of 'array.(x): x not in list'. This is a splinter issue of issue13349. -- components: Library (Lib) messages: 294689

[issue30506] Replace 'list' with 'array' in array.remove and array.index

2017-05-29 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- pull_requests: +1938 ___ Python tracker <http://bugs.python.org/issue30506> ___ ___ Python-bugs-list mailing list Unsub

[issue30507] Elements reports it is a list on Element.remove

2017-05-29 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Another splinter issue from issue13349. Currently, Element reports it's a list when remove is called on it: from xml.etree.ElementTree import Element Element('').remove(Element('')) ValueError: list.remove(x):

[issue30507] Elements reports it is a list on Element.remove

2017-05-29 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +eli.bendersky, scoder ___ Python tracker <http://bugs.python.org/issue30507> ___ ___ Python-bugs-list mailin

[issue26098] PEP 510: Specialize functions with guards

2017-05-29 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue26098> ___ ___ Python-bugs-list mailin

[issue30507] Elements reports it is a list on Element.remove

2017-05-31 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks for the feedback, Raymond. I'll try to shift my focus on more pressing issues. (Closing as rejected) -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python

[issue30570] issubclass segfaults on objects with weird __getattr__

2017-06-09 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30570> ___ ___ Python-bugs-list mailin

[issue30600] Error message incorrect when index is called with keyword argument ("[].index(x=2)")

2017-06-09 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- nosy: +Jim Fasarakis-Hilliard ___ Python tracker <http://bugs.python.org/issue30600> ___ ___ Python-bugs-list mailin

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-15 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: See issue<9232> that changed the docs on function definitions. These changes aren't reflected in the 3.5 documentation though, you'll find them in the 3.6 docs. The linked grammar is probably missing an opening parentheses from what

[issue28979] What's New entry on compact dict mentions "faster" implementation

2016-12-15 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Specifically, the entry reads: "The dict type has been reimplemented to use a faster, more compact representation similar to the PyPy dict implementation." Through, the text describing the new implementation doesn't mention anythin

[issue28987] Remove typo in whats new entry on Descriptor Protocol Enhancements

2016-12-16 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Attached patch removes small typo ('has') from text: extends the descriptor protocol has to include the new optional -- assignee: docs@python components: Documentation files: whatsnew_typo.patch keywords: patch messages: 283401

[issue29002] typing.AnyStr doc is unclear about python2 unicode support

2016-12-17 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: The ``typing`` module doesn't exist in Python 2.7. All code samples provided in the docs *work* since no type-checking is performed by Python. That is, no enforcing of the types provided is made, that's for 3rd party packages

[issue29002] typing.AnyStr doc is unclear about python2 unicode support

2016-12-17 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Unless of course you mean pip installing typing for Py2 and then using ``# type`` comments to provide the types. Even in that case, I don't really think the documentation for Python 3.5 should be mentioning types in 2.7, that'd get

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Seems right to me, this is also stated clearly in the reference manual: > When an instance method object is called, the underlying function (__func__) > is called, inserting the class instance (__self__) in front of the argument > list. For

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I see. I'd agree that `instance object` is probably better here. Let's see what others think. -- ___ Python tracker <http://bugs.python.o

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I've added a little patch that takes care of this. I didn't add "method's instance object" in the second substitution because it seems evident by the previous sentences. -- keywords: +patch Added file: http://

[issue29005] Possibly incorrect description about method objects

2016-12-18 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Agreed, attached amended patch -- Added file: http://bugs.python.org/file45957/method_obj35_2.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29012] __bases__ is a tuple (possibly empty or a singleton)

2016-12-19 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: The following statement is in the Language Reference for Custom classes: > __bases__ is a tuple (possibly empty or a singleton) containing the base > classes AFAIK, ``object.__bases__`` is the only object for which ``__bases__`` is empty

[issue29046] Coverage related documentation missing

2016-12-22 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: The ``-j`` arguments isn't present for coverage from what I know. What you can do is build coverage's C extension. That results in a pretty significant change in overall execution time. For information about coverage.py you should also l

[issue29046] Coverage related documentation missing

2016-12-22 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I suggest this issue be closed as it isn't really an omission, I don't think we should expect the devguide to document *all* of coverage's options. That's what its dedicated docs are for. -- __

[issue29104] Left bracket remains in format string result when '\' preceeds it

2016-12-29 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: In short: >>> f"\{10}" yields: "\\{10" This is reproducible only when `\` precedes the opening bracket, that is: >>> f"\ {10}" results in: "\\ 10" ------ components: Inte

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-29 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Attached patche for Python 3.3 (change `defparameter` to use `+`). -- keywords: +patch Added file: http://bugs.python.org/file46076/3.3_func_def.patch ___ Python tracker <http://bugs.python.org/issue28

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-29 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Further patch for `3.4` and `3.5`: Change `|` to `(` and fix `defparameter` to use `+` -- Added file: http://bugs.python.org/file46077/3.4_3.5_func_def.patch ___ Python tracker <http://bugs.python.

[issue28978] a redundant right parentheses in the EBNF rules of parameter_list

2016-12-29 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Further patch for 3.6 and 3.7 to address `defparameter` change here too. -- Added file: http://bugs.python.org/file46078/3.6_3.7_func_def.patch ___ Python tracker <http://bugs.python.org/issue28

[issue29104] Left bracket remains in format string result when '\' preceeds it

2016-12-29 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I see, the original "complaint" about this behavior on stack overflow was made due to the discrepancy between the f-string the the format "equivalent": '\{}'.format(10)'. -- __

[issue29104] Left bracket remains in format string result when '\' preceeds it

2016-12-29 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Yes, should've attached in my previous message. See http://stackoverflow.com/questions/41330097/why-does-the-symbol-remain-when-f-10-is-evaluated-in-python-3-6 -- ___ Python tracker <http://bugs.py

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2016-12-30 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Specifically, bytes (always, from what I could find) had this error message: >>> b'' + '' TypeError: can't concat bytes to str while str, after a change in issue26057, was made to: >>> '&#x

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2016-12-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Should that message be the one predominantly used for sequences, i.e: TypeError: can only concatenate class1 (not "class2") to class1 or should another one be used like "Unsupported operand type(s) for op: 'class1' an

[issue29012] __bases__ is a tuple (possibly empty or a singleton)

2017-01-02 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Yes, I agree with that it seems redundant after the change. I'm attaching another small patch based on the committed one to trim that off. -- Added file: http://bugs.python.org/file46117/fixbasesdoc2.

[issue29160] pow with three int arguments works like it had two arguments

2017-01-04 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- components: +Interpreter Core -Distutils title: `pow` with three int arguments works like it had two arguments -> pow with three int arguments works like it had two arguments ___ Python tracker &l

[issue29223] Settable defaulting to decimal instead of float

2017-01-10 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: This issue (and your other issue29223) would probably be a better for the python-ideas mailing list rather than the bug tracker. See the FAQ in the Developer Guide for Python https://docs.python.org/devguide/faq.html#suggesting-changes Both issues

[issue29226] encoding comment generates a SyntaxError

2017-01-10 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: If you use an encoding declaration the encoding must be recognized by Python. This is clearly stated in the documentation: https://docs.python.org/3/reference/lexical_analysis.html#encoding-declarations -- nosy: +Jim Fasarakis-Hilliard title

[issue29239] Fix wrong issue number in what's new entry

2017-01-11 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- assignee: docs@python components: Documentation files: fix_issue.patch keywords: patch nosy: Jim Fasarakis-Hilliard, docs@python priority: normal severity: normal status: open title: Fix wrong issue number in what's new entry versions: Pytho

[issue29116] Make str and bytes error messages on concatenation conform with other sequences

2017-01-11 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: As I currently see this: - The error message for str can be changed to the one used for other sequences 'can only concatenate str (not "type") to str' - The error message for arrays can be changed to use concatenate instead o

[issue29246] typing.Union raises RecursionError when comparing Union to other type

2017-01-11 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- type: crash -> behavior versions: -Python 2.7, Python 3.3, Python 3.4 ___ Python tracker <http://bugs.python.org/issu

[issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py

2017-01-23 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: There's a hidden Python 2 print call in the script that only gets reached after you move the Doc/ folder outside the main CPython directory and run `make html`. Additionally, an obsolete way of assuring a file gets closed is used (changed t

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I'm not exactly sure what you mean but, since this isn't a bug per se and is more of a subjective opinion on how the REPL should handle the indentation level, you should probably ask *first* on python-ideas to get input from other members.

[issue29339] Interactive: Move to same indentation level as previous line

2017-01-23 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Thanks for the standard explanation, Brett. I was just following the devguide too strictly and assumed python-ideas is the first place one should go :-). As for the idea, it seems others wish/wished it too (first paragraph: https://docs.python.org/3

[issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py

2017-01-24 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I'm breaking these to separate files to make it easier to apply. I also noticed that other files in `Doc/tools/extensions/` use old constructs so I'm not sure about the *with*. I'm guessing that either it should be changed in other file

[issue29349] Update old Python 2 code in Docs/tools/extensions/patchlevel.py

2017-01-24 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : Added file: http://bugs.python.org/file46406/patchlevel_with.patch ___ Python tracker <http://bugs.python.org/issue29349> ___ ___ Pytho

[issue29371] Typo in doctest documentation

2017-01-25 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: >From what I understand, "or'ed" here stands for combining the options using >`|` >(https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations). You can see an example of that in the source for `doctest.py

[issue29381] Tutorial documentation contains undefined reference

2017-01-27 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: After moving a certain chunk of the 'interpreter.rst' contents to 'appendix.rst' in issue16827 the reference to #! in the section '2.2.3. Source Code Encoding' is currently confusing for new readers. Attached patches

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-27 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- title: Tutorial documentation contains undefined reference -> Tutorial documentation contains undefined reference to #! Added file: http://bugs.python.org/file46439/interpreter_tut2.7.patch ___ Python trac

[issue29371] Typo in doctest documentation

2017-01-27 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: I think it is fine as it is but, agree that it could be clearer. I'm simply not experienced enough to know if this change is warranted. The docs generally do a great job in being concise (balancing brevity and completeness). A core-dev would be

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-28 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Hi, Raymond. Is Mariatta responsible for reviewing Documentation submissions? If so, should I nosy Mariatta in any future documentation issues? -- ___ Python tracker <http://bugs.python.org/issue29

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-28 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Indeed, this does create an issue. The last sentence in the documentation actually specifies where the encoding comment can be but doesn't strictly specify it can be on the second line if and only if preceded by `#!`. I'm thinking the las

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: What change do you have in mind for introducing these? As for my personal opinion, dunno about this. I understand your concerns but dropping more terminology to a new learner early on wouldn't be the best idea in my view. >From what I

[issue29390] Python Tutorial should introduce iterators and generators

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Typo, is *now* becoming :-) -- ___ Python tracker <http://bugs.python.org/issue29390> ___ ___ Python-bugs-list mailin

[issue29381] Tutorial documentation contains undefined reference to #!

2017-01-30 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Added a comment too. Other than that and the comment by Marco it looks fine to me too. -- ___ Python tracker <http://bugs.python.org/issue29

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2017-02-01 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: The current line is confusing hinting that the for statement is actually an object, it also makes a reference to iterators which the tutorial doesn't disambiguate until the chapter on Classes. I've added a small patch that, in my opinion

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2017-02-01 Thread Jim Fasarakis-Hilliard
Changes by Jim Fasarakis-Hilliard : -- keywords: +patch Added file: http://bugs.python.org/file46482/issue29414.patch ___ Python tracker <http://bugs.python.org/issue29

[issue29414] Change 'the for statement is such an iterator' in Tutorial

2017-02-04 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Agreed. The issue I see with the additional suggestions by you and Marco (p.s the English was perfect!) is the introduction of other functions and/or objects that haven't been introduced yet. If you want to draw parallels with tuples, you'

[issue29453] Remove reference to undefined dictionary ordering in Tutorial

2017-02-05 Thread Jim Fasarakis-Hilliard
New submission from Jim Fasarakis-Hilliard: Removes `keys = sorted(keywords.keys())` from function example and removes the text that describes why this was necessary. As per PEP 468, this note is obsolete for 3.6+ Also changes the ordering of the function call to match the previous output

[issue29453] Remove reference to undefined dictionary ordering in Tutorial

2017-02-05 Thread Jim Fasarakis-Hilliard
Jim Fasarakis-Hilliard added the comment: Isn't it a language requirement that `**kwargs` be ordered in 3.6, David? PEP 468 states that `**kwargs` is to be an ordered *mapping* and, if I'm not mistaken, that was done in order to not depend on the fact that dicts became ordered. I

<    2   3   4   5   6   7   8   >