Re: How to port a python package to a embedded system

2017-04-25 Thread alister
On Mon, 24 Apr 2017 22:04:09 -0400, chenchao wrote: > Hi, everybody: > > I have x-compiled the cpython-2.7.10 and ported it on my ARM > board(it is not the Raspberry Pi and the Beaglebone Black). But now, I > have to use numpy python package on my board. So how do i x-compile this > packag

Re: Rosetta: Count in factors

2017-04-30 Thread alister
On Sat, 29 Apr 2017 22:05:16 +, Robert L. wrote: >> Task >> >> Write a program which counts up from 1, displaying each number as the >> multiplication of its prime factors. >> >> For the purpose of this task, 1 (unity) may be shown as itself. >> >> >> Example >> >>2 is prime, so i

Re: Python package to accept payments in Internet

2017-05-03 Thread alister
On Wed, 03 May 2017 18:58:50 +0300, Victor Porton wrote: > Chris Warrick wrote: > >> On 3 May 2017 at 17:19, Victor Porton wrote: >>> What do you mean by "banned"? Does this mean that Google does not use >>> software of this license? >> >> https://opensource.google.com/docs/using/agpl-policy/ >

Re: Promiscuous ports under Linux

2017-05-04 Thread alister
On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: > Cobbling together a minimalist ethernet-sniffing program, I was hoping > to use this simple mechanism for setting the socket to "promiscuous > mode" (to see all traffic going past, instead of just traffic addressed > to my machine): > >

Re: Promiscuous ports under Linux

2017-05-04 Thread alister
On Thu, 04 May 2017 14:11:04 +0300, Marko Rauhamaa wrote: > alister : > >> On Wed, 03 May 2017 23:57:49 +, Peter Pearson wrote: >> >>> Cobbling together a minimalist ethernet-sniffing program, I was hoping >>> to use this simple mechanism for setting the

Re: Rosetta: Zebra puzzle (2.)

2017-05-15 Thread alister
On Sun, 14 May 2017 12:53:15 -0700, breamoreboy wrote: > On Sunday, May 14, 2017 at 2:44:33 AM UTC+1, Steve D'Aprano wrote: >> On Sun, 14 May 2017 07:03 am, Jan van den Broek wrote: >> >> > On 2017-05-13, Robert L. wrote: >> > >> > [Schnipp] >> > >> >> def build_permutations things >> >> if

Re: Top Python Interview Questions

2017-05-27 Thread alister
On Sat, 27 May 2017 14:15:07 +1000, Chris Angelico wrote: > On Sat, May 27, 2017 at 12:19 PM, Steve D'Aprano > wrote: >> On Sat, 27 May 2017 09:37 am, Chris Angelico wrote: >> >>> On Sat, May 27, 2017 at 8:56 AM, Larry Martell >>> >>> wrote: If they write a loop with range(1,10) they are go

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-15 Thread alister
On Thu, 15 Jun 2017 22:27:40 +1000, Chris Angelico wrote: > On Thu, Jun 15, 2017 at 9:47 PM, Rhodri James > wrote: >>> 1) It is not secure. Check this out: >>> https://stackoverflow.com/questions/1906927/xml- vulnerabilities#1907500 >> XML and JSON share the vulnerabilities that come from having

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-16 Thread alister
On Fri, 16 Jun 2017 00:10:58 +1000, Chris Angelico wrote: > On Fri, Jun 16, 2017 at 12:00 AM, alister > wrote: >> On Thu, 15 Jun 2017 22:27:40 +1000, Chris Angelico wrote: >> >>> On Thu, Jun 15, 2017 at 9:47 PM, Rhodri James >>> wrote: >>>>&g

Re: [OT] is JSON all that great? - was Re: API Help

2017-06-16 Thread alister
On Thu, 15 Jun 2017 21:17:05 +0100, Erik wrote: > On 15/06/17 15:10, Chris Angelico wrote: >> On Fri, Jun 16, 2017 at 12:00 AM, alister >> wrote: >>> Json is designed to be legal Javascript code & therefore directly >>> executable so no parser is posib

Re: Developers Who Use Spaces Make More Money!

2017-06-16 Thread alister
On Thu, 15 Jun 2017 21:11:41 -0600, Ian Kelly wrote: > On Thu, Jun 15, 2017 at 8:51 PM, Larry Martell > wrote: >> On Thu, Jun 15, 2017 at 6:35 PM, Christopher Reimer >> wrote: >>> One commentator on a tech website admonished programmers for wasting >>> time by pressing the space bar four times i

Re: Instagram: 40% Py3 to 99% Py3 in 10 months (Posting On Python-List Prohibited)

2017-06-21 Thread alister
On Wed, 21 Jun 2017 01:01:06 -0700, Lawrence D’Oliveiro wrote: > On Wednesday, June 21, 2017 at 6:59:21 PM UTC+12, wxjm...@gmail.com > wrote: >> Le mardi 20 juin 2017 15:41:27 UTC+2, bream...@gmail.com a écrit : >> > On Tuesday, June 20, 2017 at 12:18:50 PM UTC+1, wxjm...@gmail.com >> > wrote: >>

