Templess - another XML templating system for Python

2005-09-05 Thread Guido Wesdorp
Hello! I've just released Templess 0.1. Templess is an XML templating library for Python, that is very compact and simple, fast, and has a strict seperation of logic and design. It is different from other templating languages because instead of 'asking' for data from the template, you 'tell' the

Re: command line path

2005-09-05 Thread Diez B. Roggisch
I debugged a little and what is happening is the space in c:\Program Files and ...\National Instruments..\ is being parsed as separate arguments and i only wish for them to be parsed as one. How do I get pass a path string containing spaces? Surround it with double quotes. This is no

Re: command line path

2005-09-05 Thread Lee Harr
On 2005-09-05, mclaugb [EMAIL PROTECTED] wrote: I am trying to pass the name of several files to a python script as command line arguments. When i type in python ImportFiles_test.py C:\Program Files\National Instruments\LabVIEW 7.1\project\calibration\FREQUENCY_ 13.CSV The following

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Scott David Daniels wrote: Magnus Lycka wrote: [...] The '~' is the binary not symbol which when used with integers returns the two's compliment. Actually, the ~ operator is the one's complement operator. Actually the two are exactly the same thing. Could we argue about substantive

improvements for the logging package

2005-09-05 Thread Rotem
Hi, while working on something in my current project I have made several improvements to the logging package in Python, two of them are worth mentioning: 1. addition of a logging record field %(function)s, which results in the name of the entity which logged the record. My version even deduces

xmlrcp register classes

2005-09-05 Thread Sergio Rua
Hello, I have a structured program with several classes which I would like to export using a xmlrpc server. I'm doing this Server = SimpleXMLRPCServer (('127.0.0.1',8080)) Server.register_instance(MyClass1()) Server.register_instance(MyClass2()) Server.register_instance(MyClass3()) What is

Re: xmlrcp register classes

2005-09-05 Thread Brian Quinlan
Sergio Rua wrote: Server = SimpleXMLRPCServer (('127.0.0.1',8080)) Server.register_instance(MyClass1()) Server.register_instance(MyClass2()) Server.register_instance(MyClass3()) What is seems to happen is that only the last class I register it is the only one being exported. How can I

Re: Possible improvement to slice opperations.

2005-09-05 Thread Fredrik Lundh
Steve Holden wrote: Yes, I've been surprised how this thread has gone on and on. it's of course a variation of You can lead an idiot to idioms, but you can't make him think ;-) as long as you have people that insist that their original misunderstandings are the only correct way to

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: Thanks, Benji but I need to be able to get the bytes and/or percent of a download too. :-( The only way I can think of to get the size of the file you're about to download is using the FTP object's .dir() method. If you have the Tools directory (standard on Windows,

Re: newbie Q: mouse clicks don't seem to get trapped

2005-09-05 Thread Steve Holden
[EMAIL PROTECTED] wrote: Hi, I want to display a window containing an image and when I move the mouse over the image and click on the left Mb, I want to get the position of the mouse on the image. I listed the code to view the image below (so far so good) but for some reason the

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Fredrik Lundh
Steve Holden wrote: The only way I can think of to get the size of the file you're about to download is using the FTP object's .dir() method. If you have the Tools directory (standard on Windows, with source on other platforms) you can take a look at the ftpmirror script - a fairly recent

Re: dual processor

2005-09-05 Thread Nick Craig-Wood
Scott David Daniels [EMAIL PROTECTED] wrote: Nick Craig-Wood wrote: Splitting the GIL introduces performance and memory penalties However its crystal clear now the future is SMP. Modern chips seem to have hit the GHz barrier, and now the easy meat for the processor designers is to

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Szabolcs Nagy wrote: with the current syntax L[i:i+1] returns [L[i]], with nxlist it returns L[i+1] if i0. L=range(10) L[1:2]==[L[1]]==[1] L[-2:-1]==[L[-2]]==[8] L=nxlist(range(10)) L[1:2]==[L[1]]==[1] L[-2:-1]==[L[-1]]==[9] # not [L[-2]] IMHO in this case current list slicing is

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Magnus Lycka wrote: Ron Adam wrote: Slicing is one of the best features of Python in my opinion, but when you try to use negative index's and or negative step increments it can be tricky and lead to unexpected results. Hm... Just as with positive indexes, you just need to understand

Re: xmlrcp register classes

2005-09-05 Thread Sergio Rua
Hello, class MyCombinedClass(MyClass1, MyClass2, MyClass3): pass Server.register_instance(MyCombinedClass()) That was easy :) Thanks a lot. -- Sergio Rua -- http://mail.python.org/mailman/listinfo/python-list

Re: simple question: $1, $2 in py ?

2005-09-05 Thread Lee Harr
On 2005-09-05, es_uomikim [EMAIL PROTECTED] wrote: Hi, I have one small simple question, that I didn't found answer in google's. It's kind of begginers question because I'm a one. ; ) I wanned to ask how to use scripts with vars on input like this: $ echo something | ./my_script.py or:

