Re: How do I get a python program to work on my phone?

2019-01-29 Thread Michael Torrie
On 2019-01-29 8:44 a.m., Michael Torrie wrote: > There have been some Python to javascript compilers, or implementations > of Python in Javascript. So maybe it's possible to make a hybrid app > using Python. Here's an interesting project that might work with some hyb

Re: How do I get a python program to work on my phone?

2019-01-29 Thread Michael Torrie
On 2019-01-29 5:52 a.m., Bob Gailer wrote: > An interesting alternatives to create a simple web page to run in the > phone's browser. If you don't already have a server on the web you can rent > one from secure dragon for as low as $12 a year. Install websocketd and > python. Websocketd lets you do

Re: How do I get a python program to work on my phone?

2019-01-28 Thread Michael Torrie
On 2019-01-28 8:29 a.m., Steve wrote: > I now want to run it on my MotoG phone. The program accepts keyed in data > and will access two text files to keep data and I would like to have the > program chime my phone to remind me to take the next reading. > > First step is to get it running in my ph

Re: How to access a folder in a zip file?

2019-01-20 Thread Michael F. Stemper
by one and store > them in a list/array so that I could work with it easily) > > here is the path: home/name/tutorial/prof/ks.zip/projects Are you sure? Could it possibly be: /home/name/tutorial/prof/ks.zip/projects instead? -- Michael F. Stemper What happens if you play John Cage&

Re: Pythonic Y2K

2019-01-18 Thread Michael Torrie
On 01/16/2019 12:02 PM, Avi Gross wrote: > I recall the days before the year 2000 with the Y2K scare when people > worried that legacy software might stop working or do horrible things once > the clock turned. It may even have been scary enough for some companies to > rewrite key applications and e

Re: the python name

2019-01-04 Thread Michael Torrie
On 01/03/2019 06:35 PM, Gene Heskett wrote: > On Thursday 03 January 2019 15:28:49 Grant Edwards wrote: >> About 20 years ago, the RedHat Linux (way before RHEL) installer >> (which was written in Python) was called Anaconda. > Thanks for rescuing my old wet ram Grant, thats exactly what I was >

Re: Begginers problem : tar: Error opening archive: Can't initialize filter; unable to run program "bzip2 -d

2018-12-29 Thread Michael Torrie
On 12/29/2018 01:15 AM, Rand .J wrote: > I'm trying to run this code from : https://github.com/pnnl/*safekit* ,using > cmd on windows 10, I already installed python. when I type the command: tar > -xjvf data_examples.tar.bz2 > > I keep getting the error: tar: Error opening archive: Can't initializ

Re: how to match list members in py3.x

2018-11-26 Thread Michael F. Stemper
l > run AFTER the first loop completes, not for each step of the loop, > because you outdented the code. > > Also, you unconditionally add the word, and THEN check if it is in the list. And the first thing that I note is that he checks to see if it is in the list from which it came. -- Michael F.

Re: Have I Been Banned?

2018-11-24 Thread Michael Torrie
On 11/20/2018 09:39 AM, Jon Ribbens wrote: > On 2018-11-20, Wildman wrote: >> In the past I have participated in the group without any >> problems. I access the forum through the usenet mirror >> and I am still using the same newsreader and account. >> Recently I made some followup posts to the g

Re: [Tutor] Unable to get the gateway IP of wlan interface using python code

2018-11-12 Thread Michael Torrie
On 11/12/2018 05:55 PM, David Rock wrote: > Is there a requirement to use only what comes in the standard libraries, or > can you use things from pypi? > Getting interface details is exactly why netifaces was created > > https://pypi.org/project/netifaces/ Also if working with NetworkManager is

Re: Overwhelmed by the Simplicity of Python. Any Recommendation?

