RE: breaking out of nested loop

2005-07-12 Thread Tim Golden
[Jeremy Sanders] | rbt wrote: | | > What is the appropriate way to break out of this while loop | if the for | > loop finds a match? | | queue discussion why Python doesn't have a "break N" statement... Presumably you meant "cue discussion..." (Ducks & runs) TJG __

Re: Tricky Dictionary Question from newbie

2005-07-12 Thread Tim Peters
[Peter Hansen] ... > I suppose I shouldn't blame setdefault() itself for being poorly named, No, you should blame Guido for that . > but it's confusing to me each time I see it in the above, because the > name doesn't emphasize that the value is being returned, and yet that > fact is arguably mor

Re: math.nroot [was Re: A brief question.]

2005-07-12 Thread Tim Peters
he stuff defined in Appendix F and header of >>> C99 to help here? I know this stuff is somewhat optional, but it's >>> available AFAICT on the platforms I actually use (doesn't mean it >>> works, of course). [Tim] >> It's entirely optional part of C9

Re: math.nroot [was Re: A brief question.]

2005-07-13 Thread Tim Peters
[Steven D'Aprano] > (All previous quoting ruthlessly snipped.) And ruthlessly appreciated ;-) > A question for Tim Peters, as I guess he'll have the most experience in > this sort of thing. > > With all the cross-platform hassles due to the various C compilers no

Re: Why does python break IEEE 754 for 1.0/0.0 and 0.0/0.0?

2005-07-14 Thread Tim Peters
[Grant Edwards] > I've read over and over that Python leaves floating point > issues up to the underlying platform. > > This seems to be largely true, but not always. My underlying > platform (IA32 Linux) correctly handles 1.0/0.0 and 0.0/0.0 > according to the IEEE 754 standard, but Python goes o

Re: Why does python break IEEE 754 for 1.0/0.0 and 0.0/0.0?

2005-07-14 Thread Tim Peters
[Tim Peters] ... >> What does your platform C return for the integer expression >> 42/0? Is any other outcome "wrong"? [Grant Edwards] > I guess I though it was obvious from my reference to IEEE 754 > that I was referring to floating point operations. Yes, that was

Re: Why does python break IEEE 754 for 1.0/0.0 and 0.0/0.0?

2005-07-14 Thread Tim Peters
[Grant Edwards] >> 1/0 is defined by the standard as +Inf and 0/0 is NaN. [Martin v. Löwis] > I wonder why Tim hasn't protested here: Partly because this thread (unlike the other current thread on the topic) isn't moving toward making progress, and I have little time fo

Re: math.nroot [was Re: A brief question.]

2005-07-14 Thread Tim Peters
[Michael Hudson] >>>>> In what way does C99's fenv.h fail? Is it just insufficiently >>>>> available, or is there some conceptual lack? [Tim Peters] >>>> Just that it's not universally supported. Look at fpectlmodule.c for >>>> a

RE: Documentation bug: Python console behaviour changed

2005-07-19 Thread Tim Golden
[Lucas Raab] | Peter Hansen wrote: | > Kay Schluehr wrote: | > | >> The documentation of the Python console behaviour is not correct | >> anymore for Python 2.4.1. At least for the Win2K system | I'm working on | >> 'Ctrl-Z' does not shut down the console but 'Ctrl-D' etc. | >> | >> The Python in

Re: Web Framework Reviews

2005-07-19 Thread Tim Parkin
ine python or some alternative programming syntax), marked up as html in string elements (liable to validation errors and difficult to manage) or small fragments of html would have to be marked up as patterns and then manipulated in some fashion. The last is possible using nevow and the manipulatio

RE: Lots of pdf files

2005-07-21 Thread Tim Golden
[Greg Lindstrom] | There does not appear to be a simple way to merge many pdf's | into one. I'm currently using ghostscript (on Win32) to merge multiple postscript files into one PDF (by specifying multiple inputs to the gswin32c command). I imagine it can do the same for multiple PDF inputs on

Re: How to limit the uploading file size in python?