Newbie: Datetime, Prog. in Win32, and how Python thinks

2005-09-05 Thread Max Yaffe
Dear Group, First of all, thanks for all the postings about Datetime. They've helped alot. I'm a newbie to Python (albeit very experienced in programming C OO) and trying to use Programming in Win32 by Hammond Robinson [HR] to learn it. This may be a mistake since I think it refers to

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Fredrik Lundh wrote: Steve Holden wrote: Yes, I've been surprised how this thread has gone on and on. it's of course a variation of You can lead an idiot to idioms, but you can't make him think ;-) as long as you have people that insist that their original

Re: dual processor

2005-09-05 Thread Paul Rubin
Nick Craig-Wood [EMAIL PROTECTED] writes: of is decrementing a reference count. Only one thread can be allowed to DECREF at any given time for fear of leaking memory, even though it will most often turn out the objects being DECREF'ed by distinct threads are themselves distinct.

Re: Job Offer in Paris, France : RD Engineer (Plone)

2005-09-05 Thread Paul Rubin
Huron [EMAIL PROTECTED] writes: Since you're posting in English, is there any point in responding to it in English, and are non-Europeans eligible? I'm afraid not. The team is too small to welcome remote work at the present time ... Working remotely hadn't occurred to me ;-). I was

curious about slice behaviour

2005-09-05 Thread Stephan Diehl
I just found out by accident, that slice indices can be larger than the length of the object. For example 'test'[:50] 'test' 'test'[40:50] '' I'd rather expected to be confronted with an IndexError. (This is actually described in http://docs.python.org/lib/typesseq.html, so my expectation was

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Nainto
Thanks guys. I'll try to these things too work. -- http://mail.python.org/mailman/listinfo/python-list

Unnest tag ?

2005-09-05 Thread Greg. Nans
Hello, i am looking for an idea on how to handle un-nesting tags. i know i can use something build on top of a htmltidy, but i'm rather wondering if this could be done using only python standard library. my input tags can not be crossed (i mean a w1 b w2 /a w3 /b is impossible from my input)

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Nainto
Thanks guys. I'll try to these things too work. -- http://mail.python.org/mailman/listinfo/python-list

Re: curious about slice behaviour

2005-09-05 Thread Terry Reedy
Stephan Diehl [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just found out by accident, that slice indices can be larger than the length of the object. For example 'test'[:50] 'test' 'test'[40:50] '' I'd rather expected to be confronted with an IndexError. (This is actually

Re: Newbie: Datetime, Prog. in Win32, and how Python thinks

2005-09-05 Thread Fredrik Lundh
Max Yaffe wrote: 1) HR import a module dates' which has been dropped. They use sec2asc which is also m.i.a. I assume that the code should be adapted to use module datetime. Is that correct? the dates.py module is part of the financial modeling toolkit that is described in chapter 6 of that

Python compiled?

2005-09-05 Thread billiejoex
Hi all. I'm sorry for a noob question like this but I'll try to ask it anyway. One of the greatest problem that may discourage a new user to choose Python language is it's interpreted nature. Another important problem is that no interpreter is installed on Windows machine by default and this

Re: dual processor

2005-09-05 Thread Terry Reedy
Paul Rubin http://phr.cx@NOSPAM.invalid wrote in message news:[EMAIL PROTECTED] Along with fixing the GIL, I think PyPy needs to give up on this BASIC-style reference counting and introduce real garbage collection. Lots of work has been done on concurrent GC and the techniques for it are

Re: curious about slice behaviour

