Re: xlrd 1.0.0 released!

2016-06-07 Thread derek
Gmail and the Gmail Digest only ever show the 0.9.4 tag - not sure if this a big issue or not (but I know I would like to the 1.0.0 tag to be proudly displayed!) On Friday, 3 June 2016 03:57:35 UTC+2, Chris Withers wrote: > > Ugh, and once again, this time with a corrected title... > > > On 02

Good python reference?

2005-11-10 Thread derek
Hello! I'm new to the group and am looking for a decent reference for information about the history / evolution of the Python language and its features. Typing, scoping, etc... I'd appreciate any good links. Thanks! - Derek -- http://mail.python.org/mailman/listinfo/python-list

Python on an embedded platform

2006-01-19 Thread Derek
, features I can disable, etc so I can get the python core to be a small as possible (<100k would be good). Thanks -- Derek -- http://mail.python.org/mailman/listinfo/python-list

Install python with custom tk-tcl installation

2012-12-17 Thread Derek Thomas
Hello, I seem to have a problem because it seems Tkinter assumes relative paths for TCL_LIBRARY and TK_LIBRARY. I am working with the homebrew group to get python27 to install nicely with a custom installation of tk and tcl (https://github.com/mxcl/homebrew/pull/16626). However, this breaks

Optimizing Memory Allocation in a Simple, but Long Function

2016-04-23 Thread Derek Klinge
umber(n) print('n={} \te= {} \tdelta(e)={}'.format(n,e.e,abs(e.e-math.e))) return e def EulersNumberToAccuracy(PowerOfTen): x = 1 theGuess = 1 thisE = EulersNumber(1) while x <= abs(PowerOfTen): thisE = EulerStepWithGuess(10**(-1*x),theGuess) theGuess = thisE.eulerSteps * 10 x += 1 retu

Re: Optimizing Memory Allocation in a Simple, but Long Function

2016-04-24 Thread Derek Klinge
eding the answers back into itself to get the new answer. I know this will be computationally time intensive, but how do I minimize memory usage (limit the size of my list)? I also may be misunderstanding the problem, in which case I am open to looking at it from a different perspective. Thanks, Dere

Re: Optimizing Memory Allocation in a Simple, but Long Function

2016-04-24 Thread Derek Klinge
eGuess = 1 thisE = EulersNumber(1) while x <= abs(PowerOfTen): thisE = EulerStepWithGuess(10**(-1*x),theGuess) theGuess = thisE.eulerSteps * 10 x += 1 return thisE On Sun, Apr 24, 2016 at 10:02 AM Derek Klinge wrote: > Sorry about the code indentation, I was using Pythonista (iOS), and

Re: Optimizing Memory Allocation in a Simple, but Long Function

2016-04-24 Thread Derek Klinge
Doesn't range(n) create a list n long? On Sun, Apr 24, 2016 at 10:21 AM Chris Angelico wrote: > On Mon, Apr 25, 2016 at 3:02 AM, Derek Klinge > wrote: > > My problem is this: my attempt at Euler's Method involves creating a > list of > > numbers that is n long. Is

Re: Optimizing Memory Allocation in a Simple, but Long Function

2016-04-24 Thread Derek Klinge
place I had to multiply my value of N by approximately 10 (I found that the new N required was always < 10N +10). Derek On Sun, Apr 24, 2016 at 4:45 PM, Derek Klinge wrote: > Actually, I'm not trying to speed it up, just be able to handle a large > number of n. > (Thank you Ch

Re: Optimizing Memory Allocation in a Simple, but Long Function

2016-04-24 Thread Derek Klinge
e able to get the value of n used to generate that value e. If there is some other way to do that, I'd be happy to try it out. Thanks, Derek Derek On Sun, Apr 24, 2016 at 8:12 PM, Derek Klinge wrote: > Actually, I'm not trying to speed it up, just be able to handle a large

Re: Optimizing Memory Allocation in a Simple, but Long Function

2016-04-25 Thread Derek Klinge
arge values of N and get an accurate answer? How does the math module calculate the vale of e? Thanks, Derek On Mon, Apr 25, 2016 at 6:49 AM Oscar Benjamin wrote: > On 25 April 2016 at 08:39, Gregory Ewing > wrote: > > Derek Klinge wrote: > >> > >> Also, it seems

SMB Authentication Module

2005-10-07 Thread Derek Perriero
This may be a simple question to answer, but is there any module that will let you authenticate against a SMB server?  An equivalent package in perl would be the Authen::SMB.  That is the realms of what I am looking for, but in Python. -Derek Perriero-- Perriero, Derek[EMAIL PROTECTED] -- http

Best way to handle cgi sessions

2005-10-14 Thread Derek Perriero
quot;     cookie["logintype"] = "admin"     cookie["username"]  = username     cookie["loggedin"]  = "verified"        return(cookie) #end: -- Perriero, Derek[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to handle cgi sessions

2005-10-15 Thread Derek Perriero
the data I store is kept in MySQL, so that's even better.  Regards to your efforts to the community! Cheers, Derek P.S. Sorry for the repeat, this e-mail was never sent  to the list, Thanks! On 10/15/05, Derek Perriero <[EMAIL PROTECTED]> wrote: Christoph, I really appreciate t

LDAP Authentication

2005-12-02 Thread Derek Perriero
and password field in the initialize function blank, I get a successful return. I need some guidance in the correct direction. Thanks! Derek-- Perriero, Derek[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

CGI, anydbm.open() and linux file permissions

2005-01-11 Thread Derek Basch
on the target DBM creation directory (/var/www/bp/predictor/) are: drwxr-xr-x 2 bpeters bpeters 4096 Jan 11 14:45 predictor Can anyone tell me what I need to do to allow the CGI script to create the DBM in the target directory? That is short of changing

spawn syntax + os.P_WAIT mode behavior + spawn stdout redirection

2005-01-20 Thread Derek Basch
immediatly. Perhaps I am calling the sleep.py script incorrectly? Shouldn't it take 10sec to execute since the spawn mode argument is os.P_WAIT? *Third question* If I uncomment the second spawn call in test.py I do not get any output to /tmp/test.out and it also returns immediatly. Can anyone

CGI and HTTP Header Location redirects

2005-02-03 Thread Derek Basch
r? I would guess that it is related to apache user rights but I can't find any reference to such problems via Google. Thanks everyone!, Derek Basch - #! /usr/bin/python import sys import cgitb class Trainer: def

Re: CGI and HTTP Header Location redirects

2005-02-04 Thread Derek Basch
r the help. Paul Rubin wrote: > Derek Basch <[EMAIL PROTECTED]> writes: > >>Also, after enabling suEXEC on the apache server the script executes >>perfectly with the redirect. Can anyone explain this behavior? I >>would guess that it is related to apache user rights

A few SWIG/Python questions

2005-03-06 Thread Derek Allen
I'm using SWIG to generate glue code for my embedded/extended python app. There are a couple of very frustrating issues that I would like to see if anyone else has solutions for: - Once I have created and initialized a module with SWIG I can call it by executing a python file with no problems.

Minidom empty script element bug

2005-03-15 Thread Derek Basch
ndles the element incorrectly and instantiates the javascript. How do I get minidom to NOT render an empty script element? Should I submit a bug report? Thanks for the help, Derek Basch __ Do you Yahoo!? Yahoo! Small Business - Try our new resour

Re: Minidom empty script element bug

2005-03-15 Thread Derek Basch
Martin v. Löwis wrote: > Derek Basch wrote: > > XHTML 1.0 specs, Appendix C > > [EMAIL PROTECTED] > > C.3 Element Minimization and Empty Element Content > > > > Given an empty instance of an element whose content model is not EMPTY (for > > example, an e

Re: Minidom empty script element bug

2005-03-16 Thread Derek Basch
Cross post from XML-SIG: --- Walter Dörwald <[EMAIL PROTECTED]> wrote: > Martin v. Löwis sagte: > > Derek Basch wrote: > > >[...] > >> How do I get minidom to NOT render an empty script element? Should I > submit a bug report? > > > > That said,

string join() method

2005-03-23 Thread Derek Basch
enceScore A01 1: 1-8 8 1410538.0 A01 1: 2-9 8 1410538.0 - Thanks everyone. Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

Minidom output of XML escaped characters

2005-03-24 Thread Derek Basch
Hello, If I want minidom to output XHTML that includes normally XML escaped characters how would I do it? For instance if I use doc.createCDATASection() I get: and without the CDATASection: <!--#include virtual="/top.html" --> when I really need: Any suggestions? Tha

Re: Minidom output of XML escaped characters

2005-03-25 Thread Derek Basch
Thanks effbot. I haven't had much use for XML comments so far and I guess other people haven't either because it seems they are hardly ever mentioned. http://groups-beta.google.com/groups?hl=en&lr=&c2coff=1&q=xml+comment+python&qt_s=Search+Groups -- http://mail.python.org/mailman/listinfo/python

Counting iterations

2005-04-08 Thread Derek Basch
Is there a better way to count iterations that this?: pets = 0 for i in pets: pets += 1 print "pet" + "#" + pets Thanks, Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting iterations

2005-04-08 Thread Derek Basch
ooops you are right. Should have been: pets = ["cat", "dog", "bird"] num_pets = 0 for i in pets: num_pets += 1 print "pet" + "#" + num_pets That's the problem with one offs. I don't read them :). -- http://mail.python.org/mailman/listinfo/python-list

Re: Counting iterations

2005-04-10 Thread Derek Basch
. You guys always rip my code apart and correct my style. Even if it is just a stupid one off example. Thanks everyone, Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

List comprehension and FieldStorage

2005-04-26 Thread Derek Basch
f either type from a FieldStorage object? Here is my attempt at creating the double tuple list (It sucksI know): print [(key, value) for key, value in form.keys() and form[key].value] Thanks for the help, Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

Re: List comprehension and FieldStorage

2005-04-27 Thread Derek Basch
bump -- http://mail.python.org/mailman/listinfo/python-list

Re: List comprehension and FieldStorage

2005-04-27 Thread Derek Basch
Sorry Peter. I will refrain from nudging in the future. I did spend time at the interactive prompt and got nothing. Maybe I will have better luck next time. -- http://mail.python.org/mailman/listinfo/python-list

Motion Tracking with Python

2011-09-29 Thread Derek Simkowiak
on the web page: "I’m convinced that Python is the best language currently available for teaching kids how to program." I also use Python professionally, and it's worked out great every time. There's no job Python can't handle. Thanks, Derek Simkowiak

Re: Motion Tracking with Python

2011-09-30 Thread Derek Simkowiak
enCV. I don't know if this will work under Windows. The source code to my script is available online; I recommend downloading it and playing with it. Also, check out the OpenCV Python documentation. Thanks, Derek On 09/30/2011 07:06 AM, Ricardo Mansilla wrote: On Thursday 29 Sept

Re: Motion Tracking with Python

2011-09-30 Thread Derek Simkowiak
/How was her project received at school?/ She got an "Outstanding" blue ribbon award. The teachers were impressed. (It was only a mandatory school project; it was not part of a regional competition or anything fancy like that.) --Derek On 09/30/2011 09:40 AM, Irm

Re: recommend a graphics library for plotting by the pixel?

2011-10-04 Thread Derek Simkowiak
ndle mouse clicks and screen blitting the way PyGame does. --Derek Simkowiak http://derek.simkowiak.net On 10/04/2011 07:53 AM, Alec Taylor wrote: Sounds like a job for Processing... On Tue, Oct 4, 2011 at 8:56 PM, Adam Funk wrote: I'd like to create a window with a "pause" bu

Changing UNIX tty driver keys -- Suggested changes to "termios" module

2006-08-07 Thread Derek Peschel
n). I assume two signals should never be set to the same character, unless they are disabled. Is it possible to make the state variables invisible? Is that a good idea? Thanks, -- Derek -- http://mail.python.org/mailman/listinfo/python-list

Finding the type of indexing supported by an object?

2006-08-23 Thread Derek Peschel
s will work with all arguments. Thanks, -- Derek -- http://mail.python.org/mailman/listinfo/python-list

Creating a subpackage of a built-in module?

2006-08-23 Thread Derek Peschel
Can I add my own subpackages to modules that are written in C? I've put /Users/dpeschel/lib/python into my PYTHONPATH variable. Inside there, I've created a termios directory, and inside termios I've created __init__.py and signals.py. Now "import termios.signals" works, but "import termios" only

Re: Finding the type of indexing supported by an object?

2006-08-26 Thread Derek Peschel
In article <[EMAIL PROTECTED]>, Alex Martelli wrote: >Derek Peschel <[EMAIL PROTECTED]> wrote: >> They are the same except for the expression in "for key in ...". Can they >> be combined into one function? How can I determine if the argument is > >Th

Re: Finding the type of indexing supported by an object?

2006-08-26 Thread Derek Peschel
practice, with my needs of inverting dicts and lists, your solution might not be a bad one. -- Derek -- http://mail.python.org/mailman/listinfo/python-list

except clause not catching IndexError

2006-02-22 Thread Derek Schuff
ff/bin/speeds.py", line 202, in ? if int(toks[2],16) == qaddrs[i]+0x1000 and toks[0] == "200": #producer write IndexError: list index out of range If i change the except IndexError to except Exception, it will catch it (but i believe it's still an IndexError). thi

Re: except clause not catching IndexError

2006-02-22 Thread Derek Schuff
redefined caught me off guard). thanks (to both of you who responded), -derek -- http://mail.python.org/mailman/listinfo/python-list

