OT: What's up with the starship?

2006-10-13 Thread Thomas Heller
I cannot connect to starship.python.net: neither http, nor can I login interactively with ssl (and the host key seems to have changed as well). Does anyone know more? Thanks, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: COM and Threads

2006-10-13 Thread Roger Upole
"Teja" <[EMAIL PROTECTED]> wrote: > > Roger Upole wrote: > >> "Teja" <[EMAIL PROTECTED]> wrote: >> > >> > Roger Upole wrote: >> > >> >> "Teja" <[EMAIL PROTECTED]> wrote: >> >> >I have an application which uses COM 's Dispatch to create a COM based >> >> > object. Now I need to upgrade the applicat

Python Best Practice References

2006-10-13 Thread Wijaya Edward
Can anybody suggest any references (links, books, etc)about this? I'm thinking of something similar with D.Conway's "Perl Best Practice". -- Edward WIJAYA SINGAPORE Institute For Infocomm Research - Disclaimer - This email is confidential and may be privileged. If you

File read-write mode: problem appending after reading

2006-10-13 Thread Frederic Rentsch
Hi all, Working with read and write operations on a file I stumbled on a complication when writes fail following a read to the end. >>> f = file ('T:/z', 'r+b') >>> f.write ('abcdefg') >>> f.tell () 30L >>> f.seek (0) >>> f.read () 'abcdefg' >>> f.flush () # Calling or not makes no dif

Re: Pickling an instance of a class containing a dict doesn't work

2006-10-13 Thread Marco Lierfeld
Peter Otten wrote: > Chances are you have inadvertently created an /instance/ attribute > build_steps which was then saved: > > s = subproject() > # ... > s.configuration["name"] = "my dinner" # modifies the class attribute > s.build_steps = ["hunt", "kill", "cook"] # creates an instance attribut

Re: Wing IDE 2.1.3 released

2006-10-13 Thread Hendrik van Rooyen
"Wingware Announce" <[EMAIL PROTECTED]> wrote: 8<--- > * Professional quality code editor > * Visual Studio, VI/Vim, Emacs, and Brief key bindings Can I copy paste columns as in Brief? Do the Brief Macros work? 100% ? - Hendrik --

Efficiently iterating over part of a list

2006-10-13 Thread Steven D'Aprano
If I want to iterate over part of the list, the normal Python idiom is to do something like this: alist = range(50) # first item is special x = alist[0] # iterate over the rest of the list for item in alist[1:] x = item The important thing to notice is that alist[1:] makes a copy. What if the

Re: COM and Threads

2006-10-13 Thread Teja
Roger Upole wrote: > "Teja" <[EMAIL PROTECTED]> wrote: > > > > Roger Upole wrote: > > > >> "Teja" <[EMAIL PROTECTED]> wrote: > >> > > >> > Roger Upole wrote: > >> > > >> >> "Teja" <[EMAIL PROTECTED]> wrote: > >> >> >I have an application which uses COM 's Dispatch to create a COM based > >> >> > o

A question about call Wincvs

2006-10-13 Thread Kevien Lee
Hi, In the Wincvs,if want to get  commitable file list in local file list,it could "click flat mode->show commitable " But ,if i want to through command line ,how show it do? Is there any CVS lib?   Thanks. Kevin Lee -- http://mail.python.org/mailman/listinfo/python-list

Re: Efficiently iterating over part of a list

2006-10-13 Thread James Stroud
Steven D'Aprano wrote: > If I want to iterate over part of the list, the normal Python idiom is to > do something like this: > > alist = range(50) > # first item is special > x = alist[0] > # iterate over the rest of the list > for item in alist[1:] > x = item > > The important thing to notic

Re: Efficiently iterating over part of a list

2006-10-13 Thread James Stroud
James Stroud wrote: > Steven D'Aprano wrote: >> If I want to iterate over part of the list, the normal Python idiom is to >> do something like this: >> >> alist = range(50) >> # first item is special >> x = alist[0] >> # iterate over the rest of the list >> for item in alist[1:] >> x = item >>

Re: File read-write mode: problem appending after reading

2006-10-13 Thread Tim Peters
[Frederic Rentsch] >Working with read and write operations on a file I stumbled on a > complication when writes fail following a read to the end. > > >>> f = file ('T:/z', 'r+b') > >>> f.write ('abcdefg') > >>> f.tell () > 30L > >>> f.seek (0) > >>> f.read () > 'abcdefg' > >>> f.flush ()

