[issue23978] ttk.Style.element_create using incorrect tk.call syntax

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: This looks like it should be an easy for for someone who understands tcl.call syntax. When we add ttk to Idle, I do not expect to use element_create, but maybe someone will want to to create a custom theme. -- nosy: +markroseman -gpolo versions:

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Gustavo J. A. M. Carneiro
Gustavo J. A. M. Carneiro added the comment: I don't think the order for multiple concurrent getters matters that much. With analogy with the threading case, if multiple threads are blocked get()ing an item from the same queue, I would not presume to expect anything about the ordering which

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-08-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5069e6e4229 by Robert Collins in branch '3.4': Issue #4395: Better testing and documentation of binary operators. https://hg.python.org/cpython/rev/f5069e6e4229 New changeset b9a0165a3de8 by Robert Collins in branch '3.5': Issue #4395: Better

[issue14799] Tkinter ttk tests hang on linux

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Andrew, is this still a problem with current Unity? Or with updated version of tk 8.5, or any version of 8.6? Should we downgrade this from 'critical'? After 3 years, it seems not to be ;-). -- nosy: +terry.reedy

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly, I've lost track of the queue design. Maybe the push-back on cancellation is just wrong? After all, if a coroutine has received an item, it's out of the queue, even if it gets cancelled before it can do anything with the item. On Thu, Aug 6, 2015 at

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Guido van Rossum
Guido van Rossum added the comment: Honestly, I've lost track of the queue design. Maybe the push-back on cancellation is just wrong? After all, if a coroutine has received an item, it's out of the queue, even if it gets cancelled before it can do anything with the item. --

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Yury Selivanov
Yury Selivanov added the comment: Honestly, I've lost track of the queue design. Maybe the push-back on cancellation is just wrong? After all, if a coroutine has received an item, it's out of the queue, even if it gets cancelled before it can do anything with the item. I think the

[issue4343] tkinter: add _get_master() and use it consistently

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Serhiy, have your patches on other issues make this one obsolete, or partially so? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4343 ___

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-06 Thread Eric Snow
Eric Snow added the comment: That's good to know. Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24667 ___ ___ Python-bugs-list mailing

[issue17397] ttk::themes missing from ttk.py

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Mark, do you have any opinion of this? It apparently impinges on what themes we use or can offer as an option. -- nosy: +markroseman versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue9023] distutils relative path errors

2015-08-06 Thread Jörg Müller
Jörg Müller added the comment: This bug still exists. I am having a similar use case as ghazel. I have to use absolute paths for the setup.py to work, but the problem is that those paths then end up in the egg-info/SOURCES.txt file which is something that package maintainers of linux

[issue24808] PyTypeObject fields have incorrectly documented types

2015-08-06 Thread Joseph Weston
New submission from Joseph Weston: Several fields in the Python 3.x documentation for the PyTypeObject API have incorrectly documented types. This was probably due to a wholesale shift of documentation from Python 2.x. -- assignee: docs@python components: Documentation files:

[issue23004] mock_open() should allow reading binary data

2015-08-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Aaron(also thanks to Demian for reviews). I've fixed the merge conflict and added more tests. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker

[issue24807] compileall can cause Python installation to fail

2015-08-06 Thread Jon Ribbens
New submission from Jon Ribbens: If you are installing Python 2.7.10 and a previous version of 2.7 was already installed, the installation processs can fail when compileall.py finds badly-written third-party modules in the site-packages or dist-packages directories. The installation process

[issue23004] mock_open() should allow reading binary data

2015-08-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3d7adf5b3fb3 by Berker Peksag in branch '3.4': Issue #23004: mock_open() now reads binary data correctly when the type of read_data is bytes. https://hg.python.org/cpython/rev/3d7adf5b3fb3 New changeset 526a186de32d by Berker Peksag in branch

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Yury Selivanov
Yury Selivanov added the comment: A better design is to make it so the future that get() is waiting for doesn't actually receive the item, it is only used to wake up the get() coroutine. I would be something like: 1. get(): in case the queue is empty, create a Future, add it to _getters,

[issue23004] mock_open() should allow reading binary data