2005-09-05 Thread Stephan Diehl
On Mon, 05 Sep 2005 14:26:14 -0400, Terry Reedy wrote: Stephan Diehl [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I just found out by accident, that slice indices can be larger than the length of the object. For example 'test'[:50] 'test' [...] Does anybody know, why this is

Re: Python compiled?

2005-09-05 Thread Devan L
billiejoex wrote: Hi all. I'm sorry for a noob question like this but I'll try to ask it anyway. One of the greatest problem that may discourage a new user to choose Python language is it's interpreted nature. What? The instant gratification of immediate results is not discouraging. Another

Re: Python compiled?

2005-09-05 Thread Kartic
One of the greatest problem that may discourage a new user to choose Python language is it's interpreted nature. Strange.. this is one reason I love Python :-) Another important problem is that no interpreter is installed on Windows machine by default and this makes harder to distribute

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

2005-09-05 Thread alexLIGO
Hi, 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? And does anyone have any idea how to debug a python script? Thanks Alexander -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Do Re Mi chel La Si Do
Hi ! One of the greatest reason which encouraged me to choose Python is its interpreted nature (more exactly its nature of dynamic language). The utilities of distribution, or packaging, are enough numerous to solve this kind of problem. The existence of Py2exe (inter alia), could

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood [EMAIL PROTECTED] wrote: Jeremy Jones [EMAIL PROTECTED] wrote: One Python process will only saturate one CPU (at a time) because of the GIL (global interpreter lock). I'm hoping python won't always be like this. I don't get that. Phyton was

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Ron Adam wrote: Magnus Lycka wrote: Ron Adam wrote: Slicing is one of the best features of Python in my opinion, but when you try to use negative index's and or negative step increments it can be tricky and lead to unexpected results. Hm... Just as with positive indexes, you just need to

Re: Warning when doubly linked list is defined gloablly

2005-09-05 Thread Terry Reedy
chand [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Please let me know how to resolve this warning message..!! SyntaxWarning: name 'g_opt_list' is used prior to global declaration Post the entire error traceback. Post the entire error traceback. Post the entire error traceback

Re: Possible improvement to slice opperations.

2005-09-05 Thread Fredrik Lundh
Ron Adam wrote: However, I would like the inverse selection of negative strides to be fixed if possible. If you could explain the current reason why it does not return the reverse order of the selected range. why? you're not listening anyway. /F --

py2exe 0.6.1 released

2005-09-05 Thread Thomas Heller
py2exe 0.6.1 released = py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Console and Windows (GUI) applications, windows NT services, exe and dll COM servers are

Re: Possible improvement to slice opperations.

2005-09-05 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: Given that Python has a 1's-complement operator already I don;t see why you can't just leave Python alone and use it, What's the meaning of the 1's complement operator (for example, what is ~1), when ints and longs are the same? --

Re: How to use the OS's native file selector in Tkinter

2005-09-05 Thread copx
[EMAIL PROTECTED] schrieb im Newsbeitrag news:[EMAIL PROTECTED] Thank you! copx -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread fuzzylollipop
there are noob questions and there are uneducated questions, yours are of the latter ( actually yours are STATEMENTS not questions ), and just trolling for what it is worth, if you would take the time to read what Python is and why it is you would not be asking these questions. --

Re: DrPython debugger

2005-09-05 Thread fuzzylollipop
you havent tried Komodo then :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: DrPython debugger

2005-09-05 Thread fuzzylollipop
oh I forgot about PyDev also, which is Free! -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Digest authentication against MS MapPoint

2005-09-05 Thread paul kölle
[EMAIL PROTECTED] wrote: [problem with digest auth] sorry for giving such a generic advice, but I'd capture the headers of the C# app and compare with the urllib version line by line. Try to reproduce the exact header with python (except the response and cnonce of course). Maybe IIS has its own

Re: Python compiled?

2005-09-05 Thread billiejoex
I'm sorry. Maybe you misunderstanded. I know the great advanteges deriving by using interpretation too, I appreciate it very much (I'm newbie in Python and the interpeter really helps me out in many situations), but a 'pure' interpretated language needs obligatorily an interpreter and (sorry

Re: Getting the bytes or percent uploaded/downloaded through FTP?

2005-09-05 Thread Nainto
Wait, can this be used when uploading a file? -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-05 Thread Michael Sparks
Steve Jorgensen wrote: On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood [EMAIL PROTECTED] wrote: Jeremy Jones [EMAIL PROTECTED] wrote: One Python process will only saturate one CPU (at a time) because of the GIL (global interpreter lock). I'm hoping python won't always be like this. I

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On Mon, 5 Sep 2005 18:09:51 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: Steve Holden wrote: Yes, I've been surprised how this thread has gone on and on. it's of course a variation of You can lead an idiot to idioms, but you can't make him think ;-) as long as you have people that

Re: Python compiled?

2005-09-05 Thread billiejoex
there are noob questions and there are uneducated questions, yours are of the latter ( actually yours are STATEMENTS not questions ), and just trolling for what it is worth, if you would take the time to read what Python is and why it is you would not be asking these questions. I'm really

Re: Possible improvement to slice opperations.

2005-09-05 Thread Fredrik Lundh
Bengt Richter wrote: as long as you have people that insist that their original misunderstandings are the only correct way to model the real world, and that all observed inconsistencies in their models are caused by bugs in the real world, you'll end up with threads like this. OTOH, ISTM we

Re: Python compiled?

2005-09-05 Thread Diez B. Roggisch
billiejoex wrote: I'm sorry. Maybe you misunderstanded. I know the great advanteges deriving by using interpretation too, I appreciate it very much (I'm newbie in Python and the interpeter really helps me out in many situations), but a 'pure' interpretated language needs obligatorily an

Re: Python compiled?

2005-09-05 Thread Fredrik Lundh
billiejoex wrote: I know the great advanteges deriving by using interpretation too, I appreciate it very much (I'm newbie in Python and the interpeter really helps me out in many situations), but a 'pure' interpretated language needs obligatorily an interpreter and (sorry for repeating)

Re: Python compiled?

2005-09-05 Thread Valentino Volonghi aka Dialtone
billiejoex [EMAIL PROTECTED] wrote: interpretation and compilation at the same time, should be a great advantage. Python is compiled and needs a runtime environment. just like java does and like C needs the C standard library installed. I can see no differences except one is compiled to

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Paul Rubin wrote: Steve Holden [EMAIL PROTECTED] writes: Given that Python has a 1's-complement operator already I don;t see why you can't just leave Python alone and use it, What's the meaning of the 1's complement operator (for example, what is ~1), when ints and longs are the same?

Re: Magic Optimisation

2005-09-05 Thread Bengt Richter
On 5 Sep 2005 07:27:41 -0700, Paul McGuire [EMAIL PROTECTED] wrote: I still think there are savings to be had by looping inside the try-except block, which avoids many setup/teardown exception handling steps. This is not so pretty in another way (repeated while on check()), but I would be

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On Mon, 05 Sep 2005 21:43:07 +0100, Michael Sparks [EMAIL PROTECTED] wrote: Steve Jorgensen wrote: On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood [EMAIL PROTECTED] wrote: Jeremy Jones [EMAIL PROTECTED] wrote: One Python process will only saturate one CPU (at a time) because of the GIL

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Steve Holden wrote: It's a common misconception that all ideas should be explainable simply. This is not necessarily the case, of course. When a subject is difficult then all sorts of people bring their specific misconceptions to the topic, and suggest that if only a few changes were made

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Bengt Richter wrote: On Mon, 5 Sep 2005 18:09:51 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: OTOH, ISTM we must be careful not to label an alternate alpha-version way to model the real world as a misunderstanding just because it is alpha, and bugs are apparent ;-) Thanks! I couldn't

Re: Optional algol syntax style

2005-09-05 Thread Christoph Rackwitz
You didn't quite get the OP's intention, I guess. The OP wanted Python to be a bit more freeform by adding end tags. That might be an improvement for web scripting, but I haven't seen the solutions of the existing frameworks and won't dare to compare. --

Re: dual processor

2005-09-05 Thread Carl Friedrich Bolz
Terry Reedy wrote: Paul Rubin http://phr.cx@NOSPAM.invalid wrote in message news:[EMAIL PROTECTED] Along with fixing the GIL, I think PyPy needs to give up on this BASIC-style reference counting and introduce real garbage collection. Lots of work has been done on concurrent GC and the

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On Mon, 5 Sep 2005 22:56:29 +0200, Fredrik Lundh [EMAIL PROTECTED] wrote: Bengt Richter wrote: as long as you have people that insist that their original misunderstandings are the only correct way to model the real world, and that all observed inconsistencies in their models are caused by bugs

Re: Possible improvement to slice opperations.

2005-09-05 Thread Terry Reedy
Ron Adam wrote: However, I would like the inverse selection of negative strides to be fixed if possible. If you could explain the current reason why it does not return the reverse order of the selected range. To repeat, the current reason is compatibility with the original design for

Re: simple question: $1, $2 in py ?

2005-09-05 Thread Jeff Pitman
es_uomikim wrote: $ echo something | ./my_script.py echo test | python -c import sys; print sys.stdin.readlines() -- http://mail.python.org/mailman/listinfo/python-list

Re: Online Modification of Python Code

2005-09-05 Thread Lisandro Dalcin
can you send a small example of thing you are trying to do? As Python is *really* dynamic, you can adapt algorithms in many ways... in general, you can change methods, or even class! of almost any object... -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Gregory Piñero
Hmm, this may be offtopic, but does anyone know how pyinstaller actually works? Does it just unpack everything into a temporary directory at runtime? How can it work in Windows and Linux? Their website was sparse... Well I'm trying it now. Let me know if anyone has these answers in the meantime.

Re: Possible improvement to slice opperations.

2005-09-05 Thread Steve Holden
Ron Adam wrote: Steve Holden wrote: It's a common misconception that all ideas should be explainable simply. This is not necessarily the case, of course. When a subject is difficult then all sorts of people bring their specific misconceptions to the topic, and suggest that if only a few

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On 05 Sep 2005 12:58:00 -0700, Paul Rubin http://[EMAIL PROTECTED] wrote: Steve Holden [EMAIL PROTECTED] writes: Given that Python has a 1's-complement operator already I don;t see why you can't just leave Python alone and use it, What's the meaning of the 1's complement operator (for example,

how to convert a PY to a PYC file

2005-09-05 Thread Chavez Gutierrez, Freddy
Title: how to convert a PY to a PYC file I want to distribute a Python application to several computers, but I don't want they to be able to see the pure python code (the 'py' file). Is there a way to generate a 'pyc' file and distribute that only? Regards, Freddy Chavez. --

Re: Possible improvement to slice opperations.

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 17:10:05 -0400, Steve Holden [EMAIL PROTECTED] wrote: Paul Rubin wrote: Steve Holden [EMAIL PROTECTED] writes: Given that Python has a 1's-complement operator already I don;t see why you can't just leave Python alone and use it, What's the meaning of the 1's complement

Re: Magic Optimisation

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 21:39:31 GMT, [EMAIL PROTECTED] (Bengt Richter) wrote: On 5 Sep 2005 07:27:41 -0700, Paul McGuire [EMAIL PROTECTED] wrote: I still think there are savings to be had by looping inside the try-except block, which avoids many setup/teardown exception handling steps. This is not

Re: py2exe 0.6.1 released

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 21:55:19 +0200, Thomas Heller [EMAIL PROTECTED] wrote: py2exe 0.6.1 released = py2exe is a Python distutils extension which converts python scripts into executable windows programs, able to run without requiring a python installation. Console and Windows

Re: Possible improvement to slice opperations.

2005-09-05 Thread Patrick Maupin
No one has yet explained the reasoning (vs the mechanics) of the returned value of the following. L = range(10) L[3::-1] So far every attempt to explain it has either quoted the documents which don't address that particular case, or assumed I'm misunderstanding something, or

Django Vs Rails

2005-09-05 Thread flamesrock
Firstly, this topic is NOT intended for trolling or starting any flame wars. I want to know if anyone has experience with these frameworks, and if so, how do they compare? Which one do you prefer? Going back to school in a few days, I simply don't have the time to try both. -thanks

Re: plotting with gnuplot.py

2005-09-05 Thread Grant Edwards
On 2005-09-04, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Still having some issues plotting: In attempting as explained above: import Gnuplot,Numeric filename = ('Default.PL1') data = scipy.io.array_import.read_array(filename) y = data[:,1] x = data[:,0] z = data[:,2] //I think u need

Re: os.system(rls) prints to screen??

2005-09-05 Thread Grant Edwards
On 2005-09-04, Xah Lee [EMAIL PROTECTED] wrote: Steve Holden wrote: This is all pretty basic stuff. Perhaps you should stop your verbal assault on the computer science community and start to learn the principles of what you are doing. is this a supressed behavior that a human animal can

Re: Django Vs Rails

2005-09-05 Thread D H
flamesrock wrote: Firstly, this topic is NOT intended for trolling or starting any flame wars. Whatever you say, flamesrock. -- http://mail.python.org/mailman/listinfo/python-list

Re: dual processor

2005-09-05 Thread Grant Edwards
On 2005-09-05, Nick Craig-Wood [EMAIL PROTECTED] wrote: Jeremy Jones [EMAIL PROTECTED] wrote: One Python process will only saturate one CPU (at a time) because of the GIL (global interpreter lock). I'm hoping python won't always be like this. Quite a few people are. :) So, I believe

