compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
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 version. The system libffi doesn't have the development files so I've installed the latest libffi (also from source) to /opt/custom but still I

Re: compiling 3.7.0 from source with custom libffi path

2018-09-24 Thread Fetchinson . via Python-list
>> 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 >> version. The system libffi doesn't have the development files so I've >> installed the latest libffi (also fr

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
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 help with that. You'll have to write lots of >> simple

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
r point is that a) we will not change the standard and b) we deliver an editor that by default enforces the standard, and c) to be fair, many other editors will do the same. For example, the first Python library I ever tried to use was What library?  From where? poorly maintained and had spa

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

2018-10-09 Thread Alister via Python-list
e ban simply makes you look like a petulant child, I am sorely tempted to kill file you now myself. > > Suspending Mark Lawrence: > > He has a history of posting attacks. I sent him a private warning, he > responded a couple days later with another att

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

2018-10-13 Thread Alister via Python-list
On Fri, 12 Oct 2018 09:12:03 -0700, Rob Gaddi wrote: > On 10/11/2018 11:29 PM, Kaan Taze wrote: >> Hi everyone, >> >> Since this is my first post to mail-list I'm kind of hesitant to ask >> this question here but as many of you spend years working with Python &

check whether a process is still running on remote hosts

2018-10-16 Thread tina_zy_qian--- via Python-list
I newly learned Python, and I need to wrap up a script to do following. Env: 1: One launcher Linux VM (from where to run the Python script) 2. 100+ Linux VM requirement: In general, run a remote_script on remote 100 VMs and get the log files generated to remote hosts back to launcher. steps 1

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
On Tuesday, October 16, 2018 at 2:14:26 PM UTC-7, tina_z...@yahoo.com wrote: > I newly learned Python, and I need to wrap up a script to do following. > > Env: > 1: One launcher Linux VM (from where to run the Python script) > 2. 100+ Linux VM > > requirement: > In gene

Re: Re: PEP 394

2018-10-20 Thread Peter via Python-list
I'd imagine the PEP would stay as active, but changed so that: python2 -> always refers to python v2 python3 -> always refers to python v3 python -> which currently refers to python v2 will change to point to python v3 I don't know when the core team would be considerin

recommends of redesign OO feature of python !!!

2018-10-24 Thread iamybj--- via Python-list
I am an engineer of java and c#, I want to some personal projects in free time, and I choose python. After try python, I hava some suggestion. The first thing is that python’s class is not well designed than other programming languages. Using dictionary as data model is the 20th century style

Re: Accessing clipboard through software built on Python

2018-10-28 Thread Peter via Python-list
On 28/10/2018 12: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 3. Highlight another string of text 4. Ctl+HOTKEY1 stores another string of text somewhere as

Re: AES Encryption/Decryption

2018-11-02 Thread Peter via Python-list
On 3/11/2018 1:42 AM, Jeff M wrote: Python newbie here, looking for code samples for encrypting and decrypting functions, using AES. See lots of stuff on the interwebs, but lots of comments back an forth about bugs, or implemented incorrect, etc... I need to encrypt some strings that will be

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
Hello, I am new to Python and programming in general. However, I have gained some skills in Python. I have been working with it in order to gain some real world problem solving skills for my job. I have written a program in Python track the number of visits customers make to our business

Request Help With Function

2016-04-04 Thread Wildman via Python-list
e not been able to figure out why I'm getting the error. Any help would be appreciated. Below is the complete code for the test program: #!/usr/bin/env python import os, subprocess, tkMessageBox def launch_help(): pathlist = os.environ["PATH"] executelist = "

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
On Thu, 07 Apr 2016 13:02:46 +0200, Frantisek.Fridrich wrote: > Hello. > > I run a third party program that can use a system installation of Python. > I have to modify environment variables: > PYTHONPATH, > PATH, > LD_LIBRARY_PATH. > > All these environment

Re: hourly weather forecast data

2016-04-12 Thread Wildman via Python-list
On Tue, 12 Apr 2016 23:36:26 -0400, kamaraju kusumanchi wrote: > Is there a way to get hourly weather forecast data (temperature, > chance of precipitation) from the command line in Debian Linux? > > Basically, I am trying to write a python program that will send myself > an email

Re: python3 - No module named 'html5lib'

