Re: learning and experimenting python.

2017-01-02 Thread Wildman via Python-list
. | \ \ \/ \ \/ /||Y||\ \/ / \__/ || || \__/ () () || || ooO Ooo -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: learning and experimenting python.

2017-01-03 Thread Wildman via Python-list
On Mon, 02 Jan 2017 20:25:25 -0800, Ethan Furman wrote: > On 01/02/2017 09:53 AM, Wildman via Python-list wrote: > > [rude ascii art omitted] > > That is a completely inappropriate response. Yes it was. I tend to get upset when told to shut up and go away for no good reason.

Re: Can not run the Python software

2017-01-13 Thread Bernard via Python-list
-Original Message- From: hba008 To: hba008 ; python-list Sent: Fri, Jan 13, 2017 7:02 pm Subject: Re: Can not run the Python software I have been added to the mailing list per your instructions. Please, have someone address the problem belowThanks Sent from my

Re: Can not run the Python software

2017-01-13 Thread Bernard via Python-list
Thanks for the info.. -Original Message- From: Michael Torrie To: python-list Sent: Fri, Jan 13, 2017 11:08 pm Subject: Re: Can not run the Python software On 01/13/2017 08:32 PM, Joseph L. Casale wrote: >> Just downloaded Python 3.6.0 2016-12-23 and PyCharm. Tried to r

Re: How coding in Python is bad for you

2017-01-23 Thread Wildman via Python-list
gt; It isn't. >> >> chocolate is a poison (lethal dose for a human approx 22lb) > > That's a meaningless statement. *Everything* is a poison > in sufficient quantities. Yes, even water. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Is shutil.get_terminal_size useless?

2017-01-29 Thread Wildman via Python-list
YMMV. import fcntl import os import struct import termios tty = os.open(os.ctermid(), os.O_RDONLY) ts = struct.unpack("hh", fcntl.ioctl(tty, termios.TIOCGWINSZ, "1234")) os.close(tty) columns = ts[1] rows = ts[0] print(str(columns) + "x" + str(rows)) -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: How to know what to install (Ubuntu/Debian) for a given import?

2017-02-01 Thread Wildman via Python-list
I'm here, can someone tell me what package I need? Try this: import gi gi.require_version('Gtk', '3.0') from gi.repository import Gtk -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: How to know what to install (Ubuntu/Debian) for a given import?

2017-02-01 Thread Wildman via Python-list
import gi >> gi.require_version('Gtk', '3.0') >> from gi.repository import Gtk >> > That works but it's a workaround rather than the proper way to do it > isn't it? It is the proper way. This page helps explain it. http://askubuntu.com/questions/784068/what-is-gi-repository-in-python > ... and doesn't it need an internet connection? No. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: How to know what to install (Ubuntu/Debian) for a given import?

2017-02-01 Thread Wildman via Python-list
>> > ... and doesn't it need an internet connection? >> >> No. >> > OK, no problem, but isn't it very non-portable? I don't see why not. It should work on any system that has Python3 installed, at least that is my understanding. I'm sure someone will correct me if I'm wrong. OTOH if you want in insure 100% portability with any script, you can use pyinstaller. To install for Python2: pip install pyinstaller For Python3: pip3 install pyinstaller http://www.pyinstaller.org/ -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: best way to ensure './' is at beginning of sys.path?

2017-02-03 Thread Wildman via Python-list
these pairs of lines to /etc/rc.local and reboot: export PATH=$PATH:./ exit 0 or export PATH=./:$PATH exit 0 Add 'exit 0' only if it doesn't exist already and it must be the last line. If /etc/rc.local does not exist, create it. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: best way to ensure './' is at beginning of sys.path?

2017-02-03 Thread Wildman via Python-list
TH=./:$PATH > exit 0 > > Add 'exit 0' only if it doesn't exist already and it > must be the last line. If /etc/rc.local does not > exist, create it. Sorry, I forgot something important. If you use /etc/rc.local, the execute bit must be set. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: best way to ensure './' is at beginning of sys.path?