Re: os.walk the apostrophe and unicode

2017-06-24 Thread alister
On Sat, 24 Jun 2017 14:57:21 -0400, Rod Person wrote: > \xe2\x80\x99, because the file name has been created using "Right single quote" instead of apostrophe, the glyphs look identical in many fonts. -- "If you understand what you're doing, you're not learning anything." --

Re: os.walk the apostrophe and unicode

2017-06-25 Thread alister
On Sun, 25 Jun 2017 02:23:15 -0700, wxjmfauth wrote: > Le samedi 24 juin 2017 21:10:47 UTC+2, alister a écrit : >> On Sat, 24 Jun 2017 14:57:21 -0400, Rod Person wrote: >> >> > \xe2\x80\x99, >> >> because the file name has been created using "Right si

Re: How to build a simple neural network in 9 lines of Python code

2017-06-27 Thread alister
On Tue, 27 Jun 2017 22:34:18 +0300, Marko Rauhamaa wrote: > John Ladasky : >> OK, that's cheating a bit, using Numpy. It's a nice little program, >> but it leverages a huge, powerful library. > > What would *not* be cheating? A language without a library would be > dead. > > > Marko true but f

Re: Teaching

2017-07-02 Thread alister
On Sun, 02 Jul 2017 17:45:39 +, Mark- wrote: > ad...@python.org wrote: > >> Irv Kalb: >> > I teach Python at two colleges in Silicon Valley. >> >> >> and I don't give a fuck about that. > > Wow, some of you folks are so civilized. It's not normally like this. We usually get a much higher

Re: s_push parser stack overflow

2012-03-20 Thread alister ware
On Tue, 20 Mar 2012 04:30:51 +, MRAB wrote: > On 20/03/2012 03:19, Артём Назаров wrote: >> Hi. >> Sorry of my english :-) >> >> code: >> print >> (((0)))

setup.py

2012-04-20 Thread alister ware
What is the correct way to set the version of my package with distutils when i build it using python setup.py bdist_rpm I have __version__="x.x.x" in my main programm but if i add from import __version__ into setup.py if fails when my prog tries to import gi.repository. I suspect my approac

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-14 Thread Alister Ware
On Mon, 13 Jun 2011 20:55:54 -0700, zainul franciscus wrote: > I started an open source file organizer called Miranda. Miranda is > inspired by Belvedere written by Adam Pash of Lifehacker (http:// > lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc). I know > you guys must be think

Re: what is the airspeed velocity of an unladen swallow

2011-06-28 Thread Alister Ware
On Tue, 28 Jun 2011 12:33:27 -0700, Xah Lee wrote: > this will be of interest to those bleeding-edge pythoners. > > “what… is the airspeed velocity of an unladen swallow?” > > xahlee.org/funny/unladen_swallow.html > > Xah is that an African or European swallow? -- -- http://mail.python.o

Does anyone know of a python tapi module

2011-07-01 Thread Alister Ware
The subject probably say is all but to elaborate. I am looking for a way to communicate with a tapi driver for a PBX so I can experiment with creating some CTI (Computer Telephony Integration) software. -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Does anyone know of a python tapi module

2011-07-02 Thread Alister Ware
On Fri, 01 Jul 2011 14:28:13 -1000, Werner Thie wrote: > On 7/1/11 11:15 AM, Alister Ware wrote: >> The subject probably say is all but to elaborate. >> >> I am looking for a way to communicate with a tapi driver for a PBX so I >> can experiment with creating s

Re: Set run vars with each call

2011-07-12 Thread Alister Ware
On Tue, 12 Jul 2011 06:32:32 -0700, Gnarlodious wrote: > Question. Is there a special method or easy way to set default values > with each call to an instance? Any ideas to make it easier? What I want > to do is have a constantly updating set of values which can be > overridden. Just thought there

Re: PyWart: os.path needs immediate attention!

2011-07-29 Thread Alister Ware
On Fri, 29 Jul 2011 10:22:04 -0700, rantingrick wrote: > -- > Overview of Problems: > -- > > * Too many methods exported. > * Poor choice of method names. > * Non public classes/methods exported! >

Re: test systems

2011-08-01 Thread Alister Ware
On Mon, 01 Aug 2011 15:42:19 -0700, Ethan Furman wrote: > Howdy, > > I'm going to setup a few linux systems for testing (probably three) as > well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and > Windows. ;) > > Any recommendations on which linuces to pick? > > ~Ethan~ I would

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Alister Ware
On Sun, 14 Aug 2011 02:54:44 -0500, Andrew Berg wrote: > On 2011.08.14 12:57 AM, rantingrick wrote: >> Follow these simply rules to become an accepted member of the Python >> community. > Sounds good. You should consider submitting this as a PEP. That would mark the first constructive action from

Re: No more Python support in NetBeans 7.0

2011-04-20 Thread alister ware
On Wed, 20 Apr 2011 03:24:00 -0700, Paul Rubin wrote: > Markus writes: >> Infoworld awarded it as best Python IDE, testing: Boa Constructor, >> Eric, ActiveState's Komodo, Oracle's NetBeans, Aptana's Pydev, >> PyScripter, SPE, Spyder, and WingWare's Wing IDE. > > I saw somebody using Geany recen

Re: Hello Friends

2011-05-06 Thread Alister Ware
On Thu, 05 May 2011 21:55:22 -0700, Ashraf Ali wrote: > Do you need legal help.If so Please visit > www.chicagopersonalinjurylawyerz.blogspot.com sorry I would only use a reputable firm (spaming a news group makes you disreputable by default) -- My NOSE is NUMB! -- http://mail.python.org/mai

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-07 Thread Alister Ware
On Sat, 07 May 2011 15:14:07 +1100, Даниил Рыжков wrote: > Thanks, Cristian! It works. >> List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk > Thanks again. Subscribed :) > 2011/5/7 craf : >> Hi. >> >> Try this: >> >> #!/usr/bin/env python >> >> import gtk.glade >> >> class TestPyGtk: >>

