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

2015-08-17 Thread rurpy--- via Python-list
On 08/17/2015 01:52 AM, Laura Creighton wrote: > In a message of Sun, 16 Aug 2015 22:05:29 -0700, rurpy--- via Python-list > writes: >> So I eventually found the kivy docs on their website where they >> list prerequisite packages for installing kivy on ubuntu. I'll

Re: Canopy editor-Variables browser and help

2015-08-23 Thread lbertolotti via Python-list
Anyone? -- https://mail.python.org/mailman/listinfo/python-list

Re: Python handles globals badly.

2015-09-10 Thread rurpy--- via Python-list
On Thursday, September 10, 2015 at 6:18:39 AM UTC-6, Steven D'Aprano wrote: > On Thu, 10 Sep 2015 05:18 am, Chris Angelico wrote: > > On Thu, Sep 10, 2015 at 5:14 AM, Laura Creighton wrote: > >> In a message of Thu, 10 Sep 2015 05:00:22 +1000, Chris Angelico writes: > >>>To get started, you need s

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
Picking a post to respond to, more or less at random... On Saturday, September 12, 2015 at 9:14:00 AM UTC-6, Rustom Mody wrote: > On Saturday, September 12, 2015 at 8:11:49 PM UTC+5:30, Laura Creighton wrote: > > In a message of Sat, 12 Sep 2015 05:46:35 -0700, Rustom Mody writes: > > >How about l

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 10:32 AM, Steven D'Aprano wrote: > On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: >[...] > Computer science and IT is *dominated* by a single usage for "pointer" -- > it's an abstract memory address. The fundamental characteristics of > pointers are: Just upthread, you claimed someth

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 11:48 AM, Steven D'Aprano wrote: > On Sun, 13 Sep 2015 02:17 am, [email protected] wrote: > [...] >> the model of Python I eventually >> developed is very much (I think, haven't read the whole thread) like >> Random832's. I think of boxes (objects) with slots containing "pointers" >>

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 04:14 PM, Emile van Sebille wrote: > On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: > >> The question is whether what "pointer" means in languages that use the >> word is*so* different than its meaning in the Python sense > > I can'

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 05:14 PM, Mark Lawrence wrote: > On 12/09/2015 23:34, rurpy--- via Python-list wrote: >> On 09/12/2015 04:14 PM, Emile van Sebille wrote: >>> On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: >>> >>>> The question is whether what "p

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 05:39 PM, Rustom Mody wrote: > On Sunday, September 13, 2015 at 4:05:21 AM UTC+5:30, [email protected] wrote: >> On 09/12/2015 04:14 PM, Emile van Sebille wrote: >>> On 9/12/2015 12:58 PM, rurpy--- via Python-list wrote: >>> >>>> The ques

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On 09/12/2015 06:02 PM, Ned Batchelder wrote: > On Saturday, September 12, 2015 at 7:15:18 PM UTC-4, Mark Lawrence wrote: > [...] > But in C, pointers mean more than that. You can perform arithmetic on > them, to access memory as a linearly addressed abstraction. Python has > nothing like this. >

Re: Terminology: "reference" versus "pointer"

2015-09-12 Thread rurpy--- via Python-list
On Saturday, September 12, 2015 at 6:25:39 PM UTC-6, [email protected] wrote: > On 09/12/2015 05:39 PM, Rustom Mody wrote: > [...] > > which may be summarized as: > > 1. Steven (quoting Online dictionary): Pointer = Address > > 2. Steven: "Python has pointers" is ridiculous > > 3. Python docs: id ret

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On 09/12/2015 08:42 PM, Ben Finney wrote: > Michael Torrie writes: >> On 09/12/2015 08:22 PM, Mark Lawrence wrote: >>> You appear to have the same level of knowledge of Python internals as >>> the RUE has of the Python 3.3+ FSR unicode implementation. Let's have >>> some fun, is Python pass by

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On Sunday, September 13, 2015 at 2:49:13 PM UTC-6, Ben Finney wrote: > Chris Angelico writes: > > > I think Ben's referring to taunting jmf, whom Mark called the "RUE" or > > "Resident Unicode Expert". There has been a long-standing antagonism > > between those two (which is completely understand

Re: Terminology: "reference" versus "pointer"