2015-08-06 Thread Robert Collins
Robert Collins added the comment: Post merge review: looks like data_as_list = read_data.splitlines(True) would be a little cleaner. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23004

[issue19702] Update pickle to take advantage of PEP 451

2015-08-06 Thread Cameron Simpson
Changes by Cameron Simpson c...@zip.com.au: -- nosy: +cameron ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19702 ___ ___ Python-bugs-list mailing

[issue24814] Disable Undo/Redo menu items when not applicable

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: Undo/Redo in Edit menu should be disabled when there is nothing to Undo or Redo -- components: IDLE messages: 248168 nosy: kbk, markroseman, roger.serwy, terry.reedy priority: normal severity: normal status: open title: Disable Undo/Redo menu items when

[issue1528593] Printing: No print dialog or page setup

2015-08-06 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528593 ___ ___ Python-bugs-list

[issue24816] don't allow selecting IDLE debugger menu item when running

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: Right now when you're running a program you can still select the 'debugger' item in the menu... you just get an error dialog you can only toggle the debugger when idle (with a title don't debug now). While I got a kick out of the title and using the word idle

[issue24818] no way to run program in debugger from edit window

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: If I have just an edit window open with my program, there's no way to run the program with the debugger visible. Should be a way to do so without going through the extra steps of opening up a shell window first -- components: IDLE messages: 248175

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2015-08-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka versions: +Python 3.6 -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2015-08-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I take this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___ ___ Python-bugs-list mailing list

[issue24815] IDLE can lose menubar on OS X

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: It's fairly easy to get IDLE to revert back to an empty menubar, i.e. just a Python menu. For example, open a shell, debugger, and editor window. Click on debugger window, then editor window, then close editor window. Focus goes back to debugger, but doesn't

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2015-08-06 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- assignee: jcea - ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___ ___ Python-bugs-list mailing

[issue22598] Add mUTF-7 codec (UTF-7 modified for IMAP)

2015-08-06 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22598 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5305] imaplib should support international mailbox names

2015-08-06 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5305 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24812] All standard keystrokes not recognized in IDLE dialogs on Mac

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: Most of the dialogs in IDLE on OS X do respond to 'Return' key as equivalent to hitting OK, and Escape to hitting Cancel. Guidelines also suggest that the Enter key (on numeric keypad) should work like 'Return', and Cmd-. (period) should work like Cancel.

