Re: use class factory to set required class variables?

2011-01-27 Thread Bill Felton
#x27;. This may well be a standard Python convention, and it is certainly not objectionable. But it isn't well-justified on the basis of the 'first-class-ness' of classes as objects... Best regards, Bill -- http://mail.python.org/mailman/listinfo/python-list

[Announce] Python Lansing (MI) User Group first meeting Feb. 24 2011

2011-02-02 Thread Bill Felton
. Looking forward to seeing you there! cheers, Bill-- http://mail.python.org/mailman/listinfo/python-list

Re: Class or Dictionary?

2011-02-11 Thread Bill Felton
y with 100 entries is no big deal at all. But for me, the big deciding factor comes down to whether or not there is specific behavior associated with this "bundle" of attributes. If yes, class, if no, nothing wrong with dictionary. cheers, Bill On Feb 11, 2011, at 9:56 AM, Martin

Re: Which is the best book to learn python

2011-02-14 Thread Bill Allen
Alan Gauld has written a very good online book called Learning to Program. I would definitely recommend it. http://www.alan-g.me.uk/l2p/index.htm -Bill On Mon, Jan 24, 2011 at 11:09, santosh hs wrote: > Hi All, > i am beginner to python please tell me which is the best ava

array matching

2010-04-29 Thread Bill Jordan
attached to. For example I want the output: A =[1,3] and B=[2,4] Thanks, Bill -- http://mail.python.org/mailman/listinfo/python-list

"Python failed to load the default activation context" - should I worry?