2015-09-13 Thread rurpy--- via Python-list
On 09/13/2015 06:50 AM, Steven D'Aprano wrote: > On Sun, 13 Sep 2015 04:45 am, [email protected] wrote: >> On 09/12/2015 10:32 AM, Steven D'Aprano wrote: >>> On Sat, 12 Sep 2015 02:42 pm, Random832 wrote: >>> [...] >>> Computer science and IT is *dominated* by a single usage for "pointer" -- >>> it's

Re: [Datetime-SIG] Are there any "correct" implementations of tzinfo?

2015-09-14 Thread rurpy--- via Python-list
On Monday, September 14, 2015 at 5:23:32 PM UTC-6, Laura Creighton wrote: >[...] > I don't know about the others, but I am finding this rather more > entertaining than another round of 'python -- does it have pointers' > in python-list. Could we please dispense with the gratuitous "what I'm intere

.bat file trouble.

2015-09-18 Thread bobertini--- via Python-list
Hi, I have two files called module_scripts.py and build_q_scripts.bat. The problem being that when I go to run the bat file it produces a few errors which neither myself or the original owner of the files could understand. Errors: https://gyazo.com/c680f0d70cefe855c21ab0882d7c17b7 We original

Re: Successfully send sms with python

2015-09-22 Thread mm0fmf via Python-list
On 22/09/2015 12:19, Timon Rhynix wrote: Hello, I have used pyserial, sms0.4 and other libraries to send sms via huawei E1750 modem. The code runs well and no error is thrown but the text message is not sent/delivered to the number. One of my code is as follows: import serial import time clas

A little test for you Guys😜

2015-09-22 Thread Python_Teacher via Python-list
you have 10 minutes😂 Good luck!! 1. What is PEP8 ? 2. What are the different ways to distribute some python source code ? 2 Lists Let's define the function plural : def plural(words): plurals = [] for word in words: plurals.append(word + 's') return plurals for word in plu

Re: Python IDLE won't start

2015-09-27 Thread mm0fmf via Python-list
On 26/09/2015 18:14, Jacob Chaar wrote: Hi there, So, I download Python 3.5.0 and I while I execute the Python IDLE, it won’t start up. Also, I try to open the python command line and a message error pop up. If you can help me, it will be really appreciate. Regards, Jacob Chaar Maybe if you

Planet Scipy blog

2015-10-08 Thread beliavsky--- via Python-list
There used to be a blog about SciPy at https://planet.scipy.org/ , discussing the applications of Python to scientific computing. Now there is a static page about "MPI for Python". What happened? -- https://mail.python.org/mailman/listinfo/python-list

Sets vs lists loop behaviour if size changes

2015-10-14 Thread candide via Python-list
If set size changes during a for loop, a runtime exception is raised: ~~ S = {2015} for z in S: S.add(42) ~~ ~~ Traceback (most recent call last): File "_.py", line 2, in for z in S: RuntimeError: Set

Re: Sets vs lists loop behaviour if size changes

2015-10-14 Thread candide via Python-list
Thanks for the response and the reference, indeed sets and lists behave differently... -- https://mail.python.org/mailman/listinfo/python-list

Idle subprocess error

2015-10-16 Thread briankeithroby--- via Python-list
Idle subprocess error cant use editor. Sent from Windows Mail-- https://mail.python.org/mailman/listinfo/python-list

string class variable to sqlite3

2015-10-17 Thread andybrookestar--- via Python-list
i'm mainly a PHP man but playing with python recently! I have a very small class that retrieves data from a very small sqlite3 db called encyclopedia,which has a table called wiki & two field called one & two (yes I know - no imagination, I should get out more!): import sqlite3 class do:

Re: string class variable to sqlite3

2015-10-18 Thread andybrookestar--- via Python-list
cheers Mark, it was the syntax that was foxing me; I don't like the example of the select statement via the insecure approach because the writer is adding an element of ambiguity since the table has a field called and a variable also called #modifying my class to import sqlite3 class do:

Re: string class variable to sqlite3

2015-10-18 Thread andybrookestar--- via Python-list
I acknowledge the security points & also by the way I omitted using any Try Catch statements , because at this stage coming from PHP I was more focused on getting a select statement to actually work in python. Also I know the end use will be off line and is part of a python & kivy project to a

