On Wed, 01 Feb 2017 17:12:26 +, Chris Green wrote:
> I'm often hitting this problem, how does one find out what package to
> install to provide what a give import needs?
>
> Currently I'm modifying some code which has 'import gtk', I want to
> migrate from Python 2 to Python 3 if I can but at
On Wed, 01 Feb 2017 19:15:13 +, Chris Green wrote:
> Wildman wrote:
>> On Wed, 01 Feb 2017 17:12:26 +, Chris Green wrote:
>>
>> > I'm often hitting this problem, how does one find out what package to
>> > install to provide what a give import needs?
>> >
>> > Currently I'm modifying som
On Wed, 01 Feb 2017 21:29:00 +, Chris Green wrote:
> Wildman wrote:
>> On Wed, 01 Feb 2017 19:15:13 +, Chris Green wrote:
>>
>> > Wildman wrote:
>> >> On Wed, 01 Feb 2017 17:12:26 +, Chris Green wrote:
>> >>
>> >> > I'm often hitting this problem, how does one find out what package
On Fri, 03 Feb 2017 11:06:00 -0500, Neal Becker wrote:
> I want to make sure any modules I build in the current directory overide any
> others. To do this, I'd like sys.path to always have './' at the beginning.
>
> What's the best way to ensure this is always true whenever I run python3?
In p
On Fri, 03 Feb 2017 12:58:15 -0600, Wildman wrote:
> On Fri, 03 Feb 2017 11:06:00 -0500, Neal Becker wrote:
>
>> I want to make sure any modules I build in the current directory overide any
>> others. To do this, I'd like sys.path to always have './' at the beginning.
>>
>> What's the best way
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
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.
On Sat, 04 Feb 2017 11:27:01 +0200, Jussi Piitulainen wrote:
> Wildman writes:
>
> [snip]
>
>> If anyone is interested the correct way is to add this to
>> /etc/profile (at the bottom):
>>
>> PATH=$PATH:./
>> export PATH
>
> Out of interest, can you think of a corresponding way that a mere user
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
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"?
On Mon, 06 Feb 2017 09:07:34 +1100, Steve D'Aprano wrote:
> On Sun, 5 Feb 2017 07:01 pm, Wildman wrote:
>
>> Sure, you
>> could trick someone into running a program that could
>> mess with $HOME but that is all. For anyone, like me,
>> that makes regular backups, that is not a big problem.
>> To
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
On Tue, 20 Mar 2018 08:52:29 +, Steven D'Aprano wrote:
> On Tue, 20 Mar 2018 02:43:13 -0400, Terry Reedy wrote:
>
>> I think a claim that in all programs all attributes should be set *in*
>> __init__, as opposed to *during* initialization, is wrong. All
>> attribute setting is side-effect fr
On Mon, 19 Mar 2018 19:21:04 -0700, Rick Johnson wrote:
> On Monday, March 19, 2018 at 6:37:21 PM UTC-5, Ben Finney wrote:
>
>> --
>> \ "Success is going from one failure to the next without a loss
>> |
>> `\ of enthusiasm." -- Winston Churchill
>> |
>> _o
Bonjour à tous,
En utilisant le module pyaudio pour enregistrer du son, j'ai une chaine de
caractères de la forme
b'\x01\x00\n\x00\x04\x00\xfe\xff\x04\x00\x0b\x00\n\x00\x07\x00'b'\x01\x00\xff\xff\x00\x00\xff\xff\x01\x00\n\x00\n\x00\n\x00
qui correspond aux valeurs hexadécimales (je pense) du son
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
Here is my code:
import pyaudio
tim=1
chunk = 8
FORMAT = pyaudio.paInt16
CHANNELS = 1
RATE = 5
p = pyaudio.PyAudio()
s = p.open(format = FORMAT,channels = CHANNELS,rate = RATE,input =
True,output=True,frames_per_buffer = chunk)
d=[]
print((RATE // chunk
On Wed, 25 Apr 2018 14:32:01 -0700, Sayth Renshaw wrote:
> Hi
>
> Hoping for guidance trying to find some advanced articles or guides or
> topics for json parsing.
>
> I can parse and extract json just dandy.
>
> What I am trying to figure out is how I give myself surety that the data
> I parse
On Tuesday, 26 July 2011 23:53:36 UTC, [email protected] wrote:
> Hi all again,
> I wonder if so far only Python 2.5.x support c extension. I try the
> MSVC 2010 and 2008, also try mingw (gcc 4.x.x) and swig. But even I try
> the simplest example, it said
>
> example_wrap.o:example_wrap.c:(.te
I bought some e-books in a Humble Bundle. The file names are shown below. I
would like to hyphenate words within the file names, so that the first three
titles are
a_devils_chaplain.pdf
atomic_accidents.pdf
chaos_making_a_new_science.pdf
Is there a Python library that uses intelligent guesses t
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
On Mon, 11 Jun 2018 21:03:59 +0100, MRAB wrote:
> On 2018-06-11 20:17, Rick Johnson wrote:
>> On Monday, June 11, 2018 at 1:02:15 PM UTC-5, Chris Angelico wrote:
>>
>>> You're trying to argue against my hypothetical statements about game
>>> publishing, and declaring that it's possible to use sof
On Wed, 13 Jun 2018 14:21:53 +0800, [email protected] wrote:
> [Of the first part]
> line 19 is
> action(progress=progress, *args)
> where the args is a tuple
> args = (i, 3)
> and the function is defined as
> def action(id, reps, progress):
>
> In documents 4.7.2. Keyword Arg
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 this forum does not ma
On Sat, 16 Jun 2018 12:01:16 -0700, Sharan Basappa wrote:
> Is there a difference between these prints. The first one looks a bit
> complex. So, why should it be used?
>
> my_age = 35 # not a lie
>
> print "my age %s." % my_age print "my age ", my_age
>
> Output:
> %run "D:/Projects/Initiatives
On Sat, 16 Jun 2018 13:19:04 -0400, Joel Goldstick wrote:
> On Sat, Jun 16, 2018 at 12:38 PM, wrote:
>> Hi everyone,
>>
>> I'm intrigued by the output of the following code, which was totally
>> contrary to my expectations. Can someone tell me what is happening?
>>
> myName = "Kevin"
> i
On Sat, 16 Jun 2018 14:25:52 -0400, William Ray Wing wrote:
>> On Jun 16, 2018, at 9:10 AM, Steven D'Aprano
>> wrote:
>>
>> On Sat, 16 Jun 2018 11:54:15 +1000, Chris Angelico wrote:
>>
>>> On Sat, Jun 16, 2018 at 11:00 AM, Jim Lee wrote:
>>
I once had a Mustek color scanner that came wit
On Fri, 15 Jun 2018 09:32:05 -0700, T Berger wrote:
> On Friday, June 15, 2018 at 11:55:59 AM UTC-4, Chris Angelico wrote:
>> Perhaps quantity is not the important thing here.
>
> It is the important thing. I'm stuck with a problem and still waiting
> for replies to my email. I've decided to repo
On Wed, 20 Jun 2018 03:13:09 +, Steven D'Aprano wrote:
> On Tue, 19 Jun 2018 12:13:40 -0700, Jim Lee wrote:
>
>> On 06/19/2018 04:13 AM, Ed Kellett wrote:
>>> I think we're all--still--missing the larger point that "easy to
>>> remove" is a completely stupid metric for judging language featur
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
On Tue, 19 Jun 2018 16:25:50 -0700, bart4858 wrote:
> Some of that can be done. It may not need specific support.
>
> But my intention is to have an ordinary language for everyday coding not
> one that can only be understood by CS professors.
>
> Mine is unusual in that I can drop features I rar
On Wed, 20 Jun 2018 11:41:23 -0700, bart4858 wrote:
> The actual interpreter code is irrelevant. Switch would be a feature of
> the language being interpreted, not of the interpreter.
>
> If the task is to match an expression X against a variety of values,
> then expressing that as a switch means
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
>
> list = [1,2,3]
> for i in range(len(list)):
> print(list[i])
>
>
> but the you might as well go for the simpler :
>
>
> for elem in 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
>>>
On Wed, 27 Jun 2018 14:30:15 -0700, Rob Gaddi wrote:
> On 06/27/2018 02:14 PM, [email protected] wrote:
>> Now I don't like the French much ! LOL.
>>
>> But this time they have invented something which will fill programmers
>> with tears of joy ! =D
>>
>> http://www.euronews.com/2018/06/27
On Wed, 04 Jul 2018 23:25:14 +, Adrian Taylor wrote:
> G'day All,
>
> I have just discovered Python and thanks to a script by Ethan I can read
> a foxpro database and change the required values.
> However my next big step is to be able to use this python feature within
> a website.
>
> Basic
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 <
> [email protected]> wrote:
>
> > For GUI programming I often use Python bindings for Qt.
> >
> > There are two co
In the end I changed to a completely different approach.
I now have two parallel directories, one with PySide-based code and the other
with auto-generated PyQt-based code. And I created a tiny script to copy the
PySide code to the PyQt directory & do the necessary changes. (I can post the
scrip
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
On Tue, 17 Jul 2018 10:10:49 +0100, Robin Becker wrote:
> A user reported an infinite loop in reportlab. I determined a possible
> cause and fix and would like to test for absence of the loop. Is there
> any way to check for presence/absence of an infinite loop in python? I
> imagine we could do s
Hi all,
Im new with python, im working on a Python console Menu, I found some examples
on Git, but what I need to understand is how I can call a subprocess.
Here is an Example ,
if choice==1:
print "Test SSH Connection (check ssh to all hosts)"
## You can add your code or funct
El martes, 31 de julio de 2018, 11:56:47 (UTC-3), Tcpip escribió:
> Hi all,
>
> Im new with python, im working on a Python console Menu, I found some
> examples on Git, but what I need to understand is how I can call a
> subprocess.
>
> Here is an Example ,
>
> if choice==1:
> print
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 custom location /home/fetch/opt. But if I do
import ssl
ssl.OPENSSL_VERSION
it still shows me that it is using the system default 1.
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
On Thu, 09 Aug 2018 12:13:07 +0400, Abdur-Rahmaan Janhangeer wrote:
> in short,
>
> can you use python's logo in your own logo without credit?
>
> yours,
>
> Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Mauritius
I would expect the answer to that to be a big NO.
I am pretty sure
Appreciate some help in how in Python a person can add some external methods to
existing classes in the presence of simple one level inheritance. Here is an
example stripped down to the shiny brass tacks:
class A:
def __init__(self):
self.number = 1
def A_biginc(self):
self.number += 1
I understand that Python 3.7 now issues DeprecationWarning for code
entered in the interactive shell and also for single-module programs. I
see this behaviour with:
C:\wrk> python
python 3.7.0 (v3.7.0:...
import imp
__main__:1: DeprecationWarning: the imp module is deprecated...
But if I use
On Wednesday, August 29, 2018 at 10:57:35 AM UTC-6, Νίκος Βέργος wrote:
> Flask app.py
> ==
> @app.route( '/' )
> @app.route( '/' )
> def index( page ):
>
> # use the variable form template for displaying
> counter = '''
>
> td> Αριθμός Επισκεπτών:
>
On Thursday, August 30, 2018 at 10:08:34 AM UTC-6, Νίκος Βέργος wrote:
> I did try it with 'None' and as page='index.html' Flask return an error both
> ways (while bottle framework does not)
I think you are mistaken, making the change I suggested
fixes the "TypeError: index() missing 1 required p
I get this:
C:\Users\Me> py
Python 3.6.5 (v3.6.5:f59c0932b4, Mar 28 2018, 16:07:46) [MSC v.1900 32
bit (Inte
l)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import curses
Traceback (most recent call last):
File "", line 1, in
File "C:\Program Files
I'm on 3.7.0 on Win 10, and get a different result. No traceback.
Perhaps it's a bug in 3.4 that was fixed subsequently.
C:\test> py -m pdb bugInPDB.py
> c:\test\buginpdb.py(1)()
-> password = 'bad'
(Pdb) tbreak 3
Breakpoint 1 at c:\test\buginpdb.py:3
(Pdb) cont
Deleted breakpoint 1 at c:\test\b
On Sun, 09 Sep 2018 18:47:49 -0700, Νίκος Βέργος wrote:
> I have 3 wsgi scripts listening on 3 locations. What i'm trying to run
> an wsgi script from within another wsgi script with the following
> statement.
>
> page = 'clientele'
> pdata = requests.get( 'http://superhost.gr/' + page )
> pdata
On Wed, 12 Sep 2018 06:57:36 -0700, Νίκος Βέργος wrote:
> I want to send the user a file when he clicks the appropriate button and
> I'm suing the following.
>
> # Prepare selected file for download...
> send_file( '/home/nikos/wsgi/static/files/' + filename )
>
> But no matter what
On Sat, 15 Sep 2018 17:08:57 +, Stefan Ram wrote:
> I gave two different functions:
>
> def triangle():
> for i in range( 3 ):
> forward( 99 ); left( 360/3 )
>
> def rectangle()
> for i in range( 4 ):
> forward( 99 ); left( 360/4 )
>
> , and the exercise was to wri
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
with [1,11,111] ==> 1+11+111 = 123. But instead, it appears to take the 1st
element from each nested list to add up [1,2,3] = 6. How shoul
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
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
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 get
INFO: Could not loc
>> 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 get
>>
>>
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
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,
On Fri, 28 Sep 2018 19:00:29 +0100, Chris Green wrote:
> I have a list created by:-
>
> fld = shlex.split(ln)
>
> It may contain 3, 4 or 5 entries according to data read into ln. What's
> the neatest way of setting the fourth and fifth entries to an empty
> string if they don't (yet) exist?
On Sun, 30 Sep 2018 11:45:21 +0100, Bart wrote:
> On 30/09/2018 11:14, Chris Green wrote:
>> Chris Angelico wrote:
>>> On Sat, Sep 29, 2018 at 12:21 PM Chris Green wrote:
I have a list created by:-
fld = shlex.split(ln)
It may contain 3, 4 or 5 entries accordin
On 10/1/18, Roel Schroeven wrote:
> jkn schreef op 1/10/2018 om 20:25:
>> On Monday, October 1, 2018 at 6:57:30 PM UTC+1, Ethan Furman wrote:
>>> On 09/30/2018 09:30 AM, Steven D'Aprano wrote:
>>>
Notwithstanding Ethan's comment about having posted the suspension
notice
on the list,
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:
>> On 10/03/2018 09:26 AM, Musatov wrote:
>> > I don't even know where to begin! (I'm reading the Dummies book)
>>
>> If you have no experience in computer programming,
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:
>>&
On Sat, 06 Oct 2018 21:56:09 +0200, Thomas Jollans wrote:
> On 06/10/2018 20:10, [email protected] wrote:
>> # - THIS LINE IS WHERE I NEED HELP # ( if 2, 3, 4, 6 in list:
>> )
>> print("you can roll again")
>> else:
>> print("you have all 1's and 5's in your result")
>
It's also useful to be aware of the standard tabnanny module for
"Detection of ambiguous indentation".
Very useful for highlighting problems with tabs and spaces.
Peter
On 8/10/2018 2:32 AM, Terry Reedy wrote:
On 10/5/2018 11:30 PM, Ryan Johnson wrote:
The point that OP is trying to make is
On Mon, 08 Oct 2018 12:46:48 -0700, Ethan Furman wrote:
> On 10/08/2018 07:43 AM, Rhodri James wrote:
>
>> I appreciate that the moderators are volunteers, but they have official
>> power on this list. Being volunteers doesn't mean that they can't get
>> it wrong, or that we shouldn't call them
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
>> maybe some of you can guide me.
>>
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.
On Tuesday, October 16, 2018 at 2:22:29 PM UTC-7, [email protected] 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
On Tuesday, October 16, 2018 at 2:14:26 PM UTC-7, [email protected] 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 general, run a remote_script on
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 considering this. The PEP was
las
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,
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 C
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
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 has already been pointed out, a Python list starts
On Wed, 30 Mar 2016 15:36:12 +, Grant Edwards wrote:
> I'm trying to figure out how to get a pygtk button respond to
> somehting other than just a simple "left click". With a standard
> 3-button mouse, X11 provides at least 9 different "click" types, but
> the pygtk button only seems to suppo
On Wed, 30 Mar 2016 19:23:35 +, Grant Edwards wrote:
> On 2016-03-30, Grant Edwards wrote:
>> On 2016-03-30, Wildman wrote:
>>
Is the gtk button widget really incapable of handling left or middle
mouse buttons or shift/ctrl/alt modifiers?
>>>
>>> This might help...
>>>
>>> http://f
On Sat, 02 Apr 2016 16:11:19 +0100, Mark Lawrence wrote:
> A typical call to create an Entry field would be:-
>
> e = Entry(master, validate='all', ...)
>
> Once this call has been made is it possible to change the validation
> mode at runtime? Background, I'm knocking up an app so I can play
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 bas
I am working on a Linux gui program where I want to be able
to click a Help button and open a man page using a viewer.
I wrote a search function that can be called several times,
if needed, with different arguments. I wrote a test program
that tries to open the Bash man page in a terminal and will
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
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
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 variables are empty at the beginning
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 if it is going
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, Mar 1 2015, 12:57:24)
> [GCC 4.
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
> little our policy toward
potential_passengers = ['bob','john','sue','wendy','chris','bob','jen','wendy']
accepted_passengers = set()
for name in potential_passengers:
print('checking on {}...'.format(name))
if name not in accepted_passengers:
accepted_passengers.add(name)
print('welcome aboard, {}
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 packages using pi
Hi folks,
I have a very specific set of requirements for a task and was
wondering if anyone had good suggestions for the best set of tools:
* store text documents (about 10 pages)
* the data set is static (i.e. only lookups are performed, no delete,
no edit, no addition)
* only one operation
On 4/30/16, Gordon Levi wrote:
> "Fetchinson ." wrote:
>
>>Hi folks,
>>
>>I have a very specific set of requirements for a task and was
>>wondering if anyone had good suggestions for the best set of tools:
>>
>>* store text documents (about 10 pages)
>>* the data set is static (i.e. only look
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 that makes it friendly to women?
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
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 is a woman, do you think men are seriousl
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® Threading Bui
On Tuesday, May 10, 2016 at 11:17:33 PM UTC-4, Arshpreet Singh wrote:
> Thanks for the information, I just applied for program but I got one mail
> about license and expiration.
>
>
> This software license expires on October 29, 2016.
>
>
> I am not able to understand that can anyone put some
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 mining(scraping) so experence
On Thu, 19 May 2016 01:47:33 +1000, Steven D'Aprano wrote:
> Is this the simplest way to get the middle N characters?
This will return a sub-string of any length starting at any
point. This is the way the old VB mid$ function worked.
def mid(string, start, length):
# start begins at 0
i
601 - 700 of 5863 matches
Mail list logo