Matplotlib logarithmic scatter plot

2006-02-27 Thread Derek Basch
Can anyone give any suggestions on how to make a logarithmic (base 10) x and y axis (loglog) plot in matplotlib? The scatter function doesn't seem to have any log functionality built into it. Thanks, Derek Basch P.S. I suck at math so feel free to make me feel stupid if it is really easy

Re: Matplotlib logarithmic scatter plot

2006-02-27 Thread Derek Basch
Thanks for the reply. I need a scatter plot though. Can that be done? -- http://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib logarithmic scatter plot

2006-02-27 Thread Derek Basch
Great! That worked fine after I played with it for a bit. One last question though. How do I label the ticks with the product of the exponentiation? For instance: 100 instead of 10**2 Thanks for all the help, Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

Re: Matplotlib logarithmic scatter plot

2006-02-28 Thread Derek Basch
Thanks again. Here is the finished product. Maybe it will help someone in the future: from pylab import * def log_10_product(x, pos): """The two args are the value and tick position. Label ticks with the product of the exponentiation""" return '%1i' % (x) ax = subplot(111) # Axis sca

Rounding up to the nearest exact logarithmic decade

2006-02-28 Thread Derek Basch
Given a value (x) that is within the range (1e-1, 1e7) how do I round (x) up to the closest exact logarithmic decade? For instance: 10**3 = 1000 x = 4978 10**4 = 1 x = 1 Thanks Everyone! Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