Defamation

2015-10-19 Thread gaini2002--- via Python-list
Please remove the page https://mail.python.org/pipermail/python-list/2014-September/678498.html Thank You Gabriele Silvagni -- https://mail.python.org/mailman/listinfo/python-list

installer user interface glitch ?

2015-11-01 Thread t_ciorba--- via Python-list
hi, i am not sure what is wrong, but after launching the installer for windows XPsp3 python-3.5.0.exe i couldnt see what i have to select, it was a white board and the only button on it was "cancel". here is a screen of it: when i click on random points of this empty board, i get random stuff,

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On 11/01/2015 03:06 AM, Chris Warrick wrote: > On 1 November 2015 at 09:23, t_ciorba--- via Python-list > wrote: >> >> hi, i am not sure what is wrong, but after launching the installer >> for windows XPsp3 python-3.5.0.exe i couldnt see what i have to >> select

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On Sunday, November 1, 2015 at 8:52:55 AM UTC-7, Chris Angelico wrote: > On Mon, Nov 2, 2015 at 2:43 AM, 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 run

Re: installer user interface glitch ?

2015-11-01 Thread rurpy--- via Python-list
On 11/01/2015 09:43 AM, Chris Angelico wrote: > On Mon, Nov 2, 2015 at 3:24 AM, rurpy--- via Python-list > wrote: >> I dont recall seeing anyone posting asking why they could not get >> Python to install on Windows 95 recently. I only read this group >> intermittent

Re: Python 2 vs Python 3 for teaching

2015-11-02 Thread beliavsky--- via Python-list
I think Python 2.x is still used more than Python 3.x in scientific computing. The Python books I have in this area, such as "Python for Finance: Analyze Big Financial Data" and "Python for Data Analysis", still use Python 2.x . An aspiring computational scientist, data scientist, or financial q

Re: installer user interface glitch ?

2015-11-02 Thread rurpy--- via Python-list
On Sunday, November 1, 2015 at 2:48:58 PM UTC-7, 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 for the reminder. You're welcom

Re: Regular expressions

2015-11-02 Thread rurpy--- via Python-list
On 11/02/2015 08:51 PM, Michael Torrie wrote: >[...] > Indeed, sometimes Jamie Zawinski's is often quite appropriate: > > Some people, when confronted with a problem, think "I know, I'll use > regular expressions." Now they have two problems. Or its sometimes heard paraphrase: Some people,

Re: Regular expressions

2015-11-02 Thread rurpy--- via Python-list
On Monday, November 2, 2015 at 8:58:45 PM UTC-7, Joel Goldstick wrote: > On Mon, Nov 2, 2015 at 10:17 PM, Seymore4Head > wrote: > > > On Mon, 2 Nov 2015 20:42:37 -0600, Tim Chase > > wrote: > > > > >On 2015-11-02 20:09, Seymore4Head wrote: > > >> How do I make a regular expression that returns t

Re: Regular expressions

2015-11-03 Thread rurpy--- via Python-list
On 11/03/2015 12:15 AM, Steven D'Aprano wrote: > On Tue, 3 Nov 2015 03:23 pm, rurpy wrote: > >> Regular expressions should be learned by every programmer or by anyone >> who wants to use computers as a tool. They are a fundamental part of >> computer science and are used in all sorts of matching

Re: Regular expressions

2015-11-03 Thread rurpy--- via Python-list
On Monday, November 2, 2015 at 9:38:24 PM UTC-7, Michael Torrie wrote: > On 11/02/2015 09:23 PM, rurpy--- via Python-list wrote: > >> My completely unsolicited advice is that regular expressions shouldn't be > >> very high on the list of things to learn. They are very us

Re: Creating PST files using Python

2015-11-03 Thread rurpy--- via Python-list
On 11/03/2015 12:09 PM, Anthony Papillion wrote: > Does anyone know of a module that allows the wiring of Outlook PST > files using Python? I'm working on a project that will require me to > migrate 60gb of maildir mail (multiple accounts) to Outlook. I used libpst (http://www.five-ten-sg.com/libp

Re: Creating PST files using Python