Re: Django Vs Rails

2005-09-05 Thread gene tani
http://griddlenoise.blogspot.com/2005/07/python-off-rails.html http://www.boddie.org.uk/python/web_frameworks.html flamesrock wrote: Firstly, this topic is NOT intended for trolling or starting any flame wars. -- http://mail.python.org/mailman/listinfo/python-list

Re: Django Vs Rails

2005-09-05 Thread flamesrock
Thanks for the links, gene tani. D H, 'flamesrock' refers to the Calgary Flames, not the act of flaming. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-05 Thread Grant Edwards
On 2005-09-05, Fredrik Lundh [EMAIL PROTECTED] wrote: distributing DLLs have been a solved problem for at least 15-20 years... There are days when some poeple might disagree with that. ;) -- Grant Edwards grante Yow! LOOK!!! I'm WALKING

Re: Magic Optimisation

2005-09-05 Thread simonwittber
Paul McGuire wrote: I still think there are savings to be had by looping inside the try-except block, which avoids many setup/teardown exception handling steps. This is not so pretty in another way (repeated while on check()), but I would be interested in your timings w.r.t. your current

Re: dual processor

2005-09-05 Thread Jeremy Jones
Steve Jorgensen wrote: On Mon, 05 Sep 2005 21:43:07 +0100, Michael Sparks [EMAIL PROTECTED] wrote: Steve Jorgensen wrote: On 05 Sep 2005 10:29:48 GMT, Nick Craig-Wood [EMAIL PROTECTED] wrote: Jeremy Jones [EMAIL PROTECTED] wrote: One Python process will only