Re: Rounding up to the nearest exact logarithmic decade

2006-02-28 Thread Derek Basch
Thanks effbot. I knew their had to be something buried in the math module that could help. ceil() it is! -- http://mail.python.org/mailman/listinfo/python-list

Is it better to use class variables or pass parameters?

2006-03-01 Thread Derek Basch
This one has always bugged me. Is it better to just slap a "self" in front of any variable that will be used by more than one class method or should I pass around variable between the methods? FlamewarNOW! jk, I really do want other opinions. Thanks, Derek -- http://mail.

Re: Matplotlib logarithmic scatter plot

2006-03-01 Thread Derek Basch
Good tip John. Hopefully it will help someone out. Thanks again. Derek Basch -- http://mail.python.org/mailman/listinfo/python-list

Debugging threaded Python code

2005-05-01 Thread Derek Thomson
that point. I spent some time trying to achieve this with the Python debugger and couldn't. This has been bugging me for quite a while now, and I'm probably just missing the obvious as usual. Is there some simple way I can do this? Thanks, Derek. -- http://mail.python.org/mailman/

Multiple Inheritence and data attributes

2005-05-06 Thread Derek Basch
Dog', 'printDog'] but not the data attributes. Shouldn't the derived class have that data attributes of superclasses? I guess I am not understanding the python implementation. Thanks, Derek -- http://mail.python.org/mailman/listinfo/python-list

