Re: new here

2024-08-26 Thread rbowman via Python-list
On Sun, 25 Aug 2024 21:29:30 -0400, avi.e.gross wrote: > If everyone will pardon my curiosity, who and what purposes are these > smaller environments for and do many people use them? > > I mean the price of a typical minimal laptop is not a big deal today. So > are these for some sort of embedded

Re: Triggered By Mediocre Code (Posting On Python-List Prohibited)

2024-08-26 Thread rbowman via Python-list
On Sun, 25 Aug 2024 23:49:48 - (UTC), Lawrence D'Oliveiro wrote: > The irony of my putdown is that PHP can do it about as simply. But don’t > expect your typical PHP programmers to know that ... It has had amazing longevity for something that was born as Personal Home Page. -- https://mail

Re: new here

2024-08-28 Thread Daniel via Python-list
rbowman writes: > On Sun, 25 Aug 2024 21:29:30 -0400, avi.e.gross wrote: > >> If everyone will pardon my curiosity, who and what purposes are these >> smaller environments for and do many people use them? >> >> I mean the price of a typical minimal laptop is not a big deal today. So >> are these

Re: new here

2024-08-28 Thread rbowman via Python-list
On Wed, 28 Aug 2024 08:41:28 +0100, Daniel wrote: > That is so cool. I've had the same idea to use the API with AWS for my > bbs. I also want to do the same thing for other government sites like > ecfr for pulling aviation regulations. > > Is your code somewhere I can look at it? The NOAA? I di

Script stops running with no error