Re: Online Modification of Python Code

2005-09-05 Thread Bengt Richter
On Mon, 05 Sep 2005 11:53:09 +0200, Diez B. Roggisch [EMAIL PROTECTED] wrote: I seem to recall a post by Diez Roggish that reload() doesn't always work as it should. Any news on this? At least im my preliminary test it works. Read the docs on reload:

Re: Possible improvement to slice opperations.

2005-09-05 Thread Patrick Maupin
I previously wrote (in response to a query from Ron Adam): In any case, you asked for a rationale. I'll give you mine: L = range(10) L[3:len(L):-1] == [L[i] for i in range(3,len(L),-1)] True After eating supper, I just realized that I could probably make my point a bit clearer with a

Python executable

2005-09-05 Thread presentt
Hello, I'm running Ubuntu Linux 5.04. I just started teaching myself Python today, and have been reading a few things to get started. I came across something in one (namely http://docs.python.org/tut/node4.html#SECTION00422) that confused me a little. It says: On

Re: learning python

2005-09-05 Thread Bugs
If you're already fluent in other programming language(s) [sounds like you are], then this is decent and available free online: http://www.diveintopython.org/ placid wrote: Sometimes when you concentrate on complicated problems your thinking of a complicated solution and not a simple one.

Re: py2exe 0.6.1 released

