Re: Little Q: how to print a variable's name, not its value?

2005-03-29 Thread Bill Mill
27;. ummm, yes, of course they are. What's your point? > > Mixing data and program code, ie.. variable names as data, is not a > good idea. Down with eval! Exile exec! A pox on both their houses! (i.e. I respectfully disagree that mixing data with program code is a bad idea) Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Little Q: how to print a variable's name, not its value?

2005-03-29 Thread Bill Mill
On Tue, 29 Mar 2005 18:08:04 GMT, Cameron Laird <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Bill Mill <[EMAIL PROTECTED]> wrote: > . > . > . > >(i.e. I respectfully

Re: Which is easier? Translating from C++ or from Java...

2005-03-29 Thread Bill Mill
;s going on so that you don't end up writing another language in python. If you do this, it doesn't matter which of the three you pick. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Little Q: how to print a variable's name, not its value?

2005-03-29 Thread Bill Mill
> >> > >> Fred = 5 > >> John = 8 > >> Winner = John > >> > >> Both John and Winner are pointing to the literal '8'. > > > >ummm, yes, of course they are. What's your point? > > Hi Bill, > > My poi

Re: Little Q: how to print a variable's name, not its value?

2005-03-31 Thread Bill Mill
because a variable is simply a name binding doesn't mean Python couldn't return the name of the binding. I'm not definitely saying that I *want* an easy name() function - there's a lot of potential for abuse - but I would at least like to see it accomplished before I decide whether I like it or not. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Little Q: how to print a variable's name, not its value?

2005-03-31 Thread Bill Mill
On Thu, 31 Mar 2005 03:33:10 -0500, Bill Mill <[EMAIL PROTECTED]> wrote: > On 31 Mar 2005 08:13:30 GMT, Duncan Booth <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > > > But surely if you create an integer object and assign it a value, e.g. > &

Shelve DBRunRecoveryError

2005-04-01 Thread bill . oldroyd
ore[i] = v File "C:\Python24\lib\shelve.py", line 130, in __setitem__ self.dict[key] = f.getvalue() File "C:\Python24\lib\bsddb\__init__.py", line 218, in __setitem__ self.db[key] = value DBRunRecoveryError: (-30978, 'DB_RUNRECOVERY: Fatal error, run databas

Re: Pseudocode in the wikipedia

2005-04-01 Thread Bill Mill
using = are much clearer, especially since you often write many of them in a row, whereas you almost always make one assignment per line. I use := every day in PL/SQL, and it's one of the few positive syntactical features of the language. Peace Bill Mill bill.mill at gmail.com -- http://mail.pyth

Re: How to reload local namespace definitions in the python interpreter?

2005-04-04 Thread Bill Mill
port ... as ... idiom? > > e.g. import os.path as op > > > > This would, of course, require the user to qualify the names by > prefixing them with "op.". > What the OP listed above requires that too. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: change extensions

2005-04-05 Thread Bill Mill
os.rename(in_file, str(name[0]) + '.' + 'text')) > you should really use in_file.splitext - your script renames myfile.with.lots.of.dots.txt to myfile.text instead of myfile.with.lots.of.dots.text . If you *really* wanted to use split(), it oughta be ''.join(in_

Re: shebang in cross platform scripts

2005-04-06 Thread Bill Mill
> systems too. > > #!/usr/bin/env python What the others have said already is true, that it will be ignored on windows, with one caveat. The shebang is interpreted by Apache if your script is a CGI script. So, if your script is a CGI, you will need to have a windows version and a ni

Re: shebang in cross platform scripts

2005-04-06 Thread Bill Mill
ll available for > Windows. Google is your friend. > > Symbolic links also work under uwin (don't know for sure about the > others). That means you can install a link in /usr/bin to whereever > python lives, and expect #!/usr/bin/python to work just fine. This works in cygwin

Re: Lambda: the Ultimate Design Flaw

2005-04-07 Thread Bill Mill
On Apr 7, 2005 1:15 AM, Greg Ewing <[EMAIL PROTECTED]> wrote: > Scott David Daniels wrote: > > Aahz wrote: > > > >> You just can't have your cake and eat it, too. > > > > I've always wondered about this turn of phrase. I seldom > > eat a cake at one sitting. > > You need to recursively subdivide

Re: sorting a list and counting interchanges

2005-04-07 Thread Bill Mill
my CS classes (I graduated last May) While I'm at it though, I want to thank Tim for that post. It was one of those posts where afterwards you say "of course!" but beforehand I was totally thinking of it the wrong way. Brought me right back to Abstract. Peace Bill Mill bill.mill a

Re: sorting a list and counting interchanges

2005-04-07 Thread Bill Mill
n or #by implication assert j not in seen just to really frustrate the guy reading your code. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: zlib and zipfile module in Python2.4

2005-04-12 Thread Bill Anderson
you built it you should check for the zlib development headers. If they are not, zlib will not be built. I recently had this issue and discovered that if zlib headers are not there, python still builds gzip ... which imports zlib. Seems to me that since zlib apparently depends on gzip, gzip shou

Re: some sort of permutations...

2005-04-12 Thread Bill Mill
like its recursion really slows it down (but I haven't been profiled it). Does anyone know of a non-recursive algorithm to do the same thing? And, while I'm asking that question, is there a good reference for finding such algorithms? Do most people keep an algorithms book handy? Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: preallocate list

2005-04-13 Thread Bill Mill
lst.append(math.sin(i) * i) t1 = timeit.Timer('test1()', 'from __main__ import test1') t2 = timeit.Timer('test2()', 'from __main__ import test2') print "time1: %f" % t1.timeit(100) print "time2: %f" % t2.timeit(100) 09:09 AM ~$ py

Re: preallocate list

2005-04-13 Thread Bill Mill
print "time2: %f" % t2.timeit(100) > The results change slightly when I actually insert an integer, instead of a float, with lst[i] = i and lst.append(i): 09:14 AM ~$ python test.py time1: 3.352000 time2: 3.672000 The preallocated list is slightly faster in most of my tests, but I still

Re: Codig style: " or """

2005-04-13 Thread Bill Mill
ocument on python > coding style. > the authoritative coding style guide is pep 8: http://www.python.org/peps/pep-0008.html Of course, there are style points that are debatable, but for comments, you should definitely be using triple-quotes. Pep 8 points you to pep 257, which is all about docstrings: http://www.python.org/peps/pep-0257.html Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Compute pi to base 12 using Python?

2005-04-14 Thread Bill Mill
noted that running the win32 bc from cygwin messed up my terminal, so I recommend running it from a cmd window (which worked fine). Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: A little request about spam

2005-04-14 Thread Bill Mill
On 4/14/05, César Leonardo Blum Silveira <[EMAIL PROTECTED]> wrote: > Yeah that is happening to me too! Almost all my python-list e-mails go > to the Spam box. > Maybe we should contact the gmail admins? > I've already contacted the gmail admins. There was no response. Pe

Re: A little request about spam

2005-04-14 Thread Bill Mill
On 4/14/05, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Bill Mill wrote: > > > > Maybe we should contact the gmail admins? > > > > I've already contacted the gmail admins. There was no response. > > have you tried reading the newsgroup via

Re: A little request about spam

2005-04-15 Thread Bill Mill
ning. Here's to b*tching on c.l.p actually solving something ! Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

(Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-18 Thread Bill Davy
rces.redhat.com/pub/bzip2/v102/bzip2-102-x86-win32.exe) from the site cited for the unzipper (http://sources.redhat.com/bzip2/). It flashed up a black console window momentarily. Oh, this is so frustrating! :-( Can anyone point me in the right direction? And then I can get to grips wi

Re: Strings and Lists

2005-04-18 Thread Bill Mill
e bit-twiddling operators to get at your data. These should be *very* fast, as well as memory efficient. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-18 Thread Bill Davy
"A.B., Khalid" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Bill Davy wrote: >> I downlaoded and installed >> http://www.python.org/ftp/python/2.4.1/python-2.4.1.msi >> >> I'm trying to build an extension using SWIG 1.3.24 and the

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-19 Thread Bill Davy
, Bill "James Carroll" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Hi Bill, Python 2.4 requires VC7.1 I just ran into this recently. Once I installed VC7.1, I could easily compile the Python source to create a debug lib. Winzip should be able to read the pytho

RE: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-19 Thread Bill Davy
tomer compatibility firts (I have tried to edge them on but without success). Many thanks Bill -Original Message- From: James Carroll [mailto:[EMAIL PROTECTED] Sent: 18 April 2005 18:10 To: Bill Davy; python-list@python.org Subject: Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_

Re: New Python regex Doc (was: Python documentation moronicities)

2005-04-19 Thread Bill Mill
eractive > sessions, complete with ">>>" and "..."), but nits can always be picked > and I'm not the gatekeeper to Python's documentation. > I'd suggest that he actually make an effort at improving the docs before submitting them. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: please unsubscibe

2005-04-19 Thread bill norris
Thank you,     Bill NorrisJohn Roth <[EMAIL PROTECTED]> wrote: I'm pleased to announce that PyFit 0.7a1is now available in the file sections ofthe Extreme Programming and FitNesseYahoo groups. This version implementsmost of the Fit Library, and changesneeded to bring the package into

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-20 Thread Bill Davy
). I'd like to persuade IDLE to use my locally compiled version of Python rather than the one I downloaded, and will find out how eventually. Necessary to keep to a VC6 build of 2.4.1 throughout. Rgds, Bill (an inveterate top poster, I'm afraid). "A.B., Khalid&quo

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-20 Thread Bill Davy
:-( Many thanks for your help, Bill "Jaime Wyant" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I fight the python24_d.lib problem with swig daily. The way I got around it was to modify swig's python configuration module. Mine was located at /lib/swig1.

Redhat 9, Python 2.4.1, CGIHTTPServer problem

2005-04-20 Thread Bill Oldroyd
,args.os.environ) the error message being OSError: [Errno 2] No such file or directory Can anyone through any light on this problem ?. I have seen a few references to problems in this area, but nothing that is helpful in solving the problem. Bill -- http://mail.python.org/mailman/listinfo

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread Bill Mill
think this is more intuitive, since most people (including > > mathematicians) start counting at "1". The reason for starting at > > "0" is easier memory address calculation, so nothing for really high > > level languages. > > Personnaly I would like to ha

Re: Why Python does *SLICING* the way it does??

2005-04-20 Thread Bill Mill
On 20 Apr 2005 13:39:42 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > Op 2005-04-20, Bill Mill schreef <[EMAIL PROTECTED]>: > > On 20 Apr 2005 12:52:19 GMT, Antoon Pardon <[EMAIL PROTECTED]> wrote: > >> Op 2005-04-20, Torsten Bronger schreef &

Re: Troll? was: Re: goto statement

2005-04-20 Thread Bill Mill
ve he meant obfuscating bytecode for a commercial product, to try and avoid decompilation, which is often a desirable function for commercial entities. (Not that I have the technical knowledge to agree or disagree with what he said, I'm just trying to help clear up what's become a fairly

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-21 Thread Bill Davy
Hi Scott, Nice idea. Tried that but no more information about where the file was (not) found (see below). But many thanks for a useful flag. I did not see them in the documentation. What should I be lkooking for? [StopPres: Ah ha -h why did I not think of that?] Bill # installing zipimport

Re: (Python newbie) Using XP-SP2/MSVC6: No Python24_d.lib, winzip barfs on Python-2.4.1.tar, cannot download bzip2

2005-04-22 Thread Bill Davy
ght not even have it >right here; I simply make everything as if all tests were case- >sensitive. > > --Scott David Daniels > [EMAIL PROTECTED] And also Python may be looking for SHIP_d.pyd too (as it is Windows Debug version). Anyway, I am making prgress (but see new thre

IDLE: How to point it to the Python executables I want it to see on Windows

2005-04-22 Thread Bill Davy
Assuming they run as a separate thread, I want to point IDLE to .../Debug/Python_d.exe one day and .../Release/Python.exe for the next. Also, is there any easy way to run the .../Debug/Python_d.exe so started under the MSVC debugger? tia, Bill -- http://mail.python.org/mailman/listinfo

Re: a=[ lambda t: t**n for n in range(4) ]

2005-04-22 Thread Bill Mill
t; t = 2 >>> [(lambda n: t**n)(n) for n in range(4)] [1, 2, 4, 8] >>> t = 3 >>> [(lambda n: t**n)(n) for n in range(4)] [1, 3, 9, 27] I just thought that was kinda neat. If you wanted to obfuscate some python, this would be an awesome trick - hide the value of t somewhere early in the function then pull a variation of this out later. Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: What is situation with threads in Python

2005-04-25 Thread Bill Mill
On 4/25/05, Leonard J. Reder <[EMAIL PROTECTED]> wrote: > Hello Mark, > > I took your three day course here at JPL and recall that you said > something was wrong with the implementation of threads within Python > but I cannot recall what. So what is wrong with threads in Python? I'm going to gue

Re: What's do list comprehensions do that generator expressions don't?

2005-04-25 Thread Bill Mill
ar. Once that happens, we can tell people who ask the OP's question that [genexp] is just another way to spell list(genexp), and he should use it if he wants the entire list constructed in memory. > Jeremy> should be relatively simple), it's not worth breaking that > J

Re: Do I need a nested lambda to do this?

2005-04-25 Thread Bill Mill
v, t[1]) for t in tab]) for v, tab in zip(vals, tabs)] [((1.0, 1), (1.0, 3), (1.0, 4)), ((2.3439, 2), (2.3439, 0), (2.3439, 9)), ((4.23420004, 4), (4.23420004, 3), (4.23420004, 1))] Peace Bill Mill bill.mill at gmail.com > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://mail.python.org/mailman/listinfo/python-list

Re: Which IDE is recommended?

2005-04-27 Thread Bill Mill
wing+komodo&rnum=3#3a118074c68f1f35 http://groups-beta.google.com/group/comp.lang.python/browse_frm/thread/2225676eb7e1b4e/cdee764dfa2b5391?q=best+IDe&rnum=1#cdee764dfa2b5391 Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Python and Math

2014-05-17 Thread Bill Cunningham
Does Python have good mathematical capabilities? I am interested in learning a second language for mathematical purposes. I am considering looking at python, perl, fortran, Adas out. It looked too complicated to learn. Perl looked easy and I haven't really looked into python.

Re: Python and Math

2014-05-17 Thread Bill Cunningham
s of all degrees and identities. Not so much statistics. Some geometry. Euclidean and spatial. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-17 Thread Bill Cunningham
good. But as a language for *nixs and their respective APIs sockets, sys calls and such there's C. Fortran might still be a choice. Perl looks really easy. But I haven't gotten into any of these because I'm still halding out for one that appeals to me. Bill -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and Math

2014-05-18 Thread Bill Cunningham
"Grant Edwards" wrote in message news:llak9u$8rs$1...@reader1.panix.com... > On 2014-05-18, Bill Cunningham wrote: > >> Does Python have good mathematical capabilities? > > No. > > It has very good numerical computation capabilities, but it does not >

64 bit python 3.5

2015-09-25 Thread Bill Strum
Is there a 64 bit version of 3.5 and if so where can I get it. Thanks. -- Bill Strum -- https://mail.python.org/mailman/listinfo/python-list

Re: ANN: PyGUI 2.5

2011-09-14 Thread Bill Janssen
trospection well enough to support PyGUI at the moment. One possibility would be to develop a PyGUI branch on top of Tk, so that it would work with Python anywhere. Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: python website

2005-12-16 Thread Bill Mill
rch?q=python%20web%20framework . Peace Bill Mill bill.mill at gmail.com -- http://mail.python.org/mailman/listinfo/python-list

Re: some suggestions about GUI toolkits?

2005-12-28 Thread Bill Maxwell
e to look for finding other GUI builders for wxPython/wxWidgets. They provide a nice list at the bottom of the box on the right-hand side of the front webpage. Bill. -- http://mail.python.org/mailman/listinfo/python-list

ODBC Insert question

2006-01-12 Thread Bill Witherspoon
string, values)    myconn.close()    returndef connect_db ():    myconn = mx.ODBC.Windows.Connect('trackingdb')  #using mx.ODBC    return myconnAny help/pointers would be appreciated!Thanks, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: ODBC Insert question