problem with GKT module?

2011-05-13 Thread alister ware
I am using gtk.builder with a glade generated GUI I have a simple call back defined for a radio button widget when I use widget.name in linux I get a value of None, windows returns the widget name as I would expect. is this a bug? if not how should i find the name of the widget that has trigge

Re: problem with GKT module?

2011-05-15 Thread Alister Ware
On Fri, 13 May 2011 13:13:00 +, alister ware wrote: > I am using gtk.builder with a glade generated GUI > > I have a simple call back defined for a radio button widget when I use > widget.name in linux I get a value of None, windows returns the widget > name as I would expect.

Re: problem with GKT module?

2011-05-16 Thread alister ware
On Sun, 15 May 2011 20:42:46 -0500, harrismh777 wrote: > Alister Ware wrote: >> I have a simple call back defined for a radio button widget when I use >>> widget.name in linux I get a value of None, windows returns the >>> widget name as I would expect. >>>

Re: problem with GKT module?

2011-05-17 Thread Alister Ware
On Mon, 16 May 2011 14:56:38 -0500, harrismh777 wrote: > alister ware wrote: >> def callback(self,widget,data=None): >> print widget #gives reference to radio button ok print >> widget.name #widget name on wi

Re: pyGTK identify a button

2011-05-26 Thread Alister Ware
On Wed, 25 May 2011 10:18:48 +0200, Tracubik wrote: > Hi all, > i'm trying to write a simple windows with two button in GTK, i need a > way to identify wich button is pressed. Consider that: > > the two button are connected (when clicked) to infoButton(self, widget, > data=None) > > infoButton()

Re: The worth of comments

2011-05-29 Thread Alister Ware
On Sun, 29 May 2011 12:47:52 +1200, Gregory Ewing wrote: > Irmen de Jong wrote: > >> I don't see how that is opposed to what Grant was saying. It's that >> these 'contracts' tend to change and that people forget or are too lazy >> to update the comments to reflect those changes. > > However, I c

Re: Doctest failing

2011-09-10 Thread Alister Ware
On Sat, 10 Sep 2011 04:20:17 -0700, Tigerstyle wrote: > Hi guys. > > I'm strugglin with some homework stuff and am hoping you can help me out > here. > > This is the code: > > small_words = ('into', 'the', 'a', 'of', 'at', 'in', 'for', 'on') > > def book_title(title): > """ Takes a string

Re: Best way to gain root privileges

2011-02-16 Thread Alister Ware
On Wed, 16 Feb 2011 21:26:26 +, GSO wrote: > I'm sure this question is as old as time, but what is the best way to > gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk > v2.18.9, on RHEL6.) > > Ta, > > > G. > > gmotion > PyGTK desktop GUI for Motion (software motion detector)

Re: Newbie getting desperate with for

2011-02-17 Thread Alister Ware
On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote: > On 17/02/11 16:39, Chris Rebert wrote: >> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote: >>> I have a trivially simple piece of code called timewaster.py: >>> >>> >>> while True: >>>i = 0

Re: Easy questions from a python beginner

2010-07-12 Thread Alister Ware
On Sun, 11 Jul 2010 18:17:49 +, Duncan Booth wrote: > wheres pythonmonks wrote: > >> I'm an old Perl-hacker, and am trying to Dive in Python. I have some >> easy issues (Python 2.6) >> which probably can be answered in two seconds: without going into details on how to do these things in py

Re: Why did I Embrace Islam?

2010-07-12 Thread Alister Ware
On Mon, 12 Jul 2010 14:54:00 -0700, nais-saudi wrote: > Why did I Embrace Islam? Very interesting & good fro you but I cannot find any thing related to python here. -- This place just isn't big enough for all of us. We've got to find a way off this planet. -- http://mail.python.org/mailm