2018-11-07 Thread Michael Torrie
On 11/07/2018 01:31 PM, MRAB wrote: > On 2018-11-07 09:20, Thomas Jollans wrote: >> I'll just take this opportunity to point out (for those that don't know) >> that Visual Studio Code (an open source cross-platform programmer's text >> editor of the same calibre as Sublime or Atom, not an IDE) has

Re: Accessing clipboard through software built on Python

2018-10-27 Thread Michael Torrie
Couple of questions: On 10/27/2018 07:17 AM, Musatov wrote: > I am wondering if Python could be used to write a program that allows: > > 1. Highlight some text > 2. Ctl+HOTKEY1 stores the string of text somewhere as COPIEDTEXT1 This text comes from where? Another application? > 3. Highlight ano

Re: Use Software Collections for RH - was Re: python not working on RHEL6

2018-10-03 Thread Michael Torrie
On 10/03/2018 10:17 AM, Michael Torrie wrote: > On 10/02/2018 07:59 AM, mchathuran...@gmail.com wrote: >> I guess from the little knowledge I have I should have executed >> altinstall instead of install. Anyone know how to resolve this? > > Actually you probably should not h

Use Software Collections for RH - was Re: python not working on RHEL6

2018-10-03 Thread Michael Torrie
On 10/02/2018 07:59 AM, mchathuran...@gmail.com wrote: > I guess from the little knowledge I have I should have executed > altinstall instead of install. Anyone know how to resolve this? Actually you probably should not have used a tarball at all. For some time now, Red Hat has offered more recen

Re: Program to find Primes of the form prime(n+2) * prime(n+1) - prime(n) +- 1.

2018-10-03 Thread Michael Torrie
On 10/03/2018 09:26 AM, Musatov wrote: > I don't even know where to begin! (I'm reading the Dummies book) If you have no experience in computer programming, it's going to be a steep learning curve. But your first step is to learn Python and how to write programs in it. That book and others will h

Re: How to change '\\' to '\'

2018-10-02 Thread Michael Torrie
On 10/02/2018 12:48 AM, Ethan Furman wrote: > Even for two-person, private email discussions I prefer the interleaved > replies -- in a week when I have to remind myself what was discussed it > is much easier to comprehend. Absolutely. I've been saved from embarrassment countless times because w

Re: How to achieve pyc only deployment for module in python3.6

2018-10-02 Thread Michael F. Stemper
zzz.c have the following vulnerability." Those guys were (are) *sharp*. [1] <https://www.nerc.com/pa/Stand/Pages/CIPStandards.aspx> [2] <https://www.energy.gov/oe/technology-development/energy-delivery-systems-cybersecurity/national-scada-test-bed> -- Michael F. Stemper Outs

Re: Explicit vararg values

2018-09-22 Thread Michael Torrie
On 09/16/2018 04:39 PM, Buck Evan wrote: > The syntax I'm proposing is: >f(**kwargs={'a': 1, 'b': 2}) > > as a synonym of f(a=1, b=2) when an appropriate dictionary is already on > hand. But if the kwargs dict already exists you can already unpack it: f(**kwargs) or f(**{'a': 1, 'b': 2}) So

Re: Multiple problems with Python 3.7 under Windows 7 Home Premium

2018-09-21 Thread Michael Torrie
On 09/21/2018 07:22 AM, Spencer Graves wrote: > PYTHON - M PIP INSTALL PYAUDIO > > >   "python -m pip install pyaudio" stopped with 'error: Microsoft > visual C++14.0 is required.  Get it with "Microsoft Visual C++ Build > Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools";

Re: python3.7 problem with validation - it doesnt work

2018-09-21 Thread Michael Torrie
On 09/19/2018 06:12 AM, alon.naj...@gmail.com wrote: > python3.7 problem with validation - it doesn't work. I don't know what "validation" means, but MRAB has told you why it wasn't working. My question to you is why do you need that inner function anyway? An inner function is normally used to d

Re: python 3.7 - I try to close the thread without closing the GUI is it possible?

2018-09-15 Thread Michael Torrie
On 09/15/2018 01:23 AM, Albert-Jan Roskam wrote: > > I try to close the thread without closing the GUI is it possible? > > > Qthread seems to be worth investigating: > https://medium.com/@webmamoffice/getting-started-gui-s-with-python-pyqt-qthread-class-1b796203c18c Or better yet, investigate Q

Re: python 3.7 - I try to close the thread without closing the GUI is it possible?

2018-09-15 Thread Michael Torrie
Here's a small PyQt example of using Qt's asynchronous facilities: http://zetcode.com/pyqt/qnetworkaccessmanager/ That should get the original poster started. -- https://mail.python.org/mailman/listinfo/python-list

Re: Object-oriented philosophy

2018-09-11 Thread Michael F. Stemper
On 2018-09-11 01:59, Marko Rauhamaa wrote: > Rick Johnson : > >> Michael F. Stemper wrote: >>> Object-oriented philosophy >> [...] [...] [...] >> >> So, to make a long story short, you may want to do some >> googling... > > Long story short, Mic

Re: don't quite understand mailing list

2018-09-08 Thread Michael F. Stemper
s on staff. Sometimes, it was to meet a crunch that was anticipated to be brief. Sometimes, it was to fill an open slot while trying to find somebody to hire for that slot. -- Michael F. Stemper 87.3% of all statistics are made up by the person giving them. -- https://mail.python.org/mailman/listinfo/python-list