2015-11-03 Thread rurpy--- via Python-list
I should have checked the web site before posting, it appears that both libpst and libpff only read pst files, no write. Sorry for the noise. -- https://mail.python.org/mailman/listinfo/python-list

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/03/2015 08:48 PM, Steven D'Aprano wrote: > On Wednesday 04 November 2015 11:33, rurpy wrote: > >>> Not quite. Core language concepts like ifs, loops, functions, >>> variables, slicing, etc are the socket wrenches of the programmer's >>> toolbox. Regexs are like an electric impact socket wre

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 1:52:31 AM UTC-7, Steven D'Aprano wrote: > On Wednesday 04 November 2015 18:21, Christian Gollwitzer wrote: > > > What rurpy meant, was that regexes can surface to a computer user > > earlier than variables and branches; a user who does not go into the > > depth t

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/04/2015 07:52 AM, Chris Angelico wrote: > On Thu, Nov 5, 2015 at 1:38 AM, rurpy wrote: >> I'm afraid you are making a category error but perhaps that's in >> part because I wasn't clear. I was not talking about computer >> science. I was talking about human beings learning about computers.

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 4:05:06 PM UTC-7, Seymore4Head wrote: >[...] > I am still here, but I have to admit I am not picking up too much. The "take away" I recommend is: the folks here are often way overly negative regarding regular expressions and that you not ignore them, but take the

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/04/2015 05:33 PM, Chris Angelico wrote: > On Thu, Nov 5, 2015 at 11:13 AM, rurpy--- via Python-list > wrote: >> On 11/04/2015 07:52 AM, Chris Angelico wrote: >>> On Thu, Nov 5, 2015 at 1:38 AM, rurpy wrote: >>>> I'm afraid you are making a category

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 7:31:34 PM UTC-7, Steven D'Aprano wrote: > On Thu, 5 Nov 2015 11:13 am, rurpy wrote: > > > There would be far fewer computer languages, and they would be much > > more primitive if regular expressions (and the fundamental concepts > > that they express) did not ex

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On 11/04/2015 07:24 PM, Steven D'Aprano wrote: > On Thu, 5 Nov 2015 11:24 am, wrote: > >> You will find they are an indispensable tool, not just in Python >> programming but in many aspects of computer use. > > You will find them a useful tool, but not indispensable by any means. > > Hint: > > - Ho

Re: Regular expressions

2015-11-04 Thread rurpy--- via Python-list
On Wednesday, November 4, 2015 at 7:46:24 PM UTC-7, Chris Angelico wrote: > On Thu, Nov 5, 2015 at 11:24 AM, rurpy wrote: > The "take away" that I recommend is: Rurpy loves to argue in favour of > regular expressions, No, I don't love it, I quite dislike it. > but as you can see from the other p

Re: Regular expressions

2015-11-06 Thread rurpy--- via Python-list
On 11/05/2015 01:18 AM, Christian Gollwitzer wrote: > Am 05.11.15 um 06:59 schrieb rurpy: >>> Can you call yourself a well-rounded programmer without at least >>> a basic understanding of some regex library? Well, probably not. >>> But that's part of the problem with regexes. They have, to some >>>

Re: Regular expressions

2015-11-06 Thread rurpy--- via Python-list
On Thursday, November 5, 2015 at 8:12:22 AM UTC-7, Seymore4Head wrote: > On Thu, 05 Nov 2015 11:54:20 +1100, Steven D'Aprano > wrote: > >On Thu, 5 Nov 2015 10:02 am, Seymore4Head wrote: > >> So far the only use I have for regex is to replace slicing, but I > >> think it is an improvement. > > > >

Re: using binary in python

2015-11-10 Thread mm0fmf via Python-list
On 10/11/2015 20:14, Dennis Lee Bieber wrote: The Ada language defines the end of Text file to consist of It is 15 years this month since I last worked in place that used Ada. I think that calls for a wee dram to celebrate ;-) -- https://mail.python.org/mailman/listinfo/python-list

OT: Re: using binary in python

2015-11-10 Thread mm0fmf via Python-list
On 10/11/2015 21:02, Dennis Lee Bieber wrote: On Tue, 10 Nov 2015 20:36:52 +, mm0fmf via Python-list declaimed the following: On 10/11/2015 20:14, Dennis Lee Bieber wrote: The Ada language defines the end of Text file to consist of It is 15 years this month since I last worked in place