Re: How do I get number of files in a particular directory.

2010-08-13 Thread Alister Ware
On Fri, 13 Aug 2010 07:40:42 -0700, blur959 wrote: > Hi all, I got a problem with my script. Everything looks good so far but > for some reason my os.rename isn't working. Can anyone tell me why? Hope > you guys could help. Thanks. > You have a number of logic flaws in your code. 1st you do not

Re: [Tutor] beginning to code

2017-09-12 Thread alister via Python-list
On Tue, 12 Sep 2017 08:03:58 -0700, Rick Johnson wrote: > Chris Angelico wrote: >> Rick Johnson wrote: >> > Ruby: >> > farray = [1.5, 1.9, 2.0, 1.0] >> > uniqueIntegers = farray.map{|f| f.to_i()}.uniq.length >> > >> > Python: >> > flist = [1.5, 1.9, 2.0, 1.0] >> > uniqueIntegers =

Re: Python dress

2017-09-13 Thread alister via Python-list
On Wed, 13 Sep 2017 04:15:26 +, Steven D'Aprano wrote: > On Wed, 13 Sep 2017 01:12:25 +0100, MRAB wrote: > >>> I don't recall seeing them go into paroxysms of gender confusion when >>> Prince Charles, >>> Duke of Edinburgh, appears in public wearing a kilt. >> >> You do know that Prince Char

Re: Python dress

2017-09-13 Thread alister via Python-list
On Wed, 13 Sep 2017 10:15:48 +0200, Thomas Jollans wrote: > On 2017-09-13 02:12, MRAB wrote: >> On 2017-09-13 00:32, Steve D'Aprano wrote: >>> The amusing thing to my mind is that the pro-discrimination, >>> anti-equality faction also tend to be the most conservative[1] >>> pro-monarchy faction. >

Re: Test Bank for Governing Texas, 3rd Edition by Champagne Harpham

2017-09-17 Thread alister via Python-list
> > > I am interested in the testbank for this book. What is the price ? Don't encourage spammers -- California, n.: From Latin "calor", meaning "heat" (as in English "calorie" or Spanish "caliente"); and "fornia'" for "sexual intercourse" or "fornication." Hence: Tierra de California, "

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-20 Thread alister via Python-list
On Tue, 19 Sep 2017 14:40:17 -0400, leam hall wrote: > On Tue, Sep 19, 2017 at 2:37 PM, Stephan Houben < > stephan...@gmail.com.invalid> wrote: > >> Op 2017-09-19, Steven D'Aprano schreef > pearwood.info>: >> >> > There is a significant chunk of the Python community for whom "just >> > pip instal

Re: Research paper "Energy Efficiency across Programming Languages: How does energy, time, and memory relate?"

2017-09-20 Thread alister via Python-list
On Wed, 20 Sep 2017 14:14:24 +0100, Paul Moore wrote: > On 20 September 2017 at 13:58, alister via Python-list > wrote: >> On Tue, 19 Sep 2017 14:40:17 -0400, leam hall wrote: >> >>> On Tue, Sep 19, 2017 at 2:37 PM, Stephan Houben < >>> stephan...@gmail.com

Re: Assertions

2017-09-22 Thread alister via Python-list
On Fri, 22 Sep 2017 03:44:59 +1000, Steve D'Aprano wrote: > On Fri, 22 Sep 2017 02:29 am, Tobiah wrote: > >> Are these completely equivalent? >> >> def foo(thing): >> >> assert(thing > 0), "Thing must be greater than zero" >> >> >> def foo(thing): >> >> if not (thing > 0): ra

Re: Assertions

2017-09-22 Thread alister via Python-list
On Fri, 22 Sep 2017 21:15:54 +1000, Steve D'Aprano wrote: > On Fri, 22 Sep 2017 08:50 pm, alister wrote: > >>> The bottom line is, if I saw >>> >>> if not (thing > 0): raise AssertionError(...) >>> >>> in a code review, I'd proba

Re: Grumpy-pants spoil-sport [was Re: [Tutor] beginning to code]

2017-09-26 Thread alister via Python-list
On Tue, 26 Sep 2017 14:16:47 +, Grant Edwards wrote: > On 2017-09-26, Ned Batchelder wrote: >> On 9/25/17 10:20 PM, Steve D'Aprano wrote: >>> On Tue, 26 Sep 2017 02:54 am, Ned Batchelder wrote: >>> [...] >>> >>> >>> >> We've been asked nicely by the list mod to stop :) > > Perhaps we could a

Re: Beginners and experts (Batchelder blog post)

2017-09-28 Thread alister via Python-list
On Wed, 27 Sep 2017 18:18:10 -0700, Larry Hudson wrote: > On 09/27/2017 09:41 AM, leam hall wrote: >> On Sat, Sep 23, 2017 at 5:26 PM, Ned Batchelder >> wrote: > [snip] >> >> The question is, what should a person "know" when hiring out as a >> programmer? What is 'know" and what should be "known