Re: Efficiently iterating over part of a list

2006-10-13 Thread Ziga Seilnacht
Steven D'Aprano wrote: [snip] > The important thing to notice is that alist[1:] makes a copy. What if the > list has millions of items and duplicating it is expensive? What do people > do in that case? > > Are there better or more Pythonic alternatives to this obvious C-like > idiom? > > for i in r

Re: Efficiently iterating over part of a list

2006-10-13 Thread Peter Otten
Steven D'Aprano wrote: > Are there better or more Pythonic alternatives to this obvious C-like > idiom? > > for i in range(1, len(alist)): > x = alist[i] For small start values you can use itertools.islice(), e. g: for x in islice(alist, 1, None): # use x You'd have to time at what poi

Freeware link/html checker (validator) for mod_python site

2006-10-13 Thread durumdara
Hi ! Sorry for non-pythonic subject, but if I not find good solution, I will write a routine for this in python... :-))) My mod_py site is growing quickly. It have many pages, many of them are dynamic. I want to check the links, and if possible, validate the html. I search freeware tools in t

Using SVN with Python and .pyc files

2006-10-13 Thread James Stroud
Hello All, I have been moving to managing a lot of my code with SVN and I have found it to work extremely well. However, I'm not exactly sure how to deal with all of the .pyc files that get created every time I test a project or package. How do people manage this? Do you run a script to find f

Re: pygtk dynamic table

2006-10-13 Thread Antoon Pardon
On 2006-10-12, JyotiC <[EMAIL PROTECTED]> wrote: > hi, > > i am making a gui, which looks like excel sheets. > i want to give the user the facility of adding rows/columns at the run > time. > there is some initial size, but that can be increased any time during > the executation of the code. > > wh

Re: always raise syntax error!

2006-10-13 Thread daniel
thank you so much for the reply. I finally re-type all the codes where python would raise syntax error, then fixed. I did not examine every single word of my old codes though, there might be some parenthesis not matching somewhere, I guess. well, I would say, the reason why I could not position

Re: Using SVN with Python and .pyc files

2006-10-13 Thread Roel Schroeven
James Stroud schreef: > I have been moving to managing a lot of my code with SVN and I have > found it to work extremely well. However, I'm not exactly sure how to > deal with all of the .pyc files that get created every time I test a > project or package. How do people manage this? Do you run a

Re: Using SVN with Python and .pyc files

2006-10-13 Thread Duncan Booth
James Stroud <[EMAIL PROTECTED]> wrote: > I have been moving to managing a lot of my code with SVN and I have > found it to work extremely well. However, I'm not exactly sure how to > deal with all of the .pyc files that get created every time I test a > project or package. How do people manage

Re: Freeware link/html checker (validator) for mod_python site

2006-10-13 Thread Fredrik Lundh
"durumdara" <[EMAIL PROTECTED]> wrote: > Sorry for non-pythonic subject, but if I not find good solution, I will > write a routine for this in python... :-))) in your Python installation (or source) directory, do $ cd Tools/webchecker and then write $ python webchecker.py -x http://yo

Re: Sending binary pickled data through TCP

2006-10-13 Thread Nick Craig-Wood
Paul Rubin wrote: > As for the network representation, DJB proposes this format: > http://cr.yp.to/proto/netstrings.txt Netstrings are cool and you'll find some python implementations if you search. But it is basically "number:string,", ie "12:hello world!," Or you could use escaping which is

Re: Using SVN with Python and .pyc files

2006-10-13 Thread Gregor Horvath
James Stroud schrieb: > project or package. How do people manage this? Do you run a script to > find files with the .pyc extension and delete those before every commit, > or is there a more elegant way? It seems like a lot of wasted bandwidth > an memory on the server side to constantly be dealing

Re: Python component model

2006-10-13 Thread Bruno Desthuilliers
Peter Maas wrote: > Bruno Desthuilliers wrote: >> Peter Maas wrote: > [...] >>> a reference implementation for web programming as part of the standard >>> library, >> wsgiref is part of the 2.5 stdlib. > > Yes, but it's not an implementation. Think of something like Tomcat for > the Java Servlet

Re: Efficiently iterating over part of a list