2017-02-03 Thread Wildman via Python-list
On Fri, 03 Feb 2017 13:19:30 -0700, Michael Torrie wrote: > On 02/03/2017 12:07 PM, Wildman via Python-list wrote: >> Sorry, I forgot something important. If you use >> /etc/rc.local, the execute bit must be set. > > I don't think this is what Neal Becker was asking ab

Re: best way to ensure './' is at beginning of sys.path?

2017-02-03 Thread Wildman via Python-list
On Sat, 04 Feb 2017 09:25:42 +1100, Cameron Simpson wrote: > On 03Feb2017 14:55, Wildman wrote: >>On Fri, 03 Feb 2017 13:19:30 -0700, Michael Torrie wrote: >> >>> On 02/03/2017 12:07 PM, Wildman via Python-list wrote: >>>> Sorry, I forgot something important.

Re: best way to ensure './' is at beginning of sys.path?

2017-02-04 Thread Wildman via Python-list
rstand the danger in having the dot in the path. The './' only means the current directory. DOS and Windows has searched the current directory since their beginning. Is that also dangerous? -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: best way to ensure './' is at beginning of sys.path?

2017-02-04 Thread Wildman via Python-list
On Sat, 04 Feb 2017 18:25:03 +, Grant Edwards wrote: > On 2017-02-04, Wildman via Python-list wrote: > >> No, I do not know. You might try your question in a linux specific >> group. Personally I don't understand the danger in having the dot >> in the p

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Wildman via Python-list
On Sat, 04 Feb 2017 19:12:55 +, Grant Edwards wrote: > On 2017-02-04, Wildman via Python-list wrote: >>> >>> The next time you are in the /tmp directory looking for something, can >>> you guess what happens when you mistype "ls" as "sl"?

Re: best way to ensure './' is at beginning of sys.path?

2017-02-05 Thread Wildman via Python-list
is very unlikely. One would have a hard time placing a program on my computer and running it without me knowing about it. No, that is not a challenge. :-) -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: test

2018-03-12 Thread Alister via Python-list
On Mon, 12 Mar 2018 13:43:01 -0500, Yuan Xue wrote: > test failed -- Mollison's Bureaucracy Hypothesis: If an idea can survive a bureaucratic review and be implemented it wasn't worth doing. -- https://mail.python.org/mailman/listinfo/python-list

Re: Style Q: Instance variables defined outside of __init__

2018-03-20 Thread Alister via Python-list
nd *and test*. > > That is really well said Terry, thank you for articulating what I was > thinking but couldn't find the words for. but why would a functional programmer be programming an OOP class? -- No one becomes depraved in a moment. -- Decimus Junius Juvenalis -- https://mail.python.org/mailman/listinfo/python-list

Re: Thank you Python community!

2018-03-20 Thread Alister via Python-list
of yours are not merely chosen at > random, but are in fact, delectable morsels of laser-focused sarcasm. maybe not - I use fortune to generate mine & it can be supprisingly apt at times -- The primary function of the design engineer is to make things difficult for the fabricator and impossible for the serviceman. -- https://mail.python.org/mailman/listinfo/python-list

lire du son en format natif avec python

2018-03-21 Thread asphjt--- via Python-list
7;un peut m'aider, merci à lui d'avance. -- https://mail.python.org/mailman/listinfo/python-list

Code for Using Keyboard to Play music notes "ABCDEFG"

2018-03-25 Thread Bernard via Python-list
Pyton Friends, Do you have any code that will play the notes "ABCDEFG" from my computer keyboard when a key is pressed ? For example if I press the "a" key the note "a" will sound out of my speaker. Thanks, BigB -- https://mail.python.org/mailman/listinfo/python-list

OSError: [Errno -9981] Input overflowed

2018-04-04 Thread asphjt--- via Python-list
200) ser.write(data) ) but I have the same error as when I display it on the screen. If anyone knows an answer to this question, thank you in advance. -- https://mail.python.org/mailman/listinfo/python-list

Re: Data Integrity Parsing json