Re: Spam

2017-10-03 Thread alister via Python-list
> They are literally criminals, they use computer viruses and malware to > hijack people's computers to send their spam, and you want to trust them > and buy from them? this was probably a "Drive By" posy to get the original spam more attention & possibly bypass spam filters -- Come live w

Re: The "loop and a half"

2017-10-04 Thread alister via Python-list
On Wed, 04 Oct 2017 20:16:29 +1300, Gregory Ewing wrote: > Steve D'Aprano wrote: >> On Wed, 4 Oct 2017 01:40 pm, Chris Angelico wrote: >> >>>You know, you don't HAVE to economize on letters. It's okay to call >>>your parameters "prompt" instead of "prmt". Remember, that's part of >>>your API. >>

Re: stop/start windows services -python command

2017-10-06 Thread alister via Python-list
On Thu, 05 Oct 2017 17:37:11 -0700, Prabu T.S. wrote: > On Thursday, October 5, 2017 at 8:33:02 PM UTC-4, MRAB wrote: >> On 2017-10-05 23:32, Prabu T.S. wrote: >> > On Thursday, October 5, 2017 at 6:16:44 PM UTC-4, Prabu T.S. wrote: >> >> hello all,what is the command to stop and start windows ser

Re: The "loop and a half"

2017-10-09 Thread alister via Python-list
On Mon, 09 Oct 2017 08:00:34 +0200, Lele Gaifax wrote: > Chris Angelico writes: > >>> Or you could use a GUI editor that runs locally and has the capability >>> to edit files remotely over ssh. >> >> That's also a possibility, but I have yet to find one that can SSH to a >> server as a non-root

Re: The "loop and a half"