2024-08-28 Thread Daniel via Python-list
As you all have seen on my intro post, I am in a project using Python (which I'm learning as I go) using the wikimedia API to pull data from wiktionary.org. I want to parse the json and output, for now, just the definition of the word. Wiktionary is wikimedia's dictionary. My requirements for v1

Re: Script stops running with no error

2024-08-28 Thread dn via Python-list
On 29/08/24 10:32, Thomas Passin via Python-list wrote: On 8/28/2024 5:09 PM, Daniel via Python-list wrote: As you all have seen on my intro post, I am in a project using Python (which I'm learning as I go) using the wikimedia API to pull data from wiktionary.org. I want to parse the jso

Re: Script stops running with no error

2024-08-28 Thread rbowman via Python-list
On Wed, 28 Aug 2024 22:09:56 +0100, Daniel wrote: > if definition: > print(f"\n{word_type.capitalize()}\n") > print("\n".join(definition)) > break I don't know if that was intended but the 'break' kicks you out of

Re: Formatting a str as a number - Okay, one more related thing...

2024-08-31 Thread MRAB via Python-list
On 2024-08-31 06:31, Gilmeh Serda via Python-list wrote: On Fri, 30 Aug 2024 05:22:17 GMT, Gilmeh Serda wrote: f"{int(number):>20,}" I can find "," (comma) and I can find "_" (underscore) but how about " " (space)? Or any other character, for tha

ListAdmin: Is list/archive working correctly?

2024-08-30 Thread dn via Python-list
For example, have been following the thread "Is there a better way? [combining f-string, thousands separator, right align]". Me email (only) client shows a thread of 12 messages. The OP was @Gilmeh Serda (from an invalid email address). That appears in the email thread @Stefan Ram has had t

Re: Formatting a str as a number - Okay, one more related thing...

2024-09-01 Thread dn via Python-list
On 1/09/24 06:55, MRAB via Python-list wrote: On 2024-08-31 06:31, Gilmeh Serda via Python-list wrote: On Fri, 30 Aug 2024 05:22:17 GMT, Gilmeh Serda wrote: f"{int(number):>20,}" I can find "," (comma) and I can find "_" (underscore) but how about " &

Re: Getting a Process.start() error pickle.PicklingError: Can't pickle : it's not found as __builtin__.module with Python 2.7

2024-09-03 Thread geodandw via Python-list
On 9/2/24 11:36, Barry Scott wrote: On 2 Sep 2024, at 15:00, marc nicole via Python-list wrote: I am using Python 2.7 on Windows 10 Why? Install Python 3.12 and it will be easier to get help and support. If you have legacy that still needs porting then you can install 3.12 along side the

Re: Crash when launching python

2024-09-04 Thread dn via Python-list
On 5/09/24 03:27, Guenther Sohler via Python-list wrote: Hi, My "Project" is to integrate python support into OpenSCAD. It runs quite well, but there are still issues on MacOS. On My MacOS it works, but it crashes when I ship the DMG files. It looks very much like python is not ab

Re: Crash when launching python

2024-09-05 Thread Barry via Python-list
> On 5 Sep 2024, at 02:32, Greg Ewing via Python-list > wrote: > > Normally it's in the .app/Contents/MacOS subdirectory. The name > varies, but there's usually just one executable file in there. Run that > from a shell and you should see anything written to stdo

Re: Synchronise annotations -> docstring

2024-09-15 Thread AJ via Python-list
On 9/4/24 00:21, [email protected] wrote: Albert-Jan Roskam wrote or quoted: Are there any tools that check whether type annotations and Numpydoc strings are consistent? According to one webpage, the "sphinx-autodoc-typehints" extension lets you roll with Python 3 annotations for docu

Re: Where are we in the Python 3 transition?

2015-12-31 Thread mm0fmf via Python-list
On 31/12/2015 16:12, Mark Lawrence wrote: "Or, how the Kübler-Ross model aptly applies to Python 3". http://www.snarky.ca/the-stages-of-the-python-3-transition I thought I had a need for asyncio and that means Python3. So I started converting some web facing apps to Python3 for practice and

Need help with this asap.

2016-01-12 Thread ifeanyioprah--- via Python-list
Create a class called BankAccount Create a constructor that takes in an integer and assigns this to a `balance` property. Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly. Create a method called `withdraw` that takes in cash withdrawal amount

Need solution with this problem

2016-01-13 Thread ifeanyioprah--- via Python-list
Create a class called BankAccount­ Create a constructor that takes in an in­teger and assigns this to a `balance` pr­operty. Create a method called `deposit` that ta­kes in cash deposit amount and updates t­he balance accordingly. Create a method called `withdraw` that t­akes in cash withdrawal

Re: The computer that mastered Go

2016-01-29 Thread mm0fmf via Python-list
On 29/01/2016 19:46, Seymore4Head wrote: https://www.youtube.com/watch?v=g-dKXOlsf98 Is it written in Python? -- https://mail.python.org/mailman/listinfo/python-list

Re: The computer that mastered Go

2016-01-29 Thread mm0fmf via Python-list
On 29/01/2016 22:13, Paul Rubin wrote: mm0fmf writes: Is it written in Python? One would expect it to be written in Go, but it turns out to be C++ and Lua :(. Why did he post it in comp.lang.python then? -- https://mail.python.org/mailman/listinfo/python-list

[Newbie] Tkinter Question

2016-02-23 Thread Wildman via Python-list
I am familiar with OO programming but I am new to Python and Tkinter. I am working on a gui program that creates a couple of temporary files. As part of the Exit button command they are deleted. If the program is shut down using the window close button [X], the exit button code is not executed a

Re: [Newbie] Tkinter Question

2016-02-24 Thread Wildman via Python-list
On Tue, 23 Feb 2016 16:19:43 -0600, Wildman wrote: > Thanks to Christian and Chris. You both gave me much to think about and to experiment with. That adds to my on-going learning experience. This is the first thing I tried: The Exit button has this: command=self.quit Then I have this: def

Request Help With Displaying XBM Image

2016-02-26 Thread Wildman via Python-list
As part of a program I am working on I want to display a 48x48 XBM image on the main window. I have done a lot of searching for code snippets and I found what appears to be the correct way to do it using a Label. So far I have not been able to get it to work. I have tried different variations of

Re: The Real-Time Use of Python in Data Science World!

2016-02-26 Thread Wildman via Python-list
On Fri, 26 Feb 2016 11:35:58 -0800, Anita Goyal wrote: > This course (...) What!? No peas? I like peas with spam. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Request Help With Displaying XBM Image

2016-02-26 Thread Wildman via Python-list
On Fri, 26 Feb 2016 22:49:58 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > It's not you, the program as you wrote it should and would show the image, > were it not for an odd quirk in how images are handled in tkinter: > > You have to keep an explicit refer

Request More Help With XBM Image

2016-02-29 Thread Wildman via Python-list
I want to take an image file, convert it to XBM format and display it. Thanks to Mr. Otten I can open and display the XBM image without any problems. The script first calls an external program for the image conversion then I can open and display it. Of course, I am left with the XBM file that ne

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 09:56:56 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first call

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > An exception is raised because you pass the command as a single argument I did not realize that how the command was passed would make such a difference. I guess I am stuck in my old VB habits for creating variables. You don't have to s

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 20:30:59 +0100, Christian Gollwitzer wrote: > Am 29.02.16 um 22:51 schrieb Wildman: >> I want to take an image file, convert it to XBM format and >> display it. Thanks to Mr. Otten I can open and display the >> XBM image without any problems. The script first calls an >> exte

Re: Request More Help With XBM Image

2016-03-01 Thread Wildman via Python-list
On Tue, 01 Mar 2016 12:56:03 -0600, Wildman wrote: > On Tue, 01 Mar 2016 19:26:55 +0100, Peter Otten wrote: > >> An exception is raised because you pass the command as a single argument > > > > I did not realize that how the command was passed would > make such a difference. I guess I am stu

tkFileDialog Question

2016-03-02 Thread Wildman via Python-list
Is there a way to prevent the dialog from displaying hidden directories? My research has not found anything relating to hidden files or directories. -- GNU/Linux user #557453 "Philosophy is common sense with big words." -James Madison -- https://mail.python.org/mailman/listinfo/python-list

Re: creating zipfile with symlinks

2016-03-04 Thread Wildman via Python-list
On Fri, 04 Mar 2016 13:31:52 -0700, Ian Kelly wrote: > On Fri, Mar 4, 2016 at 11:50 AM, crankypuss wrote: >> I don't know about that, but you've certainly shown that what I was told >> about this group being helpful and non-combative is bullshit. > > Look in a mirror much? You/We should thank $

Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
Anybody have the correct method of adding an icon to a window? I have found several code examples on the web but they all result in an error. Thanks. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Adding Icon To Tkinter Window - Followup

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote: > Anybody have the correct method of adding an icon to a > window? I have found several code examples on the web > but they all result in an error. Thanks. I found this and it works in Linux but only with black and white xbm images (I would pre

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 18:08:15 +, Grant Edwards wrote: > On 2016-03-05, Wildman wrote: > >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks. > > You'll have to be a lot more specific a

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 18:38:57 +, Mark Lawrence wrote: > On 05/03/2016 16:47, Wildman via Python-list wrote: >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks. >

Re: Adding Icon To Tkinter Window - Followup

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 19:36:19 +0100, Christian Gollwitzer wrote: > Am 05.03.16 um 19:10 schrieb Wildman: >> On Sat, 05 Mar 2016 10:47:09 -0600, Wildman wrote: >> >>> Anybody have the correct method of adding an icon to a >>> window? I have found several code examples on the web >>> but they all re

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 21:55:40 +0200, Serhiy Storchaka wrote: > On 05.03.16 18:47, Wildman via Python-list wrote: >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Th

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
On Sat, 05 Mar 2016 16:38:08 -0500, Terry Reedy wrote: > On 3/5/2016 11:47 AM, Wildman via Python-list wrote: >> Anybody have the correct method of adding an icon to a >> window? I have found several code examples on the web >> but they all result in an error. Thanks.

Re: Adding Icon To Tkinter Window

2016-03-05 Thread Wildman via Python-list
I apologize to the group for my lack of information in my original post. I will do better in the future. I very much want to remain in good standing in this group because of all the knowledgeable people here. Thanks again to everyone that replied and helped me solve my problem. -- GNU/Linux u

Re: Adding Icon To Tkinter Window - Followup

2016-03-06 Thread Wildman via Python-list
On Sun, 06 Mar 2016 10:16:55 +0100, Christian Gollwitzer wrote: > Am 06.03.16 um 06:53 schrieb Wildman: >> On Sat, 05 Mar 2016 19:36:19 +0100, Christian Gollwitzer wrote: >>> import Tkinter >>> from Tkinter import Tk >>> root = Tk() >>> img = Tkinter.Image("photo", file="appicon.gif") >>> root.cal

Path problem with 3.5.1

2016-03-08 Thread leon_heller--- via Python-list
Although I've enabled setting the path when installing 3.5.1 (Win7 x64) I can't run Python from the command line in a terminal window. It works OK on a Raspberry Pi 3! Leon -- Leon Heller G1HSM -- https://mail.python.org/mailman/listinfo/python-list

Hello

2016-03-11 Thread rubengoodson3--- via Python-list
I am having trouble installing the Python software. Sent from Windows Mail -- https://mail.python.org/mailman/listinfo/python-list

Loading error message

2016-03-13 Thread BobFtz--- via Python-list
Hello I have just downloaded and installed a copy of the 3.5.1 programme but when I come to run the programme I get an error message that says that .api-ms-win-crt-runtime-l 1-1-0.dll is missing. I have un-installed and reinstalled the 3.5.1 programme a few time (as advised) but I sti

Re: Different sources of file

2016-03-14 Thread Wildman via Python-list
On Mon, 14 Mar 2016 20:56:44 +, Val Krem wrote: > #!/usr/bin/python On some Linux systems python is installed in /usr/local/bin. I would suggest the hash-bang below then python will run no matter where it was installed... #!/usr/bin/env python As a python newbie myself, I can't really give

Re: Encapsulation in Python

2016-03-14 Thread rurpy--- via Python-list
On 03/14/2016 05:19 PM, Mark Lawrence wrote: > On 14/03/2016 22:40, BartC wrote: > > [...a polite and reasonable comment...] > > Drivel. Any establised member of this community, or any other > community for that matter, will always publish, unless, like the RUE, > they've got something to hide. S

Re: Different sources of file

2016-03-15 Thread Wildman via Python-list
On Mon, 14 Mar 2016 20:56:44 +, Val Krem wrote: > #!/usr/bin/python On some Linux systems python is installed in /usr/local/bin. I would suggest using the hash-bang below. It will insure python will run no matter where it was installed. #!/usr/bin/env python -- GNU/Linux user #557453 May

discussion group for Python in finance?

2016-03-18 Thread beliavsky--- via Python-list
Is there an active online group discussing the use of Python in finance? Here are some resources for Python in finance I know of. Numpy, scipy, pandas, and matplotlib are useful packages discussed in the books "Python for Finance" by Hilpisch and "Python for Data Analysis" by McKinney. Quandl is

Replace weird error message?

2016-03-19 Thread the.gerenuk--- via Python-list
The following error message, makes it a bit hard to understand what went wrong >>> "{:02}".format("1") Traceback (most recent call last): File "", line 1, in ValueError: '=' alignment not allowed in string format specifier (this can happen easily if you read in text files and forget to convert

Copy To Clipboard Highlighted Text From Text Widget

2016-03-21 Thread Wildman via Python-list
I have a gui that has text widget and I want to be able to copy to the clipboard the text that is highlighted or the text widget's entire contents if no text is highlighted. This line of code works for the highlighted text: text2copy = self.text.get(tk.SEL_FIRST, tk.SEL_LAST) However, this co

Re: Copy To Clipboard Highlighted Text From Text Widget

2016-03-21 Thread Wildman via Python-list
On Tue, 22 Mar 2016 02:01:53 +, MRAB wrote: > On 2016-03-22 01:47, Chris Angelico wrote: >> On Tue, Mar 22, 2016 at 12:24 PM, Wildman via Python-list >> wrote: >>> I have a gui that has text widget and I want to be able to >>> copy to the clipboard th

Re: Copy To Clipboard Highlighted Text From Text Widget

2016-03-21 Thread Wildman via Python-list
On Tue, 22 Mar 2016 12:47:11 +1100, Chris Angelico wrote: > On Tue, Mar 22, 2016 at 12:24 PM, Wildman via Python-list > wrote: >> I have a gui that has text widget and I want to be able to >> copy to the clipboard the text that is highlighted or the >> text widget's

Key Binding Problem

2016-03-22 Thread Wildman via Python-list
Platform: Linux Python: v.2.7.9 Tkinter: v.8.6.2 My program has some buttons for file operations, load_image, save_image, and quit. I would like to bind a key that will execute the procedures for each of the buttons. The binding for the quit button was easy... root.bind("", quit) root.bind("",

Re: Key Binding Problem

2016-03-22 Thread Wildman via Python-list
On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote: > On 2016-03-23 02:46, Wildman via Python-list wrote: >> My question is how do I coax bind into executing the >> button procedures? Or is there a way to generate the >> button click event from the binding? >> > It wo

Re: Key Binding Problem

2016-03-22 Thread Wildman via Python-list
On Tue, 22 Mar 2016 23:52:57 -0400, Terry Reedy wrote: > On 3/22/2016 10:46 PM, Wildman via Python-list wrote: >> Platform: Linux >> Python: v.2.7.9 >> Tkinter: v.8.6.2 >> >> My program has some buttons for file operations, load_image, >> save_image, and

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: > On 3/23/2016 12:28 AM, Wildman via Python-list wrote: >> On Wed, 23 Mar 2016 03:02:51 +, MRAB wrote: >> >>> On 2016-03-23 02:46, Wildman via Python-list wrote: >>>> My question is how do I coax

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: > def load_image(self, _): > # load image file > > You must pass the bound method, as you did, and not the function itself > (which has two parameters). I meant to ask a followup question in my previous post but it slipped my

Re: Key Binding Problem

2016-03-23 Thread Wildman via Python-list
On Wed, 23 Mar 2016 20:34:08 -0400, Dennis Lee Bieber wrote: > On Wed, 23 Mar 2016 10:58:09 -0500, Wildman via Python-list > declaimed the following: > >>On Wed, 23 Mar 2016 02:47:47 -0400, Terry Reedy wrote: >> >>> def load_image(self, _): >>>

Re: Key Binding Problem

2016-03-24 Thread Wildman via Python-list
On Thu, 24 Mar 2016 08:06:28 -0400, Dennis Lee Bieber wrote: > On Wed, 23 Mar 2016 21:17:57 -0500, Wildman via Python-list > declaimed the following: > >> >>I was referring to procedures called by a button click as >>opposed to a procedure calledd from elsewhere in t

Web Scraping

2016-03-24 Thread 121sukha via Python-list
I am new to python and I want to use web scraping to download songs from website. how do I write code to check if the website has uploaded a new song and have that song automatically be downloaded onto my computer. I know how to use the requests.get() module but i am more interested in knowing h

Re: Tkinter --> Why multiple windows

2016-03-24 Thread Wildman via Python-list
On Thu, 24 Mar 2016 13:24:16 -0700, kevind0718 wrote: > Hello: > > newbie Tkinter question > > If I run the code below two windows appear. > One empty and one with the text box and button. > > Why? please > > KD > > > > from Tkinter import * > > class MyDialog: > def __init__(self, pa

Re: Key Binding Problem

2016-03-24 Thread Wildman via Python-list
On Thu, 24 Mar 2016 21:43:26 -0400, Dennis Lee Bieber wrote: > On Thu, 24 Mar 2016 11:19:52 -0500, Wildman via Python-list > declaimed the following: > >> >>I believe I understand. Thanks. If you can't tell, I'm new to >>Python so the learning process is

Problem With Embedded Icon and Python 3.4

2016-03-24 Thread Wildman via Python-list
I have a program that I have been trying to rewrite so it will run on Python 2.7 and 3.4. It has been a pain to say the least. Thank $DIETY for aliases. Anyway, I got it all working except for one thing. The program has an embedded icon. It is displayed in the window's titlebar. The icon is a

Re: Problem With Embedded Icon and Python 3.4

2016-03-25 Thread Wildman via Python-list
On Fri, 25 Mar 2016 01:30:17 -0400, Terry Reedy wrote: > On 3/25/2016 1:10 AM, Wildman via Python-list wrote: >> I have a program that I have been trying to rewrite so it will >> run on Python 2.7 and 3.4. It has been a pain to say the least. >> Thank $DIETY for aliases.

Re: Problem With Embedded Icon and Python 3.4

2016-03-25 Thread Wildman via Python-list
On Fri, 25 Mar 2016 00:34:13 -0500, Zachary Ware wrote: > On Fri, Mar 25, 2016 at 12:10 AM, Wildman via Python-list > wrote: >> I have a program that I have been trying to rewrite so it will >> run on Python 2.7 and 3.4. It has been a pain to say the least. >> Thank $DI

Re: Problem With Embedded Icon and Python 3.4

2016-03-25 Thread Wildman via Python-list
On Sat, 26 Mar 2016 01:42:37 +, Mark Lawrence wrote: > On 25/03/2016 05:10, Wildman via Python-list wrote: >> I have a program that I have been trying to rewrite so it will >> run on Python 2.7 and 3.4. > > This http://pythonhosted.org/six/ might come in handy in fut

Exclude every nth element from list?

2016-03-26 Thread beliavsky--- via Python-list
I can use x[::n] to select every nth element of a list. Is there a one-liner to get a list that excludes every nth element? -- https://mail.python.org/mailman/listinfo/python-list

Another Key Binding Question

2016-03-26 Thread Wildman via Python-list
I use some key bindings in my program. They are declared like this: root.bind("" + "q", quit) root.bind("" + "q", quit) root.bind("" + "Q", quit) root.bind("" + "Q", quit) The above binds both Alt keys with upper and lower case 'q'. Is there a way to combine the s

Re: Exclude every nth element from list?

2016-03-26 Thread beliavsky--- via Python-list
On Saturday, March 26, 2016 at 1:02:06 PM UTC-4, Gary Herron wrote: > On 03/26/2016 09:49 AM, beliavsky--- via Python-list wrote: > > I can use x[::n] to select every nth element of a list. Is there a > > one-liner to get a list that excludes every nth element? > > Yes: >

repeat items in a list

2016-03-26 Thread beliavsky--- via Python-list
I can create a list that has repeated elements of another list as follows: xx = ["a","b"] nrep = 3 print xx yy = [] for aa in xx: for i in range(nrep): yy.append(aa) print yy output: ['a', 'b'] ['a', 'a', 'a', 'b', 'b', 'b'] Is there a one-liner to create a list with repeated element

Re: repeat items in a list

2016-03-26 Thread beliavsky--- via Python-list
On Saturday, March 26, 2016 at 7:24:10 PM UTC-4, Erik wrote: > Hi, > > On 26/03/16 22:12, beliavsky--- via Python-list wrote: > > I can create a list that has repeated elements of another list as follows: > > > > xx = ["a","b"] > > nrep = 3 &g

Re: repeat items in a list

2016-03-26 Thread beliavsky--- via Python-list
On Saturday, March 26, 2016 at 7:30:14 PM UTC-4, Mark Lawrence wrote: > On 26/03/2016 22:12, beliavsky--- via Python-list wrote: > > I can create a list that has repeated elements of another list as follows: > > > > xx = ["a","b"] > > nre

Re: Another Key Binding Question

2016-03-26 Thread Wildman via Python-list
On Sat, 26 Mar 2016 17:47:02 +, MRAB wrote: > On 2016-03-26 17:10, Wildman via Python-list wrote: >> I use some key bindings in my program. They are declared >> like this: >> >> root.bind("" + "q", quit) >> root.bind

Re: Help with python script for NMR

2016-03-27 Thread Wildman via Python-list
On Sun, 27 Mar 2016 08:13:49 -0700, mohamadmaaz5 wrote: >> > Hello there, >> > I found a python script The formatting of the script is all wrong. There are many spaces that should not be there and no indentations. It could take a long time to figure it out. It could be just a copy/paste proble

Re: Help with python script for NMR

2016-03-27 Thread Wildman via Python-list
On Sun, 27 Mar 2016 09:15:39 -0700, mohamadmaaz5 wrote: > On Sunday, March 27, 2016 at 6:07:43 PM UTC+2, Wildman wrote: >> On Sun, 27 Mar 2016 08:13:49 -0700, mohamadmaaz5 wrote: >> >> >> > Hello there, >> >> > I found a python script >> >> The formatting of the script is all wrong. There are m

Re: Help with python script for NMR

2016-03-27 Thread Wildman via Python-list
On Sun, 27 Mar 2016 09:40:57 -0700, mohamadmaaz5 wrote: > On Sunday, March 27, 2016 at 6:27:59 PM UTC+2, Wildman wrote: >> On Sun, 27 Mar 2016 09:15:39 -0700, mohamadmaaz5 wrote: >> >> > On Sunday, March 27, 2016 at 6:07:43 PM UTC+2, Wildman wrote: >> >> On Sun, 27 Mar 2016 08:13:49 -0700, mohama

Re: Problem With Embedded Icon and Python 3.4

2016-03-28 Thread Wildman via Python-list
On Mon, 28 Mar 2016 10:36:44 +0100, Mark Lawrence wrote: > On 26/03/2016 02:37, Wildman via Python-list wrote: >> On Sat, 26 Mar 2016 01:42:37 +, Mark Lawrence wrote: >> >>> On 25/03/2016 05:10, Wildman via Python-list wrote: >>>> I have a program that I ha

Re: [newbie] tkFileDialog does not show title

2016-03-28 Thread Wildman via Python-list
On Mon, 28 Mar 2016 14:10:28 -0700, jenswaelkens wrote: > I'm using the tkFileDialog-module in Python 2.7, it works fine except for one > thing: when I add a title, the title isn't shown. > > e.g. I have this line of code: > inputfilename=tkFileDialog.askopenfilename(defaultextension=".dat", >

Canopy editor

2015-05-02 Thread lbertolotti via Python-list
I having some problems with Python editor Canopy: -- https://mail.python.org/mailman/listinfo/python-list

Canopy editor-Variables browser and help

2015-05-02 Thread lbertolotti via Python-list
Can I: 1.Enable a variable browser in Canopy editor similar to the Spyder editor? 2.Writing a function say log( gives me the function help, but I can't read the whole documentation 3.Eclipse had a auto-complete, can I enable this in Canopy? 4.Perhaps I should try using another editor? I was having

Python xlrd

2015-05-02 Thread lbertolotti via Python-list
Ubuntu terminal gives me: import xlrd I get "ImportError: No module named xlrd" Any ideas? I installed it by: sudo apt-get install python-xlrd -- https://mail.python.org/mailman/listinfo/python-list

Re: Python xlrd

2015-05-03 Thread lbertolotti via Python-list
lucas@lucas-K55VD:~$ dpkg -l python-xlrd Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Architecture Description +++-==-==

http://premiumnaturalgarciniacambogiahelp.com/new-slim-5-garcinia-cambogia/

2015-05-04 Thread briansgoins via Python-list
New Slim 5 Garcinia Cambogia You can find plenty of Weight Loss tips one sees around in company, infomercials, TV and publications. The stark reality is that many of these tips actually work and a few really do not. To be honest with you, the fat diets, weight products and pills recommendations or

Re: Instead of deciding between Python or Lisp for a programming intro course...What about an intro course that uses *BOTH*? Good idea?

2015-05-11 Thread beliavsky--- via Python-list
On Sunday, May 10, 2015 at 9:38:38 PM UTC-4, Ian wrote: > On Sun, May 10, 2015 at 3:16 PM, Marko Rauhamaa wrote: > > Scheme is my favorite language. I think, however, it is a pretty > > advanced language and requires a pretty solid basis in programming and > > computer science. > > > > Python, in

Re: Looking for direction

2015-05-20 Thread darnold via Python-list
I recommend getting your hands on "Automate The Boring Stuff With Python" from no starch press: http://www.nostarch.com/automatestuff I've not read it in its entirety, but it's very beginner-friendly and is targeted at just the sort of processing you appear to be doing. HTH, Don -- https://ma

Re: Ah Python, you have spoiled me for all other languages

2015-05-22 Thread mm0fmf via Python-list
On 22/05/2015 18:47, Grant Edwards wrote: And of course, the truly_great_ thing about Javascript is... It's not PHP! ROTFL ;-) -- https://mail.python.org/mailman/listinfo/python-list

Python programming classes for children

2015-07-01 Thread beliavsky--- via Python-list
My 11yo son is taking the online class "Intermediate Programming with Python" http://www.artofproblemsolving.com/school/course/catalog/python2 offered by the Art of Problem Solving company (AoPS). Classes meet for 1.5 hours a week for 12 weeks. During the classes the instructor "lectures" (types

Re: bottle app "crashes"

2015-07-06 Thread mm0fmf via Python-list
On 05/07/2015 17:45, Martin S wrote: Hi all, Last summer I fumbled together a small appplication that calculates both LASK and Elo ratings for chess. I managed to "webify" it using Bottle. This works nicely on my laptop for testing. [snip] Do anyone have a pointer to an idiot proof instruc

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread beliavsky--- via Python-list
On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: > With Mandy Waite we have announced all keynotes for EuroPython 2015: > 5 keynotes, 6 speakers, 4 women and 2 men. Your mentioning these numbers makes me wonder if the organizing committee is using gender preferences in its selec

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread beliavsky--- via Python-list
On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote: > On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list > wrote: > > On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: > >> With Mandy Waite we have announced all keynotes for Eu

Re: Need assistance

2015-07-18 Thread mm0fmf via Python-list
On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 + would show 4 instead of 2 + 2 = Gawd it's so long but ISTR there were 3 stack registers and the display. So you could press 1 enter

Re: Need assistance

2015-07-18 Thread mm0fmf via Python-list
On 18/07/2015 20:10, Joel Goldstick wrote: On Sat, Jul 18, 2015 at 2:51 PM, mm0fmf via Python-list wrote: On 18/07/2015 18:34, Mark Lawrence wrote: What is an {HP calculator} roll operation? HP calculators were proper in that they used RPN entry. i.e. 2 enter 2 + would show 4 instead of

Re: what windows compiler for python 3.5?

2015-07-24 Thread mm0fmf via Python-list
On 24/07/2015 11:53, Robin Becker wrote: yes I build extensions for reportlab. Unfortunately, despite our MSDN subscription to the Visual Studio stuff we have no access to the Visual Studio Version 2015. Last one in my downloads is currently 2013. Pity. I received an email today re my work MSDN

Re: How may I learn Python Web Frameworks

2015-07-24 Thread darnold via Python-list
you'll find a very extensive Flask tutorial at http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world . -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Questions - July 25, 2015

2015-07-26 Thread mm0fmf via Python-list
On 26/07/2015 20:17, E.D.G. wrote: "E.D.G." wrote in message news:[email protected]... Posted by E.D.G. July 26, 2015 These are some additional comments related to my original post. The effort I have been discussing actually involves developing a

Re: Python Questions - July 25, 2015

2015-07-27 Thread mm0fmf via Python-list
On 27/07/2015 01:18, Mark Lawrence wrote: On 27/07/2015 00:12, Ned Batchelder wrote: On Sunday, July 26, 2015 at 5:15:31 PM UTC-4, mm0fmf wrote: On 26/07/2015 20:17, E.D.G. wrote: [around 90 lines snipped] Am I the only person thinking Troll? Yes. --Ned. Was it really necessary to re

Re: Most pythonic way of rotating a circular list to a canonical point

2015-08-01 Thread wolfram.hinderer--- via Python-list
Am Samstag, 1. August 2015 22:34:44 UTC+2 schrieb Lukas Barth: > Hi! > > I have a list of numbers that I treat as "circular", i.e. [1,2,3] and [2,3,1] > should be the same. Now I want to rotate these to a well defined status, so > that I can can compare them. > > If all elements are unique, the

Re: Python speed

2015-08-07 Thread beliavsky--- via Python-list
On Friday, August 7, 2015 at 10:08:37 AM UTC-4, [email protected] wrote: > Can anyone compare PyNum calculation speed to Fortran? > > This is for a number crunching program working with large files. > > Roger Did you mean NumPy? It depends on the program. Here are two posts that compared speeds

Flan definition collision

2015-08-10 Thread smahabole--- via Python-list
I am importing two modules, each of which is defining flags (command line arguments) with the same name. This makes it impossible to import both the modules at once, because of flag name definition conflict. Is there any way which doesn't involve modifying the flag names in these modules? -- ht

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > On Mon, Aug 17, 2015 at 5:16 AM, shiva upreti > wrote: > > I am new to linux. I tried various things in attempt to install kivy. I > > installed python 2.7.10 (I think python3 was already installed in ubuntu > > 14.04). The

Re: "no module named kivy" import error in ubuntu 14.04

2015-08-16 Thread rurpy--- via Python-list
On Sunday, August 16, 2015 at 10:14:29 PM UTC-6, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 20:19:49 -0700, rurpy--- via Python-list > writes: > >On Sunday, August 16, 2015 at 8:00:14 PM UTC-6, Chris Angelico wrote: > >>[...] > >> use pip (maybe in

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