2018-04-26 Thread Alister via Python-list
is there any reason you appear to be re-inventing the wheel rather than using the existing json module from the std library? -- "Well, if you can't believe what you read in a comic book, what *___can* you believe?!" -- Bullwinkle J. Moose [Jay Ward] -- https://mail.python.org/mailman/listinfo/python-list

Re: problem in compiling C API in mingw

2018-05-08 Thread m.overmeyer--- via Python-list
64-3.1\Release\example.o:example.c:(.text+0x13): undefined > ref > erence to `_imp___Py_NoneStruct' > build\temp.win-amd64-3.1\Release\example.o:example.c:(.text+0x32): undefined > ref > erence to `_imp__PyModule_Create2' > collect2: ld returned 1 exit status > error: command 'gcc' failed with exit status 1 > - Original Message Ends You are linking against the static version of the Python library. If you link against the DLL version, this problem goes away. -Lc:\Program Files(x86)\Python\libs" should just be "-Lc:\Program Files(x86)\Python\", assuming that's where the Python DLLs are. See: https://stackoverflow.com/questions/5159353/how-can-i-get-rid-of-the-imp-prefix-in-the-linker-in-vc#5159395 -- https://mail.python.org/mailman/listinfo/python-list

Python library to break text into words

2018-05-31 Thread beliavsky--- via Python-list
eangel.pdf theboywhoplayedwithfusion.pdf thecanon.pdf theedgeofphysics.pdf thegenome.pdf thegoldilocksenigma.pdf thesphinxatdawn.pdf unnaturalselection.pdf water_thefateofourmostpreciousresource.pdf x-15diary.pdf -- https://mail.python.org/mailman/listinfo/python-list

Re: Python library to break text into words

2018-05-31 Thread beliavsky--- via Python-list
On Thursday, May 31, 2018 at 5:31:48 PM UTC-4, Dietmar Schwertberger wrote: > On 5/31/2018 10:26 PM, beliavsky--- via Python-list wrote: > > Is there a Python library that uses intelligent guesses to break sequences > > of characters into words? The general strategy would be t

Re: Stefan's headers [was:Names and identifiers]

2018-06-11 Thread Alister via Python-list
doesn't matter how good the engine is (or how much you've upgraded > the processor), because without the fuel (or software) it's just a large > paperweight (or room heater). :-) its a bloody lousy room heater without the fuel to burn & generate heat -- I want to be the white man's brother, not his brother-in-law. -- Martin Luther King, Jr. -- https://mail.python.org/mailman/listinfo/python-list

Re: What is the "Unpacking Arguments List" rule?

2018-06-13 Thread Alister via Python-list
metry with the function definition syntax. >> >> The message is quite clear, however: after the "*arg", >> you must pass keyword arguments only, i.e. they must have the form >> "param=value". >> >>> The only reason I can guess is that it ch

Re: Python list vs google group

2018-06-15 Thread Alister via Python-list
On Fri, 15 Jun 2018 08:28:38 -0700, 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 th

Re: syntax difference

2018-06-16 Thread Alister via Python-list
re I had to get a haircut or both feet firmly planted in the air. -- https://mail.python.org/mailman/listinfo/python-list

Re: Understanding memory location of Python variables

2018-06-16 Thread Alister via Python-list
as the >> myName variable itself. I also expected myName[1] to be located >> immediately after myName[0]. >> -- >> https://mail.python.org/mailman/listinfo/python-list > > Others can probably give a more complete explanation, but small numbers, > and apparently letters are

Re: Scanner freakishness [was Re: Python list vs google group]

2018-06-16 Thread Alister via Python-list
light bulbs in a nearby display board (i don't know who originally identified that one). working on the help desk it was always "fun" trying to convince the user that this was the problem, understandably they though we were pulling their leg" > > >> -- >> Steven D'Aprano "Ever since I learned about confirmation bias, I've >> been seeing it everywhere." -- Jon Ronson >> >> -- >> https://mail.python.org/mailman/listinfo/python-list -- It's later than you think. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python list vs google group

2018-06-18 Thread Alister via Python-list
re for any moderately complex question you are still likely to get contradictory answers -- Iron Law of Distribution: Them that has, gets. -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-20 Thread Alister via Python-list
-) -- Do what comes naturally. Seethe and fume and throw a tantrum. -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-20 Thread Alister via Python-list
On Wed, 20 Jun 2018 13:59:40 +, Grant Edwards wrote: > On 2018-06-20, Alister via Python-list wrote: > >> Annotations were invented by the Nazi's on the explicit instruction of >> Hitler. there, can someone now invoke Godwins law & call this >> discussion