Re: Object-oriented philosophy

2018-09-08 Thread Michael F. Stemper
On 2018-09-06 16:04, Stefan Ram wrote: > "Michael F. Stemper" writes: >>> You have a operation »Resistance( V )«. >> Mathematically, that's an operation, I suppose. I tend to think of it >> as either a function or a method. > > I deliberately did n

Re: Object-oriented philosophy

2018-09-07 Thread Michael F. Stemper
On 2018-09-07 15:39, MRAB wrote: > On 2018-09-07 20:51, Michael F. Stemper wrote: >> On 2018-09-06 16:00, MRAB wrote: >>> A word of advice: don't use a "bare" except, i.e. one that doesn't >>> specify what exception(s) it should catch. >> >&

Re: Object-oriented philosophy

2018-09-07 Thread Michael F. Stemper
On 2018-09-07 14:51, Michael F. Stemper wrote: > On 2018-09-06 16:00, MRAB wrote: >> On 2018-09-06 21:24, Michael F. Stemper wrote: >> A word of advice: don't use a "bare" except, i.e. one that doesn't >> specify what exception(s) it should catch. > I

Re: Object-oriented philosophy

2018-09-07 Thread Michael F. Stemper
On 2018-09-06 16:00, MRAB wrote: > On 2018-09-06 21:24, Michael F. Stemper wrote: >> On 2018-09-06 09:35, Rhodri James wrote: >>> Is it worth creating the superclass in Python?  It sounds like it's a >>> bit marginal in your case.  I'm not that seasoned in o

Re: Object-oriented philosophy

2018-09-06 Thread Michael F. Stemper
On 2018-09-06 12:32, Stefan Ram wrote: > "Michael F. Stemper" writes: >> Is there really any benefit to this change? Yes, I've eliminated >> some (a few lines per class) duplicate code. On the other hand, >> I've added the parent class and the (probably sm

Re: Object-oriented philosophy

2018-09-06 Thread Michael F. Stemper
On 2018-09-06 10:40, Abdur-Rahmaan Janhangeer wrote: > Also, get someone, preferrable a python engineer to review your code. Sounds like an advertisement to me. -- Michael F. Stemper Why doesn't anybody care about apathy? -- https://mail.python.org/mailman/listinfo/python-list

Re: Object-oriented philosophy

2018-09-06 Thread Michael F. Stemper
On 2018-09-06 09:35, Rhodri James wrote: > On 06/09/18 15:04, Michael F. Stemper wrote: >> Net net is that the only thing that ended up being common was the >> __init__ methods. Two of the classes have identical __init__ >> methods; the third has a superset of that method. The

Re: Object-oriented philosophy

2018-09-06 Thread Michael F. Stemper
On 2018-09-06 09:34, Marko Rauhamaa wrote: > "Michael F. Stemper" : > >> Since the three classes all had common methods (by design), I >> thought that maybe refactoring these three classes to inherit from >> a parent class would be beneficial. I went ahead and

Object-oriented philosophy

2018-09-06 Thread Michael F. Stemper
self ): class ConstantImpedance( LoadModel ): def __init__( self, xmlmodel, V ): super().__init__( xmlmodel, V, self.name ) def Resistance( self, V ): def Power( self, V ): def FixedValue( self ): def Update( self, V ): === end revised = -- Michael F. Stemper Thi

fsxNet Usenet gateway problem again

2018-09-06 Thread Michael Torrie
On 09/05/2018 02:30 PM, Chris Angelico wrote: > I don't think this was spamming the list with the same question; a > glitch somewhere in a netnews server appears to be re-posting some old > posts. I wonder why this bbs gateway in New Zealand keeps doing this. Seems like someone contacts the postm

Re: Hi I'm trying to get live data from stock using python , is it

2018-09-05 Thread Michael Torrie
On 09/04/2018 10:21 AM, alon.naj...@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to send to me mail with gmail :) . thanks for the help.. > Yes it's definitely possible! Hop on Google and do some searches; you're bound to find so

Re: Hi I'm trying to get live data from stock using python , is it possible?

2018-09-04 Thread Michael Torrie
On 09/04/2018 10:21 AM, alon.naj...@gmail.com wrote: > Hi , > for example: > I want to know if AAPL is more than value 300 and if it does I want it to > send to me mail with gmail :) . thanks for the help.. > Yes it's definitely possible! Hop on Google and do some searches; you're bound to find

Re: Broken pip

2018-08-31 Thread Michael F. Stemper
On 2018-08-29 16:02, Thomas Jollans wrote: > On 08/29/2018 09:05 PM, Michael F. Stemper wrote: >>> Also, PLEASE use Python 3. Still using Python 2 today is like still >>> using Windows XP in early 2013. >> I'm using the default version for the current relea

