Re: python for barcode

2015-08-06 Thread Michael Torrie
On 08/06/2015 12:27 PM, Xxx Ooo wrote: I try to do a program to modify barcode which kind of like Msoffice if you suggestion? You'll have to explain better what you're looking for and what you've done so far. Also explain how this relates to Python. I have no idea what like 'Msoffice' means.

How to use regex (re)

2015-08-06 Thread PK Khatri
I have a following script which extracts xyz.tgz and outputs to a folder which contains several sub-folders and files. source_dir = c:\\TEST dest_dir = c:\\TEST for src_name in glob.glob(os.path.join(source_dir, '*.tgz')): base = os.path.basename(src_name) dest_name

[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

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Nonami Animashaun
0. Classes where Idle is used: Where? Level? Mostly on windows, can't remember ever using Idle on a linux system before. Idle users: 1. Are you grade school (1=12)? undergraduate (Freshman-Senior)? post-graduate (from whatever)? Post-graduate 2. Are you beginner (1st class, maybe

[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:

Pruning with os.scandir?

2015-08-06 Thread Stephen Kennedy
I just saw PEP 471 announced. Mostly it looks great! One thing I found puzzling though is the lack of control of iteration. With os.walk, one can modify the dirs list inplace to avoid recursing into subtrees (As mentioned somewhere, in theory one could even add to this list though that would

Re: Most Pythonic way to store (small) configuration

2015-08-06 Thread Steven D'Aprano
On Thursday 06 August 2015 10:07, Chris Angelico wrote: On Thu, Aug 6, 2015 at 9:43 AM, Tim Chase python.l...@tim.thechases.com wrote: Significant whitespace? Not usually simple (just stuck touching a project where someone committed with tons of trailing whitespaces. grumble), so strip 'em

Re: Installation Successful, but pythonw and idle doesn't function

2015-08-06 Thread Terry Reedy
On 8/5/2015 10:43 PM, Zachary Ware wrote: C:\Users\judy\AppData\Local\Programs\Python\Python35-32\Lib\idlelibidle.py ** IDLE can't import Tkinter. Your Python may not be configured for Tk. ** You hit upon a bug in 3.5.0b4, which is that the installer is broken for tkinter unless you

[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

Re: Linux users: please run gui tests

2015-08-06 Thread Grant Edwards
On 2015-08-07, Grant Edwards invalid@invalid.invalid wrote: On 2015-08-07, Terry Reedy tjre...@udel.edu wrote: Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence

[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:

Re: Linux users: please run gui tests

2015-08-06 Thread Grant Edwards
On 2015-08-07, Terry Reedy tjre...@udel.edu wrote: Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence the following test_tk test_ttk_guionly test_idle (and on

[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

Re: Linux users: please run gui tests

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 12:20 PM, Chris Angelico ros...@gmail.com wrote: rosuav@sikorsky:~$ uname -a Linux sikorsky 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt9-3~deb8u1 (2015-04-24) x86_64 GNU/Linux The 3.4 is my system Python (Debian Wheezy) Oh, and for what it's worth, I'm running Xfce here.

[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

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Terry Reedy
On 8/6/2015 11:35 AM, Timothy Johnson wrote: problems because it works well for that. Most of the time I use PyDev and Notepad++ to edit Python code, but if more features were added to Idle I would consider using it more. What 1 or 2 features would you most like to see? -- Terry Jan Reedy

[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

Linux users: please run gui tests

2015-08-06 Thread Terry Reedy
Python has an extensive test suite run after each 'batch' of commits on a variety of buildbots. However, the Linux buildbots all (AFAIK) run 'headless', with gui's disabled. Hence the following test_tk test_ttk_guionly test_idle (and on 3.5, test_tix, but not important) are skipped either in

Re: Linux users: please run gui tests

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 12:07 PM, Terry Reedy tjre...@udel.edu wrote: I would appreciate it if some people could run the linux version of py -3.4 -m test -ugui test_tk test_ttk_guionly test_idle (or 3.5). I guess this means 'python3 for the executable. and report here python version, linux

[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

Re: Linux users: please run gui tests

2015-08-06 Thread Ben Finney
Terry Reedy tjre...@udel.edu writes: I would appreciate it if some people could run the linux version of py -3.4 -m test -ugui test_tk test_ttk_guionly test_idle (or 3.5). I guess this means 'python3 for the executable. Could you verify exactly what is the command to run? I'd hate for a

[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 ___ ___

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Terry Reedy
On 8/5/2015 9:21 PM, Rustom Mody wrote: I used idle to teach a 2nd year engineering course last sem It was a more pleasant experience than I expected One feature that would help teachers: It would be nice to (have setting to) auto-save the interaction window [Yeah I tried to see if I could do

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Terry Reedy
On 8/5/2015 9:17 PM, Ben Finney wrote: Terry Reedy tjre...@udel.edu writes: Private answers are welcome. They will be deleted as soon as they are tallied (without names). Are you also expecting questionnaire answers in this forum? Either or both. I suspect it will become a free-ranging

[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 ___

except block isn't catching exception

2015-08-06 Thread sohcahtoa82
I've run into strange behavior involving a blocking call to a socket accept() on the main thread and thread.interrupt_main() being called on a worker thread. Here's my code: # BEGIN exception_test.py import socket import thread import threading import time def worker(): time.sleep(2)

Re: except block isn't catching exception

2015-08-06 Thread Chris Angelico
On Fri, Aug 7, 2015 at 10:34 AM, sohcahto...@gmail.com wrote: Despite my except KeyboardInterrupt, the KeyboardInterrupt forced by the thread.interrupt_main() in the worker thread isn't being caught. Other things worth noting is that the exception takes about 3 seconds after the call to

[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

Re: Installation Successful, but pythonw and idle doesn't function

2015-08-06 Thread Thomas 'PointedEars' Lahn
Terry Reedy wrote: On 8/5/2015 6:09 PM, Thomas 'PointedEars' Lahn wrote: Rick Smith wrote: I also attempted to run idle, with the following results: C: \Users\judy\AppData\Local\Programs\Python\Python35-32\Lib\idlelibidle.py ** IDLE can't import Tkinter. Your Python may not be

how to simulate keydown and keyup events using win32api .

2015-08-06 Thread ppk . phanikumar
win32api.keybd_event(code,0,0,0) time.sleep(2) win32api.keybd_event(code,0,win32con.KEYEVENTF_KEYUP,0) the above code is simulating single click on button but not press Key Hold but i want to hold the until key up event is called eg: for key 'a' down it have to simulate key continous set until

[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

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Laura Creighton
Added: right now most children I know who want to program want to write games that run on their cell phones and tablets. So Idle integration with kivy would be very nice, if Idle developers are looking for new directions. Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: QUEST: does HACKING make FOR loop quicker.

2015-08-06 Thread Steven D'Aprano
On Thursday 06 August 2015 10:29, Michael Torrie wrote: On 08/05/2015 03:39 PM, Mark Lawrence wrote: On 05/08/2015 21:00, John Doe wrote: Three strikes and you're out, good bye troll. While the original post is incomprehensible to me, I see only one post. What were the other two

[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

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Sibylle Koczian
Am 06.08.2015 um 03:06 schrieb Terry Reedy: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as

[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

Re: Pruning with os.scandir?

2015-08-06 Thread Peter Otten
Stephen Kennedy wrote: I just saw PEP 471 announced. Mostly it looks great! One thing I found puzzling though is the lack of control of iteration. With os.walk, one can modify the dirs list inplace to avoid recursing into subtrees (As mentioned somewhere, in theory one could even add to this

python for barcode

2015-08-06 Thread Xxx Ooo
I try to do a program to modify barcode which kind of like Msoffice if you suggestion? Thanks Raymond -- https://mail.python.org/mailman/listinfo/python-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

Re: python for barcode

2015-08-06 Thread Laura Creighton
In a message of Thu, 06 Aug 2015 11:27:23 -0700, Xxx Ooo writes: I try to do a program to modify barcode which kind of like Msoffice if you suggestion? Thanks Raymond I don't know what you mean by 'kind of like Msoffice'. Mostly I use reportlab for things like this. blogpost about it here:

[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.

Re: Installation Successful, but pythonw and idle doesn't function

2015-08-06 Thread Zachary Ware
On Aug 6, 2015 3:55 AM, Terry Reedy tjre...@udel.edu wrote: Actually, people do a service by installing and testing pre-release software. They just need to realize that this is what they are doing ;-). Indeed. However, I was assuming (possibly rashly, and if that's the case, my apologies to

[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

Re: Pruning with os.scandir?

2015-08-06 Thread Stephen Kennedy
I think you misunderstood. scandir() is the generator-producing equivalent of listdir() which returns a list. Neither of them recurses into subdirectories: Ah great, that makes sense. An article I read gave the impression that os.scandir() was replacing os.walk(), not simply being used in

[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

Re: Most Pythonic way to store (small) configuration

2015-08-06 Thread Chris Angelico
On Thu, Aug 6, 2015 at 5:33 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thursday 06 August 2015 10:07, Chris Angelico wrote: On Thu, Aug 6, 2015 at 9:43 AM, Tim Chase python.l...@tim.thechases.com wrote: Significant whitespace? Not usually simple (just stuck touching a

  1   2   >