Remove duplicates from list

2005-06-09 Thread Derek Perriero
#x27;10am - 5pm10am - 5pm10am - 5pm10am - 5pm10am - 5pm10am - 5pmClosed'] Thanks -- Perriero, Derek[EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Remove duplicates from list

2005-06-09 Thread Derek Perriero
- 9pm8am - 9pm8am - 9pm8am - 9pm8am - 5pm9am - 5pmClosed', '9am - 8pm9am - 8pm9am - 8pm9am - 8pm9am - 8pm9am - 6pm12pm - 6pm', '9am - 5pm9am - 5pm9am - 5pm9am - 5pm9am - 5pmClosedClosed', '10am - 5pm10am - 5pm10am - 5pm10am - 5pm10am - 5pm10am - 5pmClosed'] Than

Re: Remove duplicates from list

2005-06-10 Thread Derek Perriero
b.Wednesday(you get the idea)print "Sunday", a_lib.Sundayprint-ChrisOn 6/9/05, Derek Perriero < [EMAIL PROTECTED]> wrote:> Sorry for not being more clear.  I'm using Zope to store the hours of each> library on the campus.  The hours of each library will b

sudoku solver in Python ...

2008-01-23 Thread Derek Marshall
Yours with-too-much-time-to-kill-on-the-train'ly, Derek -- http://mail.python.org/mailman/listinfo/python-list