Re: subprocess problem

2017-02-09 Thread Wildman via Python-list
On Thu, 09 Feb 2017 11:16:18 -0600, Andreas Paeffgen wrote: > I guess which does not return an error code. If it does not find > anything, the return is just blank. If it finds something, the path is > returned. > > So the change of code did not help, because there is just no error message. > C

Re: subprocess problem

2017-02-09 Thread Wildman via Python-list
On Fri, 10 Feb 2017 09:53:32 +1100, Cameron Simpson wrote: > On 09Feb2017 11:59, Wildman wrote: >>Here is a method I frequently use to replace the which >>command. (air code) >> >>import os >>pathlist = os.environ["PATH"].split(":") >> >>def which(target) >>for p in pathlist: >>fullpa

Re: Problems with scripts

2017-02-13 Thread Wildman via Python-list
On Mon, 13 Feb 2017 08:30:32 -0800, lauren.sophia1998 wrote: > Hello! I have 2 python assignments that I just can't figure out. The first > one returns the same thing no matter what I input and the second won't accept > "done" to stop the program and return answers. Please help! > > 1) > print

Re: Problems with scripts

2017-02-13 Thread Wildman via Python-list
On Mon, 13 Feb 2017 10:08:11 -0800, Lauren Fugate wrote: > So I tried both of these and they didn't change anything, the python shell > printed the same things... The first assignment is overly complicated. The extra input functions are useless. There is no loopback to check the input. Also,

Create ordering of points

2017-02-15 Thread spiess.benjamin--- via Python-list
Hello !:) I've got a problem which I would really like to solve. I got a cloud of points (in the simplest example its a 2-dimensional cloud of points). First, I want to set one of the points as the initial (or middle) point. Starting from there, the next points with the closest distance to the

Re: print odd numbers of lines from tekst WITHOUT space between lines

2017-02-18 Thread Wildman via Python-list
On Sat, 18 Feb 2017 09:38:32 -0800, TTaglo wrote: > i = 1 > f = open ('rosalind_ini5(1).txt') > for line in f.readlines(): > if i % 2 == 0: > print line > i += 1 > > > How do i get output without breaks between the lines? > > Result: > > Other things just make you swear and cur

Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
Python 3.4.2 Linux platform I am working on a program that has tabs created with ttk.Notebook. The code for creating the tabs is working but there is one thing I have not been able to figure out. As is, the tabs are located up against the lower edge of the caption bar. I would like to have them

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
On Tue, 21 Feb 2017 12:02:50 -0600, Wildman wrote: > Python 3.4.2 > Linux platform > > > I am working on a program that has tabs created with ttk.Notebook. > The code for creating the tabs is working but there is one thing I > have not been able to figure out. As is, the tabs are located up > a

Re: Request Help With ttk.Notebook Tabs

2017-02-21 Thread Wildman via Python-list
On Tue, 21 Feb 2017 18:22:31 +, MRAB wrote: > On 2017-02-21 18:02, Wildman via Python-list wrote: >> Python 3.4.2 >> Linux platform >> >> >> I am working on a program that has tabs created with ttk.Notebook. >> The code for creating the tabs is worki

Problem With Tkinter Font

2017-02-25 Thread Wildman via Python-list
Python 3.4.2 Tkinter 8.6 Linux I want to set the font in a GUI program I am working on. Here is the pertinent code I am using... from tkinter import font myfont = font.Font(family='Helvetica', size=10, weight='bold') Here is the error I get... Traceback (most recent call last): File "./test.

Re: Problem With Tkinter Font

2017-02-26 Thread Wildman via Python-list
On Sun, 26 Feb 2017 09:17:00 +0100, Peter Otten wrote: > Wildman via Python-list wrote: > >> Python 3.4.2 >> Tkinter 8.6 >> Linux >> >> I want to set the font in a GUI program I am working on. >> Here is the pertinent code I am using... >> >&

Re: FYI: Removing posts with All Cap Authors

2017-03-04 Thread rurpy--- via Python-list
On Saturday, March 4, 2017 at 9:37:35 AM UTC-7, Wanderer wrote: > On Saturday, March 4, 2017 at 11:31:13 AM UTC-5, Chris Angelico wrote: > > On Sun, Mar 5, 2017 at 3:22 AM, Wanderer wrote: > > > I mostly just lurk and view the post titles to see if something > > > interesting is being discussed. T