Re: syntax difference

2018-06-20 Thread Alister via Python-list
ft. -- Shelley -- https://mail.python.org/mailman/listinfo/python-list

Re: syntax difference

2018-06-21 Thread Alister via Python-list
ee a switch if anyone can come up with a suitable syntax that does not break the rest of the python philosophy wtr indentation.) -- There are more things in heaven and earth, Horatio, than are dreamt of in your philosophy. -- Wm. Shakespeare, "Hamlet" -- https://mail.python.org/mailman/listinfo/python-list

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Alister via Python-list
probably at least 1 exception that the python experts will now point out. -- Lend money to a bad debtor and he will hate you. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Alister via Python-list
On Mon, 25 Jun 2018 11:42:27 +0100, Mark Lawrence wrote: > On 25/06/18 10:10, Alister via Python-list wrote: >> On Mon, 25 Jun 2018 11:36:25 +0400, Abdur-Rahmaan Janhangeer wrote: >> >>> i think he means like for a loop to iterate over a list you might do >>>

Re: Something new which all programmers world wide will appreciate

2018-06-28 Thread Alister via Python-list
checks in and a time > out of 20 the thing gets lost and starts putting the sauce directly on > the customer. as a diabetic the bread base puts them firmly on the bad list anyway :-( -- "If it ain't broke, don't fix it." - Bert Lantz -- https://mail.python.org/mailman/listinfo/python-list

Re: Using Python with a website

2018-07-05 Thread Alister via Python-list
tely by > reply e-mail and delete all copies of this transmission together with > any attachments. start by looking up uwsgi -- Sun in the night, everyone is together, Ascending into the heavens, life is forever. -- Brand X, "Moroccan Roll/Sun in the Night" -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-05 Thread Mark via Python-list
On Thursday, July 5, 2018 at 6:24:09 PM UTC+1, Tim Williams wrote: > On Thu, Jul 5, 2018 at 9:02 AM Mark Summerfield via Python-list < > python-list@python.org> wrote: > > > For GUI programming I often use Python bindings for Qt. > > > > There are two co

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Mark via Python-list
the script if anyone's interested.) This means that there are no import hacks and no (manual) duplication, while still being easy to test using either binding library. -- https://mail.python.org/mailman/listinfo/python-list

Re: Is there a nice way to switch between 2 different packages providing the same APIs?

2018-07-06 Thread Mark via Python-list
On Friday, July 6, 2018 at 1:22:46 PM UTC+1, Bev in TX wrote: > > On Jul 6, 2018, at 3:14 AM, Mark via Python-list > > wrote: > > > > In the end I changed to a completely different approach. > > > > I now have two parallel directories, one with PySide-bas

Re: test for absence of infinite loop

2018-07-17 Thread Alister via Python-list
we could do something like call an external process and see if > it takes too long, but that seems a bit flaky. google halting problem & you will see that this is an impossible request -- I hate quotations. -- Ralph Waldo Emerson -- https://mail.python.org/mailman/listinfo/python-list

Python Console Menu

2018-07-31 Thread Tcpip via Python-list
oice==4: print "Menu 4 has been selected" ## You can add your code or functions here elif choice==5: print "Menu 5 has been selected" ## You can add your code or function here Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python Console Menu

2018-07-31 Thread juraj.papic--- via Python-list
choice==5: > print "Menu 5 has been selected" > ## You can add your code or function here > > > Thanks. I will check the links thanks for that tips, is there any page where I can see more examples? Thanks. -- https://mail.python.org/mailman/listinfo/python-list

How to make python pick up my new-and-shiny openssl shared object

2018-08-07 Thread Fetchinson . via Python-list
nssl library" as the solution :) By the way my python is 2.7.3. -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make python pick up my new-and-shiny openssl shared object

2018-08-08 Thread Fetchinson . via Python-list
On 8/8/18, Christian Heimes wrote: > On 2018-08-08 00:07, Fetchinson . via Python-list wrote: >> The highest version of openssl available on my system is 1.0.0 which >> is not good enough for pip these days (or github for that matter). So >> I've installed 1.1.0 to a c

Re: using python's logo in your own logo

2018-08-09 Thread Alister via Python-list
a big NO. I am pretty sure you would need to get permission. -- VICARIOUSLY experience some reason to LIVE!! -- https://mail.python.org/mailman/listinfo/python-list

how to make super() work with externally defined methods in inheritance???

2018-08-15 Thread thomas.lynch--- via Python-list
ppears that supper() doesn't work with externally defined methods, but surely that can't be. What is the incantation that makes this work?? Thanks! (using setattr had the same results, AA.biginc() said AA wasn't defined .. being a class instead of an object I guess. Putting in another self.super() didn't work ..) -- https://mail.python.org/mailman/listinfo/python-list

Unexpected behaviour with DeprecationWarning, Python 3.7 and escape codes

2018-08-23 Thread Peter via Python-list
en/ the warning is evaluated (parsing time vs runtime), but I'm not sure, and I'm not sure if that should be relevant to whether the warning is in fact raised. (I am aware of PEP 565) Running CPython 3.7.0 on Windows 10, standard Thanks for your insights. Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot pass a variable given from url to route's callback fucntion and redirect issue

2018-08-30 Thread Rurpy via Python-list
nse back of a cgi-script I haven't looked at your problem in detail (I seldom read this group anymore) but I think you want something like: def index( page='myhomepage' ): If the function gets called via the "/" url, there will be no 'page' argument so you need to write the function signature to make that argument optional. No idea about question #2. -- https://mail.python.org/mailman/listinfo/python-list

Re: Cannot pass a variable given from url to route's callback fucntion and redirect issue

2018-08-30 Thread Rurpy via Python-list
ex.html': pdata = redirect( 'http://xxsuperhost.gr/cgi-bin/' + page ) else: pdata = "Hi, I'm the index page" return pdata @app.route('/log') def log(): return "Hi, I'm the /log page" if __name__ == '__main__': app.run (host='0.0.0.0', debug=True) -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: CURSES WINDOWS

2018-09-05 Thread Peter via Python-list
: shinobi@f153.n1.z21.fsxnet (shinobi) writes: Hello All, can anyone please let me know what's the path to port linux python curses program to Windows? Is there really anything that needs to be done? At least a simple hello world python curses program runs on Windows and Linux with no changes. -- https://mail.python.org/mailman/listinfo/python-list

Re: Debug script under pdb, how to avoid a bunch of errors caused by the exit()?

2018-09-06 Thread Peter via Python-list
runpy.py", line 85, in _run_code     exec(code, run_globals)   File "C:\Python34\lib\pdb.py", line 1688, in     pdb.main()   File "C:\Python34\lib\pdb.py", line 1680, in main     pdb.interaction(None, t)   File "C:\Python34\lib\pdb.py", line 346, in interaction     self._cmdloop()   File "C:\Python34\lib\pdb.py", line 319, in _cmdloop     self.cmdloop()   File "C:\Python34\lib\cmd.py", line 126, in cmdloop     line = input(self.prompt) ValueError: I/O operation on closed file. D:\Works\Python>     How to get rid of these? Best Regards, Jach Fong --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus -- https://mail.python.org/mailman/listinfo/python-list

Re: (new try) - Running a second wsgi script from within the first wsgi script

2018-09-10 Thread Alister via Python-list
response as html data? repeatedly asking the same question will not get you answered any faster in fact it may simply get you black-listed by many posters -- Why are you so hard to ignore? -- https://mail.python.org/mailman/listinfo/python-list

Re: Sending file to the user gives UnicodeEncodeError in Flask framework

2018-09-12 Thread Alister via Python-list
oblem & you may get some assistance although i suspect many posters may believe you to be a previous poster (also called Nicos) who was a disaster looking for somewhere to happen, if that is not you then I would also suggest you try reading https://www.biostars.org/p/75548/ -- "Free markets select for winning solutions." -- Eric S. Raymond -- https://mail.python.org/mailman/listinfo/python-list

Re: Experiences with a programming exercise

2018-09-15 Thread Alister via Python-list
n not go hiking in the hills. Said he, "I'm an anti-climb Max." [So is that punchline.] -- https://mail.python.org/mailman/listinfo/python-list

Re: What is not working with my "map" usage?

2018-09-22 Thread Victor via Python-list
33 BEFORE total = 333 AFTER total = 666 FINAL total = 666 [6, 66, 666] -- https://mail.python.org/mailman/listinfo/python-list

Re: What is not working with my "map" usage?

2018-09-22 Thread Victor via Python-list
On Saturday, September 22, 2018 at 6:22:32 AM UTC-7, Peter Otten wrote: > Victor via Python-list wrote: > > > Let me use a different input args and display them below. Basically, I am > > hoping to add up all elements of each nested list. So at first it should > > start

Re: What is not working with my "map" usage?

2018-09-22 Thread Victor via Python-list
On Saturday, September 22, 2018 at 12:20:08 PM UTC-7, Thomas Jollans wrote: > On 22/09/2018 20:18, Victor via Python-list wrote: > > On Saturday, September 22, 2018 at 6:22:32 AM UTC-7, Peter Otten wrote: > >> Victor via Python-list wrote: > >> > >>> Let me

compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
sss, psss, put it down! - http://www.cafepress.com/putitdown -- https://mail.python.org/mailman/listinfo/python-list

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
h I compile python with --prefix=/opt/custom because that's the >> location I'd like to install it too. So how do I tell the build system >> where to find my custom libffi? >> >> Cheers, >> Daniel >> >> >> > -- > https://mail.python.org/mailman/listinfo/python-list > -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- https://mail.python.org/mailman/listinfo/python-list

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans wrote: > On 2018-09-24 14:14, Fetchinson . via Python-list wrote: >>>> I'm trying to compile python 3.7.0 from source with a custom libffi >>>> path and the compiler/linker doesn't seem to pick up the right >>>> versio

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
On 9/24/18, Thomas Jollans wrote: > On 2018-09-24 16:30, Fetchinson . via Python-list wrote: >> [fetch@fetch]$ grep LIBFFI_INCLUDE Makefile >> LIBFFI_INCLUDEDIR= /opt/custom/lib/libffi-3.2.1/include >> >> So I'd say everything should work but it doesn't,

Re: What's an elegant way to test for list index existing?

2018-09-29 Thread Alister via Python-list
looking for trouble, I can offer you a wide selection. -- https://mail.python.org/mailman/listinfo/python-list

Re: What's an elegant way to test for list index existing?

2018-09-30 Thread Alister via Python-list
r? (In which case that's something not mentioned in > the specification.) if only 5 entries are required than simply prune off the extra using a slice as I suggested yesterday -- DalNet is like the special olympics of IRC. There's a lot of drooling goin' on and everyone is a 'winner'. -- https://mail.python.org/mailman/listinfo/python-list

Re: So apparently I've been banned from this list

2018-10-01 Thread Fetchinson . via Python-list
derstand this neither. > > I'm not very active here, but I've been lurking for years. In my eyes > Steven has always been active and helpful. Now he has *once* been a > *tiny bit* rude, and he's banned for that? > > As far as I can see the moderators do a pretty go

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

2018-10-04 Thread Alister via Python-list
this process once you have the basic working. start by testing small numbers & then use your real data once you have something that works as a starter a simple loop in python could be as follows for x in xrange(10): print x once you have an outline of a program post it back here if things dont work as expected -- A narcissist is someone better looking than you are. -- Gore Vidal -- https://mail.python.org/mailman/listinfo/python-list

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

2018-10-04 Thread Alister via Python-list
On Thu, 04 Oct 2018 09:44:01 +0100, Tony van der Hoff wrote: > On 04/10/18 09:31, Alister via Python-list wrote: >> On Wed, 03 Oct 2018 09:43:07 -0700, Musatov wrote: >> >>> On Wednesday, October 3, 2018 at 11:12:43 AM UTC-5, Michael Torrie >>> wrote: >>&

Re: Creating dice game : NEED HELP ON CHECKING ELEMENTS IN A LIST

2018-10-06 Thread Alister via Python-list
e all 1's and 5's in your result") or simply check for 1 & 5 to exit otherwise continue -- Someone hooked the twisted pair wires into the answering machine. -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: Python indentation (3 spaces)

2018-10-07 Thread Peter via Python-list
ck, hitting Tab once and Shift-Tab after. IDLE does that also. -- https://mail.python.org/mailman/listinfo/python-list

Re: Observations on the List - "Be More Kind"

2018-10-09 Thread Alister via Python-list
own and you feel there is more to be > (civilly) said -- wait a couple days so everyone can cool off, and then > start a new thread. > > Hopefully you now agree with our decisions, or at least support us in > them. If you don't, I actually am sorry -- I would much rather hav

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

2018-10-13 Thread Alister via Python-list
write it so if you write code at the limits of your ability yo do not have the skills needed to debug it. KISS - Keep It Simple Stupid -- Even if you do learn to speak correct English, whom are you going to speak it to? -- Clarence Darrow -- https://mail.python.org/mailman/listinfo/python-list

check whether a process is still running on remote hosts

2018-10-16 Thread tina_zy_qian--- via Python-list
se ssh key on some hosts. Any suggestions or sample code for step 3 or the whole script are appreciated. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: check whether a process is still running on remote hosts

2018-10-16 Thread tina_zy_qian--- via Python-list
On Tuesday, October 16, 2018 at 2:22:29 PM UTC-7, larry@gmail.com wrote: > On Tue, Oct 16, 2018 at 5:15 PM tina_zy_qian--- via Python-list > wrote: > > > > I newly learned Python, and I need to wrap up a script to do following. > > > > Env: > > 1: One laun

Re: check whether a process is still running on remote hosts

2018-10-17 Thread tina_zy_qian--- via Python-list
tep 3 or the whole script are appreciated. Thanks. Thanks everyone's comments and suggestions! I will give ansible a try later. As for now, I'm coding the scripts myself as a practice to brush up my Python skill. -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: PEP 394

2018-10-20 Thread Peter via Python-list
e archived, ceased to be, bereft of life, resting in peace or maybe even retired. I don't have any particular status change I want to see; I merely ask what other experienced python developers expect to happen. -- https://mail.python.org/mailman/listinfo/python-list

recommends of redesign OO feature of python !!!

2018-10-24 Thread iamybj--- via Python-list
ild a new python with simple grammar and better performance. -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Peter via Python-list
used to script a GUI and perform operations. http://www.sikuli.org/ If you're on Windows then the COM interface can be useful (if the program you want to copy from supports it). Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: AES Encryption/Decryption

2018-11-02 Thread Peter via Python-list
passed around in URL, and then also some PII data at rest. Thanks. Although not specifically what you asked about, it's also useful to be aware of the new secrets module in Python 3.6. Peter -- https://mail.python.org/mailman/listinfo/python-list

Re: Help with python code

2016-03-29 Thread Wildman via Python-list
On Tue, 29 Mar 2016 21:19:05 +, Rob Gaddi wrote: >> menu = input("Enter the type of pizza that you want to order from 1-5 \n") >> while menu>5 or menu <=0: >> menu = input ("Enter the right number ") >> pizza_cost = pizzatype[menu] As it

Re: pygtk button right/middle click

2016-03-30 Thread Wildman via Python-list
d). > > Other answers are things like "you'll have to write you own button > class in C, not C++". > > Is the gtk button widget really incapable of handling left or middle > mouse buttons or shift/ctrl/alt modifiers? This might help... http://faq.pygtk.org/index.py?req=show&file=faq05.004.htp -- GNU/Linux user #557453 May the Source be with you. -- https://mail.python.org/mailman/listinfo/python-list

Re: pygtk button right/middle click

2016-03-30 Thread Wildman via Python-list
isplays the menu def popup(self, event): self.menu.post(event.x_root, event.y_root) I posted this on the off chance there might be a way to translate this to gtk code. -- GNU/Linux user #557453 "The Constitution only gives people the right to pursue happiness. You have to catch it yourself." -Benjamin Franklin -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter Entry validation modes

2016-04-02 Thread Wildman via Python-list
) -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Python program