Python 2.2.1 and select()

2008-03-24 Thread Derek Martin
child: inbuf += x if i == io.childerr: errbuf += x if not inlist: break if io.wait(): raise FailedExitStatus, errbuf return (inbuf, errbuf) If anyone would like, I could also provide a shell script and a main p

Re: Python 2.2.1 and select()

2008-03-24 Thread Derek Martin
On Mon, Mar 24, 2008 at 05:52:54PM -0700, Noah wrote: > On Mar 24, 2:58 pm, Derek Martin <[EMAIL PROTECTED]> wrote: > > If and only if the total amount of output is greater than the > > specified buffer size, then reading on this file hangs indefinitely. > I think this

Re: Python 2.2.1 and select()

2008-03-26 Thread Derek Martin
On Wed, Mar 26, 2008 at 09:49:51AM -0700, Noah Spurrier wrote: > On 2008-03-24 22:03-0400, Derek Martin wrote: > >That's an interesting thought, but I guess I'd need you to elaborate > >on how the buffering mode would affect the operation of select(). I > >really

Re: Python 2.2.1 and select()

2008-03-26 Thread Derek Martin
apter 3 for the stdio stuff, chapter 12 for non-blocking I/O, and chapter 14 for discussions about pipes, popen(), and how buffering modes can be controlled by your program and how that affects the child. Don't get me wrong... pexpect is useful. But some of the problems you're trying to

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-23 Thread Derek Martin
r that it has (and needs) no intrinsic-value. > > To me, that seems just as silly as arguing that zero is not a number, or > that white pixels are "nothing" and black pixels are "something". Or > maybe they should be the other way around? > > None is No

Re: why cannot assign to function call

2009-01-02 Thread Derek Martin
This is also false, it even has its own operator (which requires Unicode to display): ≡ Still, the point you're trying to make is right: this stuff is hard to talk about, and the model actually encourages the use of ambiguous or even contradictory explanations. -- Derek D. Martin http://www.

Re: why cannot assign to function call

2009-01-02 Thread Derek Martin
and sensible. It's small wonder that neophytes try to cram Python behaviors into terms and computing concepts they already understand from learning other languages, and that they fail to do so. What's mystifying is that when Pythonistas reply to their messages, they universally seem con

Re: why cannot assign to function call

2009-01-02 Thread Derek Martin
On Fri, Jan 02, 2009 at 11:43:30AM -0500, Steve Holden wrote: > Derek Martin wrote: > > What the Python community often overlooks, when this discussion again > > rears its ugly head (as it seems to every other hour or so), is that > > its assignment model is BIZARRE, as

Re: why cannot assign to function call

2009-01-02 Thread Derek Martin
an experienced programmer 10 minutes to understand variable assignment. :) [Note that I'm including the semantics for passing arguments to functions as part of "assignment" for purposes of this discussion.] -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpkihamKsYya.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: why cannot assign to function call

2009-01-02 Thread Derek Martin
t of identity in mathematics precisely because it is unnecessary: 1 is always 1, by definition. But that is the definition of "is"... :) But the discussion is bordering on philosophy, and I will resign from it at this point, having previously made the points I intended to. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpAiEkpMH3gD.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: why cannot assign to function call

2009-01-04 Thread Derek Martin
On Sat, Jan 03, 2009 at 10:15:51AM +, Marc 'BlackJack' Rintsch wrote: > On Fri, 02 Jan 2009 04:39:15 -0600, Derek Martin wrote: > > > On Tue, Dec 30, 2008 at 02:21:29PM +, John O'Hagan wrote: > > What the Python community often overlooks, when this discuss

Re: why cannot assign to function call

2009-01-04 Thread Derek Martin
assignment model of Python is to understand. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgp7GzFxWB35W.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: why cannot assign to function call

2009-01-04 Thread Derek Martin
raditional assignment model, and despite your protestations of lack of proof, I'm pretty sure you agree. ;-) Ultimately, none of this really matters, as perhaps my point is that Python *is different* from what A LOT of folks learning it have already seen (if anything), and it&

Re: why cannot assign to function call