Re: Broken pip

2018-08-29 Thread Michael F. Stemper
On 2018-08-29 03:10, Thomas Jollans wrote: > On 2018-08-28 20:10, Michael F. Stemper wrote: >> I'm trying to upgrade my pip on Ubuntu 16.04. I appear to have >> buggered things up pretty well. (Details follow) Any suggestions >> on how to undo this and get everythin

Re: Broken pip

2018-08-28 Thread Michael F. Stemper
On 2018-08-28 13:45, Chris Angelico wrote: > On Wed, Aug 29, 2018 at 4:37 AM, Michael F. Stemper > wrote: >> On 2018-08-28 13:19, Larry Martell wrote: >>> On Tue, Aug 28, 2018 at 2:10 PM, Michael F. Stemper >>> wrote: >>>> I'm trying to u

Re: Broken pip

2018-08-28 Thread Michael F. Stemper
On 2018-08-28 13:19, Larry Martell wrote: > On Tue, Aug 28, 2018 at 2:10 PM, Michael F. Stemper > wrote: >> >> I'm trying to upgrade my pip on Ubuntu 16.04. I appear to have >> buggered things up pretty well. (Details follow) Any suggestions >> on how to u

Broken pip

2018-08-28 Thread Michael F. Stemper
-H option: user@host$ sudo -H pip install --upgrade pip Requirement already up-to-date: pip in /usr/local/lib/python2.7/dist-packages (18.0) user@host$ pip --version Traceback (most recent call last): File "/usr/bin/pip", line 9, in from pip import main ImportError: cannot import name main user@host$ -- Michael F. Stemper Galatians 3:28 -- https://mail.python.org/mailman/listinfo/python-list

Re: Connection refused when tryign to run bottle/flask web framweworks

2018-08-21 Thread Michael Torrie
On 08/20/2018 06:07 AM, Νίκος wrote: > Iam trying to access the bottle web framework running on my VPS as > > http://superhost.gr:8080/hello > > i get connection refused > The weird thing is that in my vps command line my hello app is in state of > listening > > [root@superhost public_html]# p

Re: How to pass Python command line options (vs arguments) when running script directly vs via Python interpreter?

2018-08-14 Thread Michael F. Stemper
rse. I haven't made the switch myself because argparse appears (upon a cursory reading of the documentation) to muddle the difference between options and arguments. -- Michael F. Stemper Indians scattered on dawn's highway bleeding; Ghosts crowd the young child's fragile eggshell mind. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to decide (and know) which Python GTK version to use?

2018-07-30 Thread Michael Torrie
On 07/30/2018 11:04 AM, Akkana Peck wrote: > Yes, this is the future, since it lets you use both GTK3 and Python3. Unfortunately the automatically-generated bindings, while fast and complete, are not quite as pythonic as the old PyGTK bindings were. The abstraction layer pygobject provides leaks

Re: Anyone using cloud based monitoring/logging services with Python logging module?

2018-07-26 Thread Michael Vilain
ng real money. Go with an on-prem solution rather than something that's cloud based. Those can be configured and deployed painlessly. -- Michael Vilain 650-322-6755 > On 26-Jul-2018, at 10:05 AM 🌞, Malcolm Greene wrote: > > Looking for feedback on anyone who's using a

Re: Python shuts down when I try to run a module

2018-07-23 Thread Michael Torrie
On 07/23/2018 01:00 AM, Lyra wrote: > Hello, > I’ve just started to learn Python coding, and downloaded version 3.7.0 from > the website.  I’ve written 5 or 6 small programs and saved them, but whenever > I try to run them, Python doesn’t work right.  The user answers the first > question and pr

Re: PyCharm

2018-07-23 Thread Michael Vilain
I used the pycharm edu version from here: https://www.jetbrains.com/pycharm-edu/download/download-thanks.html?platform=mac input works fine on it. YMMV. > On 20-Jul-2018, at 9:15 PM 🌙, no@none.invalid wrote: > > On Fri, 20 Jul 2018 20:56:41 -0700, Michael Vilain > wrote: >

Re: PyCharm

2018-07-20 Thread Michael Vilain
I'm running PyCharm Edu (to go through their great tutorial). It's version is 2018.1.3, which I got from the web site. Unless you mistyped the version, this is the current release and yours is very old. -- Michael Vilain 650-322-6755 > On 20-Jul-2018, at 8:11 PM 🌙, no@none.

Re: Feasibility of console based (non-Gui) Tkinter app which can accept keypresses?