2017-10-09 Thread alister via Python-list
On Mon, 09 Oct 2017 17:27:27 +0300, Marko Rauhamaa wrote: > Grant Edwards : > >> On 2017-10-09, alister via Python-list wrote: >> >>> or if you want the luxury of a GUI editor simply ssh to the remote >>> machine & run the editor there (using X forwardi

Re: Lies in education [was Re: The "loop and a half"]

2017-10-13 Thread alister via Python-list
On Sat, 14 Oct 2017 01:48:44 +1300, Gregory Ewing wrote: > Steve D'Aprano wrote: >> I wasn't questioning where the data came from, but how the compiler can >> write to READ ONLY MEMORY which might not even be in the same continent >> as the compiler that generated the code. > > I thought it would

Re: Heroku (was Re: Lies in education [was Re: The "loop and a half"])

2017-10-14 Thread alister via Python-list
On Sat, 14 Oct 2017 11:41:08 +0200, Peter J. Holzer wrote: > On 2017-10-13 21:42, Ben Bacarisse wrote: >> That's one way to put it. Another is that to use Python I need to buy >> a new service that is already configured. > > That's exactly the same for PHP. You can't use that either unless > so

Re: how to read in the newsreader

2017-10-16 Thread alister via Python-list
On Mon, 16 Oct 2017 08:57:18 +0100, Chris Green wrote: > Michael Torrie wrote: >> On 10/15/2017 08:50 PM, Andrew Z wrote: >> > Gents, >> > how do i get this group in a newsreader? The digest i'm getting is >> > not >> > workable for me - i can't reply , can only read the replies from the >> > m

Re: Compression of random binary data

2017-10-23 Thread alister via Python-list
On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: > On 23 October 2017 at 10:32, wrote: >> According to this website. This is an uncompressable stream. >> >> https://en.m.wikipedia.org/wiki/Incompressible_string >> >> 12344321 >> >> It only takes seven 8 bit bytes to represent this >

Re: Compression of random binary data

2017-10-23 Thread alister via Python-list
On Mon, 23 Oct 2017 13:40:59 +, Neil Cerutti wrote: > On 2017-10-23, Chris Angelico wrote: >> On Mon, Oct 23, 2017 at 11:18 PM, alister via Python-list >> wrote: >>> On Mon, 23 Oct 2017 10:41:55 +0100, Paul Moore wrote: >>> >>>> On 23 October 20

Re: for/ if against dict - one liner

2017-11-14 Thread alister via Python-list
On Tue, 14 Nov 2017 00:44:18 -0500, Andrew Z wrote: > Hello, > i wonder how do i get the "for" and "if" to work against a dictionary > in > one line? > > basically i want to "squeeze": > dct= [ 1 : "one", 2:"two", 3:"three"] > for k, val in dct: >if k >= 2: > # do magnificent things

Re: Pros and cons of Python sources?

2017-11-25 Thread alister via Python-list
On Sat, 25 Nov 2017 09:20:44 +, Martin Schöön wrote: > Some time ago I was advised that having a Python installation based on > several sources (pip and Debian's repos in my case) is not a good idea. > I need to tidy up my installation and I don't know what to opt for and > what to opt out. >

Re: connect four (game)

2017-11-26 Thread alister via Python-list
On Sat, 25 Nov 2017 12:26:52 -0800, namenobodywants wrote: > On Friday, November 24, 2017 at 8:07:07 AM UTC-8, Chris Angelico wrote: > >> This is the kind of function that needs a docstring and some comments. >> What exactly is this doing? What are the "lines" of the board? What's >> the differen

Re: Please tell me how to execute python file in Ubuntu by double click

2017-12-09 Thread alister via Python-list
On Wed, 06 Dec 2017 10:35:58 +1200, Steve D'Aprano wrote: > On Tue, 5 Dec 2017 07:58 pm, Lawrence Dâ ÖOliveiro wrote: > >> On Tuesday, December 5, 2017 at 3:39:26 AM UTC+13, Rick Johnson wrote: >>> >>> Sounds like your OS file associations are all botched-up ... >> >> Linux doesnâ Öt do â £OS fil

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

2017-12-12 Thread alister via Python-list
On Tue, 12 Dec 2017 05:52:41 -0800, Rick Johnson wrote: > Rustom Mody wrote: >> This thread is getting like a mini hologram of our current surreal time >> If we can put aside who is right and wrong for a moment we see the >> more frightening spectacle that Repubs and democrats, Remainers and >> B

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

2017-12-15 Thread alister via Python-list
On Fri, 15 Dec 2017 11:48:20 +1300, Gregory Ewing wrote: > Rhodri James wrote: >> Even then there was RiscOS, which divorced file names from file types >> entirely. > > As did classic MacOS. > > I believe MacOSX also has the ability to store a file type as metadata, > but it doesn't seem to be u

Re: Python Learning

2017-12-17 Thread alister via Python-list
On Sat, 16 Dec 2017 14:41:00 +1200, Marko Rauhamaa wrote: > r...@zedat.fu-berlin.de (Stefan Ram): > >> Varun R writes: >>>I'm new to programming, can anyone guide me, how to start learning >>>python programming language >> >> As a start, one should learn: >> >> 1.) how to install Python >>

Re: What is wrong with this regex for matching emails?

2017-12-19 Thread alister via Python-list
On Mon, 18 Dec 2017 07:57:27 +1100, Ben Finney wrote: > Peng Yu writes: > >> Hi, >> >> I would like to extract "a...@efg.hij.xyz". But it only shows ".hij". > > Others have address this question. I'll answer a separate one: > >> Does anybody see what is wrong with it? Thanks. > > One thing th

Re: What is wrong with this regex for matching emails?

2017-12-19 Thread alister via Python-list
On Wed, 20 Dec 2017 08:21:02 +1100, Chris Angelico wrote: > On Wed, Dec 20, 2017 at 7:21 AM, alister via Python-list > wrote: >> On Mon, 18 Dec 2017 07:57:27 +1100, Ben Finney wrote: >>> A more correct match would boil down to: >>> >>> * Match any print

Re: Goto

2017-12-28 Thread alister via Python-list
On Thu, 28 Dec 2017 00:58:48 -0200, Duram wrote: > How to use goto in python? > > --- > This email has been checked for viruses by AVG. > http://www.avg.com Dont! actually you cant - there isn't one* *at least not in the core language no doubt some sick person will have manager to hack togethe

Re: Goto

2017-12-29 Thread alister via Python-list
On Thu, 28 Dec 2017 18:54:31 -0800, breamoreboy wrote: > On Thursday, December 28, 2017 at 7:40:14 PM UTC, alister wrote: >> On Thu, 28 Dec 2017 00:58:48 -0200, Duram wrote: >> >> > How to use goto in python? >> > >> > --- >> > This e

Re: : ✨🍰✨ python 2018 wiki - a piece of cake ✨🍰✨ --- 🙄🙄🙄

2018-01-08 Thread alister via Python-list
On Mon, 08 Jan 2018 15:55:00 +, user net wrote: > Abdur-Rahmaan Janhangeer: >> there is a language called python by guido >> >> you can ask your questions here ! > > > > ✨🍰✨ python - a piece of cake ✨🍰✨ > > > when u read this post in thunderbird or torBrowser, you see colored > emo

Re: Installing "kitchen" module

2018-01-22 Thread alister via Python-list
On Mon, 22 Jan 2018 08:19:51 -0800, codydaviestv wrote: > On Tuesday, 23 January 2018 02:41:04 UTC+10:30, bream...@gmail.com > wrote: >> On Monday, January 22, 2018 at 3:37:44 PM UTC, codyda...@gmail.com >> wrote: >> > So here's the situation. I am unfamiliar with Python but need it to >> > expor

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread alister via Python-list
On Sun, 28 Jan 2018 22:11:12 +, Stefan Ram wrote: > Tim Delaney writes: >>These are support people who are employed by the company I'm contracted >>to. >>Doesn't matter how often I try to train them otherwise, this type of >>thing keeps happening. > > That might be more a problem of power.

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread alister via Python-list
On Mon, 29 Jan 2018 15:20:06 +0100, Jugurtha Hadjar wrote: > On 01/28/2018 04:43 PM, Skip Montanaro wrote: >> I've never been a Windows user, but at my current job, Windows is core >> to just about everything, so I am forced to use it for a lot of stuff >> (Outlook, SQL Server, Excel, etc). > > I

Re: Where has the practice of sending screen shots as source code come from?

2018-01-29 Thread alister via Python-list
On Mon, 29 Jan 2018 12:17:39 +1300, Gregory Ewing wrote: > Steven D'Aprano wrote: >> (The day a programmer posts a WAV file of themselves reading their code >> out aloud, is the day I turn my modem off and leave the internet >> forever.) > > Shh! Don't give them ideas! just wait, once they reali

Re: Where has the practice of sending screen shots as source code come from?

2018-01-30 Thread alister via Python-list
On Tue, 30 Jan 2018 07:28:58 +, Steven D'Aprano wrote: > On Mon, 29 Jan 2018 21:32:11 -0800, Rustom Mody wrote: > >> On Sunday, January 28, 2018 at 8:37:11 PM UTC+5:30, Steven D'Aprano >> wrote: >>> I'm seeing this annoying practice more and more often. Even for >>> trivial pieces of text, a

Re: Where has the practice of sending screen shots as source code come from?

2018-01-31 Thread alister via Python-list
On Tue, 30 Jan 2018 21:22:39 +0100, Jugurtha Hadjar wrote: > On 01/29/2018 03:48 PM, alister via Python-list wrote: >> On Mon, 29 Jan 2018 15:20:06 +0100, Jugurtha Hadjar wrote: >> >>> On 01/28/2018 04:43 PM, Skip Montanaro wrote: >>>> I've never b

Re: Help to debug my free library

2018-01-31 Thread alister via Python-list
On Thu, 01 Feb 2018 06:48:03 +1100, Chris Angelico wrote: > On Thu, Feb 1, 2018 at 6:41 AM, Victor Porton wrote: >> wxjmfa...@gmail.com wrote: >> >>> Le mercredi 31 janvier 2018 20:13:06 UTC+1, Chris Angelico a écrit : On Thu, Feb 1, 2018 at 5:58 AM, Victor Porton wrote: > LibComC

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

2018-02-01 Thread alister via Python-list
On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote: > Our own programming discussion newsgroup, located at > comp.lang.idl-pvwave, started receiving spam messages several months > ago. > > Two weeks ago, access to comp.lang.idl-pvwave was blocked by Google > Groups. > > When trying to access

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

2018-02-03 Thread alister via Python-list
On Sun, 04 Feb 2018 06:49:57 +1100, Chris Angelico wrote: > On Sun, Feb 4, 2018 at 6:34 AM, Mark Lawrence > wrote: >> On 03/02/18 17:56, Peter J. Holzer wrote: >>> You seem to confuse the mailing-list and the newsgroup. The >>> mailing-list doesn't have a spam problem, and it is already (lightly)

Re: "None" and "pass"

2018-02-06 Thread alister via Python-list
On Tue, 06 Feb 2018 08:55:35 +1100, Chris Angelico wrote: > On Tue, Feb 6, 2018 at 8:39 AM, Ben Finney > wrote: >> Chris Angelico writes: >> >>> As one special case, I would accept this sort of code: >>> >>> def f(): >>> ... >>> >>> (three dots representing the special value Ellipsis) >>> >>

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

2018-02-11 Thread alister via Python-list
On Sat, 10 Feb 2018 17:12:54 +1200, mm0fmf wrote: > On 09/02/2018 21:05, codewiz...@gmail.com wrote: >> On Friday, February 9, 2018 at 2:48:17 PM UTC-5, Chris Green wrote: >>> codew...@gmail.com wrote: On Saturday, February 3, 2018 at 7:15:16 PM UTC-5, pyotr filipivich wrote: > [snip

Re: Regex on a Dictionary

2018-02-13 Thread alister via Python-list
On Tue, 13 Feb 2018 13:42:08 +, Rhodri James wrote: > On 13/02/18 13:11, Stanley Denman wrote: >> I am trying to performance a regex on a "string" of text that python >> isinstance is telling me is a dictionary. When I run the code I get >> the following error: >> >> {'/Title': '1F: Progres

Re: Respam levels.

2018-02-13 Thread alister via Python-list
On Tue, 13 Feb 2018 12:49:26 +, C W Rose wrote: > Having run a check for straightforward spam, I now find that there's a > site editing and reposting non-spam posts. An example of the changed > headers follows: > > Original post headers: >> >> From c...@seckford.org Sun Feb 11 23:23:22 2018

Re: How to make Python run as fast (or faster) than Julia

2018-02-23 Thread alister via Python-list
On Fri, 23 Feb 2018 03:11:36 -0500, Terry Reedy wrote: > On 2/22/2018 10:31 PM, Python wrote: > >>> Why do you care about the 50 million calls? That's crazy -- the >>> important thing is *calculating the Fibonacci numbers as efficiently >>> as possible*. > >> If you are writing practical program

Re: help me ?

2018-02-27 Thread alister via Python-list
On Mon, 26 Feb 2018 01:40:16 -0800, sotaro237 wrote: > Define 2 lists. The first one must contain the integer values 1, 2 and 3 > and the second one the string values a, b and c. Iterate through both > lists to create another list that contains all the combinations of the A > and B elements. The f

Re: py2exe output flagged as malware

2018-02-28 Thread alister via Python-list
On Wed, 28 Feb 2018 09:53:09 +, Robin Becker wrote: > I see this has happened to others in the past. I'm using 32 bit python > 2.7.10 with py2exe 3.3 on windows 7. The exes work fine, > but when I try to download into windows 10 I'm getting the exes > immediately removed as malware. > > Is th

Re: Bypassing firewall

2018-03-05 Thread Alister via Python-list
On Mon, 05 Mar 2018 08:37:14 +, Faruq Bashir wrote: > How will i bypass web application firewall For what purpose? is this your firewall? -- https://mail.python.org/mailman/listinfo/python-list

Re: Style for docstring

2022-04-22 Thread alister via Python-list
On Fri, 22 Apr 2022 14:36:27 -0500, Michael F. Stemper wrote: > I'm writing a function that is nearly self-documenting by its name, > but still want to give it a docstring. Which of these would be best from > a stylistic point of view: > > >Tells caller whether or not a permutation is even.

Re: Python & nmap

2022-05-19 Thread alister via Python-list
On Wed, 18 May 2022 23:52:05 +0200, ^Bart wrote: > Hi guys, > > i need to copy some files from a Debian client to all linux embedded > clients. > > I know the linux commands like: > > # scp "my_file" root@192.168.205.x/my_directory > > But... I have to upload 100 devices, I have a lan and a dh

Re: Humour

2022-09-06 Thread alister via Python-list
On Sun, 4 Sep 2022 02:08:20 -0700 (PDT), Ali Muhammad wrote: > Hi python devs it seems you do not have a sense of humour and I am here > to change that please I request to make it so on April 1st you change > the print function to a capital P this will be funny and people will use > language there

Re: on writing a while loop for rolling two dice

2021-09-07 Thread alister via Python-list
On Tue, 07 Sep 2021 14:53:29 +, Grant Edwards wrote: > On 2021-09-06, Stefan Ram wrote: >> "Avi Gross" writes: >>> In languages like C/C++ there are people who make up macros like: >>>#define INDEFINITELY_LOOP while (true) >>>Or something like that and then allow the preprocessor to replace

Re: Friday Finking: Contorted loops

2021-09-12 Thread alister via Python-list
On Sun, 12 Sep 2021 10:11:15 +0200, jak wrote: > -- snip -- >> >> An inconsistency that I have been able to notice is this: >> someone suggests to remedy the absence of the do-while with: >> while True: >> ... >> if condition: >> break >> the problem arises if the while has

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-15 Thread alister via Python-list
On Thu, 16 Sep 2021 03:26:39 +1000, Chris Angelico wrote: > On Thu, Sep 16, 2021 at 3:17 AM Mostowski Collapse > wrote: >> >> I really wonder why my Python implementation is a factor 40 slower than >> my JavaScript implementation. >> Structurally its the same code. >> >> > Very hard to know. Your

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-15 Thread alister via Python-list
On Wed, 15 Sep 2021 18:23:10 +0200, Mostowski Collapse wrote: > I really wonder why my Python implementation is a factor 40 slower than > my JavaScript implementation. > Structurally its the same code. > > You can check yourself: > > Python Version: > https://github.com/jburse/dogelog-moon/blob/

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-15 Thread alister via Python-list
C+2: >> Do you mean, replace this: >> i = 0 while i < len(term.args) - 1: >> mark_term(term.args[i]) >> i += 1 term = term.args[i] >> >> By this: >> >> for i,term in enumerate(term.args): >> mark_term(term.args[i]) >> >

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-15 Thread alister via Python-list
On Wed, 15 Sep 2021 18:40:52 +, alister wrote: > On Wed, 15 Sep 2021 11:31:48 -0700, Mostowski Collapse wrote: > >> There is a further problem with this: >> >>> for i,term in enumerate(term.args): >>> mark_term(term.args[i]) >> >>

Re: ANN: Dogelog Runtime, Prolog to the Moon (2021)

2021-09-15 Thread alister via Python-list
On Wed, 15 Sep 2021 11:48:18 -0700, Mostowski Collapse wrote: > And how do you iterate over the first n-1 elements of a list with n > elements? This is what my code does: > > i = 0 while i < len(term.args) - 1: > mark_term(term.args[i]) > i += 1 term = term.args[i] > > You can try yourse

<    2   3   4   5   6   7   8   >