2009-01-04 Thread Derek Martin
On Sun, Jan 04, 2009 at 09:56:33PM -0600, Grant Edwards wrote: > On 2009-01-05, Derek Martin wrote: > > On Sat, Jan 03, 2009 at 11:38:46AM -0600, Grant Edwards wrote: > >> One presumes that Mr. Martin finds anything different from his > >> first computer language to be

Re: why cannot assign to function call

2009-01-04 Thread Derek Martin
Forgive my indulgence, I find this rather academic discussion kind of interesting, as it turns out. On Sun, Jan 04, 2009 at 10:55:09PM -0600, Derek Martin wrote: > > You can't argue that one semantic or another is more intuitive > > without offering evidence. > > I think

Re: why cannot assign to function call

2009-01-05 Thread Derek Martin
fferent model than what they are used to. Often this happens, but too often not without someone also letting the OP know what a mindless jerk he is... *This* is the "common understanding" which I'd hoped could be reached... But you were right... it's very difficult for pe

Re: Using subprocess module to launch a shell shell script that itself forks a process

2008-10-09 Thread Derek Martin
. Please explain why it doesn't. The most likely cause of the behavior you are seeing is the deadlock I described, above. Using select() (i.e. using communicate()) should generally fix about half the cases... The rest would be fixed by redirecting STDIN of the child (or at least the Java p

Re: Set Environment for java based tools thru python script

2008-10-14 Thread Derek Martin
n parsing, setting the environment variables appropriately. A child process, in general, can not insert environment variables into the environment of its parent. If what you're trying to do isn't covered by the above, then I think you'll need to try to explain it better. -- Derek D. Mart

Re: indentation

2008-10-19 Thread Derek Martin
python # vim:ts=4:sw=4:expandtab Though of course, using this kind of mechanism quickly becomes gross if everyone is using a different editor, and they all support a similar but different mechanism for doing so. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpWonPLlq6C1.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Python equivalent for C module

2008-10-20 Thread Derek Martin
ouldn't see the parameter msg, which was passed via the call. Most unexpected, and definitely undesirable. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgp4DKmvYHFbt.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Python equivalent for C module

2008-10-20 Thread Derek Martin
uot;it" is "its" with no apostrophe. This was the only thing of value which you contributed, though really, using that is way overkill for my needs. If I've written bad code, by all means, please correct it. If I've written code in a style that you happen not to like, please

Re: Python equivalent for C module

2008-10-20 Thread Derek Martin
just trying to preempt the pound of attitude that often goes with the ounce of answers. But if the choice is between no answer, and an answer that barely manages to avoid calling me an idiot (especially over coding style), I'd rather have no answer. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgp1spA6WQhn4.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Python equivalent for C module

2008-10-20 Thread Derek Martin
d thing was, I remembered it actually working. And it had... In between testing the two cases, I'd accidentally deleted the module and had to recreate it. The first time no bug, second time, well, resutled in this thread. I'm chalking the whole thing up to coding when not sufficiently a

Re: How to examine the inheritance of a class?

2008-10-24 Thread Derek Martin
's a semantic argument, but John's semantics are fine. A library is code intended to be consumed by developers. The developers *are* the users of the library. *End users* use applications, not libraries. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpug97

Re: Python suitable for Midi ?

2008-10-28 Thread Derek Martin
n two: one process manages the GUI, and the second is a back-end process that plays the MIDI. Your GUI can even launch the back end, which will inherit the priority of the GUI, after which the GUI can reduce its own priority (the priority of the back end will not be affected by the change)... --

Re: open a shell prompt froma python program

2008-10-30 Thread Derek Martin
's not "built in" like it is in Windows). X works as a client-server model, and you need to make sure X authentication is handled properly. Depending on what you are doing, this can be either very easy, or very complicated. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID:

Re: open a shell prompt froma python program

2008-10-30 Thread Derek Martin
imple as: cmd = "whatever your shell command is" os.system(cmd) -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpjESdNVsDLA.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-16 Thread Derek Martin
iven expression or context. If you like, you could think of the value of an object as the set of all possible values to which the object may evaluate in every possible context, given a particular state of the object. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-16 Thread Derek Martin
sentation of the date when printed, and a numeric value (or some other time object) when used in other expressions, both from a philisophical and practical standpoint. Furthermore it falls down semantically; an object has parts that are not part of its value, and therefore the value and the objec

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-16 Thread Derek Martin
the value of x==y does indeed depend on the behavior of the methods. > I think the value of x is "a thing which claims to be equal to > everything on Tuesdays, and equal to nothing every other day". That isn't its *VALUE* -- it's its *IDENTITY*. My weight is not my ide

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-16 Thread Derek Martin
> > This definition looks a bit circular to me ;) Why, because it has the word "value" in the definition? It's not circular. The thing being defined is "value of an object". The word "value" has a pre-existing well-understood natural language definiti