2018-07-11 Thread Michael Torrie
On 07/11/2018 08:09 AM, jkn wrote: > So I am looking for confirmation of this, and/or whether there is any way of > running a Tkinter application in 'console' mode, running a main loop and> > both outputting data and accepting, and acting on, key presses. So far as I know, no this isn't possible,

Re: about main()

2018-07-05 Thread Michael Torrie
On 07/05/2018 11:47 AM, Calvin Spealman wrote: > That wasn't me, but I do agree with the sentiment in that its often silly > to focus on them at the wrong time and without constraints that warrant > that focus. Premature optimization is the root of all evil, the saying goes. I see this kind of th

Re: Multi-threading with a simple timer?

2018-07-03 Thread Michael Vilain
The way I've done the "input with timeout" requirement the OP requested is dependent on the operating system. The current implementation of the input function doesn't offer that feature. https://docs.python.org/3/library/functions.html#input In another language, I used low-levelsystem calls to

Re: Multi-threading with a simple timer?

2018-07-03 Thread Michael Vilain
Won't this code send a signal *regardless* of the user input to the process within 15 seconds. I don't see how it's tied to terminal input. From what I can tell, you need to create your own version of input with a timeout option. This doesn't do that. -- Michael Vilain 6

Re: I lost nearly all my modules installing 3.7

2018-07-02 Thread Michael Torrie
On 06/30/2018 11:10 AM, Elliott Roper wrote: > I should have mentioned that none of this went wrong in 3.6. All I'm after > are packages I can install with pip3. I really don't need to go down all the > twisty passages installing Fortran That's because there were likely binary packages available

Did zip ever used to fail with 0 arguments?

2018-06-22 Thread Michael Lamparski
e? But I can hardly even begin to guess how, because Python is more or less the only dynamically-typed language I use!) --- Michael -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-20 Thread Michael Torrie
On 06/20/2018 03:35 AM, bart4...@gmail.com wrote: > Pointers are merely an extra level of indirection; they can be made to fit. I'm hard pressed to think of any way in which pointers could fit into Python given the way python variables work and given the virtual machien architecture and abstractio

Re: syntax difference

2018-06-20 Thread Michael Torrie
On 06/20/2018 05:53 AM, bart4...@gmail.com wrote: > I suggest that such features just make life a little simpler. (And > make writing an efficient interpreter a little bit easier.) And I posit that most efficient interpreters don't use switch/case at all, but rather jump tables. -- https://mail.p

Re: Python list vs google group

2018-06-15 Thread Michael Torrie
On 06/15/2018 09:28 AM, T Berger wrote: > I'm suspecting that posting to python google groups (this site) gets > more responses than mailing to the python list. Am I correct? Also, > contrary to what I read on the python list information sheet, what > shows up in this forum does not match what come

Re: Posting warning message

2018-06-12 Thread Michael Torrie
On 06/12/2018 08:48 AM, T Berger wrote: > I deleted them a number of time, then got a bar across the page indicating > that a post had been deleted. It's nuts that you can't edit your own post. This "forum" is actually a mailing list mirrored to Usenet, so whatever you post gets instantly emailed

Re: Sorting NaNs

2018-06-07 Thread Michael Lamparski
g/mailman/listinfo/python-list > In any case, it's verifiably not true for CPython. > >>> def birthday(b): > ... rand = random.random > ... xs = [rand() for _ in range(2**b)] > ... return len(xs) - len(set(xs)) > ... > >>> birthday(24) > 0 >

Re: Usenet Gateway

2018-05-24 Thread Michael Torrie
On 05/24/2018 08:20 AM, Grant Edwards wrote: > But you had to jump through hoops with procmail and server/client side > filtering to get there. True, but it takes maybe 30 seconds for each new list I sign up for, and then it's out of sight, out of mind. I already do a ton of filtering on my inbox

Re: Usenet Gateway

2018-05-24 Thread Michael Torrie
On 05/24/2018 07:01 AM, Steven D'Aprano wrote: > On Thu, 24 May 2018 05:44:26 -0600, Michael Torrie wrote: > >> I agree web forums really suck for any kind of multi-user conversation. > > Oh good. Because the Python core-devs are talking about moving to > Github's

Re: Usenet Gateway

2018-05-24 Thread Michael Torrie
On 05/24/2018 07:10 AM, Chris Green wrote: > A *thread* yes, but not a whole list. I.e. if you read this using > mail/IMAP you can mark a thread read but you can't mark *all* Python > list messages read in one go can you? With tin/Usenet I look at > the list of new subjects in the Python group

Re: Usenet Gateway