2016-04-14 Thread Wildman via Python-list
On Thu, 14 Apr 2016 02:31:59 -0700, Sergio Spina wrote: > I'm running a python3 program that requires html5lib but I receive the error > No module named 'html5lib'. > > Here are two session of terminal: > > sam@pc ~ $ python > Python 2.7.9 (default

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
On Wed, 27 Apr 2016 10:13:45 -0700, bharadwajsrivatsa wrote: > I tried installing Python 2.7.11 on HP-UX which already has all > the build and run time dependencies installed on it such as > openssl, libffi, etc. But after installing python , I tried > installing some open source pa

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
On Thursday, May 5, 2016 at 3:00:01 PM UTC-4, Terry Reedy wrote: > https://motherboard.vice.com/blog/python-is-an-equal-opportunity-programming-language > > from an 'Intel(R) Software Evangelist' > -- > Terry Jan Reedy >From the link: MB: What is it about Python tha

Re: Python is an Equal Opportunity Programming Language

2016-05-06 Thread beliavsky--- via Python-list
On Friday, May 6, 2016 at 5:07:28 PM UTC-4, Ethan Furman wrote: > On 05/06/2016 01:35 PM, beliavsky--- via Python-list wrote: > > > Most of [Guido's] keynote at that conference was answering questions from > > the people who had attended. And he actually said, &quo

Re: Python is an Equal Opportunity Programming Language

2016-05-08 Thread beliavsky--- via Python-list
On Saturday, May 7, 2016 at 4:02:32 AM UTC-4, Stephen Hansen wrote: > On Fri, May 6, 2016, at 11:43 PM, Gregory Ewing wrote: > > Steven D'Aprano wrote: > > > Who is setting and enforcing this quota, and given that only about 1 in 20 > > > Python programmers

Intel Distribution for Python

2016-05-10 Thread beliavsky--- via Python-list
The Intel Distribution for Python 2017 Beta https://software.intel.com/en-us/python-distribution is available for Windows, Linux, and Mac OS for Python 2.7 and 3.5. "The Beta product adds new Python packages like scikit-learn, mpi4py, numba, conda, tbb (Python interfaces to Intel® Thre

Re: Intel Distribution for Python

2016-05-11 Thread beliavsky--- via Python-list
tand that can anyone put some light on that how > license can be expired? I assume that the Intel python.exe executable will stop running on that date. When I had a trial license for the Intel Fortran compiler, ifort.exe stopped working after one month. -- https://mail.python.org/mailman/listinfo/python-list

Re: Wanted Python programmer to join team

2016-05-16 Thread Wildman via Python-list
On Mon, 16 May 2016 12:46:13 -0700, netcrime4 wrote: > My team is getting more projects that it can handle so we are looking for > Python programers to join. You will be given tasks to complete full or part > of the project. > > Majority of projects consist of data mini

Re: Extract the middle N chars of a string

2016-05-18 Thread Wildman via Python-list
quot;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

Python 3.5.1

2016-05-19 Thread Bella via Python-list
Thisis my first encountering with Python. I have successfully downloaded Python3.5.1 for Windows but see only a black window with command prompt. I do not see IDLE under PYthon on Windows Start Menu. Downloaded version of Python is based on 32-bit and my PC is 64-bit. Couldyo please help

Re: META Culture of this place [was Re: for / while else doesn't make sense]

2016-05-24 Thread Wildman via Python-list
lace. > > I'm not looking for strict rules. The discussions can be good. > >> There are >> plenty of such forums available: Stackoverflow, /r/python, #python, >> Python-Dev, etc, all with their own idiosyncrasies. This is ours: we have a >> bunch of people

import

2016-05-30 Thread luca72 via Python-list
https://mail.python.org/mailman/listinfo/python-list

Re: Python on Windows with linux environment

2016-06-02 Thread Wildman via Python-list
On Thu, 02 Jun 2016 04:22:45 -0700, Muhammad Ali wrote: > Hi, > > I use windows regularly, however, I use linux for only my research work at > supercomputer. In my research field (materials science) most of the scripts > are being written in python with linux based system. Co

Re: Intel Distribution for Python

2016-06-09 Thread beliavsky--- via Python-list
Intel has released Beta Update 1 of its Python distribution: "What's New! Jupyter* notebook interface Neural network APIs support for pyDAAL Optimized random number generation features for numpy.random package" -- https://mail.python.org/mailman/listinfo/python-list

pip vs pip2 vs pip2.7?

2016-06-15 Thread Chupo via Python-list
Hi everyone, this is my first post here. I've been using Python occasionally to accomplish some specific tasks but now I decided to study it more seriously. I am successfully using both Python 2.6.2 and Python 3.2.2 instaled on Windows. I installed 2.6.2 back in 2009. and 3.2.2 came

python-2.7.11.msi destroys PATH env var?

2016-06-15 Thread Chupo via Python-list
After installing Python 2.7.11 through python-2.7.11.msi Windows installer OS couldn't anymore detect antivirus software so after some investigation I found that PATH environment variable was completely removed from the system. I had to recreate the PATH var and add: %SystemRoot%\sys

Re: pip vs pip2 vs pip2.7?

2016-06-15 Thread Chupo via Python-list
In article , Random832 says... > The idea is, if you have multiple python installations on your path, > "pip" will find the first one, "pip2" will find the first python2 one > (so if the first one was python3, or vice versa), and pip2.7 will find > 2.7 even if e.

best text editor for programming Python on a Mac

2016-06-17 Thread Chris via Python-list
uggestions for a good open source text editor for the Mac out there? For now, I am going to stick with vim. -- https://mail.python.org/mailman/listinfo/python-list

Re: value of pi and 22/7

2016-06-20 Thread Wildman via Python-list
ct that something amazing was done. I keep an open mind to any possibility. Right now there is no actual proof to support any theory. -- GNU/Linux user #557453 "Be at war with your vices, at peace with your neighbors, and let every new year find you a better man." -Benjamin Franklin -- https://mail.python.org/mailman/listinfo/python-list

Re: while Loops

2016-06-21 Thread Wildman via Python-list
Thanks for your help! The operator '<=' means less than or equal. To get the results you are expecting, you need to use '<' only. i=1 while i<5: print(i) i=i+1 1 2 3 4 -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

[ANN] pygcgen (github changelog generator)

2016-07-01 Thread topic2k--- via Python-list
Hello, maybe you know "GitHub Changelog Generator" (https://github.com/skywinder/github-changelog-generator). As i came across it, i liked to try it, but wasn't able to get it running. The script is written in Ruby. As i don't know Ruby, i had the idea to convert it to

Re: Touch screen development in Python

2016-07-11 Thread Wildman via Python-list
On Mon, 11 Jul 2016 19:21:56 +0200, Jahn wrote: > Hi , > Does anyone use Python for developping applications that work with a touch > screen? > http://www.technolabsz.com/2011/08/how-to-make-touch-screen-user-interface.html -- GNU/Linux user #557453 The cow died so I don'

python IDLE display with a 13.3-inch screen

2016-07-17 Thread bbking4611--- via Python-list
Hello, I just load the latest version of Python 3.5 on my new computer Asus 13.3-inch full HD display and the police is blurred in IDLE. I like to use IDLE with my students but I am unable to solve the problem. If someone can do an update for its screens. Thank you. Cordially. -- https

Re: SyntaxError: Non-ASCII character

2016-07-17 Thread Wildman via Python-list
On Sun, 17 Jul 2016 05:01:21 -0700, ldompeling wrote: > I installed python 3.4 and set my python path to PYTONPATH:/usr/bin/python3.4 > > When I try to import pyaudio then I get this error: > Python 3.4.2 (default, Oct 19 2014, 13:31:11) > [GCC 4.9.1] on linux > Type

Python packages listed in PyPI

2016-07-20 Thread Rayne via Python-list
Hi, May I know if the Python packages listed on the PyPI page (https://pypi.python.org/pypi) are OS-independent? That is, do I download and install the same package on both Windows and Linux systems? Thank you. Regards,Rayne -- https://mail.python.org/mailman/listinfo/python-list

Re: Python packages listed in PyPI

2016-07-20 Thread Rayne via Python-list
Thanks! One more question: Does "pip install" require Internet to work? Or are all implementations already contained in the packages and so do not require additional downloads? From: Pete Forman To: python-list@python.org Sent: Thursday, July 21, 2016 2:19 PM Subject:

Re: Python packages listed in PyPI

2016-07-21 Thread Rayne via Python-list
"I don't understand what difference you intend between “implementations” and “packages”." I meant whether the package is self-contained, that is, all the different implementations for different OS and versions of Python are already contained in the package itself. But you'

Re: making executables smaller

2016-07-26 Thread Wildman via Python-list
ot that skilled at python, I put stuff like for example, > import sys. I imagine the final project could be made smaller by > specifying from something import something_else. but the thing is, > I don’t know what smaller I could import with these set of modules. > Is there a program tha

where is it

2016-08-06 Thread Dave via Python-list
I am trying to associate the .py file extension with idle...where IS idle? Can you make it a bit more difficult to load/use your software please. -- https://mail.python.org/mailman/listinfo/python-list

api-ms-win-crt-runtime-l1-1-0.dll missing ?

2016-08-08 Thread zutix via Python-list
I just have subscribed, so I send my message again as required. Sorry for not having pay attention. Thank you for your free product PYTHON I'd like to familiarize with, if possible. Environment: Windows 8.1 proc x64 I installed the version from the

python 3.5.2 lounch: api-ms-win-crt-runtime-l1-1-0.dll is missing ?

2016-08-08 Thread zutix via Python-list
Thank you for your free product PYTHON I'd like to familiarize with, if possible. Environment: Windows 8.1 proc x64 I installed the version from the buton. After a succesfull installation, a system error occurs on the lounch of the program. I desinstalled this version

api-ms-win-crt-runtime-l1-1-0.dll missing ?

2016-08-08 Thread zutix via Python-list
Thank you for your free product PYTHON I'd like to familiarize with, if possible. Environment: Windows 8.1 proc x64 I installed the version from the buton. After a succesfull installation, a system error occurs on the lounch of the program. I desinstalled this version

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

2018-11-12 Thread Wildman via Python-list
I tried posting this already but it didn't make it. I am trying again... On Tue, 13 Nov 2018 01:07:06 +0530, srinivasan wrote: > Dear Python Experts, > > *First method:* > > I need to get the IP address basically the gateway IP I am assuming your platform is Linux. If

Re: Re: Generators, generator expressions, and loops

2018-11-16 Thread Peter via Python-list
all powers of two, for example? In C it would be for (int i = 0; ; i++) { ... } or for (int i = 1; ; i *= 2) { ... } In Python, I could define a generator def powers(): i = 1 while True: yield(i) i *= 2 for i in powers

Have I Been Banned?

2018-11-20 Thread Wildman via Python-list
know why? Of course I am not sure if this post will make it to the server. -- GNU/Linux user #557453 Restricted area! Authorized trespassers only. -- https://mail.python.org/mailman/listinfo/python-list

Re: Have I Been Banned?

2018-11-20 Thread Wildman via Python-list
some light on the subject. -- GNU/Linux user #557453 The cow died so I don't need your bull! -- https://mail.python.org/mailman/listinfo/python-list

Re: Unable to find newly installed Python 3.7.1

2018-11-23 Thread Peter via Python-list
On 23/11/2018 10:51 PM, Edward Popko wrote: Snake people: I'm a Java person and thought to try Python for Windows. I installed Python 3.7.1 (64-bit) hoping for an IDE, documentation and even a sample or two. The python-3.7.1-amd64.exe unpacks and installs fine. Only problem is I cannot fi

Re: how to match list members in py3.x

2018-11-25 Thread Alister via Python-list
paid." - Martin Mull -- https://mail.python.org/mailman/listinfo/python-list

Re: Issue in using "subprocess.Popen" for parsing the command output

2018-11-25 Thread Wildman via Python-list
On Sun, 25 Nov 2018 22:43:10 +0530, srinivasan wrote: > Dear Python Experts Team, > > As am newbie still learning the python syntax from past 2 weeks, Excuse me, > If this might be silly question, As I am trying to execute shell command > (ie, nmcli) using "subprocess.Pope

Re: how to match list members in py3.x

2018-11-25 Thread Alister via Python-list
get paid." >> - Martin Mull > > IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART > ASS. with an attitude like that I will go one better & ignore ALL your posts -- Good news. Ten weeks from Friday will be a pretty good day. -- https://mail.python.org/mailman/listinfo/python-list

Re: RAR functionality

2018-11-30 Thread Wildman via Python-list
On Fri, 30 Nov 2018 16:42:06 -0500, Benjamin Schollnick wrote: > Folks, > > Can anyone explain to me why RAR support isn’t available natively in python? > > We have the zipfile and tarfile modules… > > Yes, there is rarfile and PaTools but they both rely on RAR being avai

Re: Program to keep track of success percentage

2018-12-08 Thread Alister via Python-list
t describe how you would do it if keeping score on paper. a simple loop keep a count of the number for questions keep a count of the number. calculate the percentage. once you have what is known as pseudo code you will be 90% of the way there (python is effectively executable pseudo code anyway

building 3.7.1 from source, _ctypes and libffi troubles

2018-12-20 Thread Fetchinson . via Python-list
ude And still I get Failed to build these modules: _ctypes from make when I try to build python 3.7.1 Also tried adding --with-system-ffi to ./configure but that didn't help either. Does anyone have an idea what's wrong? I've seen some related bug reports, e.g. https://bugs.py

Re: building 3.7.1 from source, _ctypes and libffi troubles

2018-12-20 Thread Fetchinson . via Python-list
pkg-config is used by python's configure script > so everything should be fine. I also set > LD_LIBRARY_PATH=/home/fetch/opt/lib:/home/fetch/opt/lib64 and also > C_INCLUDE_PATH=/home/fetch/opt/include > > And still I get > > Failed to build these modules: > _ctypes >

Re: building 3.7.1 from source, _ctypes and libffi troubles

2018-12-25 Thread Fetchinson . via Python-list
> > Then you'll have CONFIGURE_LDFLAGS and PY_LDFLAGS set in the generated > makefile and setup.py will pick up the directory from there. Thanks a lot! This indeed worked, now _ctypes compiles no problemlo! Cheers, Daniel > Anyways, hope it helps. This worked for me on Ubuntu 16.04.5 LTS. -- https://mail.python.org/mailman/listinfo/python-list

Python Humble Bundle from Packt

2019-01-01 Thread beliavsky--- via Python-list
For about the next two weeks, Humble Bundle https://www.humblebundle.com/books/python-packt-2019-books offers the following 18 books and 7 videos on Python for $15. BOOKS: Python Interviews OpenCV 3 Computer Vision with Python Cookbook Mastering Flask Web Development Python Automation

Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
I read that pep 484 type hinting of python has no effect of performance, then what’s the purpose of it? Just a toy ? Python is an old programming language, but not better than other programming languages, then what are you all dong for so many times ? Pep484 is too complex. Typle should not a

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
In fact, there is only 3 types in all prigramming languages. Primitive type: int, string, bool, char Complex type: struct or class Array Type: int[10], string[100], struct[1000] These 3 type can represent all thins in the world. -- https://mail.python.org/mailman/listinfo/python-list

Re: Type hinting of Python is just a toy ?

2019-01-04 Thread iamybj--- via Python-list
; } -- https://mail.python.org/mailman/listinfo/python-list

Re: Are all items in list the same?

2019-01-08 Thread Alister via Python-list
l. Am I missing >>> something? >> >> a[1:] == a[:-1] >> >> :) >> >> > Very clever! It is definitely the shortest solution. would that still not return true if the list was a palindrome? -- Every young man should have a hobby: learning how to handle money is the best one. -- Jack Hurley -- https://mail.python.org/mailman/listinfo/python-list

Re: Are all items in list the same?

2019-01-08 Thread Alister via Python-list
rg ) == len(a): >>>> >>>> I'm somewhat afraid that this won't scale all that well. Am I missing >>>> something? >>> >>> a[1:] == a[:-1] >>> >>> :) >>> >>> >> Very clever! It is definitely the shortest solution. > > would that still not return true if the list was a palindrome? ignore me, just tried & ok -- I'm not proud. -- https://mail.python.org/mailman/listinfo/python-list

python package management confusion

2019-01-14 Thread dcs3spp via Python-list
Hi, I am a newbie completely confused with python package management. I have a setup.py file (listed below) and have setup pip and setup.cfg to install my own dependencies from a local devpi repository. Can setup.py reference a git repository so that I can install from that url? Is this

Re: python package management confusion

2019-01-15 Thread dcs3spp via Python-list
On Tuesday, 15 January 2019 07:48:57 UTC, Chris Angelico wrote: > On Tue, Jan 15, 2019 at 6:18 PM dieter wrote: > > > > dcs3spp via Python-list writes: > > > I am a newbie completely confused with python package management. > > > > > > I have a setup

Re: 3 random numbers

2019-01-15 Thread Alister via Python-list
p; I suspect it has been misinterpreted. unless i am very much mistaken the tutor expects the program to pick the 3 random numbers each time it is run, not the programmer -- We've picked COBOL as the language of choice. -- https://mail.python.org/mailman/listinfo/python-list

Re: python package management confusion

2019-01-16 Thread dcs3spp via Python-list
On Wednesday, 16 January 2019 07:07:29 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > So to manage the development of private packages, e.g. wheels, I would have > > to use my own private repository (something like devpi or a an alternative > > clou

Re: get the terminal's size

2019-01-16 Thread Wildman via Python-list
On Mon, 14 Jan 2019 11:57:33 +, Alex Ternaute wrote: > Hi there, > > I want to know the number of columns of the terminal where python2 writes > it's outputs. > > In a terminal, I type > $ echo $COLUMNS > 100 > > But in Python, os.getenv("COLUMNS&q

Re: python package management confusion

2019-01-17 Thread dcs3spp via Python-list
On Thursday, 17 January 2019 07:41:43 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > How do I configure python setup.py develop to pull the pyramid_core > > dependent packages using virtualenv? > > Your "setup.py" below should work (onc

Re: python package management confusion

2019-01-18 Thread dcs3spp via Python-list
On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > dcs3spp via Python-list writes: > > ... > > How do I configure setuptools to pull my own private dependency package > > using virtualenv + python setup.py develop > > > You call "python setup.py dev

Re: python package management confusion

2019-01-19 Thread dcs3spp via Python-list
On Saturday, 19 January 2019 07:33:50 UTC, dieter wrote: > dcs3spp via Python-list writes: > > On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > > ... > > My situation is similar to the following > > > > Assume the following two privately devel

How to access a folder in a zip file?

2019-01-19 Thread mignoncharly via Python-list
Hello! I'm a newbie in python and I was trying to access a folder inside a zip file and I also have issues with relative and absolute path. Thks in advance. In projects there a lot of urls (i'll read them later one by one and store them in a list/array so that I could work with

How to access a folder inside a zip file

2019-01-19 Thread mignoncharly--- via Python-list
Hello! I'm a newbie in python and I was trying to access a folder inside a zip file and I also have issues with relative and absolute path. Thks in advance. In projects there a lot of urls (i'll read them later one by one and store them in a list/array so that I could work with

Re: python package management confusion

2019-01-20 Thread dcs3spp via Python-list
On Saturday, 19 January 2019 11:17:19 UTC, dcs3spp wrote: > On Saturday, 19 January 2019 07:33:50 UTC, dieter wrote: > > dcs3spp via Python-list writes: > > > On Friday, 18 January 2019 07:39:00 UTC, dieter wrote: > > > ... > > > My situation is similar to

Re: python package management confusion

2019-01-20 Thread dcs3spp via Python-list
On Sunday, 20 January 2019 20:38:30 UTC, Oscar Benjamin wrote: > On Sun, 20 Jan 2019 at 16:22, dcs3spp via Python-list > wrote: > > > > On Saturday, 19 January 2019 11:17:19 UTC, dcs3spp wrote: > > > > > > My question is, can setuptools be configured to pull

Re: python package management confusion

2019-01-20 Thread dcs3spp via Python-list
On Sunday, 20 January 2019 21:27:53 UTC, Oscar Benjamin wrote: > On Sun, 20 Jan 2019 at 21:12, dcs3spp via Python-list > wrote: > > > > Pip 18.1 supports reading pep508 direct urls from install_requires. In > > future release there are plans to deprecate the --process-d

Re: Exercize to understand from three numbers which is more high

2019-01-27 Thread Alister via Python-list
t your code into a function takes the 3 numbers as parameters. you will find as you progress it is a better way of structuring your program & increases flexibility. good luck with your learning & congratulations on asking for assistance not simply a solution -- Zoidberg: Muy macho. Hey, gringos, here comes El Zoido to ruin your drinking water! -- https://mail.python.org/mailman/listinfo/python-list

Trying to figure out the data type from the code snippet

2019-01-29 Thread Chupo via Python-list
rg/mailman/listinfo/python-list

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