2006-01-19 Thread Bill Witherspoon
<[EMAIL PROTECTED]> wrote: Bill Witherspoon wrote:> Hi all,>> Am trying to teach myself a bit of Python by creating a small app to> track tasks, and docs associated with the task. I'm using Python 2.4 on> Win32 with an Access 2003 db which I'm attempting to talk to u

Re: attaching debugger to runinng python program

2006-07-13 Thread Bill Pursell
alf wrote: > Hi, > > I have a two fold question: > -how to attach the debugger to running multi threaded program > -the objective is to find an infinite loop in one of threads which > makes the whole thingy going craze (100%CPU) > > The program itself is not easy, in fact quite hude an

Re: reading specific lines of a file

2006-07-15 Thread Bill Pursell
Yi Xing wrote: > I want to read specific lines of a huge txt file (I know the line #). > Each line might have different sizes. Is there a convenient and fast > way of doing this in Python? Thanks. #!/usr/bin/env python import os,sys line = int(sys.argv[1]) path = sys.argv[2] os.system("sed -n %d

Re: Python on RedHat AS 2.1?

2006-07-18 Thread Bill Scherer
to /usr/local. You should (assuming you have the proper development tools installed) be able to just ./configure; make; make install (assuming you have the proper permissions). They can coexist just fine. - Bill > > Jeremy > > > > From: Fredrik Lundh <[EMAIL PROTECT

Re: ImportError: libclntsh.so.10.1: cannot open shared object file: Permission denied

2006-07-20 Thread Bill Scherer
gmax2006 wrote: >Hi, > >I am using RedHat Linux 4. and I developed an oracle 10g based >application by using cx_Oracle (cx_Oracle-4.1-10g-py23-1.i386.rpm) and >Python 2.3.4. > >When I run the application through direct console connection, It works >perfect. > >But, when I schedule a crontab job to

Re: Nested function scope problem

2006-08-05 Thread Bill Pursell
Gerhard Fiedler wrote: >There's no Python equivalent to "int*p=345; *p++;". Sure there is: os.kill(os.getpid(), signal.SIGSEGV) :) -- http://mail.python.org/mailman/listinfo/python-list

Packages

2006-08-10 Thread Bill Hale
ing Python program in the package? Of course, the normal way to refer to class X in program A.py is to do the following: from C import X aX = X() Bill Hale -- http://mail.python.org/mailman/listinfo/python-list

Re: Using a dictionary to pass data to/from embedded python functions

2006-08-13 Thread Bill Pursell
omitting flags for the sake of brevity, or if I'm actually missing something. -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list

PySequence_SetItem

2006-08-16 Thread Bill Pursell
tupid, but it certainly looks like PySequence_SetItem() was expecting that there should already be an item at the desired index. Am I doing something stupid? -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list

Re: PySequence_SetItem

2006-08-16 Thread Bill Pursell
Bill Pursell wrote: > The following code is pretty much straight out of > section 1.2.1.1 of the Python/C reference manual: > > #include > > int > main(void) > { > PyObject *l, *x; > > Py_Initialize(); > > l = PyList_

iTunes Search Algorithm/Data Structure?

2006-08-17 Thread Bill Mill
" in it. Typing "am" leaves only row 1, since "gamma" has the substring "am" in it. The key here is that this works instantaneously as you type, even with very large lists with many elements per row. I'd like the employee list in my current application to be s

Re: sum and strings

2006-08-19 Thread Bill Pursell
Georg Brandl wrote: > Paul Rubin wrote: > > Sybren Stuvel <[EMAIL PROTECTED]> writes: > >> Because of "there should only be one way to do it, and that way should > >> be obvious". There are already the str.join and unicode.join methods, > > > > Those are obvious??? > > Why would you try to sum up

Re: import

2006-08-20 Thread Bill Pursell
Georg Brandl wrote: > 01 wrote: > > Georg Brandl wrote: > >> [EMAIL PROTECTED] wrote: > >> > bugnthecode 写道: > >> > > >> >> How are you trying to import it? Is it in the same directory as your > >> >> other script? If not is your python path set correctly? > >> >> > >> >> When importing a module t

Re: List Splitting

2006-08-21 Thread Bill Pursell
t; ["c", "a", "t" ] ] > > The actual data isn't as simple as this, but if I can get the logic > sorted out, I can handle the other part. > > Anyone have any good ideas on how to do this? how about: >>> t = [ "a", "b", "c", "n", "a", "a", "t", "t", "t" ] >>> [t[i::3] for i in range(0,len(t)/3)] [['a', 'n', 't'], ['b', 'a', 't'], ['c', 'a', 't']] -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list

Re: Starting out.

2006-10-14 Thread Bill Pursell
Grant Edwards wrote: > > Perl has syntax? ROTFLMAO. In fact, that even motivated: Psychotically Engineered Random Language. -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list

unloading extension library

2006-10-18 Thread Bill Pursell
;> import spam Hi! >>> del spam >>> Notice that the destructor isn't called. How can I force python to dlclose() the library and ensure that my destructors get called? -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list

Re: unloading extension library

2006-10-18 Thread Bill Pursell
Bill Pursell wrote: > I've got a simple extension module that contains two functions: > void hi(void) __attribute__((constructor)); > void hi(void) { printf("Hi!\n");} > void bye(void) __attribute__((destructor)); > void bye(void) { printf("Bye!\n"

Re: a newbi problem: can't find complete python curses library

2006-11-02 Thread Bill Pursell
docs.python.org/lib/curses-panel-objects.html -- Bill Pursell -- http://mail.python.org/mailman/listinfo/python-list

Re: How to choose the right GUI toolkit ?

2006-11-09 Thread Bill Maxwell
ound, so I stopped looking at it. I've inserted my notes from back then, below. Does anybody know if these things have been fixed in the latest release? Bill = My notes from Fri Dec-23-2005: This is a list of gripes I have

Re: How to choose the right GUI toolkit ?

2006-11-10 Thread Bill Maxwell
e the code. >*** > >So, it works. Thanks for looking into it. It sounds like either it has been fixed in the newer version -- or I didn't do something correctly. It's been a long time, and I was just going by the notes I made back then. > >

Re: Python deployment options.

2006-11-15 Thread Bill Maxwell
On 8 Nov 2006 03:42:09 -0800, "king kikapu" <[EMAIL PROTECTED]> wrote: > >I see...So, if these are the only options, the only "safe" bet is to >install the language on the machine (beeing Win, Linux or Mac) >and execute the .py files, right ?? No, those are not the only options. Check out PyI

Re: Oracle Data Access in Python

2006-05-31 Thread Bill Scherer
s probably the easiest way to get what you need for that. Hope that helps, Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Oracle Data Access in Python

2006-05-31 Thread Bill Scherer
A.M wrote: > > "Bill Scherer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > A.M wrote: > > > >> Hi, > >> > >> > >> > >> I am familiar with Perl's DBI programming. > >> > >

Re: Network Programming in Python

2006-06-22 Thread Bill Maxwell
ely send command from Linux to Windows PC to >start a particular application. Have you checked out Pyro (Python Remote Objects)? http://pyro.sourceforge.net/ Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: Python password display

2006-07-06 Thread Bill Scherer
Johhny wrote: > Hello, > > I am currently writing some python code which requires the use of a > password. Currently I am using the raw_input function to take the users > input in and use it. One problem with that is the password is displayed > in clear text on the console of the server. I would l

Re: how to get file name of the running .py file

2006-08-23 Thread Bill Pursell
Jason Jiang wrote: > Hi, > > How to get the name of the running .py file like the macro _FILE_ in C? There are many ways--IMO the easiest is with __file__: >>> print __file__ /home/bill/.pystart >>> [tmp]$ cat foo.py #!/usr/bin/env python print "The name

Re: IDLE on Mac OS X

2006-08-27 Thread Bill Hale
n. Thanks. You might want to open the console window by running the application "Console" found in the Applications/Utilities folder. An error message may be there indicating what the problem is. -- Bill Hael -- http://mail.python.org/mailman/listinfo/python-list

Re: efficient text file search.

2006-09-11 Thread Bill Scherer
noro wrote: >Is there a more efficient method to find a string in a text file then: > >f=file('somefile') >for line in f: >if 'string' in line: > print 'FOUND' > >? > >BTW: >does "for line in f: " read a block of line to te memory or is it >simply calls f.readline() many times? > >than

Re: Tkinter on Python 2.4 on Mac OS X?

2006-09-13 Thread Bill Williams
2.4 on a Mac? > The Hello World example works for me. You have to save as applet, though. Can anybody recommend some examples showing how to get the 'text' module to work? There is a lot of information in http://www.pythonware.com/library/tkinter/introduction/index.htm bu

Re: Tkinter on Python 2.4 on Mac OS X?

2006-09-15 Thread Bill Williams
Tkinter conflict with the IDE graphics environment, so you can't run them under the IDE, and saving as applets was the easiest way to get stuff to run standalone. Cheers, Bill Williams -- http://mail.python.org/mailman/listinfo/python-list

Finding dynamic libraries

2006-09-15 Thread Bill Spotz
(), but neither results in python being able to find my dynamic libraries. Thanks in advance ** Bill Spotz ** ** Sandia National Laboratories Voice: (505)845-0170 ** ** P.O. Box 5800 Fax: (505)284-5451 ** ** Albuquerque

Re: Best way to handle large lists?

2006-10-03 Thread Bill Williams
I don't know enough about Python internals, but the suggested solutions all seem to involve scanning bigList. Can this presumably linear operation be avoided by using dict or similar to find all occurrences of smallist items in biglist and then deleting those occurrences? Bill Williams

Re: About alternatives to Matlab

2006-11-29 Thread Bill Maxwell
ode are doing different things, but I think they are supposed to do the same things (the first is the Matlab version, the 2nd is the Python version): > d1(:) = odd - C2*even; > d1[:] = odd[:] - C1*even[:] I don't understand what this code is doing, so I don't know which is wrong. I don't even know if this is the actual code you are using. Just thought I'd mention it. Bill -- http://mail.python.org/mailman/listinfo/python-list

detecting that a SQL db is running

2006-11-30 Thread bill ramsay
any advice? any information shall be gratefully received kind regards Bill -- http://mail.python.org/mailman/listinfo/python-list

Re: detecting that a SQL db is running

2006-12-01 Thread bill ramsay
Dennis none of this matters, all i am trying to find out is whether or not the local MSDE is actually running. I put all the other bits in there to try and put some background to it. kind regards bill -- http://mail.python.org/mailman/listinfo/python-list

Re: detecting that a SQL db is running

2006-12-01 Thread bill ramsay
thank you paul, much appreciated -- http://mail.python.org/mailman/listinfo/python-list

Re: detecting that a SQL db is running

2006-12-02 Thread bill ramsay
On Sat, 02 Dec 2006 07:39:51 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: >On Sat, 02 Dec 2006 09:02:43 +1300, bill ramsay <[EMAIL PROTECTED]> >declaimed the following in comp.lang.python: > >> Dennis >> >> none of this matters, all i am trying to

Re: Why not just show the out-of-range index?

2006-12-03 Thread Bill Maxwell
hem to try and ask questions that might help to improve the language? In other words, if I'm not skilled or knowledgeable enough to improve something myself, I shouldn't even mention it? Bill -- http://mail.python.org/mailman/listinfo/python-list

Why does wx.Window.CaptureMouse() send EVT_PAINT

2006-12-07 Thread Bill Jackson
It seems that the CaptureMouse method sends an EVT_PAINT handler. The documentation does not mention this...is it somewhere else? Could someone explain why this handler is sent out? Also, I've seen: def OnMouseDown(self, evt): self.CaptureMouse() self.x, self.y = self.l

Re: merits of Lisp vs Python

2006-12-08 Thread Bill Atkins
Bjoern Schliessmann <[EMAIL PROTECTED]> writes: > I think you acknowledged that the syntax is different and not > borrowed? Um, so does that mean that Python couldn't have borrowed other features? -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-08 Thread Bill Atkins
"Mark Tarver" <[EMAIL PROTECTED]> writes: > How do you compare Python to Lisp? What specific advantages do you > think that one has over the other? > > Note I'm not a Python person and I have no axes to grind here. This is > just a question for my general education. > > Mark What was the reason

Re: merits of Lisp vs Python

2006-12-08 Thread Bill Atkins
Paul Rubin writes: > Huh? Are you saying Lisp systems never release new versions? And you He's pretty clearly not saying that. -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-08 Thread Bill Atkins
[EMAIL PROTECTED] (Aahz) writes: > I would say that your statement about Lisp syntax is wrong. Not that it > is technically inaccurate, but that it completely misses the point, so > much so that it is wrong to say it. One of the key goals of Python is > readability, and while it is indeed easy t

Re: merits of Lisp vs Python

2006-12-08 Thread Bill Atkins
3Paul Rubin writes: > Lisp just seems hopelessly old-fashioned to me these days. A Indeed. All the excitement nowadays is centered around youngster interpreted languages that support type-edit-run development only and are controlled by a single person. Standardized,

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Steven D'Aprano <[EMAIL PROTECTED]> writes: > I've read all the arguments against significant indents/whitespace, or > in favour of braces, and while there are a few minor good points they > make, a few edge cases where Python's significant indentation is > sub-optimal, overall I believe that the

Re: merits of Lisp vs Python

2006-12-09 Thread Bill Atkins
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Fri, 08 Dec 2006 23:38:02 -0800, Wolfram Fenske wrote: > >> if Common Lisp didn't have CLOS, its object system, I could write my own >> as a library and it would be just as powerful and just as easy to use as >> the system Common Lisp already provid

<    1   2   3   4   5   6   7   >