2018-05-24 Thread Michael Torrie
Comparing to IMAP and Thunderbird: On 05/23/2018 04:39 PM, Chris Green wrote: > Well from other comments here it seems I'm not alone but anyway:- > > Proper threading etc. is built in check. > > It's automatically archived and one can search back through > threads for old postings,

Re: Usenet Gateway

2018-05-24 Thread Michael Torrie
On 05/23/2018 12:03 PM, Grant Edwards wrote: > Yes. NNTP and NNTP clients were designed from the ground up to deal > with ongoing discussions shared by large groups of people posting lots > of messages, and they're _very_ good at. > > Email was designed for one person sending one message to anoth

Poor corporate communication culture - was Re: syntax oddities

2018-05-20 Thread Michael Torrie
On 05/18/2018 06:25 AM, Paul Moore wrote: > There are two completely independent cultures here. In "Corporate" > cultures like where I work (where IT and business functions interact a > lot, and business users typically use tools like Outlook) top-posting > is common, conventional, and frankly, eff

Re: best way to remove leading zeros from a tuple like string

2018-05-20 Thread Michael F. Stemper
quot; ", tuple ) # following space(s) >>> tuple = sub( ",0*", ",", tuple ) # following comma >>> tuple = sub( "\(0*", "(", tuple ) # after opening parend >>> tuple '(128, 20, 8,12, 255)' >>> Or, if you li

Re: Simplest way to clobber/replace one populated directory with another?

2018-05-16 Thread Michael F. Stemper
sh script rather than a python program, you could just do: #!/bin/bash rm -r Previous mv Previous Current -- Michael F. Stemper This email is to be read by its intended recipient only. Any other party reading is required by the EULA to send me $500.00. -- https://mail.python.org/mailman/listinfo/python-list

Re: best parallelisation strategy on python

2018-04-21 Thread Michael Torrie
On 04/18/2018 07:16 PM, simona bellavista wrote: > I have a code fortran 90 that is parallelised with MPI. I would like to > traslate it in python, but I am not sure on the parallelisation strategy and > libraries. I work on clusters, with each node with 5GB memory and 12 > processors or 24 proc

Re: Cant uninstall, modify or repair python

2018-04-21 Thread Michael Torrie
On 04/21/2018 11:43 AM, jed...@gmail.com wrote: > I currently have python version 3.6.1 32 bit version on my laptop and when i > try to repair, it gives an error saying "The installer has encountered an > unexpected error installing this package. This may indicate a problem with > this package.

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Michael Torrie
On Mar 31, 2018 09:58, "Etienne Robillard" wrote: Le 2018-03-31 à 11:40, Michael Torrie a écrit : > On 03/31/2018 08:58 AM, Etienne Robillard wrote: > >> I was just wondering, could the fact that the Python community is >> willing to discontinue using and develop

Re: Python Developer Survey: Python 3 usage overtakes Python 2 usage

2018-03-31 Thread Michael Torrie
On 03/31/2018 08:58 AM, Etienne Robillard wrote: > I was just wondering, could the fact that the Python community is > willing to discontinue using and developing Python 2 softwares, does > that mean we are stopping to support standard computers and laptops > as well? I've tried several times bu

Re: Calling Matlab (2016a) function from Python(3.6)

2018-03-29 Thread Michael Torrie
On 03/28/2018 11:24 PM, Rishika Sen wrote: > I tried these options too as suggested by Paul... > h.Execute ("run('H:\\rishika\\MATLAB\\filewrite.m')") > '??? Error using run (line 41)\nH:\\rishika\\MATLAB\\filewrite.m not > found.\n\n' Crazy question, but you're sure of that path? h.E

Re: String Formatting with new .format()

2018-03-27 Thread Michael Torrie
On 03/26/2018 09:37 AM, Ganesh Pal wrote: > Hi Team, > > Just a quick suggestion, on string formatting with .format() which of the > below is better , given both give the same result . No they don't. Look more closely at the output. attempts = 1 msg2 = "Hello" print "Retry attempt

Re: Pep8 for long pattern

2018-03-27 Thread Michael Torrie
On 03/27/2018 08:17 AM, Ganesh Pal wrote: > Hello Python friends, > > How do I split the below regex , so that it fits within the character > limit of 79 words > > > pattern = [ > r'(?P([0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+:[0-9a-fA-F]+::HEAD))', > > r'(?P(owner:\s+[0-9a-fA-F]+:

Re: issues when buidling python3.* on centos 7

2018-03-26 Thread Michael Torrie
On 03/25/2018 10:15 AM, joseph pareti wrote: > The following may give a clue because of inconsistent python versions: > > [joepareti54@xxx ~]$ python -V > Python 3.5.2 :: Anaconda 4.3.0 (64-bit) What does 'which python' return? As Joseph said, hopefully you didn't overwrite /usr/bin/python with

Re: number of loops

2018-03-17 Thread Michael F. Stemper
uesses) print ('good job, you guessed correctly') else: print('nope, you lose') Of course, since you never use this variable for anything, you could also drop it altogether. -- Michael F. Stemper Nostalgia just ain't what it used to be. -- https://mail.python.org/mailman/listinfo/python-list

Re: Initializing error

2018-03-12 Thread Michael F. Stemper
On 2018-03-10 09:41, Harsh Bhardwaj wrote: On Mar 5, 2018 11:16 AM, "Harsh Bhardwaj" wrote: Plz fix this problem for me. I tried every way to fix this. Windows 7(32-bit) That's a pretty bad problem. Fortunately, there is a fix: <http://getlinux.sourceforge.net/> -- Mich

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-03 Thread Michael Torrie
On 03/03/2018 09:02 AM, ooom...@gmail.com wrote: > I can assure you that RAII does what it says on the tin and is relied on in > many critical systems to release resources robustly ... given the > pre-requisite deterministic destruction. Sure but did you read what Paul Moore wrote? He said RAI

Re: Redundant features in python library, PyQt

2018-03-02 Thread Michael Torrie
On 03/02/2018 04:15 PM, jlada...@itu.edu wrote: > Python's standard library has (to take three examples) threads, > processes, and datetime functions. Meanwhile, PyQt has QThread, > QProcess, and QDateTime. > > Does this redundancy exist for C++ programmers who are programming Qt > directly, and

Re: RFC: Proposal: Deterministic Object Destruction

2018-03-02 Thread Michael Torrie
On 03/02/2018 08:36 AM, Paul Moore wrote: > On 2 March 2018 at 15:09, wrote: >> We must be discussing a different RAII. That is the raison d'etre of RAII: >> RAII directly addresses this problem in an exception-safe way that does not >> burden the resource user at all. > > RAII works in C++ (w

Re: help me ?

2018-02-27 Thread Michael F. Stemper
27;1b', '1c', '2a', '2b', '2c', '3a', '3b', '3c' ] That's absolutely wonderful! However, I'd like to suggest one change, which would allow greater CPU utilization: for i in a: for j in b: # Sorry, I'm not PEP-8 compliant result = [ '1a', '1b', '1c', '2a', '2b', '2c', '3a', '3b', '3c' ] -- Michael F. Stemper Always remember that you are unique. Just like everyone else. -- https://mail.python.org/mailman/listinfo/python-list

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-21 Thread Michael F. Stemper
ntroduction to Programming and Problem Solving With Pascal_; Schneider, Weingart, and Perlman; (C) 1978 [2] Kernighan examines a similar issue in Section 2.1 of "Why Pascal is Not My Favorite Programming Language", <http://www.cs.virginia.edu/~cs655/readings/bwk-on-pascal.html -- Micha

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-21 Thread Michael F. Stemper
ntroduction to Programming and Problem Solving With Pascal_; Schneider, Weingart, and Perlman; (C) 1978 [2] Kernighan examines a similar issue in Section 2.1 of "Why Pascal is Not My Favorite Programming Language", <http://www.cs.virginia.edu/~cs655/readings/bwk-on-pascal.html> -- Mi

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Michael Torrie
On 02/18/2018 05:45 AM, Anders Wegge Keller wrote: > På Sun, 18 Feb 2018 07:34:03 -0500 > Richard Damon skrev: > >> Python is much stronger typed than PHP, because in PHP you can do things >> like 1 + '2' and get 3, as string values will naturally convert >> themselves to numbers, Python won't

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-17 Thread Michael Torrie
On 02/17/2018 06:31 PM, bartc wrote: > It could well do all that. But it surely cannot need 18,000 lines' worth > to do it; that much should be obvious to anyone. And in fact, for > building with MS's Visual Studio, it doesn't use that file at all, but > something smaller. (Although the MS build

Re: Suggestions on programming in Python an email simple client

2018-02-15 Thread Michael F. Stemper
er be provided interactively -- Michael F. Stemper Soglin for governor. -- https://mail.python.org/mailman/listinfo/python-list

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-13 Thread Michael F. Stemper
On 2018-02-10 16:40, Chris Angelico wrote: On Sun, Feb 11, 2018 at 8:52 AM, Chris Green wrote: Michael F. Stemper wrote: On 2018-02-09 13:37, Chris Green wrote: Use ssh (is that available at worK?) to connect from work to home Your ISP provides that capability? I'm surprised

Re: Can't Uninstall !

2018-02-12 Thread Michael F. Stemper
did you install two different 3.x versions? -- Michael F. Stemper Indians scattered on dawn's highway bleeding; Ghosts crowd the young child's fragile eggshell mind. -- https://mail.python.org/mailman/listinfo/python-list

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Gro

2018-02-11 Thread Michael F. Stemper
capability? I'm surprised. I'm with Charter and the only external IP address is for the cable modem (I think). "icanhazip" shows the same one, no matter which computer I use. -- Michael F. Stemper Psalm 94:3-6 -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: Problem during setup

2018-02-05 Thread Michael Torrie
On 02/05/2018 07:53 AM, Денис Олегович wrote: > I tried to install python 3.5 and python 3.6, but the same mistake > interrupt process > "Windows 7 Service Pack 1 applicable updates are required" Log file > attached. I tried to install some updates for Windows, but unsuccessully, > may be I don' t

Re: Simple graphic library for beginners

2018-01-12 Thread Michael Torrie
On 01/11/2018 11:48 PM, Jan Erik Moström wrote: > On 10 Jan 2018, at 13:40, Jan Erik Moström wrote: > >> I'm looking for a really easy to use graphic library. The target users >> are teachers who have never programmed before and is taking a first >> (and possible last) programming course. > > T

Re: Simple graphic library for beginners

2018-01-11 Thread Michael Torrie
On 01/11/2018 06:38 AM, bartc wrote: > Although I can't run it because 'pygame' is not available. I think > installing this library is likely to be a bigger obstacle than > programming any graphics! > > (If I try and download it as a ready-built library for Windows, it has a > range of .msi fil

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 01:13 PM, bartc wrote: > I couldn't see anything obviously simple there. A lot seems to do with > interaction which is always much more complicated than just drawing stuff. Yes the link didn't have the simple examples I hoped for. How's this: - import py

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 10:22 AM, Igor Korot wrote: > Hi, > wxPython/Phoenix. > It can do everything you need and more But the OP isn't looking for a full-blown GUI toolkit. I went back and re-read his post to be sure I wasn't misunderstanding. Therefore I don't think the suggestion to use wxPython o

Re: Simple graphic library for beginners

2018-01-10 Thread Michael Torrie
On 01/10/2018 09:16 AM, oliver wrote: > Pyqt without hesitation. Except that people are forgetting the OP is not asking about a GUI library. The subject line reads "Simple graphic[s] library for beginners." He just wants a simple graphics drawing library for beginners. Create a canvas of a certa

[OT] Re: has sourceforge exposed the dirty little secret ?

2018-01-05 Thread Michael Torrie
On 01/05/2018 10:56 AM, Kim of K. wrote: > wow! Yup that's what I said when I read your ramblings. > even you are defensive about publishing non-working garbage. Absolutely. You have absolutely no right to make demands of any of the folks who toss their half-baked personal projects up on source

Re: Python Learning

2017-12-15 Thread Michael Biondi
object-oriented+programming ) It's a huge read and not a great book if you just want to get started right away, but I've found it to be very helpful in explaining the nuances of the language.  I'm interested to see what other people find useful. Thanks, Michael On 12/15/2017 6:

Re: Processing Game Help

2017-12-11 Thread Michael Torrie
On 12/11/2017 07:27 AM, Dennis Lee Bieber wrote: > On Sun, 10 Dec 2017 16:05:37 -0800 (PST), Lauren Porter > declaimed the following: > >> Hello all! I've been trying to create a game in Python Processing Seems like most of the

Re: Please tell me how to execute python file in Ubuntu by double clicking on file. (Posting On Python-List Prohibited)

2017-12-09 Thread Michael Torrie
On 12/09/2017 08:01 PM, Chris Angelico wrote: > Been a long time since I had an Ubuntu, but is it really the case that > you can't install Ubuntu without a GUI? Of course not. Ubuntu is used in headless server situations all the time. -- https://mail.python.org/mailman/listinfo/python-list

Re: Please tell me how to execute python file in Ubuntu by double clicking on file.

2017-12-04 Thread Michael Torrie
On 12/04/2017 04:49 AM, Thomas Jollans wrote: > On 2017-12-04 10:48, dhananjaysingh091...@gmail.com wrote: >> Respected Sir/Mam, >> I am Dhananjay Singh,Student of IIIT Manipur. Sir/Mam when i am >> double click in python program (Dhananjay.py),it is opening in Text Editor >> by Default i

<    1   2   3   4   5   6   7   8   9   10   >