2006-10-13 Thread Duncan Booth
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > The important thing to notice is that alist[1:] makes a copy. What if > the list has millions of items and duplicating it is expensive? What > do people do in that case? I think you are worrying prematurely. On my system slicing one element off the fr

Re: Python component model

2006-10-13 Thread Bruno Desthuilliers
Fredrik Lundh wrote: > Paul Boddie wrote: > >> Meanwhile, the Web programming standardisation scene remains >> stagnant. > > Aw, come on. The Python web programming standardisation wars are over, for > now. > There's Django, and there's TurboGears, And there's Pylons... > and there's Zope 2/

Re: Python component model

2006-10-13 Thread Fredrik Lundh
Bruno Desthuilliers wrote: >>> Meanwhile, the Web programming standardisation scene remains >>> stagnant. >> >> Aw, come on. The Python web programming standardisation wars are over, for >> now. >> There's Django, and there's TurboGears, > > And there's Pylons... and a zillion other more or les

Re: Using SVN with Python and .pyc files

2006-10-13 Thread James Stroud
Everyone wrote: [something helpful] Thank you to everyone for your responses. James -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Best Practice References

2006-10-13 Thread James Stroud
Wijaya Edward wrote: > Can anybody suggest any references (links, books, etc)about this? > I'm thinking of something similar with D.Conway's "Perl Best Practice". > > -- Edward WIJAYA > SINGAPORE > > Institute For Infocomm Research - Disclaimer - > This email is confiden

Re: Click and Drag Functionality in Web Apps with Python

2006-10-13 Thread Diez B. Roggisch
Wijaya Edward schrieb: > Hi, > > Some recent webapps like Kiko , Google's gadget > , and spreadsheets > to name a few, > have this functionality. > > I wonder how can this funcitonalities be i

Re: How to print the CDATA of .xml file?

2006-10-13 Thread Fredrik Lundh
Kevien Lee wrote: > when i use the minidom to parase the XML file,it would ignored the section > of

Re: 3D Vector Type Line-Drawing Program

2006-10-13 Thread Fabian Braennstroem
Hi, I am not sure, if that is, what your looking for, but with 'salome' you able to produce 3D drawings with an GUI or using a python script. Take a look at: http://www.salome-platform.org/home/presentation/geom/ * Scott David Daniels <[EMAIL PROTECTED]> wrote: > Ron Adam wrote: >> Scott David D

Re: Click and Drag Functionality in Web Apps with Python