Re: Where to find python GTK+ 3 reference documentation?

2017-03-10 Thread Wildman via Python-list
On Fri, 10 Mar 2017 18:51:35 +, Chris Green wrote: > I'm using the excellent tutorial at > https://python-gtk-3-tutorial.readthedocs.io > and occasionally want reference documentation, is there reference > documentation for this on line? https://developer.gnome.org/gtk3/ -- GNU/Linux user

Re: Who are the "spacists"?

2017-03-21 Thread Wildman via Python-list
On Tue, 21 Mar 2017 06:01:26 +1100, Chris Angelico wrote: > On Tue, Mar 21, 2017 at 4:39 AM, Steve D'Aprano > wrote: >> And yet I'm forever being told by my Linux sys admin work mates "don't use >> tabs, because they break everything". For another example, see JMZ's essay >> (its already been lin

Re: Who are the "spacists"?

2017-03-25 Thread Wildman via Python-list
On Tue, 21 Mar 2017 15:15:14 +0100, Mikhail V wrote: > And on linux console, by default one does not even have good > possibilities for text-mode pseudographics, it was more relevant > in DOS where one had rich possibilities and programmable > binary fonts. > > Mikhail Nonsense. -- GNU/Linux

Re: Who are the "spacists"?

2017-03-26 Thread Wildman via Python-list
On Sun, 26 Mar 2017 15:18:06 +0200, Mikhail V wrote: > On 26 March 2017 at 06:16, Wildman via Python-list > wrote: >> On Tue, 21 Mar 2017 15:15:14 +0100, Mikhail V wrote: >> >>> And on linux console, by default one does not even have good >>> possibilities

Request Help With pkexec

2017-04-03 Thread Wildman via Python-list
Python 3.4.2 Tkinter 8.6 GCC 4.9.1 on Linux I am working on a gui program using Tkinter. The program will have a feature to restart as root. I am testing different gui front-ends from a terminal to raise privileges and I want to be able to use as many as possible for obvious reasons. Gksu, kdesu

Re: Request Help With pkexec

2017-04-05 Thread Wildman via Python-list
On Mon, 03 Apr 2017 14:29:56 -0500, Wildman wrote: > Python 3.4.2 > Tkinter 8.6 > GCC 4.9.1 on Linux > > I am working on a gui program using Tkinter. The program will > have a feature to restart as root. I am testing different gui > front-ends from a terminal to raise privileges and I want to >

Re: Python and the need for speed

2017-04-14 Thread rurpy--- via Python-list
On 04/13/2017 08:13 PM, Steve D'Aprano wrote: > On Wed, 12 Apr 2017 07:56 pm, [email protected] wrote: > [...] >> (** Although I find code full of class definitions, one-liners, decorators >> and all the other esoterics, incomprehensive. I'm sure I'm not the only >> one, so perhaps readability isn

Bigotry and hate speech on the python mailing list