2005-07-22 Thread Tim Roberts
d specifically at the web, so it has no native concept of "uploading". You can do this by using the LimitRequestBody directive in your Apache configuration or .htaccess file. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: time.time() under load between two machines

2005-07-22 Thread Tim Peters
[EMAIL PROTECTED] > I am seeing negative latencies of up to 1 second. I am using ntp to > synchronize both machines at an interval of 2 seconds, so the clocks > should be very much in sync (and are from what I have observed). I > agree that it is probably OS, perhaps I should hop over to a Micro

Re: what's wrong with my code using subprocess?

2005-07-24 Thread Tim Lesher
I see the same behavior as you do. On Windows, the wait() isn't hanging--what's happening is that the subprocess just never receives anything. I don't quite understand why, but it works fine when I change the "if" clause in receiver.py to this: if count >= 1000: p.communicate('exit')

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-24 Thread Tim Lesher
Yes, it's not that hard to get the native file dialogs, as described in the FAQ: http://www.async.com.br/faq/pygtk/index.py?req=show&file=faq21.013.htp It would be nice if PyGTK had a knob for making it use win32 dialogs by default, though. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is your favorite Python web framework?

2005-07-24 Thread Tim Lesher
development--a new version just came out a few weeks ago (so it's not going away). The main reason I switched was the Spyce templating engine--more powerful than CherryTemplate, and tons more readable than Cheetah, in my opinion. -- Tim Lesher [EMAIL PROTECTED] http://apipes.bl

RE: Counting processors

2005-07-26 Thread Tim Golden
[k pur] | You can use | | print os.sysconf("SC_NPROCESSORS_CONF") | | works on Linux | | | krishan | | | Pauldoo wrote: | > Hi, | > Is a way in python to obtain the total number of processors | present in | > the system? | > | > os.platform doesn't seem to contain anything useful. And on W

RE: [path-PEP] Path inherits from basestring again

2005-07-26 Thread Tim Golden
[Peter Hansen] | | Ron Adam wrote: | Tony Meyer wrote: | > Do people really like using __div__ to mean join? | | > I think the '+' is used as a join for both strings and lists, so it | > would probably be the better choice as far as consistency with the | > language is concerned. |

RE: [path-PEP] Path inherits from basestring again

2005-07-29 Thread Tim Golden
[Tony Meyer] | | [Tim Golden] | > Well, I actually had some correspondence with Jason on this | > very subject a year or so ago: | [...] | > Obviously, I don't know how much weight Jason's original | > ideas have on the prepped-for-syslib module, but it does | > suppo

Re: Ten Essential Development Practices

2005-07-29 Thread Tim Peters
[Steve Holden] >> If I canpoint out the obvious, the output from "import this" *is* >> headed "The Zen of Python", so clearly it isn;t intended to be >> universal in its applicability. [Michael Hudson] > It's also mistitled there, given that it was originally posted as '19 > Pythonic Theses' and n

Re: Ten Essential Development Practices

2005-07-29 Thread Tim Peters
[Dan Sommers] > Ok, not universal. But as usual, Zen is not easily nailed to a tree. > > Was Tim writing about developing Python itself, or about developing > other programs with Python? Tim was channeling Guido, and that's as far as our certain knowledge can go. It _see

Re: A replacement for lambda

2005-07-29 Thread Tim Roberts
to backtrack to the shift and convert it to a pair of >less-thans before you can successfully translate it. C++ solves this exact problem quite reasonably by having a greedy tokenizer. Thus, that would always be a left shift operator. To make it less than and a function, insert a space:

Re: rfc822 module bug?

2005-07-31 Thread Tim Roberts
uot; ] date FWS time [CFWS] > >day-of-week = ([FWS] day-name) / obs-day-of-week > >day-name= "Mon" / "Tue" / "Wed" / "Thu" / > "Fri" / "Sat" / "Sun" > >date

RE: ANN: Kamaelia 0.2.0 released!

2005-08-02 Thread Tim Golden
about the HTML! Thanks, Michael. Hope the project continues apace and if I can ever find a need for it, I'll know where to look. Tim Golden This e-mail has been scanned for all viruses by Star. The service is powered by Mess