2006-10-13 Thread Fredrik Lundh
Diez B. Roggisch wrote: > There is mochikit, a javascript library that makes coding in javascript > suck less. and which is written by an experienced Python programmer, so it also makes your JavaScript look and feel a little more Pythonic. (not that JavaScript itself is that unpythonic, really,

Re: What value should be passed to make a function use the default argument value?

2006-10-13 Thread Antoon Pardon
On 2006-10-12, Magnus Lycka <[EMAIL PROTECTED]> wrote: > Antoon Pardon wrote: >> Well maybe he didn't intend that, but how is the reader of the >> documentation to know that? The reader can only go by how >> things are documented. If those are not entirely consistent >> with the intend of the progr

Re: Adding Worksheets to an Excel Workbook

2006-10-13 Thread Fabian Braennstroem
Hi Wesley, * wesley chun <[EMAIL PROTECTED]> wrote: >> just a small OT question coming from a linux openoffice >> system... >> >> Does there exist something similar for powerpoint? Would be >> nice, if anybody can direct me to more examples... > > > fabian, > > see below for a PP example. you men

Re: SOAPpy and callback

2006-10-13 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hello, > > I'm trying to find how to use a callback in a SOAP client using SOAPpy. > Does SOAPpy have to manage it, or does Python include some API to do > it? I've never seen any callback mentioned in SOAP. Are you sure this is possible with any SOAP implementation,

Big speed boost in os.walk in Python 2.5

2006-10-13 Thread looping
Hi, I noticed a big speed improvement in some of my script that use os.walk and I write a small script to check it: import os for path, dirs, files in os.walk('D:\\FILES\\'): pass Results on Windows XP after some run to fill the disk cache (with ~59000 files and ~3500 folders): Python 2.4.3 :

Re: operator overloading + - / * = etc...

2006-10-13 Thread Piet van Oostrum
> Fredrik Lundh <[EMAIL PROTECTED]> (FL) wrote: >FL> Piet van Oostrum wrote: >>> The official Python documentation (language reference manual) talks a lot >>> about variables. So it seems silly to say that Python doesn't have >>> variables. >FL> the language reference mostly uses the term "va

Thread termination

2006-10-13 Thread Teja
Hi all, Does any one know how to terminate or kill a thread that is started with "start_new_thread()" in the middle of its execution? Any pointers? Thanks in advance Teja. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print the CDATA of .xml file?

2006-10-13 Thread Kevien Lee
  -- Forwarded message --From: "Fredrik Lundh" <[EMAIL PROTECTED]>To: python-list@python.org Date: Fri, 13 Oct 2006 11:03:45 +0200Subject: Re: How to print the CDATA of .xml file?Kevien Lee wrote:> when i use the minidom to parase the XML file,it would ignored the section> of

Re: Linting python code...

2006-10-13 Thread Joel Rosdahl
[EMAIL PROTECTED] writes: > Christoph> On Tuesday 10 October 2006 14:06, Andrew Markebo wrote: > >> Are there any python-code linter out there > > Christoph> PyLint (http://www.logilab.org/projects/pylint) > Christoph> PyChecker (http://pychecker.sf.net) > > New kid on the block: >

Re: Python component model

2006-10-13 Thread Paul Boddie
Steve Holden wrote: > Paul Boddie wrote: > > > I'm not at the cutting edge here: 20j and 20k are the commands (replace > > 20 with another suitable amount) which help me jump around in my editor > > of choice. The other commands which may be more effective just aren't > > in my "working set". > > >

Re: Linting python code...

2006-10-13 Thread Paul Boddie
Joel Rosdahl wrote: > [EMAIL PROTECTED] writes: > > [PyLint, PyChecker] > > New kid on the block: > > > > PyFlakes http://divmod.org/trac/wiki/DivmodPyflakes > > > > It doesn't do nearly as much as the other two but doesn't import the > > modules, so it can be used in places the others can't.

Re: Thread termination

2006-10-13 Thread Aidan Steele
G'day,As far as my understanding pertains, the thread dies shortly after the function returns (ends). You can call "return" anywhere within the function and kill the thread in the middle of its execution.On 13 Oct 2006 02:38:28 -0700, Teja <[EMAIL PROTECTED]> wrote: Hi all,Does any one know how to

RE: Thread termination

2006-10-13 Thread Stefan Schukat
Reading from your last posts you are using COM objects. Therefore you should not "kill" the thread since this would lead to reference leaks. So there are only two ways left: 1. Program a specific interpreter and not use python.exe which implements an access to PyThreadState_SetAsyncExc 2. Check in

Re: Click and Drag Functionality in Web Apps with Python

2006-10-13 Thread Diez B. Roggisch
Fredrik Lundh schrieb: > Diez B. Roggisch wrote: > >> There is mochikit, a javascript library that makes coding in javascript >> suck less. > > and which is written by an experienced Python programmer, so it also > makes your JavaScript look and feel a little more Pythonic. > > (not that JavaScr

Re: Thread termination

2006-10-13 Thread Diez B. Roggisch
Teja schrieb: > Hi all, > > Does any one know how to terminate or kill a thread that is started > with "start_new_thread()" in the middle of its execution? > > Any pointers? This has been discussed a bazillion times in this NG. The short answer is: no. For the long answer: do some googling :)

Re: Python component model

2006-10-13 Thread Paul Rubin
"Fredrik Lundh" <[EMAIL PROTECTED]> writes: > and a zillion other more or less interesting research projects. I don't see > any traces > of the kind of ecosystems and market awareness that exist for Zope, Django, > and > TurboGears (or for that matter, Rails and Mason), for any other Python web

Re: Efficiently iterating over part of a list

2006-10-13 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > for i in range(1, len(alist)): > x = alist[i] a2 = iter(alist) a2.next() # throw away first element for x in a2: ... -- http://mail.python.org/mailman/listinfo/python-list

Re: How to print the CDATA of .xml file?

2006-10-13 Thread Fredrik Lundh
Kevien Lee wrote: > import xml.etree.ElementTree as ET > use Python 2.5 is easy and good, but is there any others way under > version 2.4? the ET API is available for 1.5.2 and newer: http://effbot.org/zone/element-index.htm -- http://mail.python.org/mailman/listinfo/python-list

Need a Regular expression to remove a char for Unicode text

2006-10-13 Thread శ్రీనివాస
Hai friends, Can any one tell me how can i remove a character from a unocode text. కల్‌&హార is a Telugu word in Unicode. Here i want to remove '&' but not replace with a zero width char. And one more thing, if any whitespaces are there before and after '&' char, the text should be kept as it is. Pl

Re: SOAPpy and callback

2006-10-13 Thread fabien . benard
SOAP standard doesn't provide any callback, and it looks like SOAPpy doesn't too. I remember using callbacks with Javascript and SOAP in Web pages. I was just wondering if there could be the same with Python. Thanks for your answer. -- http://mail.python.org/mailman/listinfo/python-list

Re: Freeware link/html checker (validator) for mod_python site

2006-10-13 Thread durumdara
Hi ! Very good !!! Thank you very much ! If I can "link it" with a w3c html checker, it will be very good... Interesting that it is also say "bad link" to site http://www.druk-ker.hu/. The HTML link validator do it same. dd Fredrik Lundh írta: "durumdara" <[EMAIL PROTECTED]> wrote:

Re: 3D Vector Type Line-Drawing Program

2006-10-13 Thread Kjell Magne Fauske
> I'm looking for a program to do line-drawings in 3d, with output to > postscript or svg or pdf, etc. I would like to describe a scene with > certain 1-3d elements oriented in 3d space with dashed or colored lines > and filled or transparent surfaces (or maybe semitransparent). > For high quality

Re: Insert characters into string based on re ?

2006-10-13 Thread harvey . thomas
Matt wrote: > I am attempting to reformat a string, inserting newlines before certain > phrases. For example, in formatting SQL, I want to start a new line at > each JOIN condition. Noting that strings are immutable, I thought it > best to spllit the string at the key points, then join with '\n'.

Re: Python component model

2006-10-13 Thread Bruno Desthuilliers
Fredrik Lundh wrote: > Bruno Desthuilliers wrote: > Meanwhile, the Web programming standardisation scene remains stagnant. >>> Aw, come on. The Python web programming standardisation wars are over, for >>> now. >>> There's Django, and there's TurboGears, >> And there's Pylons... > > a

Re: What value should be passed to make a function use the default argument value?

2006-10-13 Thread Steve Holden
Antoon Pardon wrote: > On 2006-10-12, Magnus Lycka <[EMAIL PROTECTED]> wrote: > >>Antoon Pardon wrote: >> >>>Well maybe he didn't intend that, but how is the reader of the >>>documentation to know that? The reader can only go by how >>>things are documented. If those are not entirely consistent >>

Re: SOAPpy and callback

2006-10-13 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > SOAP standard doesn't provide any callback, and it looks like SOAPpy > doesn't too. > I remember using callbacks with Javascript and SOAP in Web pages. I was > just wondering if there could be the same with Python. How that? I seriously doubt that, it would mean that t

Re: OT: What's up with the starship?

2006-10-13 Thread Steve Holden
Thomas Heller wrote: > I cannot connect to starship.python.net: neither http, nor can I login > interactively with ssl (and the host key seems to have changed as well). > > Does anyone know more? > Nope. I got a mailing list reminder as usual at the start of the month, but I can confirm that I

Re: Need a Regular expression to remove a char for Unicode text

2006-10-13 Thread harvey . thomas
శ్రీనివాస wrote: > Hai friends, > Can any one tell me how can i remove a character from a unocode text. > కల్‌&హార is a Telugu word in Unicode. Here i want to > remove '&' but not replace with a zero width char. And one more thing, > if any whitespaces are there before and after '&' char, the text

Re: Python Best Practice References

2006-10-13 Thread Steve Holden
James Stroud wrote: > Wijaya Edward wrote: > >>Can anybody suggest any references (links, books, etc)about this? >>I'm thinking of something similar with D.Conway's "Perl Best Practice". >> >>-- Edward WIJAYA >>SINGAPORE >> >> Institute For Infocomm Research - Disclaimer -

Re: Need a Regular expression to remove a char for Unicode text

2006-10-13 Thread Sybren Stuvel
శ్రీనివాస enlightened us with: > Can any one tell me how can i remove a character from a unocode > text. కల్<200c>&హార is a Telugu word in Unicode. Here i want to > remove '&' but not replace with a zero width char. And one more > thing, if any whitespaces are there b

Re: Insert characters into string based on re ?

2006-10-13 Thread Duncan Booth
[EMAIL PROTECTED] wrote: > > Matt wrote: >> I am attempting to reformat a string, inserting newlines before >> certain phrases. For example, in formatting SQL, I want to start a >> new line at each JOIN condition. Noting that strings are immutable, I >> thought it best to spllit the string at the

Re: Need a Regular expression to remove a char for Unicode text

2006-10-13 Thread Leo Kislov
On Oct 13, 4:44 am, [EMAIL PROTECTED] wrote: > శ్రీనివాస wrote: > > Hai friends, > > Can any one tell me how can i remove a character from a unocode text. > > కల్‌&హార is a Telugu word in Unicode. Here i want to > > remove '&' but not replace with a zero width char. And one more thing, > > if any

Re: Need a Regular expression to remove a char for Unicode text

2006-10-13 Thread Leo Kislov
On Oct 13, 4:55 am, "Leo Kislov" <[EMAIL PROTECTED]> wrote: > On Oct 13, 4:44 am, [EMAIL PROTECTED] wrote: > > > శ్రీనివాస wrote: > > > Hai friends, > > > Can any one tell me how can i remove a character from a unocode text. > > > కల్‌&హార is a Telugu word in Unicode. Here i want to > > > remove '&

Re: Sending binary pickled data through TCP

2006-10-13 Thread MRAB
David Hirschfield wrote: > I have a pair of programs which trade python data back and forth by > pickling up lists of objects on one side (using > pickle.HIGHEST_PROTOCOL), and sending that data over a TCP socket > connection to the receiver, who unpickles the data and uses it. > > So far this has

Re: Appropriate way to quit Tkinter

2006-10-13 Thread Neil Cerutti
On 2006-10-13, mzdude <[EMAIL PROTECTED]> wrote: > > Fredrik Lundh wrote: > [snip] >> works for me. are you perhaps running this under some kind of >> IDE that keeps the process running even after the program has >> terminated? > > It works the same way if I run from IDLE or from the DOS > command

Cannot force configure/setup.py to pick up location of readline (SFWrline) on Solaris 10

2006-10-13 Thread Chris Miles
On a standard Solaris 10 installation with Sun-supplied open-source packages installed (like SFWrline for readline libs) I cannot seem to force Python configure/setup.py to build with readline support. SFWrline installs readline in /opt/sfw/lib & /opt/sfw/include (This is all attempted with Pyt

Re: prefix search on a large file

2006-10-13 Thread js
I did the test the way you suggested. It took not so long to realize stupid mistakes I made. Thank you. The following is the result of test with timeit(number=1) using fresh copy of the list for every iteration 0.331462860107 0.19401717186 0.186257839203 0.0762069225311 I tried my recursive

Re: Cannot force configure/setup.py to pick up location of readline (SFWrline) on Solaris 10

2006-10-13 Thread skip
Chris> However, make doesn't build a readline module and I think this is Chris> because setup.py is not taking the custom *FLAGS into account. Chris> Even if I export them as environment variables, I get no readline Chris> module. Try ./python setup.py build_ext --help Ther

edit a torrent file with python

2006-10-13 Thread di0rz`
hi, I am looking for a python script to edit .torrent files if anybody know one thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting MSWord Docs to PDF

2006-10-13 Thread Theerasak Photha
On 11 Oct 2006 02:10:38 -0700, Ant <[EMAIL PROTECTED]> wrote: > > Theerasak Photha wrote: > > On 10/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > ... > > (La)TeX is the king of document processing, and does PDF. > > Except that the OP want's to print Word documents as PDF. LaTeX is > good,

Re: Where is Python in the scheme of things?

2006-10-13 Thread Theerasak Photha
On 10/12/06, Magnus Lycka <[EMAIL PROTECTED]> wrote: > I feel much more productive in bash than in most Windows apps. > (I still like to have several terminal windows though.) Perhaps you have used GNU screen. It's on my definitive list of winners. (As an added bonus, using screen via SSH or---h

Re: operator overloading + - / * = etc...

2006-10-13 Thread Bruno Desthuilliers
Terry Reedy wrote: > "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Terry Reedy wrote: >>> "Bruno Desthuilliers" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] The current namespace object, of course. >>> Implementing a namespace as a P

Re: SOAPpy and callback

2006-10-13 Thread Paul McGuire
"Diez B. Roggisch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > [EMAIL PROTECTED] schrieb: >> Hello, >> >> I'm trying to find how to use a callback in a SOAP client using SOAPpy. >> Does SOAPpy have to manage it, or does Python include some API to do >> it? > > I've never seen any

Re: Starting out.

2006-10-13 Thread Ahmer
Thanks Paddy. That post pretty much cleared up everything for me. On Oct 13, 12:46 am, "Paddy" <[EMAIL PROTECTED]> wrote: > Ahmer wrote: > > Hi all! > > > I am a 15 year old High School Sophomore. I would like to start > > programming in Python. In school, we are learning Java (5) and I like > > t

Loops Control with Python

2006-10-13 Thread Wijaya Edward
Can we make loops control in Python? What I mean is that whether we can control which loops to exit/skip at the given scope. For example in Perl we can do something like: OUT: foreach my $s1 ( 0 ...100) { IN: foreach my $s2 (@array) { if ($s1 == $s2) { n

Re: sufficiently pythonic code for testing type of function

2006-10-13 Thread Theerasak Photha
On 10/11/06, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Theerasak Photha wrote: > > On 10/11/06, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > >> can be a lot better than a 30-level traceback that ends with a line > >> looking something like > >> > >> fnut.index(gah) > > > > Despite lon

Re: Starting out.

2006-10-13 Thread Ahmer
>From what I can see Python and PHP have VERY simillar syntax (sorry if I offended anyone but I am a "n00b".) On Oct 13, 12:54 am, [EMAIL PROTECTED] wrote: > Ahmer wrote: > > Hi all! > > > I am a 15 year old High School Sophomore. I would like to start > > programming in Python. In school, we are

Best IDE?

2006-10-13 Thread Ahmer
What do you guys use? Why? What do you like and hate about it? What platform(s) is it avalable on? How much does it cost? etc. -- http://mail.python.org/mailman/listinfo/python-list

Line algorithim for python and numeric

2006-10-13 Thread bcdonovan
Hi everyone, I'm wondering if anyone knows of a way to extract data from a numeric array along a line. I have a gridded dataset which I would like to be able to choose two points and extract a 1-d array of the data values along the line between the two points. Any ideas? Thanks, Brian -- http

Re: Best IDE?

2006-10-13 Thread Theerasak Photha
On 13 Oct 2006 07:29:09 -0700, Ahmer <[EMAIL PROTECTED]> wrote: > What do you guys use? > Why? > What do you like and hate about it? > What platform(s) is it avalable on? > How much does it cost? > etc. I use GNU Emacs 22 and a screen session. Advantages: * Comprehensive, comprehensive, comprehe

Re: Best IDE?

2006-10-13 Thread Bernard
IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/ Why?: because this IDE is not complicated. it ships with a debugger, a gui designer, a source code checker and a regex console. Like: obviously everything Hate: sometimes it doesn't start on windows 2000 Platform: Windows, Linux,

Re: Best IDE?

2006-10-13 Thread BartlebyScrivener
Ahmer wrote: > What do you guys use? > Why? http://tinyurl.com/ybg6p5 rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Line algorithim for python and numeric

2006-10-13 Thread Theerasak Photha
On 13 Oct 2006 07:33:17 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi everyone, > > I'm wondering if anyone knows of a way to extract data from a numeric > array along a line. I have a gridded dataset which I would like to be > able to choose two points and extract a 1-d array of the d

Re: Best IDE?

2006-10-13 Thread Theerasak Photha
On 13 Oct 2006 07:37:07 -0700, Bernard <[EMAIL PROTECTED]> wrote: > IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/ > Why?: because this IDE is not complicated. it ships with a debugger, a > gui designer, a source code checker and a regex console. > Like: obviously everything >

Re: Python Newbie question

2006-10-13 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Is it possible to combine or bundle separate .exe files into the > compiled python .exe when using py2exe? If possible, how would that be > described within setup.py . and how/where would I specify such .exe > should be ran first in the pre-compiled scripts? My goal i

Re: edit a torrent file with python

2006-10-13 Thread Iain King
di0rz` wrote: > hi, > I am looking for a python script to edit .torrent files > if anybody know one thx Not sure exactly what you are looking for, but the original bittorrent client is written in Python, so you could grab a copy of it and check the code. Iain -- http://mail.python.org/mailman/

Re: always raise syntax error!

2006-10-13 Thread Larry Bates
daniel wrote: > thank you so much for the reply. > > I finally re-type all the codes where python would raise syntax error, > then fixed. I did not examine every single word of my old codes though, > there might be some parenthesis not matching somewhere, I guess. > > well, I would say, the reas

Re: Problems with Python 2.5 installer.

2006-10-13 Thread paw
> > Could this happen if c:\python does not exists and creating it fails for > > some reason, or if permissions are incorrect? > > Are you installing it as a "normal" user or as an Administrator? I have > occasionally had problems (not when installing Python) as a "normal" > user not being allowed

Re: Line algorithim for python and numeric

2006-10-13 Thread Tim Chase
>> I'm wondering if anyone knows of a way to extract data from a numeric >> array along a line. I have a gridded dataset which I would like to be >> able to choose two points and extract a 1-d array of the data values >> along the line between the two points. Any ideas? > > Are these all 45 degr

Re: Converting MSWord Docs to PDF

2006-10-13 Thread Grant Edwards
On 2006-10-13, Theerasak Photha <[EMAIL PROTECTED]> wrote: > On 11 Oct 2006 02:10:38 -0700, Ant <[EMAIL PROTECTED]> wrote: >> >> Theerasak Photha wrote: >> > On 10/11/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> ... >> > (La)TeX is the king of document processing, and does PDF. >> >> Except

Re: Python component model

2006-10-13 Thread val bykoski
Peter Wang wrote: > Edward, > > This isn't in response to any specific one of the 100+ posts on this > thread, but I justed wanted to encourage you to continue your > investigation into Python component models and maybe looking for some > common ground between them. Frequently the individual deve

Re: Best IDE?

2006-10-13 Thread Grant Edwards
On 2006-10-13, Ahmer <[EMAIL PROTECTED]> wrote: > What do you guys use? jed along with bash et. al. > Why? Because it's efficient and it's what I use for all other languages. > What do you like and hate about it? If there was something I hated about it, I wouldn't use it. > What platform(s)

Re: Best IDE?

2006-10-13 Thread limodou
On 10/13/06, Theerasak Photha <[EMAIL PROTECTED]> wrote: > On 13 Oct 2006 07:37:07 -0700, Bernard <[EMAIL PROTECTED]> wrote: > > IDE : SPE (Stani's python editor) : http://stani.be/python/spe/blog/ > > Why?: because this IDE is not complicated. it ships with a debugger, a > > gui designer, a source

Re: Starting out.

2006-10-13 Thread Andrew Poelstra
On Fri, 2006-10-13 at 07:26 -0700, Ahmer wrote: > From what I can see Python and PHP have VERY simillar syntax (sorry if > I offended anyone but I am a "n00b".) Two things: 1) Don't toppost. Your response should go after or interspersed with your quote, not above it. 2) You may be thinking of Perl

Re: Line algorithim for python and numeric

2006-10-13 Thread Paul McGuire
"Theerasak Photha" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 13 Oct 2006 07:33:17 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> > wrote: >> Hi everyone, >> >> I'm wondering if anyone knows of a way to extract data from a numeric >> array along a line. I have a gridded data

Re: Starting out.

2006-10-13 Thread Grant Edwards
On 2006-10-13, Andrew Poelstra <[EMAIL PROTECTED]> wrote: > On Fri, 2006-10-13 at 07:26 -0700, Ahmer wrote: >> From what I can see Python and PHP have VERY simillar syntax (sorry if >> I offended anyone but I am a "n00b".) > 2) You may be thinking of Perl, which has a very similar syntax to PHP.

Re: Line algorithim for python and numeric

2006-10-13 Thread Paul McGuire
"Tim Chase" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >>> I'm wondering if anyone knows of a way to extract data from a numeric >>> array along a line. I have a gridded dataset which I would like to be >>> able to choose two points and extract a 1-d array of the data values >>>

Re: Loops Control with Python

2006-10-13 Thread Jon Clements
Wijaya Edward wrote: > Can we make loops control in Python? > What I mean is that whether we can control > which loops to exit/skip at the given scope. > > For example in Perl we can do something like: > > OUT: > foreach my $s1 ( 0 ...100) { > > IN: > foreach my $s2 (@array) { > >

  1   2   3   >