Re: [Ubuntu] PyQt5

2015-11-09 Thread Terry Reedy
On 11/8/2015 9:41 PM, Laura Creighton wrote: In a message of Sun, 08 Nov 2015 18:05:32 -0500, Terry Reedy writes: I just read somewhere that the issue could be because I was trying to run these examples from within Idle. First let me note that a) IDLE is meant for learning Python

Re: python PEP suggestion

2015-11-08 Thread Terry Reedy
On 11/6/2015 1:21 PM, Dan Strohl wrote: All, I wanted to run the following thought past the list as a possible PEP enhancement suggestion to see if it feels like something that is worth proposing. I know it is not in the PEP format at this point, I can, and will, clean it up if needed, I am

Re: [Ubuntu] PyQt5

2015-11-08 Thread Terry Reedy
On 11/8/2015 11:03 AM, Andrew Diamond wrote: On Saturday, November 7, 2015 at 10:13:25 PM UTC-5, Andrew Diamond wrote: Hi! I'm fairly new to Python, and installed pyqt5 and began working through the examples at http://zetcode.com/gui/pyqt5/menustoolbars/ However, whenever I click one of the

Re: Question about math.pi is mutable

2015-11-06 Thread Terry Reedy
On 11/6/2015 5:26 PM, Thomas 'PointedEars' Lahn wrote: Bartc wrote: import math math.pi=0 print (math.pi) In Python, presumably 'pi' is just another variable, and variables can be written to. “pi” is the name of an attribute of the module object referred to by “math”. (Perhaps math.pi

Re: Snake Error 

2015-11-05 Thread Terry Reedy
On 11/5/2015 9:08 AM, Mahan Marwat wrote: When I am trying to paste this  in Python 3.5.0 IDLE. It crashes. https://bugs.python.org/issue13153 If you run 'python -m idlelib' from command line, you will see a traceback. -- Terry Jan Reedy --

Re: Bugfixing python 3.5 asyncio

2015-11-04 Thread Terry Reedy
On 11/3/2015 8:24 PM, Dmitry Panteleev wrote: Hello, There is a bug in asyncio.Queue (https://github.com/python/asyncio/issues/268), which makes it unusable for us. It is fixed in master now. I presume that the fix has been merged into the CPython repository (you could check). If so, it

Re: Unbuffered stderr in Python 3

2015-11-04 Thread Terry Reedy
On 11/3/2015 10:18 PM, Steven D'Aprano wrote: On Wednesday 04 November 2015 09:25, Terry Reedy wrote: On 11/3/2015 10:42 AM, Chris Angelico wrote: On Wed, Nov 4, 2015 at 2:00 AM, Random832 <random...@fastmail.com> wrote: Nobody <nobody@nowhere.invalid> writes: It's prob

Re: Regular expressions

2015-11-04 Thread Terry Reedy
On 11/3/2015 10:23 PM, Steven D'Aprano wrote: I don't even know what grep stands for. Get Regular Expression & Print -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Unbuffered stderr in Python 3

2015-11-03 Thread Terry Reedy
On 11/3/2015 10:42 AM, Chris Angelico wrote: On Wed, Nov 4, 2015 at 2:00 AM, Random832 wrote: Nobody writes: It's probably related to the fact that std{in,out,err} are Unicode streams. There's no fundamental reason a Unicode stream should

Re: python error

2015-11-03 Thread Terry Reedy
On 11/3/2015 8:07 AM, Ruud van Rooijen wrote: my code: from tkinter import * window = Tk() label = Label(window, text="miniproject A1") label.pack() window.mainloop() given error: C:\Users\Ruud\Python35\Scripts\python.exe Based on the below, python.exe should be in

Re: Problem in implementing Romania Map using Paython Script

2015-11-02 Thread Terry Reedy
On 11/2/2015 12:45 AM, Ben Finney wrote: amn...@gmail.com writes: I need a help in completing the Class Roaming problem using Euclidean function , Completing the Class Node . I think you need to research how to solve this algorithm, and only *then* think about how to code it in Python.

Re: installer user interface glitch ?

2015-11-01 Thread Terry Reedy
On 11/1/2015 10:54 AM, Michiel Overtoom wrote: On 01 Nov 2015, at 16:43, rurpy--- via Python-list wrote: Why, oh why, do the python.org front page and other pages that offer a Windows download not say a word about it not running on Windows XP? I'm also curious why

Re: installer user interface glitch ?

2015-11-01 Thread Terry Reedy
On 11/1/2015 5:28 PM, boB Stepp wrote: On Sun, Nov 1, 2015 at 3:48 PM, Laura Creighton wrote: Actually, adding the XP - do not look here -- message for several webpages has been on the pydotorg todo list for more than a week now. Not sure why it hasn't happened. Thank you

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Terry Reedy
On 11/1/2015 11:17 AM, Laura Creighton wrote: In a message of Mon, 02 Nov 2015 01:27:23 +1100, "Steven D'Aprano" writes a reply to Michael Overtoon: He was actually responding to my proposal to warn about duplicating stdlib names when saving-as. Users are inclined to ignore alerts,

Re: Multithreading python,two tkinter windows

2015-11-01 Thread Terry Reedy
On 11/1/2015 9:05 AM, Vindhyachal Takniki wrote: I have made a python code & using multithreading in it. this is very basic code, not using queues & other stuff. You can run multiple windows, or one window with multiple panes, in one thread with one event loop. Best to do gui stuff in the

Re: UNABLE TO GET IDLE TO RUN

2015-11-01 Thread Terry Reedy
On 11/1/2015 7:50 PM, Paul Rubin wrote: Terry Reedy <tjre...@udel.edu> writes: * 'Save-as' is not part of the regular workflow. It is done once per file. Experienced users who know to avoid stdlib names will not see the messages unless they accidentally duplicate one -- which is po

Re: Nearest neighbours of points

2015-10-31 Thread Terry Reedy
On 10/31/2015 5:28 PM, Tom P wrote: On 10/24/2015 10:05 PM, Poul Riis wrote: I have N points in 3D, organized in a list. I want to to point out the numbers of the two that have the smallest distance. With scipy.spatial.distance.pdist I can make a list of all the distances, and I can point out

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Terry Reedy
On 10/30/2015 9:15 PM, Terry Reedy wrote: On 10/30/2015 12:29 PM, Laura Creighton wrote: In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes: Hi, Laura wrote: I think that it would be useful if IDLE spit out a warning An ounce of prevention is worth a pound of cure

Re: UNABLE TO GET IDLE TO RUN

2015-10-31 Thread Terry Reedy
On 10/31/2015 9:45 PM, Michiel Overtoom wrote: On 31 Oct 2015, at 06:59, Terry Reedy <tjre...@udel.edu> wrote: This is a different issue than IDLE avoiding clashes. I opened https://bugs.python.org/issue25522 Terry, thanks for recording this into the issue tracker. I'd go even

Re: UNABLE TO GET IDLE TO RUN

2015-10-30 Thread Terry Reedy
On 10/30/2015 12:29 PM, Laura Creighton wrote: In a message of Fri, 30 Oct 2015 16:21:30 +0100, Michiel Overtoom writes: Hi, Laura wrote: I think that it would be useful if IDLE spit out a warning An ounce of prevention is worth a pound of cure. Maybe it's an idea that IDLE gives a warning

Re: python.exe is not a valid win32 executable

2015-10-29 Thread Terry Reedy
On 10/29/2015 1:14 PM, Laura Creighton wrote: Alas, it is a 'won't fix' for python.org. Maybe Activestate or Continuum.io will support XP with their 3.5 packages, It would be an unpleasant task at best. CPython does not work with xp because is uses shiny new system features that first

Re: system error - api-ms-win-crt-runtime-l1-1-0.dll

2015-10-29 Thread Terry Reedy
On 10/29/2015 1:02 AM, Nagu Koppula wrote: Hi Could you help me to resolve below error in my windows 7 laptop? I had tried re-installing / repair, still error persists. Error - screenshot Copy the relevant parts into your text message. Ever heard of a search bar? Google? This error

Re: UNABLE TO GET IDLE TO RUN

2015-10-29 Thread Terry Reedy
On 10/29/2015 3:53 AM, Laura Creighton wrote: I think that it would be useful if IDLE spit out a warning: User code is compiled and executed by builtin compile and exec, so it would have to be python (exec) that emit a warning. Warning: local file /u/lac/junk/string.py shadows module named

Re: Error while launching python idle.

2015-10-27 Thread Terry Reedy
On 10/26/2015 7:28 PM, Terry Reedy wrote: On 10/24/2015 3:00 PM, Vijay kumar wrote: Hi, I recently installed python 2.7 on my windows 10 laptop. When i launch python by clicking the python idle the following error appears In attached image. You should also type the text so it appears

Re: UNABLE TO GET IDLE TO RUN

2015-10-27 Thread Terry Reedy
On 10/27/2015 4:15 AM, Peter Otten wrote: Terry Reedy wrote: When one runs a program with 'python somepath/file.py', python prepends somepath to sys.path. If /foo/bar contains a string.py (for example) module and you run the following sequence $ cd /foo/bar $ python3 /usr/bin/idle3 I am

Re: Error while launching python idle.

2015-10-26 Thread Terry Reedy
On 10/24/2015 3:00 PM, Vijay kumar wrote: Hi, I recently installed python 2.7 on my windows 10 laptop. When i launch python by clicking the python idle the following error appears In attached image. You should also type the text so it appears in responses. even before i do anything. Just

Re: UNABLE TO GET IDLE TO RUN

2015-10-26 Thread Terry Reedy
On 10/26/2015 9:55 AM, Peter Otten wrote: The "bug" or misfeature is that idle automatically adds the working directory to sys.path. I am not sure what you mean by 'working directory' here. When one runs a program with 'python somepath/file.py', python prepends somepath to sys.path.

Re: UNABLE TO GET IDLE TO RUN

2015-10-25 Thread Terry Reedy
On 10/23/2015 5:42 AM, Peter Otten wrote: Laura Creighton wrote: In a message of Fri, 23 Oct 2015 00:19:42 -0400, Terry Reedy writes: On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: I have tried installing both Python 2.7 and 3.5, and in both cases I cannot get IDLE to work

Re: UNABLE TO GET IDLE TO RUN

2015-10-22 Thread Terry Reedy
On 10/21/2015 11:24 AM, Terry Alexander via Python-list wrote: I have tried installing both Python 2.7 and 3.5, and in both cases I cannot get IDLE to work. I received the following message both times: What OS? Windows? which version? How did you start IDLE? Start menu icon? Command line?

Re: 2.7.9: PhotoImage get/put

2015-10-21 Thread Terry Reedy
On 10/21/2015 1:50 AM, Randy Day wrote: When I read your post, I realized I'm doing a crude animation. After a bit of searching on 'python canvas animation', I found a reference to how it's done: I made my 'root' Tk instance global, and call root.update_idletasks() after the .put I did not

Re: Defamation

2015-10-21 Thread Terry Reedy
On 10/21/2015 2:53 AM, Laura Creighton wrote: In a message of Wed, 21 Oct 2015 10:30:35 +1100, "Steven D'Aprano" writes: On Wed, 21 Oct 2015 01:44 am, Laura Creighton wrote: No, we are removing them because we want to. Who are "we"? You're not talking about *you and me*. Anybody who was

1 million new Python 3 users (next spring)

2015-10-20 Thread Terry Reedy
From a PSF mailing list, this announcement. http://ntoll.org/article/story-micropython-on-microbit Contributions invited. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: teacher need help!

2015-10-20 Thread Terry Reedy
On 10/19/2015 4:23 AM, Terry Reedy wrote: On 10/18/2015 9:32 PM, Storey, Geneva wrote: Same issue! See attached. Can I suggest you find the turtle.py module in c:\windows\system32, move it to somewhere more suitable and try the code again? This seems strange. C:/Windows

Re: teacher need help!

2015-10-19 Thread Terry Reedy
On 10/18/2015 9:32 PM, Storey, Geneva wrote: Same issue! See attached. Can I suggest you find the turtle.py module in c:\windows\system32, move it to somewhere more suitable and try the code again? This seems strange. C:/Windows/System32 should only be writable by admin users,

Re: variable scope of class objects

2015-10-19 Thread Terry Reedy
On 10/19/2015 7:19 PM, sohcahto...@gmail.com wrote: Class variables are accessible without creating an instance of a class. Also, changing the value of a class variable affects ALL instances of that class. This is because the variable belongs to the class itself, not any of the instances

Re: Where is the menu bar for 3.5?

2015-10-18 Thread Terry Reedy
On 10/17/2015 11:27 PM, Peachy Keen wrote: Good evening, I am learning to code and I downloaded Python 3.5 32bit. But I can't find the menu bar and after much frustration I uninstalled the program. I would like to get started again so if you could assist it would be appreciated. What OS?

Re: Idle subprocess error

2015-10-16 Thread Terry Reedy
On 10/15/2015 9:08 PM, briankeithroby--- via Python-list wrote: Idle subprocess error cant use editor. You probably need to restart IDLE with the -n argument. See the doc. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: Python for Dummies exaple

2015-10-14 Thread Terry Reedy
I found all the Python books available dealt with version 2.x, I searched "python 3 book" and immediately come up with Programming in Python 3 Dive Into Python 3 Python 3 for Absolute Beginners + 'free' Non-Programmer's Tutorial for Python 3

Re: Strict comparisons in Python 2

2015-10-13 Thread Terry Reedy
On 10/13/2015 9:43 AM, Steven D'Aprano wrote: In Python 3, comparisons between arbitrary types raise TypeError: py> None < 2 Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: NoneType() < int() In Python 2, that same comparison will arbitrarily return

Re: Strong typing implementation for Python

2015-10-12 Thread Terry Reedy
On 10/12/2015 12:08 PM, Michael Torrie wrote: Also many Python editing environments do support basic completion. However completion is actually very difficult to implement in a static manner because Python is so dynamic. I can import any standard library module and rename it as needed. Since

Re: Error

2015-10-10 Thread Terry Reedy
On 10/10/2015 2:33 AM, Chris Angelico wrote: On Sat, Oct 10, 2015 at 4:39 PM, Shreenivas Potnis wrote: I have 32 bit machine with XP service pack 3. I installed x86 version of python. While running I get the following error: Python 3.5 does not run on XP. One of the

Re: Access a class in another python script

2015-10-08 Thread Terry Reedy
On 10/8/2015 2:24 AM, DBS wrote: I'm using Python 3.5 and have two python scripts where one needs access to a class in the other script for authentication purposes. Any python .py file can be either run as a main program or module (ie, script) or imported as a module by another module. If a

Re: Python 2 ‘print’, coercing arguments to Unicode

2015-10-06 Thread Terry Reedy
On 10/6/2015 6:45 AM, Ben Finney wrote: Ben Finney writes: How can I convince ‘print’, everywhere throughout a module, that it should coerce its arguments using ‘unicode’? Use Python 3. I am only half joking. Switching to unicode instead of bytes as the

Re: Trouble running

2015-10-06 Thread Terry Reedy
On 10/6/2015 10:56 AM, John Gordon wrote: In =?utf-8?Q?Cameroni123_=E2=84=A2?= writes: Hi I have recently installed python on windows 10 and I'm trying to save in order to run the module and I cant I don't know

Re: Instance method for converting int to str - str() and __str__()

2015-10-03 Thread Terry Reedy
On 10/3/2015 2:35 AM, neubyr wrote: I was wondering if there is any resource that explains why certain methods like str() and type() These are classes. Calling a class calls the class construction and initialization functions. These return an instance of the class. While reading the

Re: Newbie: Designer Looking to Build Graphics Editor (PS/AI)

2015-10-02 Thread Terry Reedy
On 10/2/2015 12:41 PM, Kenneth L wrote: I'm a graphic designer. I'm new to Python. I know html, css, alittle actioscript and little javascript. I actually build an iOS using Flash. I understand programming concepts I believe. I'd like to build a Illustrator/Photoshop like program. Why, there

IDLE = 'Integrated Development and Learning Environment'

2015-10-02 Thread Terry Reedy
Today, we agreed on the idle-dev list (Guido included) that 'IDLE' should be interpreted as 'Integrated Development and Learning Environment' rather than as 'Integrated DeveLopment Environment' (note the 'L' in 'DeveLopment'). The new long form better reflects the current practice and goal of

Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread Terry Reedy
On 10/1/2015 12:26 PM, Chris Warrick wrote: The Nikola developers decided to deprecate Python 2.7 support. Starting with v7.7.2, Nikola will display a warning if Python 2.7 is used (but it will still be fully supported). In early 2016, Nikola v8.0.0 will come out, and that release will not

Re: Python IDLE won't start

2015-09-27 Thread Terry Reedy
On 9/27/2015 8:03 AM, Cai Gengyang wrote: Step 1 : Download Python 3.5 from here --- https://www.python.org/downloads/ Step 2 : Install it Step 3 : Click on the 'IDLE' button --- for me , I am using a Mac so I click on 'Finder', then type IDLE in the search field on the top right corner of the

python.org bugs

2015-09-27 Thread Terry Reedy
1. No easy way to report bugs "Submit Website Bugs" takes me to https://github.com/python/pythondotorg/issues which wants me to get an account and login, even to report a typo, or in this case, a dead link. I won't do that. For bugs.python.org, one can report bugs here and someone who agree

Re: Are There Known Problems With tkinter And VPS Servers?

2015-09-27 Thread Terry Reedy
On 9/27/2015 5:31 PM, Tim Daneliuk wrote: Of late, I am seeing core dumps of this program (which has been stable/mature for some years) but only on VPS servers, both FreeBSD 10 and CentOS 6/7. Correction: It dumps core on FreeBSD 10.2 Dumping core when there is no terminal server,

Re: python.org bugs

2015-09-27 Thread Terry Reedy
On 9/27/2015 8:38 PM, Chris Angelico wrote: What's the issue, precisely? 2. https://github.com/python/pythondotorg/issues Sorry, this page https://www.python.org/doc/essays/omg-darpa-mcc-position/ at "Python has been used to implement a web browser (Grail). " links 'Grail' to

Re: Learning Modules, Arguments, Parameters (imma noob)

2015-09-25 Thread Terry Reedy
On 9/25/2015 2:50 PM, Cody Cox wrote: Awesome guys! Thank you for helping me understand this material. Parameters and Arguments are tricky. Looks like its mainly a game of connect the dots with variables. lol. If you stick with the convention that parameters are names in the header of a

Re: Idiosyncratic python

2015-09-24 Thread Terry Reedy
On 9/24/2015 2:35 AM, Steven D'Aprano wrote: On Thursday 24 September 2015 16:16, Paul Rubin wrote: Steven D'Aprano writes: for k, v in mydict.items(): del(k) That looks wrong: it's deleting k from what? The local namespace. py> k = 23 py>

Re: problem building python 3.5 extensions for windows

2015-09-22 Thread Terry Reedy
On 9/22/2015 9:35 AM, Robin Becker wrote: On 22/09/2015 11:14, Robin Becker wrote: On 22/09/2015 01:36, cjgoh...@gmail.com wrote: .t . Thanks for the pointer Christoph. I certainly didn't let it run for 30 minutes. When I build with 2.7,

Re: Postscript to pdf

2015-09-20 Thread Terry Reedy
On 9/20/2015 12:20 PM, Bala Ji wrote: Hello, I'm doing a software to make an id card for a school club so i used TKINTER to make this software. So i can enter details like name, student number etc.. So finally i got a Postscript file the problem is that i want to make a pdf file do you have

Re: True == 1 weirdness

2015-09-18 Thread Terry Reedy
On 9/18/2015 9:40 AM, Random832 wrote: I'm disputing that chained comparisons are used for the particular combinations that I am actually arguing should not be used in python. You are free to dislike certain combinations, not use them yourself, and even request others not to use them (all in

Auto indents (was Re: How to set the history commands visible ?)

2015-09-13 Thread Terry Reedy
On 9/13/2015 1:15 PM, Glus Xof wrote: Is yet an automatic indentation system implemented ? The Idle editor does pep8-aware 'smart indenting'. In the following, '|' indicates the cursor position after is pressed. A ':' at the end of the line adds 1 indent -- unless there is an opener that

Re: Reply to author, reply to list, reply to all

2015-09-09 Thread Terry Reedy
On 9/9/2015 2:09 AM, Ben Finney wrote: Terry Reedy <tjre...@udel.edu> writes: [Reply] should send the reply to the list. The function named “reply” normally means “reply individually to the author”, and that's how it needs to stay. Oh, right. I was thinking of 'Followup' and that

Re: Python CI and CD support available on Semaphore (feedback appreciated)

2015-09-08 Thread Terry Reedy
On 9/8/2015 6:27 AM, Filip Komnenović wrote: We have recently launched Python support on our continuous integration and deployment service and are looking for communities feedback. If you're up for it, please give a test drive to our service with your Python projects and give us your

Re: Need Help w. PIP!

2015-09-08 Thread Terry Reedy
On 9/8/2015 6:19 PM, Cody Piersall wrote: On Sat, Sep 5, 2015 at 3:14 AM, Thomas 'PointedEars' Lahn > wrote: > > Cody Piersall wrote: > > > Please respond to the list as well as the person you're actually talking > > to. It works out better

Re: Wheels For ...

2015-09-06 Thread Terry Reedy
On 9/6/2015 1:33 PM, Sven R. Kunze wrote: Hi folks, currently, I came across http://pythonwheels.com/ during researching how to make a proper Python distribution for PyPI. I thought it would be great idea to tell other maintainers to upload their content as wheels so I approached a couple of

Re: Trying pmw with python3: Lots of crashes!

2015-09-06 Thread Terry Reedy
On 9/6/2015 2:47 PM, Paulo da Silva wrote: Hi! I took a look at tkinter. It is pretty simple but it's very hard to construct some relatively more complex widgets. So I looked at pmw. Because my system only have pmw for python2, I downloaded pmw2 from its site and installed it manually using

Re: continue vs. pass in this IO reading and writing

2015-09-03 Thread Terry Reedy
On 9/3/2015 11:05 AM, kbtyo wrote: I am experimenting with many exception handling and utilizing continue vs pass. 'pass' is a do-nothing place holder. 'continue' and 'break' are jump statements [snip] However, I am uncertain as to how this executes in a context like this: import glob

Re: packing unpacking depends on order.

2015-09-02 Thread Terry Reedy
On 9/2/2015 6:01 AM, Antoon Pardon wrote: a = [1, 2, 3, 4, 5] b = 1 b, a[b] = a[b], b a [1, 2, 1, 4, 5] a = [1, 2, 3, 4, 5] b = 1 a[b], b = b, a[b] a [1, 1, 3, 4, 5] I think I understand how it gets these results but I'm not really happy with them. I think python should give the second

Re: packing unpacking depends on order.

2015-09-02 Thread Terry Reedy
On 9/2/2015 8:26 AM, Steven D'Aprano wrote: On Wed, 2 Sep 2015 08:01 pm, Antoon Pardon wrote: a = [1, 2, 3, 4, 5] b = 1 b, a[b] = a[b], b a [1, 2, 1, 4, 5] Equivalent to: temp1 = a[b] # a[1] == 2 temp2 = b # 1 b = temp1 # b = 2 a[b] = temp2 # a[2] = 1 Or using a queue (FIFO) rather

Re: Using enumerate to get line-numbers with itertools grouper?

2015-09-02 Thread Terry Reedy
On 9/2/2015 6:04 AM, Victor Hooi wrote: I'm using grouper() to iterate over a textfile in groups of lines: def grouper(iterable, n, fillvalue=None): "Collect data into fixed-length chunks or blocks" # grouper('ABCDEFG', 3, 'x') --> ABC DEF Gxx args = [iter(iterable)] * n

Re: Linux users: please run gui tests

2015-08-28 Thread Terry Reedy
On 8/28/2015 1:56 AM, Christian Gollwitzer wrote: Am 27.08.15 um 20:32 schrieb Terry Reedy: On 8/27/2015 4:56 AM, Petr Viktorin wrote: 1321, in _configure self.tk.call(_flatten((self._w, cmd)) + self._options(cnf)) _tkinter.TclError: expected integer but got Very puzzling. The only

Re: Linux users: please run gui tests

2015-08-28 Thread Terry Reedy
On 8/28/2015 4:52 AM, Christian Gollwitzer wrote: Here is a small patch which improves the error message a lot: diff -ru Python-3.4.3/Modules/_tkinter.c Python-3.4.3-patched/Modules/_tkinter.c --- Python-3.4.3/Modules/_tkinter.c2015-02-25 12:27:45.0 +0100 +++

Re: Linux users: please run gui tests

2015-08-27 Thread Terry Reedy
On 8/27/2015 4:56 AM, Petr Viktorin wrote: On Fri, Aug 7, 2015 at 4:07 AM, 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

Re: isinstance() and multiple inheritance/ctypes

2015-08-26 Thread Terry Reedy
On 8/26/2015 5:21 PM, Rob Gaddi wrote: I'm running into some strangeness trying to work with the bitfield module from my ctypes-bitfield package (on PyPi). I'm trying to use isinstance (), and it's kinda sorta lying to me. isinstace(inst, klass) is implemented as klass.__instancecheck__(inst)

Re: Please don't make unfounded legalistic demands

2015-08-26 Thread Terry Reedy
On 8/26/2015 12:36 PM, Jean-Michel Pichavant wrote: [snip] Are you allowed to use a newsreader or a mail+newsreader (Outlook Express, Thunderbird, many others)? If so post through newsgroup gmane.comp.python.general at news.gmane.org (as I am). -- Terry Jan Reedy --

Re: Please don't make unfounded legalistic demands (was: [a, b, c, d] = 1, 2, 3, 4)

2015-08-26 Thread Terry Reedy
On 8/26/2015 5:02 AM, Jean-Michel Pichavant wrote: - Original Message - From: Ben Finney ben+pyt...@benfinney.id.au The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately

Re: [a,b,c,d] = 1,2,3,4

2015-08-26 Thread Terry Reedy
On 8/26/2015 8:21 AM, Tim Chase wrote: a, b, c = (x for x in range(3)) # a generator for instance Since range() *is* a generator, why not just use In Python 3, range is a sequence class with a separate iterator class r = range(3) r range(0, 3) iter(r) range_iterator object at

Re: Installing Python 2.7.5-1 on AIX 6.1

2015-08-26 Thread Terry Reedy
On 8/26/2015 10:35 AM, Zachary Ware wrote: Hi Mark, On Wed, Aug 26, 2015 at 9:03 AM, Manarski, Mark mark.manar...@highmark.com wrote: I have downloaded the “python-2.7.5-1.aix6.1.ppc.rpm” package from the IBM Linux ToolBox site. When I try to install the python rpm package, it fails because

Re: Python client support for NATS.io

2015-08-26 Thread Terry Reedy
On 8/26/2015 10:56 AM, br...@apcera.com wrote: Hello all...we're updating our Python client support at NATS.io cloud messaging project, and as part of that would like to get your input on which version of Python: https://groups.google.com/forum/#!topic/natsio/e6aoJ6GYqTw I suggest you offer

Re: TypeCheck vs IsInstance in C API

2015-08-25 Thread Terry Reedy
On 8/25/2015 10:32 AM, random...@fastmail.us wrote: On Mon, Aug 24, 2015, at 22:12, Andrew Wang wrote: [question snipped] And, now, your moment of zen: Huh?? I fail to see the point of this buggy code. def isa(ob, cl): try: raise ob except cl: return 1 else: return

Re: Bug!

2015-08-21 Thread Terry Reedy
On 8/21/2015 4:36 PM, Oscar Benjamin wrote: On Fri, 21 Aug 2015 20:43 Chris Angelico ros...@gmail.com mailto:ros...@gmail.com wrote: On Sat, Aug 22, 2015 at 5:31 AM, Miguel Alejandro Fernandez alejandrogr...@hotmail.com mailto:alejandrogr...@hotmail.com wrote: *use a computer

Re: regex recursive matching (regex 2015.07.19)

2015-08-18 Thread Terry Reedy
On 8/18/2015 10:25 AM, Neal Becker wrote: Trying regex 2015.07.19 I'd like to match recursive parenthesized expressions, with groups such that '(a(b)c)' Extended regular expressions can only match strings in extended regular languages. General nested expressions are too general for that.

Re: Error in IDLE

2015-08-17 Thread Terry Reedy
On 8/15/2015 11:42 AM, Henry Quansah wrote: I just installed python. But I'm unable to access IDLE after several clicks and double clicks. I even tried repairing by trying to reinstall but I have the same issue. If you just installed 3.5.0rc1 on Windows, look for my fix message on or about

Re: return types from library api wrappers

2015-08-16 Thread Terry Reedy
On 8/16/2015 7:31 PM, Joseph L. Casale wrote: What's the accepted practice for return types from a c based API Python wrapper? I have many methods which return generators which yield potentially many fields per iteration. In lower level languages we would yield a struct with readonly fields.

Re: memory control in Python

2015-08-15 Thread Terry Reedy
On 8/15/2015 3:21 AM, dieter wrote: Ping Liu yanzhiping...@gmail.com writes: ... For small cases, Python works well. But if we consider longer time period. then it would fail due to the memory usage issues. We have tested several case studies to check the memory use for different time period,

Fixing tkinter on 3.5.0rc1 for some Windows machines.

2015-08-14 Thread Terry Reedy
Symptom: Using 3.5.0rc1 on Windows machines without VS2015 installed, import tkinter or use something that does so (Idle, Turtle, turtledemo, ...) and get message Your Python may not be configured for Tk. Fix: In install directory, find /DLLs. In that find /MicrosoftVC140.CRT with one file

Re: Linux users: please run gui tests

2015-08-13 Thread Terry Reedy
On 8/13/2015 1:11 AM, Laura Creighton wrote: In a message of Wed, 12 Aug 2015 21:49:24 -0400, Terry Reedy writes: https://bugs.python.org/issue15601 Could you add a note to the issue then? Done, though I wonder if it isn't a separate issue. I was not sure. The people currently nosy

Re: Linux users: please run gui tests

2015-08-12 Thread Terry Reedy
On 8/8/2015 2:40 AM, Laura Creighton wrote: In a message of Fri, 07 Aug 2015 21:25:21 -0400, Terry Reedy writes: https://bugs.python.org/issue15601 was about this very test failure. The failure only occurred with tk 8.4. What tk version do you have? (Easily found, for instance, in Idle

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 11:46 PM, Grant Edwards wrote: In both cases, some small, yellow windows flash briefly on the screen. I should have warned about this ;-). Gui tests mean 'actually flash stuff on screen', which is why they do not get run. -- Terry Jan Reedy --

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 10:18 PM, Ben Finney wrote: 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

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/7/2015 1:01 PM, Laura Creighton wrote: In a message of Fri, 07 Aug 2015 17:34:54 +0200, Peter Otten writes: Run $ python3 -m test -ugui -v test_tk (That way the unittest framework will see the -v option) Aha, I didn't understand that. Thank you. Note that there are lines like #

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

2015-08-07 Thread Terry Reedy
On 8/7/2015 7:29 AM, tjohnson wrote: On 8/6/2015 7:31 PM, Terry Reedy wrote: 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

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/6/2015 10:07 PM, Terry Reedy 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 3.5, test_tix

Re: Linux users: please run gui tests

2015-08-07 Thread Terry Reedy
On 8/7/2015 1:01 PM, Laura Creighton wrote: == FAIL: test_get (tkinter.test.test_tkinter.test_variables.TestBooleanVar) -- Traceback (most recent call last):

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

2015-08-07 Thread Terry Reedy
On 8/6/2015 9:14 PM, Dennis Lee Bieber wrote: On Wed, 5 Aug 2015 21:06:31 -0400, Terry Reedy tjre...@udel.edu declaimed the following: 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

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

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

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

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

2015-08-05 Thread 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 are appropriate Private answers are

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

2015-08-05 Thread Terry Reedy
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 configured for Tk.

Re: How to trace the recursive path?

2015-08-05 Thread Terry Reedy
trace --trackcalls Display the calling relationships exposed by running the program. will give you part of what you want, but only counts. I would just add print('xyx calledl') at the top of each function you want traced. -- Terry Jan Reedy --

<    8   9   10   11   12   13   14   15   16   17   >