2010-06-08 Thread Bill Davy
Loading Python 2.6.5 (built using VC6) in a VC6 application. This appears in my debug log. Am I worried? Should I be? And I am stuck with VC6 (customers, don't ya know). -- http://mail.python.org/mailman/listinfo/python-list

Re: python source code -> win/dos executable (on linux)

2010-07-01 Thread Bill Davy
(AT) ixokai (DOT) io > ... Blog: http://meh.ixokai.io/ > Not that I am a supporter of Windows nor an expert at MSI BUT later versions of Visual Studio do have a mechanism for building a package. I know it's not in VC6, but is in VS.2008. HTH, Bill -- http://mail.python.org/mailman/listinfo/python-list

ImportError: DLL load failed: The specified module could not be found, SWIG, life, etc

2010-07-05 Thread Bill Davy
Can anyone offer me any suggestion where I am going wrong or how to tackle this problem? Could it be that the Python 2.6 I am running did not use the same compiler (VC6) with which I buiult _SHIP.pyd and if so, is there a way round this without moving on from VC6? TIA, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: ImportError: DLL load failed: The specified module could notbe found, SWIG, life, etc

2010-07-05 Thread Bill Davy
"Thomas Jollans" wrote in message news:mailman.265.1278342154.1673.python-l...@python.org... > On 07/05/2010 04:35 PM, Bill Davy wrote: >> I am struggling :-( > > smile! > >> >> I have used SWIG to build a module called SHIP. So I have a directory >>

curses KEY_* constants

2010-08-24 Thread Bill Green
Hello, According to the documentation for the curses module, there are a number of constants defined for various special keys (such as KEY_DOWN, KEY_UP, KEY_BACKSPACE, etc.). However, these do not exist on my system (NetBSD 5). Looking at _cursesmodule.c, the code that sets up the KEY_ variables

Re: curses KEY_* constants

2010-08-24 Thread Bill Green
I perhaps should have mentioned I linked the Python curses module against ncurses rather than BSD curses. Perhaps NetBSD's curses doesn't support this feature, and that's why it's not included there. In any case, I removed the relevant #defines in _cursesmodule.c and got a Python that includes a

Re: curses KEY_* constants

2010-08-24 Thread Bill Green
On 2010-08-24, Bill Green wrote: > ... but these > constants (for the arrow keys at least) seem not to match the actual > keycodes. After looking at the documentation again I've realized I needed to enable keypad mode on the window for curses to catch the escape codes, and no

Re: missing 'xor' Boolean operator

2009-07-15 Thread Bill Davy
"MRAB" wrote in message news:mailman.3158.1247667680.8015.python-l...@python.org... > Steven D'Aprano wrote: >> On Tue, 14 Jul 2009 11:25:08 -0700, Dr. Phillip M. Feldman wrote: >> >>> Current Boolean operators are 'and', 'or', and 'not'. It would be nice >>> to have an 'xor' operator as well. >

Re: regex: multiple matching for one string

2009-07-23 Thread Bill Davy
"Mark Lawrence" wrote in message news:mailman.3588.1248355389.8015.python-l...@python.org... > scriptlear...@gmail.com wrote: >> For example, I have a string "#a=valuea;b=valueb;c=valuec;", and I >> will like to take out the values (valuea, valueb, and valuec). How do >> I do that in Python? Th

new version of SSL module on PyPI

2009-07-27 Thread Bill Janssen
I've uploaded ssl-1.15.tgz, the backport of the 2.6/3.x SSL module to Python 2.3-2.5. It provides an option for not using SSLv2, and also fixes a bug with write retries. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs disappointing - group effort to hire writers?

2009-08-14 Thread Bill Jones
On Aug 8, 3:27 pm, Mark Lawrence wrote: > Kee Nethery wrote: > > As someone trying to learn the language I want to say that the tone on > > this list towards people who are trying to learn Python  feels like it > > has become anti-newbies. > > [snip] > > > Kee Nethery > > My gut feeling (which cou

Re: Read C++ enum in python

2009-08-19 Thread Bill Davy
"Mark Tolonen" wrote in message news:mailman.89.1250666942.2854.python-l...@python.org... > > "MRAB" wrote in message > news:4a8b3e2d.7040...@mrabarnett.plus.com... >> Ludo wrote: >>> Hello, >>> >>> I work in a very large project where we have C++ packages and pieces of >>> python code. >>> >>

Re: ANN: PyGUI 2.3

2010-11-10 Thread Bill Janssen
Gregory Ewing wrote: > Daniel Fetchinson wrote: > > > Any reason your project is not easy_installable? > > Mainly because I'm not a setuptools user and haven't been > motivated to learn how to do this so far. Applause!! Bill -- http://mail.python.org/mailman/listinfo/python-list

Dictionary order (Is it consistent up to py3.3 unless using -R or PYTHONHASHSEED is set)

2017-05-27 Thread Bill Deegan
.com/watch?v=p33CVV29OG8 Thanks, Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: matplotlib change?

2017-06-22 Thread bill . janssen
tlib > >>> matplotlib.__version__ > '2.0.0' > >>> > > What's my next step? > > -- > Michael F. Stemper > Deuteronomy 24:17 There were a number of changes to line-drawing in the bump from 1 to 2 -- I found that some of them were not listed in the change notes. It's worth reviewing https://matplotlib.org/users/dflt_style_changes.html#plotting-functions. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: matplotlib change?

2017-06-23 Thread bill . janssen
them were not listed in the change notes. It's worth > > reviewing > > https://matplotlib.org/users/dflt_style_changes.html#plotting-functions. > > That nailed it! This section: > <https://matplotlib.org/users/dflt_style_changes.html#plot-layout> > addressed m

Question about propagating universal_newlines through subprocess.Popen to io.TextIOWrapper

2017-06-26 Thread Bill Deegan
ncoding without forcing univeral_newlines. This seems like a bug? -Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about propagating universal_newlines through subprocess.Popen to io.TextIOWrapper

2017-06-26 Thread Bill Deegan
On Mon, Jun 26, 2017 at 12:44 PM, eryk sun wrote: > On Mon, Jun 26, 2017 at 5:23 PM, Bill Deegan > wrote: > > > > That universal_newlines value is discarded due to: > > > > text_mode = encoding or errors or universal_newlines > > > > ...

Re: Question about propagating universal_newlines through subprocess.Popen to io.TextIOWrapper

2017-06-26 Thread Bill Deegan
On Mon, Jun 26, 2017 at 2:22 PM, eryk sun wrote: > On Mon, Jun 26, 2017 at 8:59 PM, Bill Deegan > wrote: > > > > Ideally (for my use case) it would be something which propagated > > universal_newlines to io.TextIOWrapper().. rather than discards it. > > In m

Re: Windows: python3.exe missing

2017-07-07 Thread Bill Deegan
py -3.5 py -3.6 works. Don't know about py -3.6.0 py -3.6.1 On Fri, Jul 7, 2017 at 11:25 PM, Terry Reedy wrote: > On 7/7/2017 5:45 PM, Andrew Pennebaker wrote: > >> Could the Windows installer for Python 3 provide a "python3" command, >> such as a python3.bat or python3.exe file, to help with

SCons 3.0.0.alpha.20170821 is available for your testing

2017-08-21 Thread Bill Deegan
All, You can install via: (PLEASE ONLY DO IN A VIRTUALENV AS THIS IS PRERELEASE) pip install --index-url https://test.pypi.org/simple/ scons==3.0.0.alpha.20170821 This version supports: Python 2.7.x, 3.5.x, 3.6.x NOTE: 1. You must rm your .sconsign file if you switch python versions between 2 a

Re: SCons 3.0.0.alpha.20170821 is available for your testing

2017-08-23 Thread Bill Deegan
, SCons is an easier, more reliable and faster way to build software. see http://scons.org for more info. -Bill SCons Project Co-Manager On Wed, Aug 23, 2017 at 4:26 AM, Steve D'Aprano wrote: > On Tue, 22 Aug 2017 09:51 am, Bill Deegan wrote: > > > All, > > > > You

Re: Microsoft Hatred FAQ

2005-10-25 Thread Not Bill Gates
[EMAIL PROTECTED] wrote... > 1) There is no other operating system worth selling. In this case, you > are right, you have no choice but to sell the Microsoft OS, but the deal > they're offering you harms you in no way. (Unless you intended to sell PCs > with no OS at all.) > > 2) There

Re: Microsoft Hatred FAQ

2005-10-25 Thread Not Bill Gates
[EMAIL PROTECTED] wrote... > Not Bill Gates <[EMAIL PROTECTED]> writes: > > > [EMAIL PROTECTED] wrote... > > > > > 1) There is no other operating system worth selling. In this > > > case, you are right, you have no choice but to sell the Microsoft &

Re: Microsoft Hatred FAQ

2005-10-25 Thread Not Bill Gates
[EMAIL PROTECTED] wrote... > On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: > > > Heck, I dunno. Like you, I don't even really care all that much. > > You don't care that innovation in desktop software has been crippled by > the actions of the monop

Re: Microsoft Hatred FAQ

2005-10-25 Thread Not Bill Gates
[EMAIL PROTECTED] wrote... > Not Bill Gates <[EMAIL PROTECTED]> writes: > > [EMAIL PROTECTED] wrote... > >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: > >> > Heck, I dunno. Like you, I don't even really care all that much. > >>

Re: Python Programming expert - adding user

2012-07-19 Thread William R. Wing (Bill Wing)
to spawn a child process in which the useradd command will run. Read the subprocess documentation here: http://docs.python.org/library/subprocess.html?highlight=subprocess#subprocess and see if this, plus the man page for useradd, doesn't get you going. -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: trouble with pyplot in os x

2012-08-04 Thread William R. Wing (Bill Wing)
he sources and build a 64-bit numpy, which will then give you a default 64-bit full package of python, numpy, and matplotlib. That's what I've done, and my system runs the demo you listed in your post with no problems. > TIA, > eric > -- > http://mail.python.org/mailman/listinfo/python-list Good luck, -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and OSX 10.8

2012-08-09 Thread William R. Wing (Bill Wing)
on in /System/Library/Frameworks. If you download and install the default 2.7 from python.org (which will go in /Library/Frameworks…) it will work. I just tested your command and it works fine on my ML system. If you want, I'll send you my python path off line. -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: [ANNC] pybotwar-0.8

2012-08-16 Thread William R. Wing (Bill Wing)
On Aug 16, 2012, at 11:40 AM, Ramchandra Apte wrote: > Look you are the only person complaining about top-posting. > GMail uses top-posting by default. > MANY of us find it irritating... and it only takes a second to move your cursor down and play nice. -Bill -- http://mail.p

writelines puzzle

2012-08-22 Thread William R. Wing (Bill Wing)
itelines, but I would like the file to be human-readable. Python 2.7.3 OS-X 10.8 Thanks, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: writelines puzzle

2012-08-22 Thread William R. Wing (Bill Wing)
"i" in this instance is 2354, so the file should (I thought) have contained the value of "i" followed by 2 x 2354 values of the data. > On Wed, Aug 22, 2012 at 8:38 AM, William R. Wing (Bill Wing) > wrote: >> In the middle of a longer program that reads and plot

Re: writelines puzzle

2012-08-22 Thread William R. Wing (Bill Wing)
On Aug 22, 2012, at 1:28 PM, Jerry Hill wrote: > On Wed, Aug 22, 2012 at 11:38 AM, William R. Wing (Bill Wing) > wrote: >> Much to my surprise, when I looked at the output file, it only contained 160 >> characters. Catting produces: >> >> StraylightPro:Logs wr

Re: python docs search for 'print'

2012-09-04 Thread William R. Wing (Bill Wing)
t;keep this under your pillow"). Try searching for list, iter, read, or write or any one of a whole bunch of things a newbie would logically be looking for. (Or even a not-quite-newbie who wanted to check some detail.) -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: where's the new python gone?

2012-09-10 Thread William R. Wing (Bill Wing)
is in /System/Library/Frameworks… Do NOT touch the one from Apple. Apple uses it for some of its housekeeping operations and you want it to stay just as Apple installed it. When you finally find the Python 2.7 in the output from the "find" command, you can edit your .login (if you don't have a .profile) or edit .profile if you do. Good luck, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: where's the new python gone?

2012-09-10 Thread William R. Wing (Bill Wing)
On Sep 10, 2012, at 11:17 AM, Bob Aalsma wrote: > Well, Bill, better late than never - thanks for stepping in. > You are right, my problems are not yet solved ;) As Hans pointed out, you are looking for python, not Python (the frameworks are named Python, the executable is python).

Re: Newbie: where's the new python gone?

2012-09-11 Thread William R. Wing (Bill Wing)
On Sep 11, 2012, at 3:52 AM, Bob Aalsma wrote: > > Op 10 Sep 2012, om 22:53 heeft William R. Wing (Bill Wing) het volgende > geschreven: > >> On Sep 10, 2012, at 11:17 AM, Bob Aalsma wrote: >> >>> Well, Bill, better late than never - thanks for stepping i

Re: Newbie: where's the new python gone?

2012-09-11 Thread William R. Wing (Bill Wing)
hand you a completely prebuilt 2.7.3 (latest) along with an installer that will put it in /Library/Frameworks where it belongs and will even edit your .profile. Good luck, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Python presentations

2012-09-13 Thread William R. Wing (Bill Wing)
etail you didn't notice at the time of the talk. A good example is one that was discussed on the matplotlib-users list several weeks ago: http://www.loria.fr/~rougier/teaching/matplotlib/ -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: key/value store optimized for disk storage

2012-05-02 Thread William R. Wing (Bill Wing)
out the limits of a memory-based system. It could probably be completely written in python and still have acceptable performance. -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Retrieving result from embedded execution

2012-05-08 Thread William R. Wing (Bill Wing)
ess.Popen would let you hook stdin and staout directly to pipes that will pass data back to the calling program with no intermediate steps. -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: tee-like behavior in Python

2012-05-09 Thread William R. Wing (Bill Wing)
fo/python-list Have you tried explicitly calling file.flush() on the log file? (The docs note that you may have to follow this with os.fsync() on some systems.) -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Book for a C Programmer?

2012-05-24 Thread William R. Wing (Bill Wing)
t; > Thanks. > -- > http://mail.python.org/mailman/listinfo/python-list My preference is "Python Essential Reference" by Beazley. You can find it and several reviews here: http://www.amazon.com/Python-Essential-Reference-David-Beazley/dp/0672329786/ref=sr_1_1?s=books&i

Re: ./configure

2012-06-03 Thread William R. Wing (Bill Wing)
> > > -- > Steven > -- > http://mail.python.org/mailman/listinfo/python-list Jumping in here in an effort to be helpful… OS-X no longer uses a .bashrc file (although it will recognize it). The python path is set in ~/.profile -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Compare 2 times

2012-06-06 Thread William R. Wing (Bill Wing)
something like the following: creation_time = subprocess.check_output(["ls", "-U", string_filename_variable]) The -U option isn't universal, but it does exist in most of the UNIces I'm familiar with. -Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Compare 2 times

2012-06-06 Thread William R. Wing (Bill Wing)
On Jun 6, 2012, at 9:45 AM, William R. Wing (Bill Wing) wrote: > On Jun 6, 2012, at 9:29 AM, Alain Ketterlin wrote: > >> loial writes: >> >>> I have a requirement to test the creation time of a file with the >>> current time and raise a message if the f

RE: [E] ANN: asciimatics v1.7.0

2016-09-26 Thread Scherer, Bill via Python-list
Looks cool. Why does it want to install pypiwin32 on my 64bit Linux box? I installed all the requirements separately, but it still wants to install pypiwin32. (pypiwin32 appears to not support Python3) # pip3.5 install asciimatics Collecting asciimatics Using cached asciimatics-1.7.0-py2.py3

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
Your approach is wrong. You don't build python from source using pip. You don't install new versions of python into a venv either. Have you read the following? https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html That seems to have instructions for what you want to d

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
Did Mats suggestion of: python3.13 -m venv new_venv $ new_venv/bin/python --version Python 3.13.0b4 $ source new_venv/bin/activate Not work? That should work on any system, with any system installl python. It's not trying to modify the system installed python in anyway... If not, please paste the

Re: Help needed - - running into issues with python and its tools

2024-08-05 Thread Bill Deegan via Python-list
why reply to me instead of to the list? It's generally considered bad form to do so. Do you have any python 3 installed on your system? Or python 2.7? If not, can you install such via system package? -Bill On Mon, Aug 5, 2024 at 6:06 PM o1bigtenor wrote: > > > On Mon, Au

Re: Help needed - - running into issues with python and its tools

2024-08-06 Thread Bill Deegan via Python-list
I’m not looking through all the packages you have installed What version of python is installed on your system? On Tue, Aug 6, 2024 at 5:24 AM o1bigtenor wrote: > > > On Mon, Aug 5, 2024 at 10:36 PM Bill Deegan > wrote: > >> why reply to me instead of to the li

Frustration debugging serial code

2010-05-07 Thread William R. Wing (Bill Wing)
) if I run it as a standalone script. Clearly, I'm missing something. TIA, Bill Wing import serial, string port = '/dev/tty.KeySerial1' ser = serial.Serial(port, 9600, timeout=1) # Set up handle to serial port stat1 = ser.write('\x02')# Write "

Re: Frustration debugging serial code

2010-05-07 Thread William R. Wing (Bill Wing)
See comments in-line. On May 7, 2010, at 3:23 PM, MRAB wrote: > William R. Wing (Bill Wing) wrote: >> On May 7, 2010, at 2:08 PM, MRAB wrote: >>> William R. Wing (Bill Wing) wrote: >>>> Hello World - >>>> I'm new to both Python and this list, but

Re: Frustration debugging serial code

2010-05-07 Thread William R. Wing (Bill Wing)
ould make it lower case. However, I've tried it both ways with the same results. But thanks. Still frustrated, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Frustration debugging serial code

2010-05-07 Thread William R. Wing (Bill Wing)
On May 7, 2010, at 10:18 PM, MRAB wrote: > William R. Wing (Bill Wing) wrote: >> See comments in-line. >> On May 7, 2010, at 3:23 PM, MRAB wrote: >>> William R. Wing (Bill Wing) wrote: >>>> On May 7, 2010, at 2:08 PM, MRAB wrote: [byte -byte- byte] &

<    2   3   4   5   6   7