Re: Python gotcha of the day

2018-03-13 Thread Bill
Dan Sommers wrote: On Wed, 14 Mar 2018 04:08:30 +, Steven D'Aprano wrote: Explain the difference between these two triple-quoted strings: But remove the spaces, and two of the quotation marks disappear: py> """\"" '"' That's (a) a triple quoted string containing a single escaped q

Re: Minmax tictactoe :c Cannot understand why this does not work

2018-04-24 Thread Bill
You need a good lesson in "program documentation". Your code looks terrible--really! fifii.ge...@gmail.com wrote: class AiMove: def __init__(self): self.x = -1 self.y=-1 self.score = 0 def Imprimir(Matriz,n): for i in range(n):

Re: How to get started in GUI Programming?

2005-11-25 Thread Bill
time. I also found the tutorial accompanying Boa Constructor (http://boa-constructor.sourceforge.net/) to be a good start at creating a wxWidgets GUI. Bill -- http://mail.python.org/mailman/listinfo/python-list

The limitation of the Photon Hypothesis

2005-01-07 Thread bill
Please reply to [EMAIL PROTECTED], thank you ! The limitation of the Photon Hypothesis According to the electromagnetic theory of light, its energy is related to the amplitude of the electric field of the electromagnetic wave, W=eE^2V(where E is the amplitude and V is the volume). It apparen

Install Python 2.4 on Fedora 3 Core

2005-01-17 Thread Bill
I have less than a week experience on linux, so I am a new newbie. Python 2.3 came preinstalled. I installed version 2.4. All seemed to go well except it installed to usr/local? 1. Was it wrong to install when logged in as 'root'? Does it make a difference? 2. I looked in the package editor an

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-06-30 Thread Bill
James Stroud wrote: > Frankly, I can't watch Shakespeare or movies like "the full monty" or > "trainspotting" because I can't understand a damn word they say. British talk > sounds like gibberish to me for the most part. Have you had your hearing checked recently? Seriously. I have a hearing defec

Re: IDLE in Jython

2005-07-15 Thread Bill
lopment, there are a couple of plugins for Python which should support Jython to some extent. Bill -- http://mail.python.org/mailman/listinfo/python-list

signals (again)

2005-08-10 Thread bill
I see this (or similar) question occasionally looking back through the archive, but haven't yet seen a definitive answer, so I'm going to ask it again. Consider the following: while True: do_something_to_files_in_directory(fd) fcntl(fd, F_NOTFIY, DN_CREATE) signal.pause() How do you

Re: signals (again)

2005-08-10 Thread bill
How does that help? I interpret "use asynchronous calls" to mean "use fcntl to set an FN_NOTIFY on the directory in order to be alerted when something needs to be done." But the method of doing that which I outlined above has a critical section in which the incoming signal will not be noticed.

Re: signals (again)

2005-08-11 Thread bill
I found a good solution to this problem in Richard Steven's _Network_Programming_. It seems like everything shows up in Steven's books! Rather than pausing, you do a blocking read on a pipe. You only write to the pipe from within the signal handler. However, this brings up the better question:

documentation error

2005-09-04 Thread bill
>From 3.2 in the Reference Manual "The Standard Type Hierarchy": "Integers These represent elements from the mathematical set of whole numbers." The generally recognized definition of a 'whole number' is zero and the positive integers. That is to say, -1 is not a whole number. The documenta

Re: wxpython tutorials

2005-02-25 Thread Bill
Some depends on how much you want to learn wxPython vs. just use it. If you learn more easily building from scratch then the other replies are pointing you in the right direction. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: autoexecution in Windows

2005-03-07 Thread Bill
s, or use the command prompt. I believe if you install the Activestate distribution it sets up the file registrations automatically. Bill -- http://mail.python.org/mailman/listinfo/python-list

The limitation of the Photon Hypothesis

2004-12-22 Thread bill
The limitation of the Photon Hypothesis According to the electromagnetic theory of light, its energy is related to the amplitude of the electric field of the electromagnetic wave, W=eE^2V(where E is the amplitude and V is the volume). It apparently has nothing to do with the light's fre

How to create an instance of a python class from C++

2014-03-04 Thread Bill
Hello: I can't figure out how to create an instance of a python class from 'C++': ( I am relatively new to Python so excuse some of the following. ) In a .py file I create an ABC and then specialize it: from MyMod import * from abc import ABCMeta, abstractmethod # Declare an abst

Re: How to create an instance of a python class from C++

2014-03-05 Thread Bill
lass_decl->ob_type; > > In Python, you instantiate a class by calling it. You should do the > same in C, using PyObject_CallFunction. But as above, note that you > want to call class_decl, not class_decl->ob_type. > Of course. That works. Thanks. Bill -- https://mail.python.org/mailman/listinfo/python-list

Download all youtube favorites with youtube-dl script

2013-09-26 Thread Bill
I have been using the script youtube-dl http://rg3.github.io/youtube-dl/ And I was wondering if there is a way to download all of a user's favorites or uploads. The script has a functionality to download all videos in a txt file. So if there is a way using the youtube API or JSON (none of whi

Re: Download all youtube favorites with youtube-dl script

2013-09-26 Thread Bill
Joel Goldstick wrote: On Thu, Sep 26, 2013 at 11:13 AM, Bill mailto:b...@bill.com>> wrote: I have been using the script youtube-dl http://rg3.github.io/youtube-__dl/ <http://rg3.github.io/youtube-dl/> And I was wondering if there is a way to download all

Re: Download all youtube favorites with youtube-dl script

2013-09-27 Thread Bill
Thomas Kandler wrote: On 26.09.2013 17:13, Bill wrote: I have been using the script youtube-dl http://rg3.github.io/youtube-dl/ And I was wondering if there is a way to download all of a user's favorites or uploads. The script has a functionality to download all videos in a txt file.

Uninstall

2015-08-04 Thread Bill
How do I uninstall Python from a Mac? -- https://mail.python.org/mailman/listinfo/python-list

Re: Uninstall

2015-08-07 Thread Bill
n wrote: > > In a message of Tue, 04 Aug 2015 11:37:47 +0900, Bill writes: >> How do I uninstall Python from a Mac? >> >> >> -- >> https://mail.python.org/mailman/listinfo/python-list > > How did you get it in the first place? > > If you instal

CherryPy wiki not working

2005-12-15 Thread bill
Has the CherryPy wiki been hacked ?. All pages seem to be re-directed to some form of Amazon page. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: CherryPy wiki not working

2005-12-16 Thread bill
Still, not a Python problem. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Visual Python : finished ?

2005-12-16 Thread Bill
Do Re Mi chel La Si Do wrote: > Hi! > > See : > http://www.activeperl.com/Products/Visual_Perl/?mp=1 > > > @+ > > MCI Another closed source success story. -- http://mail.python.org/mailman/listinfo/python-list

Re: pyQt for windows

2005-12-23 Thread Bill
relativity wrote: > I have downloaded and installed pyQt 3.14 educational but when I run any of > the examples I get an error saying qt-mtedu333.dll was not found. I have > also installed the qt4 opensource version for windows but I am not sure > everything was set up correctly. When I run configur

Re: Will GPL Java eat into Python marketshare?

2006-11-15 Thread Bill
walterbyrd wrote: > Some think it will. > > Up untill now, Java has never been standard across different versions > of Linux and Unix. Some think that is one reason that some developers > have avoided Java in favor of Python. Now that Java has been GPL'd that > might change. > > IMO: it won't make

Photo Management Python Application

2006-02-18 Thread Bill
Does anyone know of a Python program that will re-name digital photo files in a date-time format based on the date stamp of the file? -- http://mail.python.org/mailman/listinfo/python-list

bash like expansion

2005-05-12 Thread bill
Consider the following: import os, commands os.environ['QWE']="string with foo" a = '$QWE ${QWE/foo/baz}' b = commands.getoutput('echo ' + a) This does what I want, which is to expand a according to the standard bash expansion rules (so b now references "string with foo string with baz"), but i

Re: bash like expansion

2005-05-12 Thread bill
Quick glance at the reference manual, and I think that pipes.Template may do exactly what I want. Is that what you're referring to? I realized when I woke up that I have another slight irritant: I need to be able to intelligently parse a command line. ie I need to correctly parse each of the fol

Re: bash like expansion

2005-05-13 Thread bill
Hmmm, the following session causes me some concern: >>> print a $(which sh) ${HOME/b/k} 'the dog' >>> print b /bin/sh /home/kill the dog >>> shlex.split(a) ['$(which', 'sh)', '${HOME/b/k}', 'the dog'] >>> shlex.split(b) ['/bin/sh', '/home/kill', 'the', 'dog'] I started with a, which contains the

incorrect(?) shlex behaviour

2005-05-14 Thread bill
Consider: >>> import shlex >>> shlex.split('$(which sh)') ['$(which', 'sh)'] Is this behavior correct? It seems that I should either get one token, or the list ['$','(','which','sh',')'], but certainly breaking it the way it does is erroneous. Can anyone explain why the string is being split t

Re: incorrect(?) shlex behaviour

2005-05-15 Thread bill
Its gets worse: >>> from shlex import StringIO >>> from shlex import shlex >>> t = shlex(StringIO("2>&1")) >>> while True: ... b = t.read_token() ... if not b: break ... print b ... 2 & 1<--- where's the '>' !? >>> import shlex >>> print shlex.split("2>&1") ['2>&1']

ISO authoritative Python ref

2005-06-17 Thread bill
I have to learn Python in a hurry. I learn fastest by reading the specs/reference manual, or something like it (e.g. "C: A Reference Manual", by Harbison and Steel). Is there a Python book that fits this description? Many thanks in advance, bill P.S. I avoid tutorials like the p

Re: ISO authoritative Python ref

2005-06-17 Thread bill
In <[EMAIL PROTECTED]> bill <[EMAIL PROTECTED]> writes: >I have to learn Python in a hurry. My apologies. I found what I needed. I don't understand it how I missed it in my first round of searching. Thanks, bill -- http://mail.python.org/mailman/listinfo/python-list

OOP in Python book?

2007-07-27 Thread Bill
s appears to be heavily into OOP theory, just some CS areas that I don't understand. I'm particularly interested in why this book is worth the $100 tag that Amazon shows. TIA, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Where's GUI for Python?

2008-03-01 Thread Bill
classes that form the GUI interface, but, use derived classes (subclasses) in your own separate file(s) to form your application's interface to the GUI. That way, you can let wxGlade (or Dabo) always generate (and overwrite) its own code that remains entirely separate from your own code. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: wxFormBuilder

2008-03-22 Thread Bill
enerated an xrc resource and > loaded it with wxPython. All the tedious GUI coding is gone :-) > > http://wxformbuilder.org/ > http://wiki.wxpython.org/index.cgi/XRCTutorial > > What don't you like about wxGlade? It actually generates Python code. There has been a lot more dev