Re: issues with doctest and threads

2005-08-08 Thread Tim Peters
[Michele Simionato] > I am getting a strange error with this script: > > $ cat doctest-threads.py > """ > >>> import time, threading > >>> def example(): > ... thread.out = [] > ... while thread.running: > ... time.sleep(.01) > ... thread.out.append(".") > >>> thread = threa

Re: Chopping off spaces at both ends

2005-08-08 Thread Tim Roberts
;One of my instruments is returning a string that has one or more > blanks in >it, and that is complicating string matching tests in one of my functions. >>> a = ' abc ' >>> print a.strip() 'abc' -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: issues with doctest and threads

2005-08-09 Thread Tim Peters
[Michele Simionato] > Thank you for your replies Jeff & Tim. The snippet I submitted is > unfortunate, since I was writing an example (for a Python course I am > going to give in September) to show that you cannot reliably assume > that you will get exactly 9 dots, because of th

Python-based system wins 2005 Australian Eureka Science Prize

2005-08-10 Thread Tim Churches
their win, and for choosing Python! Tim C -- http://mail.python.org/mailman/listinfo/python-list

RE: net view /domain

2005-08-11 Thread Tim Golden
[EMAIL PROTECTED] | Hi! | | Is there a module I can use for "net view /domain" so list all | available domains and workgroups in a windows-network? I'm looking for | something like win32net.NetServerEnum, because I don't really want to | do this by "popen". I think this will do it. (The WinNT obj

Re: Cheese shop (was Re: python2.4/site-packages)

2005-08-12 Thread Tim Churches
;>actual function. >> >> > >A place you visit where you can never find what you want? > > Indeed. A place completely uncontaminated by cheese: http://www.minderella.com/words/cheeseshop.htm Tim C -- http://mail.python.org/mailman/listinfo/python-list

Re: len(sys.argv) in (3,4)

2005-08-12 Thread Tim Roberts
he %1 is substituted with the name of the script being run. In this example, however, the parameters are all discarded. If you set this instead: c:\tmp> ftype Python.File=c:\python24\python23.exe "%1" "%*" The "%*" says "put the rest of the parameters he

Re: win32com: use not possible as normal user

2005-08-12 Thread Tim Roberts
_use_ >win32com as a normal user, because normal users can't write there: Right. To use win32com, the site-packages\win32com\gen_py directory must be writable. You shouldn't have to change the whole c:\Programme tree; you should be able to make just that one subdirectory writable b

RE: get a list of mounted filesystems under MacOSX

2005-08-15 Thread Tim Golden
[EMAIL PROTECTED] | And when we are at this, how to find out a list of mounted filesystems | under MS Windows? (yes, I know, there is a difference between cygwin | python and native port, and the term "mounted" is not used in | MS Windows | world much) WMI will do it under Win32. (Don't know abou

Re: String functions deprication

2005-08-16 Thread Tim Peters
[steve morin] > http://www.python.org/doc/2.4.1/lib/node110.html > > These methods are being deprecated. What are they being replaced > with? Does anyone know? As it says at the top of that page, The following list of functions are also defined as methods of string and Unicode objects;

RE: unsubscriptable object error

2005-08-18 Thread Tim Golden
[EMAIL PROTECTED] > getting an unsubscriptable object error on an if else statement > db = MSSQL.connect(server,login,pwd,database) > c = db.cursor() > c.execute(mySQL) > rows = c.fetchone() > #determine recipient > if str(rows[3]) == str(rows[4]): > recipient = str(rows[0]) + " "

RE: Which Python library for Jabber?

2005-08-18 Thread Tim Golden
[Alessandro Bottoni] | Which Python library would you use for developing a small | Jabber client? | | jabber.py (seems to be dead since 2003) | http://jabberpy.sourceforge.net/ | | pyxmpp (looks like the "official" python library) | http://pyxmpp.jabberstudio.org/ | | xmpp.py (a russian alterna

RE: Adobe COM with Python

2005-08-19 Thread Tim Golden
[Andy W] | What i want to do is use, python COM to fireup Adobe and | print the pdf | file to a printer. If that's all you want to do, have a look at this: http://timgolden.me.uk/python/win32_how_do_i/print.html Or you could try for a Ghostscript solution. (Additionally, I seem to remember t

RE: Adobe COM with Python

2005-08-19 Thread Tim Golden
[Andy W] | I wanting to print the PDF to a printer which is set to print | to file, | so efectively i end up with a ps file. | | so 1 pdf becomes 1 ps file It't not quite clear to me what you *want* to do as opposed to what actually happens when you try. If I understand, you have a PDF file, an

Re: Python Light Revisted?

2005-08-22 Thread Tim Hoffman
Ramza Brown wrote: > Steve M wrote: > >> > Also, py2exe will work '100%' without a host python install. I have > never used it. I have my doubts though? > Yes it sure does. I have distributed at least 3 different standalone python programs using py2exe and I can absolutely garuntee that the

RE: X-Platform method of remote execution of Windows programs

2005-08-23 Thread Tim Golden
er -- on XP, where they've actually applied some of the security contexts that the WMI documentation talks about. But that's to do with WMI itself, and not to do with Python, afaict. Tim Golden This e-mail ha

RE: X-Platform method of remote execution of Windows programs

2005-08-23 Thread Tim Golden
[EMAIL PROTECTED] | It seems as if I am doomed to use additional software on the windows | box. Damn! 'Fraid so. If your question is: given a vanilla Windows box, can I invoke an executable on the Windows box from a Linux box? I believe the later versions of Windows run or can run Terminal Servic

RE: How to execute python script in Windows

2005-08-23 Thread Tim Golden
[David Fickbohm] > People, > Can someone please tell me how to execute a python script in windows? > Thanks > Dave Have a look at this: http://www.python.org/doc/faq/windows.html#how-do-i-run-a-python-program-under-windows TJG __

Re: Command Line arguments

2005-08-25 Thread Tim Roberts
KEY part of that is the %* at the end of the Python.File defintion. That tells the system to insert the rest of the command line parameters at that point. If you have ONLY the "%1", the command will run but no parameters will be forwarded. If so, you can fix this by typing: C:\Tmp>f

Re: SAS Transport FIle

2005-08-26 Thread Tim Churches
a SAS data step programme to accomplish the same thing in earlier versions of SAS (in fact, that's all that PROC EXPORT does, behind the scenes). Tim C -- http://mail.python.org/mailman/listinfo/python-list

Re: Robust statistics and optimmization from Python

2005-08-29 Thread Tim Churches
memory requirements of R and RPy, it is often possible to port the R code back to Python (or Numeric Python), with some effort. Tim C -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about threading.Lock().aquire(waitflag)

2005-08-30 Thread Tim Peters
[EMAIL PROTECTED] > is treated as a boolean or as a number. > > Running on Windows, I get two different behaviors from > the following calls to acquire: > > aLock = threading.Lock() > ... > > # Thread 0 > # This one often succeeds > aLock.acquire(1) > ... > > # Thread 1 > # When

Re: reg email packages work

2005-09-02 Thread Tim Roberts
to this as the body of the message, all the lines will be concatenated together, which sounds a lot like what you are seeing. If you are not feeding HTML as the body, change the fist line to ('text','plain'). -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: OpenSource documentation problems

2005-09-02 Thread Tim Peters
[Paul Rubin] > Until not that long ago, it was possible to submit sf bugs without > being logged into sf. Why did that change? To reduce tracker spam, to reduce tracker vandalism, and to make it possible to contact submitters when needed. -- http://mail.python.org/mailman/listinfo/python-list

Re: python logo

2005-09-03 Thread Tim Churches
> is this some decision that python should use various different logos? > > Xah > [EMAIL PROTECTED] >∑ http://xahlee.org/ > > > "A foolish consistency is the hobgoblin of little minds." - Ralph Waldo Emerson Tim C PS Yes, I know that I shouldn't fee

Re: python logo

2005-09-03 Thread Tim Churches
Fredrik Lundh wrote: > Tim Churches wrote: > > >>PPS Emerson's assertion might well apply not just to Python logos, but >>also, ahem, to certain aspects of the Python standard library. > > > you've read the python style guide, I presume? > >

Re: python logo

2005-09-05 Thread Tim Churches
Fredrik Lundh wrote: >Tim Churches wrote: > > > >>>>also, ahem, to certain aspects of the Python standard library. >>>> >>>> >>>you've read the python style guide, I presume? >>> >>>http://www.python.

Re: command line path

2005-09-05 Thread Tim Roberts
\calibration\FREQUENCY_13.CSV" Right idea, but wrong implementation. What that does is pass one very long file name as the script file, with no parameters. This is right, modulo the line splitting: python ImportFiles_test.py "C:\Program Files\National Instruments\LabVIEW 7.1\project\calibration\FREQUENCY_13.CSV" -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: List of integers & L.I.S.

2005-09-08 Thread Tim Peters
[EMAIL PROTECTED] > So, this has no real world use, aside from posting it on a website. > Thanks for wasting our time. You are making up an arbitrary problem and > asking for a solution, simply because you want to look at the > solutions, not because your problem needs to be solved. Clearly, this >

Re: visit_decref: Assertion `gc->gc.gc_refs != 0' failed.

2005-09-09 Thread Tim Peters
[alexLIGO] > I got this error when trying to execute the following python command > with in a C module: Py_BuildValue > > Do anyone have any idea what this error is about? Just the comment on the failing assert: assert(gc->gc.gc_refs != 0); /* else refcount was too small */ There are more p

Re: Why do Pythoneers reinvent the wheel?

2005-09-09 Thread Tim Daneliuk
old things spring into being. 2) It's a learning exercise. 3) You don't trust the quality of the code for existing modules. (Not that *I* have this problem :-p but some people might.) -- ---- Tim Daneli

Re: Python compiled?

2005-09-09 Thread Tim Roberts
it. C#, VB.NET, VBscript, Javascript and Perl have not suffered from being interpreted. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: nested tuples

2005-09-09 Thread Tim Roberts
ill result in a list of tuples: [(row1value1, row1value2, >row1value3),(row2value1, row2value2, row2value3),..., (rowNvalue1, >rowNvalue2, rowNvalue3)] > >Then, I get what I want with tuple(a). Why? What is it about the list of tuples that you don't like? Philosophically, it's m

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Tim Daneliuk
Stefano Masini wrote: > On 10 Sep 2005 02:10:59 EDT, Tim Daneliuk <[EMAIL PROTECTED]> wrote: > >>As someone who implemented their own configuration mini-language >>with validation, blah, blah, blah >>(http://www.tundraware.com/Software/tconfpy/) > > > W

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Tim Daneliuk
Kay Schluehr wrote: > Tim Daneliuk wrote: > > >>1) The existing tool is inadequate for the task at hand and OO subclassing >>is overrated/overhyped to fix this problem. Even when you override >>base classes with your own stuff, you're still stuck with th

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Tim Daneliuk
Stefano Masini wrote: > On 10 Sep 2005 03:16:02 EDT, Tim Daneliuk <[EMAIL PROTECTED]> wrote: > >>frameworks are unlikely to serve them well as written. I realize this is >>all at a level of complexity above what you had in mind, but it's easy >>to forget that

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Tim Daneliuk
Dennis Lee Bieber wrote: > On 10 Sep 2005 05:36:08 EDT, Tim Daneliuk <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > > > >>On a more general note, for all the promises made over 3 decades about >>how OO was the answer to our pro

Re: List of integers & L.I.S. (SPOILER)

2005-09-10 Thread Tim Peters
[Bryan Olson, on the problem at http://spoj.sphere.pl/problems/SUPPER/ ] > I never intended to submit this program for competition. The > contest ranks in speed order, and there is no way Python can > compete with truly-compiled languages on such low-level code. > I'd bet money that the algorit

Re: List of integers & L.I.S. (SPOILER)

2005-09-11 Thread Tim Peters
[Tim Peters, on the problem at http://spoj.sphere.pl/problems/SUPPER/ ] >> ... [EMAIL PROTECTED] > INCREDIBLE~ > 241433 2005-09-11 04:23:40 Tim Peters accepted 3.44 7096 PYTH > BRAVO! It's different now ;-) I added the two lines import psyco psyco.full() and

Re: List of integers & L.I.S. (SPOILER)

2005-09-11 Thread Tim Peters
[Tim Peters, on the problem at http://spoj.sphere.pl/problems/SUPPER/ ] >> Oh, it's not that bad . I took a stab at a Python program for >> this, and it passed (3.44 seconds). >> ... >> I didn't make any effort to speed this, beyond picking a reasonable &

FTP Error: Windows AS/400

2005-09-13 Thread Tim G.
I am trying to use Win Python to ftp files from an AS/400 IFS directory down to my Windows machine. I seem to get stuck when I am trying to send a command to the AS/400 to switch file systems from native to IFS and then to issue a cd to my folder. I get the error below. If anyone has had experie

FTP Windows AS/400

2005-09-13 Thread Tim G.
I am trying to execute a win python script that connects to an AS/400; changes from the native lib to the IFS file system; then, changes to a directory in IFS; gets a file. Any help would be greatly appreciated. I cannot get the script to switch from native to IFS. I get the following error: Tr

Re: Builtin classes list, set, dict reimplemented via B-trees

2005-09-14 Thread Tim Peters
[EMAIL PROTECTED] > ... > I've gotten bored and went back to one of my other projects: > reimplementing the Python builtin classes list(), set(), dict(), > and frozenset() with balanced trees (specifically, counted B-trees > stored in memory). > > In short, this allows list lookup, insertion, delet

Re: p2exe using wine/cxoffice

2005-09-15 Thread Tim Roberts
ut it will never be as thorough and compatible as a VMware session. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Britney Spears nude

2005-09-15 Thread Tim Peters
[john basha] > send me the britney nude photos Because they're a new feature, you'll have to wait for Python 2.5 to be released. -- http://mail.python.org/mailman/listinfo/python-list

Re: p2exe using wine/cxoffice

2005-09-17 Thread Tim Roberts
nd to the idea of using open >alternatives rather than thinking that commercial software is somehow >"better". Regardless of your opinion on their operating systems, only a religious zealot would try to argue that Microsoft Office is not better than any of the open source alter

Re: influence platorm during install -end user question

2005-09-17 Thread Tim Roberts
ing to use the 64-bit compiler. Also note that there is a typo in your command line. You have an equals sign in lib.linux=i686-2.3 where you should have a dash. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can someone explain what I've done wrong...

2005-09-19 Thread Tim Roberts
ever __del__ does for class objects. It then binds the name "Person" to None. Next, it cleans up the name "Sophie". It calls __del__, which works. However, when you try to access People, that name is now bound to None, because it has already been cleaned up. Kaboom. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

RE: How to copy a file from one machine to another machine

2005-09-21 Thread Tim Golden
[Nico Grubert] | I would like to copy a file from one machine (machine #01) to another | (machine #02). | | machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5 | machine #02: Windows Machine, Destination Dir: \temp\files\ | | Both machines are in one network so they can communicate each | other

RE: How to copy a file from one machine to another machine

2005-09-21 Thread Tim Golden
[Steve Holden] | Nico Grubert wrote: | > Hi there, | > | > I would like to copy a file from one machine (machine #01) | to another (machine #02). | > | > machine #01: Suse Linux 9.2, Samba 3, Python 2.3.5 | > machine #02: Windows Machine, Destination Dir: \temp\files\ | One possibility would b

Re: Insane import behaviour and regrtest.py: heeelp

2005-02-06 Thread Tim Peters
[John J. Lee] > ... > I tried it, and I get the same results as before (the test modules from my > installed copy of Python are picked up instead of the local copies in > my CVS checkout's Lib/test, apparently entirely contrary to sys.path). Try running Python with -vv (that's two letter "v", not

ANN: 'twander' 3.193 Released And Available

2005-02-06 Thread Tim Daneliuk
up your day-to-day workflow. - A Python/Tkinter application - about 5000 lines of code/comments - A RCT (Really Cool Tool) that will have you addicted in a day or two See the web page for more information, a screen shot, and the complete documentation. ---

Re: Insane import behaviour and regrtest.py: heeelp

2005-02-06 Thread Tim Peters
[John J. Lee] > I'm still puzzled, though. Reading the -vv output, I see that when > importing test_cookielib (which is currently the only line in my > regrtest.py -f file), Python doesn't appear to look in Lib/test to > find module "test.test_cookielib" (the actual string passed by > regrtest.py

Re: Converting a string to a function pointer

2005-02-06 Thread Tim Roberts
't overlook the simple (and possibly more secure) answer: lookup = { 'a': a, 'b': b, 'c': c, } if lookup.has_key(myFunction): return lookup[myFunction]() else: print "Couldn't find", myFunction -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Big development in the GUI realm

2005-02-07 Thread Tim Churches
ely, it is what the GPL license text says, not what the FSF FAQ says, which matters. Note that I am not in favour of or advocating any attempt to circumvent or undermine the GPL. I just think it is important to be guided by what software licenses actually say, rather than by what the authors

Re: Re: Big development in the GUI realm

2005-02-07 Thread Tim Churches
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > Tim Churches wrote: > > > Thus, it seems to me, and to the expert legal advice which we sought > (note the scope of the advice > > was Australian law only) that provided no GLPed source or object code > is mixed, i

Re: Re: Big development in the GUI realm

2005-02-07 Thread Tim Churches
Luke Skywalker <[EMAIL PROTECTED]> wrote: > > On Tue, 08 Feb 2005 10:47:25 +1100, Tim Churches > <[EMAIL PROTECTED]> wrote: > >So there you have it: there must be some portion of the GPLed Program > contained in > >the other work for it to fall under the sc

Re: Memory Allocation?

2005-02-07 Thread Tim Hoffman
Hi Chris Have a look at http://www.python.org/doc/2.3.4/whatsnew/section-pymalloc.html for a description of what is going on. Basically malloc is used to grab a big chunk of memory, then python objects use bits of it. Rgds Tim Chris S. wrote: Donn Cave wrote: In article <[EMAIL PROTEC

Re: Re: Big development in the GUI realm

2005-02-07 Thread Tim Churches
e and others who actually wrote it. : : Also note that the only valid version of the GPL as far as the kernel : is concerned is _this_ particular version of the license (ie v2, not : v2.2 or v3.x or whatever), unless explicitly otherwise stated. : : Linus Torvalds Tim C > > Luke. > -- > http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Big development in the GUI realm

2005-02-07 Thread Tim Churches
Luke Skywalker <[EMAIL PROTECTED]> wrote: > > On Tue, 08 Feb 2005 13:24:35 +1100, Tim Churches > <[EMAIL PROTECTED]> wrote: > >: NOTE! This copyright does *not* cover user programs that use kernel > >: services by normal system calls - this is merely considered

RE: re-entrancy question

2005-02-08 Thread Tim Golden
[apocalypznow] | I have a program that instantiates some objects and runs a main loop. | Before the main loop starts, I create a thread that listens to TCP | connections on a port. If any connections are made, and depending on | the data, I call methods on some of those objects. | | I am worr

RE: re-entrancy question

2005-02-08 Thread Tim Golden
| Tim Golden <[EMAIL PROTECTED]> wrote: | | > No doubt there are more pertinent answers, but unless this is | > a learning exercise, you'd be better off investigating Pyro: | > http://pyro.sf.net | | AFAIK pyro is just a RPC implementation for python whereas | Twist

Re: Big development in the GUI realm

2005-02-08 Thread Tim Churches
Fredrik Lundh wrote: Tim Churches wrote: and how exactly are you going to load a DLL from an EXE file with- out "mixing, including, or combining" the two? You can't, but as long as that "mixing, including, or combining" only occurs at runtime, the GPL itself

RE: re-entrancy question

2005-02-08 Thread Tim Golden
[EMAIL PROTECTED] | | Tim Golden <[EMAIL PROTECTED]> wrote: | | > Now *where* is there any mention of Twisted, either in the original | > post or in my reply? As I read it, the OP is doing something which | | Ya sorry. I thought this was crossposted but the OP posted 2 different

Re: Big development in the GUI realm

2005-02-08 Thread Tim Churches
Fredrik Lundh wrote: Tim Churches wrote: except that if *you* set things up so the code is combined when run, *you* are copying, distributing, and/or modifying the program in order to mix, include and/or combine your work with the GPL:ed work. if you leave all that to the user, you're

Re: Lambda

2005-02-08 Thread Tim Leslie
Short answer: lambda is a python keyword which allows you to create anonymous functions which may be considered a useful thing to have in certain cases*. Long answer: To be provided by someone else who isn't meant to be working right now. Tim * There is much debate as to just how u

Re: Python mail filter

2005-02-08 Thread Tim Roberts
a procmail recipe can feed a message through a filter, and then pass the results of that filter back in to the e-mail system for further processing? It seems to me that you should consider letting procmail do what it is good at, and use your Python solution for the things that are beyond it. -- - T

Re: Re: Big development in the GUI realm

2005-02-09 Thread Tim Churches
t;The precise terms and conditions for copying, distribution and modification follow. ... END OF TERMS AND CONDITIONS" It's what is between those sentences which counts when to comes to governing the use of the covered software. There is no mention of "And also see the FAQs on

Re: PyQt documentation

2005-02-11 Thread Tim Jarman
Eric Jardim wrote: > Hi, > > Is there any site that gather all the documentation about PyQt? > > The docs of the Riverbank site is poor, and I have found separate > tutorials on the net. > Check out http://www.opendocs.org/pyqt/ > I know that the Kompany have made a "Qtdoc"-like to PyQt. But

Re: Hack with os.walk()

2005-02-12 Thread Tim Peters
[Frans Englich] ... > My problem, AFAICT, with using os.walk() the usual way, is that in order to > construct the /hierarchial/ XML document, I need to be aware of the directory > depth, and a recursive function handles that nicely; os.walk() simply > concentrates on figuring out paths to all files

Re: dos box appears when clicking .pyc

2005-02-13 Thread Tim Roberts
S box. If you really want .pyc files to run without a DOS box, bring up a command shell and type assoc .pyc=Python.NoConFile (Actually, you should type "assoc .pyw" to make sure that is its file type.) -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Considering python - have a few questions.

2005-02-13 Thread Tim Roberts
e on-the-fly. With a package like CherryPy, you get a web server built-in. You fire up the server in the background, and bring up Internet Explorer as "your" user interface. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

RE: connecting to Sybase/MsSQL from python

2005-02-14 Thread Tim Golden
[Ed Leafe] | Has anyone ever used this product: | http://www.object-craft.com.au/projects/mssql/ | | Any feedback, positive or negative? I have, pretty much constantly, for the last three years with no significant issues at all. I use it on Win32 boxes, although I have had it running

Re: [EVALUATION] - E02 - Support for MinGW Open Source Compiler

2005-02-14 Thread Tim Peters
[Ilias Lazaridis] ... > Let's see: > > The process would be: > > a) A Python Foundation official states: "of course we accept diversity > and of course we are intrested that our source-code-base compiles > directly with MinGW (and other compilers)". Well, I'm a Director of the Python Software Foun

Re: image fourier transform

2005-02-14 Thread Tim Roberts
', then you do 1D FFTs on all the columns of X'. So, for a 32x32 2D FFT, you'll end up doing 64 1D FFTs. -- - Tim Roberts, [EMAIL PROTECTED] Providenza & Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Accessing Objects Based On Their ID

2005-02-15 Thread Tim Daneliuk
want to actually use the objects I need a way to get from ID back to something accessible in the namespace... TIA, -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ -- http

<    11   12   13   14   15   16   17   18   19   20   >