2016-04-02 Thread Pythonnoob via Python-list
! -- https://mail.python.org/mailman/listinfo/python-list

Request Help With Function

2016-04-04 Thread Wildman via Python-list
ile(target): done = True command = [target, commandlist] subprocess.Popen(command) if done: break if done: break if done: return True else: return False launch_help() -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Request Help With Function

2016-04-04 Thread Wildman via Python-list
On Mon, 04 Apr 2016 13:54:56 -0600, Ian Kelly wrote: > On Mon, Apr 4, 2016 at 1:42 PM, Wildman via Python-list > wrote: >> commandlist = commandlist.split(",") > > commandlist is a list. > >> command = [target, commandlist] >&g

Re: Request Help With Function

2016-04-04 Thread Wildman via Python-list
On Mon, 04 Apr 2016 21:02:53 +0100, MRAB wrote: > On 2016-04-04 20:42, Wildman via Python-list wrote: >> launch_help() >> > .Popen will accept either a string or a list of strings. > > You're giving it a list that contains a string and a list. Yep, that wa

Re: Python, Linux, default search places.

2016-04-07 Thread Wildman via Python-list
ams. -- GNU/Linux user #557453 Why is it all instruments seeking intelligent life in the universe are pointed away from Earth? -unknown -- https://mail.python.org/mailman/listinfo/python-list