[issue24813] About IDLE dialog shouldn't be modal

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: No reason for it to be modal. Especially on OS X (where it really isn't...) -- components: IDLE messages: 248167 nosy: kbk, markroseman, roger.serwy, terry.reedy priority: normal severity: normal status: open title: About IDLE dialog shouldn't be modal

[issue24819] replace window size preference with just use last window size

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: Rather than including the window width/height in the config dialog, just remember the last window size and use that next time -- components: IDLE messages: 248176 nosy: kbk, markroseman, roger.serwy, terry.reedy priority: normal severity: normal

[issue17642] IDLE add font resizing hot keys

2015-08-06 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17642 ___ ___ Python-bugs-list

[issue24799] IDLE should detect changes to open files by other processes

2015-08-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +terry.reedy stage: - test needed versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24799 ___

[issue24817] disable format menu items when not applicable

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: In an editor window, with no selection, most of the items in the format menu (indent, tabify, etc.) aren't applicable, so the corresponding menu items should be disabled. -- components: IDLE messages: 248171 nosy: kbk, markroseman, roger.serwy,

[issue24799] IDLE should detect changes to open files by other processes

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Notepad++ always asks, even when the edit buffer is not dirty. Actual use case: edit file with tkinter import and run in 3.4. Works. Open file in 2.7, changet tkinter to Tkinter, and run it. If I click on the 3.4 wndow, I do not want it silently changed.

[issue24820] IDLE themes for light on dark

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: If there are going to be highlighting themes in IDLE, and the ability to customize them, why not the background color of the window? Light on dark is easier for some people to read - adding one that did that would be a good candidate for another built-in

[issue4395] Document auto __ne__ generation; provide a use case for non-trivial __ne__

2015-08-06 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch; applied to 3.4 and up. -- nosy: +rbcollins resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4395

[issue22052] Comparison operators called in reverse order for subclasses with no override.

2015-08-06 Thread Martin Panter
Martin Panter added the comment: My patch was committed for Python 3.4+. The priority of the comparator methods is now documented at the end of https://docs.python.org/dev/reference/datamodel.html#richcmpfuncs. Perhaps all that is left to do here is to apply similar changes to the Python 2

[issue15944] memoryviews and ctypes

2015-08-06 Thread Martin Panter
Martin Panter added the comment: Assuming Issue 23756 is resolved and various standard library functions are meant to work with any C-contiguous buffer, then it makes sense to me for memoryview.cast(B) to work for any C-contiguous buffer. I also got the impression that David, Yuriy, and

[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24810 ___ ___ Python-bugs-list

[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-06 Thread Steven D'Aprano
Steven D'Aprano added the comment: Sounds patronizing. Whether used for beginners to programming or experts, IDLE (or any other application) should start with sensible defaults. As much as possible, it should usefully start without requiring extra configuration. But beyond that, actively

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Gustavo J. A. M. Carneiro
Gustavo J. A. M. Carneiro added the comment: Sure, just give me a couple of days. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23812 ___ ___

[issue24811] Unicode character in history breaks history under Windows

2015-08-06 Thread eryksun
eryksun added the comment: This is a 3rd party issue with the pyreadline module, which already has an open ticket for this problem: https://github.com/pyreadline/pyreadline/issues/30 -- nosy: +eryksun ___ Python tracker rep...@bugs.python.org

[issue1207613] Idle Editor: Bottom Scroll Bar

2015-08-06 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: Bottom Scroll Bar in IDLE - Idle Editor: Bottom Scroll Bar versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1207613

[issue24811] Unicode character in history breaks history under Windows

2015-08-06 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24811 ___

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-06 Thread Tiago Wright
Tiago Wright added the comment: I've run the Sniffer against the same data set, but varied the size of the sample given to the code. It seems that feeding it more data actually seems to make the results less accurate. Table attached. On Thu, Aug 6, 2015 at 12:29 PM R. David Murray

[issue24811] Unicode character in history breaks history under Windows

2015-08-06 Thread zsero
New submission from zsero: Python 3.3+ works really well when using codepage 65001 under Windows/ConEmu. Simply starting it with `chcp 65001` allows both printing and inputting of unicode characters. However, if any such character is ever entered into the history, the history functionality

[issue21937] IDLE interactive window doesn't display unsaved-indicator

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: A follow-on issue would be to have an option to prompt to save (as with editor windows) or autosave when closing the shell. A default path might be .idlerc/shellsave.txt. -- versions: +Python 3.6 ___ Python

[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: In general, users and instructors are demanding more options, not less. 'extensions' could be renamed 'plug-ins'. The current system could use some rethinking, since the choice between a feature being 'built-in' versus a 'built-in extension' is at least

[issue15944] memoryviews and ctypes

2015-08-06 Thread eryksun
eryksun added the comment: A functional memoryview for ctypes objects would avoid having to use workarounds, such as the following: d = ctypes.c_double() b = (ctypes.c_char * ctypes.sizeof(d)).from_buffer(d) b[:] = b'abcdefgh' d.value 8.540883223036124e+194 or using

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Brecht Machiels
New submission from Brecht Machiels: These both raise an exception: class Null(type(None)): pass class Null(object, type(None)): pass The following does not: class Object(object): pass class Null(Object, type(None)): pass This should also raise a TypeError. Also, the result

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Armin Rigo
Changes by Armin Rigo ar...@users.sourceforge.net: -- nosy: -arigo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24806 ___ ___ Python-bugs-list

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Brecht Machiels
Brecht Machiels added the comment: Ok. I was afraid a fix for this might affect class Integer(Object, int). Good to hear it shouldn't. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24806

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Armin Rigo
Armin Rigo added the comment: To be clearer, this bug report is, more precisely, about subclassing built-in classes that are not meant to be subclassable. This includes type(None) and bool. -- ___ Python tracker rep...@bugs.python.org

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-06 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24802 ___ ___ Python-bugs-list

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Armin Rigo
Armin Rigo added the comment: @brechtm No, the example you give is wrong. It is correct that this refuses to work (and unrelated to this bug): class Integer(object, int): pass for reasons explained in the docs. -- ___ Python tracker

[issue24803] PyNumber_Long Buffer Over-read.patch

2015-08-06 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24803 ___ ___ Python-bugs-list

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-06 Thread Tiago Wright
Tiago Wright added the comment: It seems the HTML file did not come through correctly. Trying a text version, please view this in a monospace font: | Sniffer | Human | , | ; | \t | \ | space|Except | : | ) | c | e |

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-06 Thread R. David Murray
R. David Murray added the comment: Yes, much better :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24787 ___ ___ Python-bugs-list mailing

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
Will Booth added the comment: Allow users to translate protocol numbers from IPv4/IPv6 headers to a friendly human readable string. Just filling a gap in the API. There might be a PyPI package out there similar to socket. However, it's complementary function,'getprotobyname', already exist

[issue15944] memoryviews and ctypes

2015-08-06 Thread Martin Panter
Martin Panter added the comment: Here is a patch that allows any “C-contiguous” memoryview() to be cast to a byte view. Apart from the test that was explicitly checking that this wasn’t supported, the rest of the test suite still passes. I basically removed the check that was generating the

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 024d4f4011c9 by Yury Selivanov in branch '3.4': Issue #23812: Fix getter-cancellation with many pending getters code path https://hg.python.org/cpython/rev/024d4f4011c9 New changeset 2752fe734bfb by Yury Selivanov in branch '3.5': Merge 3.4 (issue

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-06 Thread Tiago Wright
Tiago Wright added the comment: I apologize, it seems the text table got line wrapped. This time as a TXT attachment. -Tiago On Thu, Aug 6, 2015 at 12:22 PM Tiago Wright rep...@bugs.python.org wrote: Tiago Wright added the comment: -- Added file:

[issue23812] asyncio.Queue.put_nowait(), followed get() task cancellation leads to item being lost

2015-08-06 Thread Yury Selivanov
Yury Selivanov added the comment: Guido, Victor, I've just pushed a commit to fix a misspelled method call in queues.py (related to the previous commit in this issue). Along with fixing the bug and writing a unittest for it, I discovered an issue with the current queues design. Here's an

[issue15944] memoryviews and ctypes

2015-08-06 Thread Stefan Krah
Stefan Krah added the comment: The question is whether we want this behavior. -- assignee: - skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15944 ___

[issue24667] OrderedDict.popitem()/__str__() raises KeyError

2015-08-06 Thread Fabian
Fabian added the comment: Okay I think I've run the test suite on 3.6 although it only works with https://gerrit.wikimedia.org/r/#/c/229683/ now as inspect.getargspec has been removed (when I initially posted this, it was just deprecated). Well writing this I just thought I could've tested

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-06 Thread R. David Murray
R. David Murray added the comment: Your best bet is to attach an ascii text file as an uploaded file. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24787 ___

[issue15944] memoryviews and ctypes

2015-08-06 Thread Stefan Krah
Stefan Krah added the comment: Yuriy: cast() does not do this. What's requested is that e.g. a single float is represented as a bytes object instead of a float. Thus, you'd be able to do: m[0] = b'\x00\x00\x00\x01' This has other implications, for example, two NaNs would compare equal.

[issue22329] Windows installer can't recover partially installed state

2015-08-06 Thread Ethan Henderson
Ethan Henderson added the comment: I managed to resolve the issue following these steps: 1. Installing Python 3.4.3 on another computer (not even the same architecture) 2. Copying the Python34 folder from that other computer to the computer I broke 3. Running the uninstaller for Python 3.4.3 4.

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
New submission from Will Booth: Add an old method from netdb to python for a best-effort, centerized look up. For the function to work, /etc/protocols would also need to be present. If the protocol doesn't exist OSError is raised. Patch attached. -- components: Extension Modules

[issue24802] PyFloat_FromString Buffer Over-read

2015-08-06 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24802 ___ ___

[issue24795] Make event loops with statement context managers

2015-08-06 Thread Guido van Rossum
Guido van Rossum added the comment: My worry is that the context manager will make people believe it's a good pattern to create an event loop just to make one call. If tests violate this pattern, add a context manager helper function to test_utils.py. On Thu, Aug 6, 2015 at 2:57 AM, Martin

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Armin Rigo
Armin Rigo added the comment: FWIW ``bool(Null())`` gives correctly the result False in CPython 3.5. The problem in my opinion is that !Py_TPFLAGS_BASETYPE is checked only on the best base instead of on all bases. It lets this kind of nonsense pass through. In CPython 2.7 (but not 3.5) the

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Brecht Machiels
Brecht Machiels added the comment: Similar inconsistent behavior for: class Object(object): pass class Integer(Object, int): pass versus class Integer(object, int): pass However, I'm successfully using the first version, which saves some boilerplate code for emulating ints.

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Brecht Machiels
Brecht Machiels added the comment: This is a real-world example where this type of inheritance is used: https://github.com/brechtm/rinohtype/blob/8bd961243c1059aa7cb738493e4687f7a5930d5b/rinoh/backend/pdf/cos.py#L121 I don't think there is any inherent reason not to subclass from (indirectly)

[issue23004] mock_open() should allow reading binary data

2015-08-06 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23004 ___ ___

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Will Booth
Changes by Will Booth m3rz3r...@gmail.com: -- versions: +Python 3.5 -Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24809 ___ ___

[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-06 Thread Mark Roseman
New submission from Mark Roseman: To facilitate using IDLE to learn Python, and perhaps as a first experience with programming altogether, and taking advantage of the fact that IDLE comes with Python out of the box, I propose the following: 1. A new learning mode be introduced to Python. We

[issue24531] please document that no code preceding encoding declaration is allowed

2015-08-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 08e03dfb7dab by Robert Collins in branch '2.7': Issue #24531: Document that encoding lines cannot follow non-comment lines. https://hg.python.org/cpython/rev/08e03dfb7dab New changeset ab75b7ff4dfe by Robert Collins in branch '3.4': Issue #24531:

[issue24531] please document that no code preceding encoding declaration is allowed

2015-08-06 Thread Robert Collins
Robert Collins added the comment: Thanks, applied across the board; I had to tweak it a little on 2.7. -- nosy: +rbcollins resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue24225] Idlelib: changing file names

2015-08-06 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24225 ___ ___ Python-bugs-list

[issue13504] Meta-issue for Invent with Python IDLE feedback

2015-08-06 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13504 ___ ___ Python-bugs-list

[issue17942] IDLE Debugger: Improve GUI

2015-08-06 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17942 ___ ___ Python-bugs-list

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2015-08-06 Thread Mark Roseman
Mark Roseman added the comment: Just as a point of information and possible future reference, there is a 'tklib' (collection of Tk-related modules written in Tcl) module called 'ctext' which does syntax highlighting as well as implements the line numbering thing (also using a text widget

[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.

2015-08-06 Thread Mark Roseman
Changes by Mark Roseman m...@markroseman.com: -- nosy: +markroseman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list

[issue24810] UX mode for IDLE targeted to 'new learners'

2015-08-06 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24810 ___ ___

[issue24809] Add getprotobynumber to socket module

2015-08-06 Thread Yury Selivanov
Yury Selivanov added the comment: What are the use cases? If it's (Rarely used.) (as docstring indicates), then, perhaps, a package on PyPI is a better solution. -- nosy: +haypo, yselivanov versions: +Python 3.6 -Python 3.5 ___ Python tracker

[issue24787] csv.Sniffer guesses M instead of \t or , as the delimiter

2015-08-06 Thread Tiago Wright
Tiago Wright added the comment: Table attached. -Tiago On Wed, Aug 5, 2015 at 8:14 PM Skip Montanaro rep...@bugs.python.org wrote: Skip Montanaro added the comment: Tiago, sorry, but your last post with results is completely unintelligible. Can you toss the table in a file and attach it

[issue24806] Inheriting from NoneType does not fail consistently

2015-08-06 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +benjamin.peterson, yselivanov versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24806