2017-04-17 Thread Rurpy via Python-list
A couple weeks ago a frequent poster here (Steve D'Aprano ) called another participant an "ugly american" [*1]. This was followed just a couple weeks later with another post from Mr. D'Aprano attacking a participant as "an old man" who can't understand new technology, a blatant example of agei

Re: Bigotry and hate speech on the python mailing list

2017-04-17 Thread Wildman via Python-list
On Tue, 18 Apr 2017 08:23:34 +1000, Ben Finney wrote: > Paul Rubin writes: > >> Rurpy writes: >> > A couple weeks ago a frequent poster here (Steve D'Aprano >> > ) called another participant an "ugly >> > american" >> >> Oh stop trolling. > > Paul, that is uncalled for. The charge of bigotry i

Re: Bigotry and hate speech on the python mailing list

2017-04-17 Thread Rurpy via Python-list
On 04/17/2017 04:38 AM, Ben Finney wrote: > Rurpy via Python-list writes: > >> A couple weeks ago a frequent poster here (Steve D'Aprano >> ) called another participant an "ugly >> american" [*1]. > > He gave no explicit reference, and so I can see w

Re: Bigotry and hate speech on the python mailing list

2017-04-17 Thread Rurpy via Python-list
On 04/17/2017 08:19 PM, Wildman via Python-list wrote: > On Tue, 18 Apr 2017 08:23:34 +1000, Ben Finney wrote: >> Paul Rubin writes: >>> Rurpy writes: >>>> A couple weeks ago a frequent poster here (Steve D'Aprano >>>> ) called another participant a

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Wildman via Python-list
On Tue, 18 Apr 2017 15:54:17 +1000, Ben Finney wrote: > Wildman via Python-list writes: > >> "The seriousness of the charge mandates that we investigate >> this. Even though there is no evidence, the seriousness of >> the charge is what matters." >>

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 07:16 AM, Mario R. Osorio wrote: > Feels like this is something personal against Steven. You should > probably take this to court. I'd rather read Steven's insightful > answers and rants than you crying. None here is meant to sugar coat > anything, and if that is what you are looking

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 08:19 AM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 12:01 AM, Rurpy via > Python-list wrote: >> I have nothing personal against Steven. He called someone out >> for being bigoted, then repeated the exact same offense himself. > > The charge has b

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Wildman via Python-list
On Tue, 18 Apr 2017 03:28:32 +, Rurpy wrote: > On 04/17/2017 08:19 PM, Wildman via Python-list wrote: >> On Tue, 18 Apr 2017 08:23:34 +1000, Ben Finney wrote: >>> Paul Rubin writes: >>>> Rurpy writes: >>>>> A couple weeks ago a frequent poste

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Wildman via Python-list
On Wed, 19 Apr 2017 00:19:10 +1000, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 12:01 AM, Rurpy via Python-list > wrote: >> Whether you like it or not this list has a CoC governing it. >> Discussions about appropriate posts ARE on-topic. >> If you want a list where

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 09:29 AM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 1:03 AM, Rurpy via > Python-list wrote: >> On 04/18/2017 08:19 AM, Chris Angelico wrote: >>> On Wed, Apr 19, 2017 at 12:01 AM, Rurpy via >>> Python-list wrote: >>>> I have nothing p

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Rurpy via Python-list
On 04/18/2017 09:35 AM, Wildman via Python-list wrote: > On Tue, 18 Apr 2017 03:28:32 +, Rurpy wrote: >> On 04/17/2017 08:19 PM, Wildman via Python-list wrote: >>> [...] >>> Your words remind me of this: >>> >>> "The seriousness of the charge

Re: Bigotry and hate speech on the python mailing list

2017-04-18 Thread Wildman via Python-list
On Wed, 19 Apr 2017 08:34:03 +1000, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He *was accused of* violating >>> it,

Re: Bigotry and hate speech on the python mailing list

2017-04-19 Thread Rurpy via Python-list
On 04/18/2017 04:34 PM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He *was accused of* violating >>> it, and then fou

Re: Bigotry (you win, I give up)

2017-04-19 Thread Rurpy via Python-list
On 04/18/2017 04:34 PM, Chris Angelico wrote: > On Wed, Apr 19, 2017 at 8:28 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> The charge has been examined and dropped. Steven did not violate the >>> CoC. Please stop talking as if he has. He *was accused of* violating >>> it, and then fo

Re: Bigotry (you win, I give up)

2017-04-19 Thread Rurpy via Python-list
On 04/19/2017 01:56 PM, Ben Finney wrote: > Rurpy via Python-list writes: > >> I don't think stupid black people or senile old people should be >> allowable because those are not choosable *behaviors*. But is >> unable-to-learn old people a choosable behavior?

Re: Bigotry and hate speech on the python mailing list

2017-04-20 Thread Rurpy via Python-list
On 04/17/2017 03:39 AM, Marko Rauhamaa wrote: >[...] I meant to respond to this earlier but forgot to. I'll respond to the following part now since there seems to be some confusion about my motives/intent. > In my experience, the bar for banning participants is pretty high, and > rightly so. Car

Re: Bigotry (you win, I give up)

2017-04-20 Thread Rurpy via Python-list
On 04/19/2017 08:27 PM, Ben Finney wrote: > Rurpy via Python-list writes: > >> You and Chris refused to find any fault with the use of the two >> stereotypes under discussion one of which was "unable-to-learn old >> people". > > I expressed absolutely no

Re: Bigotry (you win, I give up)

2017-04-20 Thread Rurpy via Python-list
On 04/20/2017 09:25 AM, Rustom Mody wrote: >[...] > No one seems to have noticed who Rurpy is defending : Ranting Rick and Bart. > Sheesh! > A rhinocerous would have gossamer skin compared to these 'gentlemen' > Sheesh² ! You are mistaken. I am not defending Rick or Bart both of whom I am well a

Re: Bigotry (you win, I give up)

2017-04-20 Thread Rurpy via Python-list
On 04/20/2017 01:46 PM, Ben Finney wrote: >[...] > I am not obliged to address every point of every post, and the absence > of comment on any particular point is not generally to be read as full > assent. Certainly anyone is free to choose to ignore bigotry on the list, because one agrees with it,

Re: Bigotry (you win, I give up)

2017-04-22 Thread Rurpy via Python-list
On 04/22/2017 05:17 AM, Rustom Mody wrote: > On Friday, April 21, 2017 at 2:38:08 PM UTC+5:30, Antoon Pardon wrote: >> Op 20-04-17 om 17:25 schreef Rustom Mody: >>> But more importantly thank you for your polite and consistent pointing out >>> to >>> Ben Finney that his religion-bashing signature

Re: Bigotry (you win, I give up)

2017-04-26 Thread m.n.summerfield--- via Python-list
Surely it is time to stop the "Robert L." emails? And any others that follow using a different alias but use the same technique of seemingly asking a genuine technical question for the clear purpose of adding the vile contents of their signatures to this list (and therefore to our community's pu

os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
I wrote a Linux only GUI program using Tk that reports various system information using a tabbed Notebook. I have tested the program on Debian, SoldyX and MX-15 and the program runs perfectly. I tried testing on Mint and Ubuntu and the program would crash. The GUI would appear briefly and disapp

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 07:46:32 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 6:03 AM, Wildman via Python-list > wrote: >> I will try to explain... >> The program reports system information based on the user's name. >> Things such as passwd, groups and shadow i

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 08:31:15 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 8:18 AM, Wildman via Python-list > wrote: >> I am using pkexec to restart so $SUDO_USER is not set. For some >> reason sudo, su and su-to-root will freeze the first instance of >> the prog

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 09:00:58 +1000, Cameron Simpson wrote: > On 04May2017 15:03, Wildman wrote: > >>The program installs using the Debian package system (.deb) and an >>entry is created in the Applications Menu. The strange thing is >>that the crash only occurs when the program is run from the

Re: os.getlogin() Error

2017-05-04 Thread Wildman via Python-list
On Fri, 05 May 2017 09:58:02 +1000, Chris Angelico wrote: > On Fri, May 5, 2017 at 9:50 AM, Wildman via Python-list > wrote: >> I'm afraid that won't work. The user environment is different >> than root. A different set of variables. However you have >> gi

Re: Why does Python want to read /proc/meminfo

2017-05-06 Thread Wildman via Python-list
On Fri, 05 May 2017 23:54:20 -0500, Ian Pilcher wrote: > I am trying to write an SELinux policy to confine a simple service that > I have written in Python, and I'm trying to decide whether to allow or > dontaudit various denials. > > To start, I've reduced my service to the simplest case: > >

Re: os.getlogin() Error

2017-05-06 Thread Wildman via Python-list
On Fri, 05 May 2017 11:30:41 -0700, 20/20 Lab wrote: > I'm not sure if this will help you, but I found some stuff on accident > looking at something related. > > Not sure if it will help, but looked promising > > https://github.com/parmentelat/apssh/issues/1 > > ==Some snippets from the page >

Refactoring tool to create Python functions

2017-05-08 Thread beliavsky--- via Python-list
Googling "refactoring python code to create functions" I came to https://wingware.com/doc/intro/tutorial-refactoring where the "Extract Function/Method" does what I want. Is there a free Python tool that does this? -- https://mail.python.org/mailman/listinfo/python-list

import docx error

2017-05-10 Thread RRS1 via Python-list
Hi, I am very new to Python, have only done simple things >>>print("hello world") type things. I've really been looking forward to using Python. I bought Two books, downloaded Python 3.6.1 (32 & 64) and each time I try this: >>> import docx I get errors. Traceback (most recent call

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