Re: hourly weather forecast data

2016-04-12 Thread Wildman via Python-list
"We have to build a political consensus of that requires people to give up a little bit of their own... in order to create this common ground." -Hillary Clinton -- https://mail.python.org/mailman/listinfo/python-list

Re: python3 - No module named 'html5lib'

2016-04-14 Thread Wildman via Python-list
thon 3.4.2 (default, Oct 8 2014, 10:45:20) > [GCC 4.9.1] on linux > >>> import html5lib > Traceback (most recent call last): > File "", line 1, in > ImportError: No module named 'html5lib' > > Where can be the problem? apt-get install python3-html5lib -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Wildman via Python-list
On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote: > There's been a bit of chatter lately about the moderation on the Python > List (and, indirectly, comp.lang.python). The list moderators have > suspended a couple of posters for a while and we've been discussing a

Re: Howw to prevent the duplication of any value in a column within a CSV file (python)

2016-04-27 Thread darnold via Python-list
n accepted_passengers: accepted_passengers.add(name) print('welcome aboard, {}!'.format(name)) else: print('i am sorry, we have already accepted a {}.'.format(name)) print() HTH, Don -- https://mail.python.org/mailman/listinfo/python-list

Re: Importerror: cannot import name httpshandler linux

2016-04-27 Thread Wildman via Python-list
ckages using pip. But pip thows the error: > Importerror: cannot import name httpshandler linux. > > PLease help me out to resolve this. Try installing the libssl-dev package. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

web facing static text db

2016-04-29 Thread Fetchinson . via Python-list
I'm familiar with turbogears but would be willing to learn anything if sufficiently basic since my needs are pretty basic (I think). Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- https://mail.python.org/mailman/listinfo/python-list

Re: web facing static text db

2016-04-30 Thread Fetchinson . via Python-list
sounds exactly what I need. Thanks for all the other ideas too. Cheers, Daniel -- Psss, psss, put it down! - http://www.cafepress.com/putitdown -- https://mail.python.org/mailman/listinfo/python-list

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread beliavsky--- via Python-list
the U.S., Asians are over-represented among programmers relative to their share of the population and that whites and especially blacks are under-represented. Should we impose racial quotas on questions at conferences and call that "equal opportunity" as well? -- https://mail.python.org/mailman/listinfo/python-list

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