Re: wxFormBuilder

2008-03-22 Thread Bill
enerated an xrc resource and > loaded it with wxPython. All the tedious GUI coding is gone :-) > > http://wxformbuilder.org/ > http://wiki.wxpython.org/index.cgi/XRCTutorial > > What don't you like about wxGlade? It actually generates Python code. There has been a lot more dev

Re: wxFormBuilder

2008-03-22 Thread Bill
enerated an xrc resource and > loaded it with wxPython. All the tedious GUI coding is gone :-) > > http://wxformbuilder.org/ > http://wiki.wxpython.org/index.cgi/XRCTutorial > > What don't you like about wxGlade? It actually generates Python code. There has been a lot more dev

python processes and Visual Studio

2009-01-19 Thread bill
determine why the the while thing 'hangs'? TIA, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: python processes and Visual Studio

2009-01-20 Thread bill
On Jan 19, 9:24 am, bill wrote: > All, > > This may sound somewhat convoluted, but here goes: > > 1. I have a Python script that invokes builds in Visual Studio via the > command line interface - 'devenv' > 2. It works GREAT > 3. I have added a post_build event

why would 'import win32com' fail?

2008-10-23 Thread bill
All, I am trying to access Excel from Python. Many of the examples started with: import win32com blah, blah I try that from my Python shell and it fails. What am I missing here? TIA, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: why would 'import win32com' fail?