Unix Change Passwd Python CGI

2009-02-24 Thread Derek Tracy
general direction to start looking, and I do not have expect installed on the system. Any ideas would be wonderful! R/S -- - Derek Tracy trac...@gmail.com - -- http://mail.python.org/mailman/listinfo/python-list

Re: python confusion possibly related to pickle

2008-05-18 Thread Derek Martin
> earlier caused. Why is this ? Well, what's the error? Sounds like your system could be b0rked (or at least your python installation)... but depending on the error, there could be other explanations. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgpkARlxW8Y91.p

Re: Python CGI Upload from Server Status

2008-06-06 Thread Derek Tracy
On Fri, Jun 6, 2008 at 9:16 AM, John Dohn <[EMAIL PROTECTED]> wrote: > On Sat, Jun 7, 2008 at 12:50 AM, Derek Tracy <[EMAIL PROTECTED]> wrote: > >> I am trying to create a simple python cgi app that allows the user to kick >> off an ftp from the server the cgi is on

Re: Does '!=' equivelent to 'is not'

2008-06-17 Thread Derek Martin
. They are not the same, but they are similar. Saying a flat "no" alone, without qualifying your statement is generally interpreted as rude in English... It's kind of like how you talk to children when they're too young to understand the explanation. Yucky. -- Derek D. Martin

Re: Does '!=' equivelent to 'is not'

2008-06-18 Thread Derek Martin
has been here more than a day... More than a few people have posted on this list complaining about the sort of responses people provide on this list, and many such complaints are quite reasonable (though sometimes the person doing the complaining is himself rather unreasonable, if not completely b

Re: Using Python To Launch Python

2008-07-14 Thread Derek Martin
typing in bourne/bash shell, I guess... -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D pgplmkg6rt2dJ.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Using Python To Launch Python

2008-07-14 Thread Derek Martin
On Mon, Jul 14, 2008 at 05:40:43PM -0400, Aquil H. Abdullah wrote: > You've hit the proverbial nail with the hammer. The problem is that my > application needs to run under both the Linux and Windows OSs, so while I > would love to use a nice sh, csh, or bash shell script. My hands are tied > beca

Re: Multiple variable control in for loops. Doable in Python?

2008-07-18 Thread Derek Martin
ty much guaranteed to provide a way to do what you're trying to do. You just need to stop thinking about your problem in terms of a particular syntactic element, and start thinking about it in more general terms of what you are actually trying to accomplish, and apply whatever sy

Re: Multiple variable control in for loops. Doable in Python?

2008-07-18 Thread Derek Martin
On Fri, Jul 18, 2008 at 05:28:32PM -0400, Derek Martin wrote: > def control(i, j): > print i,j > if not (i < 5 or j < 10): Rather, if not (i < 5 and j < 10): > return > else: > control(some_increment_function(i), other_incre

Re: Change PC to Win or Windows

2008-07-18 Thread Derek Martin
uot;bank" (and numerous others), the term "PC" has come to have several meanings, one of which is the above. You may not like it, but we're pretty much stuck with the term, so you may as well get used to it. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0x81CFE75D

Re: Change PC to Win or Windows

2008-07-21 Thread Derek Martin
On Fri, Jul 18, 2008 at 10:34:41PM -0700, Dennis Lee Bieber wrote: > On Fri, 18 Jul 2008 19:14:43 -0400, Derek Martin <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > On Fri, Jul 18, 2008 at 03:46:13PM -0700, Joel Teichroeb wrote: > > >

Re: Change PC to Win or Windows

2008-07-21 Thread Derek Martin
On Sat, Jul 19, 2008 at 02:56:07AM -0700, Lie wrote: > On Jul 19, 6:14 am, Derek Martin <[EMAIL PROTECTED]> wrote: > > On Fri, Jul 18, 2008 at 03:46:13PM -0700, Joel Teichroeb wrote: > > Much like the English word "bank" (and numerous others), the term "PC&qu

  1   2   >