2005-09-05 Thread Bugs
Thomas Heller wrote: Changes in this release: * py2exe can now bundle binary extensions and dlls into the library-archive or the executable itself. This allows to finally build real single-file executables. The bundled dlls and pyds are loaded at runtime by some

Re: Python executable

2005-09-05 Thread Steve Holden
presentt wrote: Hello, I'm running Ubuntu Linux 5.04. I just started teaching myself Python today, and have been reading a few things to get started. I came across something in one (namely http://docs.python.org/tut/node4.html#SECTION00422) that confused me a little.

Re: python logo

2005-09-05 Thread Lisandro Dalcin
I am waiting for the next chapter: Jargons of Logos ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python executable

2005-09-05 Thread DogWalker
presentt [EMAIL PROTECTED] said: Hello, I'm running Ubuntu Linux 5.04. I just started teaching myself Python today, and have been reading a few things to get started. I came across something in one (namely http://docs.python.org/tut/node4.html#SECTION00422) that confused me a

Re: Online Modification of Python Code

2005-09-05 Thread Robert Kern
Bengt Richter wrote: What about something on the pattern of (untested!) import algomodule # first time def algoreload(): algosource = algomodule.__file__.replace('.pyc','py') algomodule.__dict__.clear() try: execfile(algosource,

Re: dual processor