2008-10-23 Thread bill
On Oct 23, 3:21 pm, bill <[EMAIL PROTECTED]> wrote: > All, > > I am trying to access Excel from Python. Many of the examples started > with: > >       import win32com >       >       blah, blah > > I try that from my Python shell and it fails. What

Delicious API and urllib2

2009-04-06 Thread Bill
The delicious api requires http authorization (actually https). A generic delicious api post url is "https:// username:passw...@api.api.del.icio.us/v1/posts/add?url=http:// example.com/&description=interesting&tags=whatever". This works fine when entered in the Firefox address bar. However urllib2

More like a shell command.

2008-08-06 Thread Bill
("MyCommand Arg1 Arg2") Of source, I would like to do this by writing a module (or through some other run-time hook) as opposed to editing the Python source code. Thanks in advance (unless you are just a Python nut who is flaming to tell me that I should not want this. :-) ) Bi

Re: timeout

2008-04-29 Thread Bill
timer-objects.html Bill -- http://mail.python.org/mailman/listinfo/python-list

set DOS environment variable

2008-10-02 Thread bill
Hi all, Can Python set a DOS environment variable? TIA, Bill -- http://mail.python.org/mailman/listinfo/python-list

accessors and lazy initialization

2006-03-10 Thread Bill
ic way of looking at this? Thanks -- Bill. -- http://mail.python.org/mailman/listinfo/python-list