2005-09-05 Thread Steve Jorgensen
On Mon, 05 Sep 2005 23:42:38 -0400, Jeremy Jones [EMAIL PROTECTED] wrote: Steve Jorgensen wrote: ... That argument makes some sense, but I'm still not sure I agree. Rather than make Python programmers have to deal with concurrentcy issues in every app to get it to make good use of the hardware

Re: Python executable

2005-09-05 Thread Jules Dubois
On Monday 05 September 2005 21:54, presentt [EMAIL PROTECTED] ([EMAIL PROTECTED]) wrote: So I created a file named helloworld.py, and put in it: #! /usr/bin/env python print Hello, world! and then used $ chmod +x helloworld.py to set the permissions. Finally, I went to my terminal and

Re: Possible improvement to slice opperations.

2005-09-05 Thread Ron Adam
Terry Reedy wrote: Ron Adam wrote: However, I would like the inverse selection of negative strides to be fixed if possible. If you could explain the current reason why it does not return the reverse order of the selected range. To repeat, the current reason is compatibility with the

Re: mod_python: what's going on here?

2005-09-05 Thread Steve Holden
Robert J. Hansen wrote: I'm not entirely certain comp.lang.python is the proper newsgroup for mod_python questions, but comp.lang.python.web doesn't seem to exist, so... my apologies in advance if this is considered off-topic. I'm attempting to get mod_python 3.1.4/python 2.4.1 working on

ftp upload through proxy ?

2005-09-05 Thread Tonino
Hi, I have been searching the groups for a way to upload a file using URLLIB (2) to a ftp site using a proxy server. I read the ftplib does not support proxy servers and I know that urllib does support it. I can download a file from a ftp site through the proxy - but now I need to be able to

XML Pickle with PyGraphLib - Problems

2005-09-05 Thread Mike P.
Hi all, I'm working on a simulation (can be considered a game) in Python where I want to be able to dump the simulation state to a file and be able to load it up later. I have used the standard Python pickle module and it works fine pickling/unpickling from files. However, I want to be able to

Re: is dict.copy() a deep copy or a shallow copy

2005-09-05 Thread Alex
Thanks max, Now it's much clearer. I made the following experiment #1 D={'a':1, 'b':2} D {'a': 1, 'b': 2} E=D.copy() E {'a': 1, 'b': 2} D['a']=3 D {'a': 3, 'b': 2} E {'a': 1, 'b': 2} #2 D={'a':[1,3], 'b':[2,4]} D {'a': [1, 3], 'b': [2, 4]} E=D.copy() E {'a': [1, 3], 'b': [2, 4]}

wxImage can't read tif file? (WxPython)

2005-09-05 Thread James Hu
Hi, all gurus, I am working on a small project, which needs to display 16 bit tiff image on screen directly, I use wxStaticBitmap to do that, and I can show png and jpg file on the screen without any problem. (converting from tiff to png first is not option though). However, when I try to read

Re: pain

2005-09-05 Thread Steve Holden
Peter Hansen wrote: Steve Holden wrote: and the day managers stop being ignorant we'll all be able to fly around on pigs. Not wishing to offend the pigs, of course. still-working-for-myself-ly y'rs - steve What Steve means here, of course, is that he is his own manager. ;-) Right.

  1   2   >