Python vs. Java gzip performance

2006-03-17 Thread Bill
lity. Is there something that can be improved in the Python version? Thanks -- Bill. -- http://mail.python.org/mailman/listinfo/python-list

Figure out month number from month abbrievation

2006-04-12 Thread Bill
quot;Return the month number for monthabbr; e.g. "Jan" -> 1.""" for index, day in enumerate(calendar.month_abbr): if day == monthabbr: return index which works well enough but isn't very clever. I'm pretty new to Python; what am I missing here? Thanks -- Bill. -- http://mail.python.org/mailman/listinfo/python-list

Need help to pass self.count to other classes.

2010-01-06 Thread Bill
After a year with Python 2.5 on my Windows box, I still have trouble understanding classes. Below, see the batch file and the configuration script for my Python interactive prompt. The widths of the secondary prompts increase when the self.count of SysPrompt1 exceeds 99. I am using a global var

I passed a fizzbuzz test but failed at recursion.

2010-03-10 Thread Bill
Look at this recursive fizzbuzz function from http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html def fizzbuzz(num): if num: if num % 15 is 0: return fizzbuzz(num-1) + 'fizzbuzz \n' elif num % 5 is 0: return fizzbuzz(num-1) + 'buzz \n' elif num %

Re: general problem when subclassing a built-in class

2010-12-23 Thread bill
constructor to return the right value, ie no timestamps, when you pass it an instance of your subclass as argument. i don't think there's a TSDict.__method__ you can write for that... anyway my TSDict2 doesn't have this problem either.) take home message: respect the privacy of your superclasses and they'll be nice to you. --bill -- http://mail.python.org/mailman/listinfo/python-list

Need help in passing a "-c command" argument to the interactive shell.

2009-07-28 Thread Bill
On my windows box I type => c:\x>python -c "import re" The result is => c:\x> In other words, the Python interactive shell doesn't even open. What am I doing wrong? I did RTFM at http://www.python.org/doc/1.5.2p2/tut/node4.html on argument passing, but to no avail. -- http://mail.python.org/mai

question please

2013-07-05 Thread bill papanastasiou
hello , good morning how i can pùt one python file in website ? -- http://mail.python.org/mailman/listinfo/python-list

Distribute app without source?

2012-04-07 Thread Bill Felton
use pyInstaller with a 32-bit install of Python 3.2? Are there other options? Any assistance or input will be welcome. regards, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Distribute app without source?

2012-04-07 Thread Bill Felton
On Apr 7, 2012, at 1:22 PM, Terry Reedy wrote: > On 4/7/2012 9:07 AM, Bill Felton wrote: >> Thanks in advance for any insights! >> >> My partner and I have developed an application primarily > > intended for internal use within our company. However, we face the >

Re: Python and Tkinter by John E Grayson

2012-05-17 Thread Bill Felton
ant. Where and as not, do a google search and you should be good to go. FWIW, I picked up the book originally referenced and didn't find it particularly useful, especially given Lutz and the web. YMMV. cheers, Bill -- http://mail.python.org/mailman/listinfo/python-list

How to run a function in SPE on Python 2.5

2011-06-22 Thread bill lawhorn
I have a program: decrypt2.py which contains this function: def scramble2Decrypt(cipherText): halfLength = len(cipherText) // 2 oddChars = cipherText[:halfLength] evenChars = cipherText[halfLength:] plainText = "" for i in range(halfLength): plainText = plainText + ev

Re: I'm happy with Python 2.5

2011-02-27 Thread Bill Allen
On Sun, Feb 27, 2011 at 07:34, n00m wrote: > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit > (Intel)] on win32 > > and Idon't move neither up nor down from it (the best & the fastest > version) > -- Trolls should also be h

Re: PyPad 2.7.1 (Update 2)

2011-05-14 Thread Bill Allen
Anyway, I love this little Python app. Been wanting something like this for a long time. I installed this on my iPhone running iOS 4.3.3 (8J2). Congrats on a great app! Bill Allen <http://www.python.org> <http://www.catb.org/%7Eesr/faqs/hacker-howto.html><http://taarc.rebe

Re: Abandoning Python

2011-05-21 Thread Bill Allen
You have ideas, a text editor, and a computer - best get to coding. What's stopping you? You largely want Python, with modifications. Join the development team and help implement those changes, or fork your own flavor and do what you wish. Right? You imagine it's an easy task, so get after

SCons 3.0.0 release

2017-09-18 Thread Bill Deegan
SCons - a software construction tool Release Notes This is SCons, a tool for building software (and other files). SCons is implemented in Python, and its "configuration files" are actually Python scripts, allowing you to use the full power of a r

Re: Issues with pip installation on windows

2017-09-19 Thread Bill Deegan
try using: python -m pip Does that work? On Tue, Sep 19, 2017 at 12:47 PM, Joey Steward wrote: > -- Forwarded message -- > From: Joey Steward > Date: Mon, Sep 18, 2017 at 3:26 PM > Subject: Issues with pip installation on windows > To: python-list@python.org > > > Hello, > > I'

Re: Current thinking on required options

2021-04-19 Thread Bill Campbell
Usage: grocli check|add|delete [-u USERS ...] Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820 Force alwa

RE: Issue with ctypes and callback functions

2016-08-14 Thread Bill Somerville
-Original Message- From: Bill Somerville Sent: 04 August 2016 18:23 To: 'eryk sun' ; python-list@python.org Subject: RE: Issue with ctypes and callback functions -Original Message- From: eryk sun [mailto:eryk...@gmail.com] from_param is a hook method for a type that&

Re: automated comparison tool

2016-09-20 Thread Bill Deegan
Use Git... at least you get can back what used to work.. On Tue, Sep 20, 2016 at 2:20 PM, Andrew Clark wrote: > On Tuesday, September 20, 2016 at 3:25:11 PM UTC-5, Lawrence D’Oliveiro > wrote: > > On Wednesday, September 21, 2016 at 7:44:22 AM UTC+12, Andrew Clark > wrote: > > > If anyone can he

New to python

2016-10-17 Thread Bill Cunningham
I just installed python I might start with 3. But there is version 2 out too. So far I can '3+4' and get the answer. Nice. I typed the linux man page and got a little info. So to learn this language is there an online tutorial? I am interested in the scripting too. Bill

SCons 2.5.1 Released

2016-11-05 Thread Bill Deegan
Available at: https://sourceforge.net/projects/scons/files/latest/download?source=files Changelog: SCons - a software construction tool Change Log RELEASE 2.5.1 - Mon, 03 Nov 2016 13:37:42 -0400 From William Deegan: - Add scons-configure-cach

Re: please test the new PyPI (now in beta)

2018-03-27 Thread Bill Deegan
The back ground blue on the pypi page is the highlight blue on the python.org page, they should change the color to match to background python.org color. -Bill On Tue, Mar 27, 2018 at 7:50 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Tue, 27 Mar 2018

Re: please test the new PyPI (now in beta)

2018-03-29 Thread Bill Deegan
Re color. Would the python.org background color (which is darker) work? To my eyes the background on pypi looks like the highlight color on python.org (I've said this earlier, but just curious if that's what others see as well) On Thu, Mar 29, 2018 at 2:33 PM, Ethan Furman wrote: > On 03/29/201

Re: www.python.org down

2018-04-30 Thread Bill Deegan
Ditto. I see a 502. On Mon, Apr 30, 2018 at 1:38 PM, Jorge Gimeno wrote: > Not sure who to report to, but the site comes back with a 503. Anyone know > where I can direct this to? > > -Jorge L. Gimeno > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailm

Re: www.python.org down

2018-04-30 Thread Bill Deegan
Still 502 for me. On Mon, Apr 30, 2018 at 2:17 PM, Paul Moore wrote: > It's working for me now. > Paul > > On 30 April 2018 at 18:38, Jorge Gimeno wrote: > > Not sure who to report to, but the site comes back with a 503. Anyone > know > > where I can direct this to? > > > > -Jorge L. Gimeno > >

Re: www.python.org down

2018-04-30 Thread Bill Deegan
back up for me. On Mon, Apr 30, 2018 at 2:26 PM, Mark Lawrence wrote: > On 30/04/18 19:17, Paul Moore wrote: > >> It's working for me now. >> Paul >> >> On 30 April 2018 at 18:38, Jorge Gimeno wrote: >> >>> Not sure who to report to, but the site comes back with a 503. Anyone >>> know >>> where

Re: [Python-Dev] [RELEASE] Python 2.7.15

2018-05-01 Thread Bill Deegan
Is it possible to get the release notes included on the download page(s)? On Tue, May 1, 2018 at 10:35 AM, Guido van Rossum wrote: > Simple. I misread "latest" for "last" and was hopeful that no new bugs > would need to be fixed between now and 2020. I will post a correction on > Twitter now. >

Splitting up large python module impact on performance?

2018-06-12 Thread Bill Deegan
Greetings, I'm doing some refactoring on a fairly large python codebase. Some of the files are > 4000 lines long and contain many classes. Should I expect any performance hit from splitting some of the classes out to other files? Thanks, Bill -- https://mail.python.org/mailman/listinf

Re: Google weirdness

2018-07-13 Thread Bill Deegan
I also got such. I'm guessing your track record of searches has flagged you as someone they might want to hire. On Fri, Jul 13, 2018 at 5:36 AM, Steven D'Aprano < steve+comp.lang.pyt...@pearwood.info> wrote: > On Thu, 12 Jul 2018 22:31:35 -0400, Travis McGee wrote: > > > I somehow managed to trig

Issue with ctypes and callback functions

2016-08-03 Thread Bill Somerville
Hi All, Is this a good place to ask questions about the above? Regards Bill. -- https://mail.python.org/mailman/listinfo/python-list

RE: Issue with ctypes and callback functions

2016-08-03 Thread Bill Somerville
-Original Message- From: eryk sun [mailto:eryk...@gmail.com] Sent: 03 August 2016 13:16 To: python-list@python.org Cc: Bill Somerville Subject: Re: Issue with ctypes and callback functions On Wed, Aug 3, 2016 at 9:38 AM, Bill Somerville wrote: > > Is this a good place to ask que

RE: Issue with ctypes and callback functions

2016-08-04 Thread Bill Somerville
"constructor" before accessing the attributes of the object. My requirement is to wrap an API for testers and customers to write simple test cases and any ugliness in the test cases is undesirable given that the users will probably not be Python experts and maybe not even developers. Regards Bill. -- https://mail.python.org/mailman/listinfo/python-list

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

2018-11-12 Thread Bill Campbell
return str(f.read().strip())* This command should get the gateway IP. Linux: cmd = "ip route list | awk '/^default/{print $3}'" or perhaps Linux: cmd = "netstat -rn | awk '/^0.0.0.0/{print $2}'" OSX: cmd = "netstat -rn | awk '/^default/{print $2}&#x

SCons 3.0.2 Release

2019-01-01 Thread Bill Deegan
A new SCons release, 3.0.2, is now available on the SCons download page: https://scons.org/pages/download.html Here is a summary of the changes since 3.0.1: NEW FUNCTIONALITY - Properly support versioned shared libraries for MacOS. We've also introduced two new env va

SCons Version 3.0.3 Released

2019-01-07 Thread Bill Deegan
A new SCons release, 3.0.3, is now available on the SCons download page: https://scons.org/pages/download.html Here is a summary of the changes since 3.0.1: NEW FUNCTIONALITY - Properly support versioned shared libraries for MacOS. We've also introduced two new env v

SCons 3.0.4 Release

2019-01-23 Thread Bill Deegan
A new SCons release, 3.0.4, is now available on the SCons download page: http://www.scons.org/download.php Or via pypi: pip install scons Here is a summary of the changes since 3.0.3: NEW FUNCTIONALITY - Added TEMPFILESUFFIX to allow user to specify suffix for

Re: preferences file

2019-01-27 Thread Bill Campbell
nicely with the ConfigParser libraries. >3. File location? I'm using Ubuntu and I believe that the correct location >would be home/.config/ . What about Mac and Windows? See above. Same for Mac. I don't do Windows. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Softw

Re: Convert Windows paths to Linux style paths

2019-03-12 Thread Bill Campbell
arators plus some other platform specific logic? See os.path.join Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E. Mercer Way Mobile: (206) 947-5591 PO Box 820 Fax:(206) 232-9186 Mercer Island, WA 98040-0820

SCons 3.0.5 Released

2019-03-26 Thread Bill Deegan
A new SCons release, 3.0.5, is now available on the SCons download page: https://scons.org/pages/download.html And via pypi: pip install scons SCons is a tool for building software (and other files). SCons is implemented in Python, and its "configuration files" are actually Pyth

Re: pip vs python -m pip?

2019-06-21 Thread Bill Deegan
you must be picking up pip from a different python installl (or virtualenv) than you are picking up python. Check your %PATH% On Fri, Jun 21, 2019 at 6:29 AM Malcolm Greene wrote: > 64-bit Python 3.6.8 running on Windows with a virtual environment > activated. > > "pip -v" reports 19.0.3 > "pyth

SCons 3.1.0 Released

2019-07-20 Thread Bill Deegan
A new SCons checkpoint release, 3.1.0, is now available on the SCons download page: https://scons.org/pages/download.html SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic

SCons 3.1.1 Released

2019-08-08 Thread Bill Deegan
SCons - a software construction tool What is SCons? SCons is an Open Source software construction tool—that is, a next-generation build tool. Think of SCons as an improved, cross-platform substitute for the classic Make utility with integrated functionality similar to autoconf/au

Announcing Methodfinder

2019-09-10 Thread Bill Six
1) == 1 -(-1) -1.bit_length() -1.denominator abs(-1) >>> methodfinder.find(1,2) == 3 1+2 1^2 1|2 2+1 2^1 2|1 >>> methodfinder.find(1,1) == 1 1&1 1**1 1*1 1.__class__(1) 1.denominator 1.numerator 1.real 1//1 1|1 math.gcd(1, 1) max(1, 1) min(1, 1) pow(1, 1) round(1, 1) >>> methodfinder.find([1,2], '__iter__') == True hasattr([1, 2], '__iter__') Bill Six -- https://mail.python.org/mailman/listinfo/python-list

Re: Would you be interested in this Python open source project?

2019-10-08 Thread Bill Deegan
You might just consider working with the BuildBot project to add support for lighter weight build workers. Re-Re-Re-inventing the wheel is almost always wasted effort. On Tue, Oct 8, 2019 at 8:33 AM Rhodri James wrote: > On 08/10/2019 11:22, Simon Connah wrote: > > I'm posting this message as a

Re: Using Makefiles in Python projects

2019-11-11 Thread Bill Deegan
You could use SCons (native python... ) On Mon, Nov 11, 2019 at 2:04 PM Grant Edwards wrote: > On 2019-11-11, Rhodri James wrote: > >> I'm sure it's possible to write Makefiles that work with both GNU make > >> and NMake, but I imagine it's a rather limiting and thankless > enterprise. > >> > >

Re: Vim settings for Python (was: tab replace to space 4)

2019-12-07 Thread Bill Campbell
On Sat, Dec 07, 2019, Peter J. Holzer wrote: >As an aside, to prevent vim from inserting tabs in the first place, set >expandtab >sw=4 >and maybe also >ts=4 Inserting a comment in the file like this makes thing easy. # vim: expandtab sw=4 ts=4 nows wm=0 Bill --

SCons 3.1.2 Released

2019-12-16 Thread Bill Deegan
A new SCons checkpoint release, 3.1.2, is now available on the SCons download page: https://scons.org/pages/download.html Here is a summary of the changes since 3.1.1: NOTE: The 4.0.0 Release of SCons will drop Python 2.7 Support NEW FUNCTIONALITY - Added debug option "a

Re: [Scons-dev] SCons 3.1.2 Released

2019-12-21 Thread Bill Deegan
Glad that helped! Big thanks to Mats Wichmann for that one! On Sat, Dec 21, 2019 at 10:41 AM Eric Fahlgren wrote: > On Mon, Dec 16, 2019 at 7:02 PM Bill Deegan > wrote: > >> - EXPERIMENTAL NEW FEATURE: Enable caching MSVC configuration >> If SCONS_CACHE_MSVC_CON

Re: OT: ALGOL 60 at 60

2020-05-16 Thread Bill Campbell
ng methods I use today have their roots in doing a lot of scientific programming in ALGOL on the B-5500, then in BPL (Burroughs Programming Language) on Burroughs Medium Systems, B-2500->B-4500. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestia

Re: Missing python curses functions?

2020-05-19 Thread Bill Campbell
equivalent is attr_get() which gets the current >attributes. I haven't looked for it. ... >Is anyone other than me still even using Python curses? :-) Raises hand. Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Software LLC URL: http://www2.celestial.com/ 6641 E.

SCons 4.0.1 Released

2020-07-16 Thread Bill Deegan
A new SCons release, 4.0.1, is now available on the SCons download page: https://scons.org/pages/download.html Here is a summary of the changes since 4.0.1: NEW FUNCTIONALITY - Added Environment() variable TEMPFILEDIR which allows setting the directory which temp fil

Re: How to remove "" from starting of a string if provided by the user

2020-08-11 Thread Bill Campbell
27;' import re pat = re.compile(r'^([\'"])(.*)(\1)$') slast = None while slast != s: slast = s s = pat.cub(r'\2', s) return s # end stripquotes(s) Bill -- INTERNET: b...@celestial.com Bill Campbell; Celestial Soft

<    1   2   3   4   5   6   7   >