Dex Tracker .011 beta (tracker for csound) released

2006-12-11 Thread edexter
Dex Tracker beta .11 is out new features include a code generater for a simple sampler utilities for combing all files in a .csd/.orc A utility to remove all instruments from a orc/sco combination. The ability to place a help file in a .html or .txt file (other formats may be added later). The

Re: merits of Lisp vs Python

2006-12-11 Thread Kaz Kylheku
Paddy wrote: http://en.wikipedia.org/wiki/Doctest I pity the hoplelessly anti-intellectual douche-bag who inflicted this undergraduate misfeature upon the programming language. This must be some unofficial patch that still has a hope of being shot down in flames, right? --

play video file

2006-12-11 Thread fabri16
hi... plase take me a simple code for a run a video file with tkinter??? or pymedia... thanks fabri -- http://mail.python.org/mailman/listinfo/python-list

doubt in curses module

2006-12-11 Thread pradeep kumar
hii, iam new to python. i want to use function keys in my program, so i went through the curses module, but in that module it shows a different window object and after pressing the our desired function key in it, that will return the ascii value of that key to the command prompt. so, i want to

Re: need guidance on sending emails with attachment with python.

2006-12-11 Thread krishnakant Mane
hi jonathan, it is understandable from your point of view I wont say you were rood. but my question was different. I am very new to doing programmed emails. all I need to know is that will I need to use outlook or any thing to send emails to pop3 or smtp? I want to know because I wont like to make

sys.stdin.encoding

2006-12-11 Thread aine_canby
The following line in my code is failing because sys.stdin.encoding is Null. This has only started happening since I started working with Pydef in Eclipse SDK. Any ideas? uni=unicode(word,sys.stdin.encoding) Thanks, Aine. -- http://mail.python.org/mailman/listinfo/python-list

Re: merits of Lisp vs Python

2006-12-11 Thread Ravi Teja
Kaz Kylheku wrote: Paddy wrote: http://en.wikipedia.org/wiki/Doctest I pity the hoplelessly anti-intellectual douche-bag who inflicted this undergraduate misfeature upon the programming language. This must be some unofficial patch that still has a hope of being shot down in flames,

Re: merits of Lisp vs Python

2006-12-11 Thread Juan R.
[EMAIL PROTECTED] ha escrito: - Lisp is hard to learn (because of all those parenthesis) I cannot understand why. It is like if you claim that packaging things in boxes is difficult to learn. HTML and XML have more brackets than LISP (usually double) for structuring data and everyone has

Re: sys.stdin.encoding

2006-12-11 Thread Duncan Booth
[EMAIL PROTECTED] wrote: The following line in my code is failing because sys.stdin.encoding is Null. I'll guess you mean None rather than Null. This has only started happening since I started working with Pydef in Eclipse SDK. Any ideas? uni=unicode(word,sys.stdin.encoding) You could

Re: merits of Lisp vs Python

2006-12-11 Thread Kaz Kylheku
Paddy wrote: Does Lisp have a doctest-like module as part of its standard distribution? No, and it never will. The wording you are using betrays cluelessness. Lisp is an ANSI standard language. Its distribution is a stack of paper. There isn't a ``standard distribution'' of Lisp any more than

Re: merits of Lisp vs Python

2006-12-11 Thread Tim Peters
[Paddy] http://en.wikipedia.org/wiki/Doctest [Kaz Kylheku] I pity the hoplelessly anti-intellectual douche-bag who inflicted this undergraduate misfeature upon the programming language. As a blind misshapen dwarf, I get far too much pity as it is, but I appreciate your willingness to share

Re: play video file

2006-12-11 Thread Godson
On 11 Dec 2006 00:10:59 -0800, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: hi... plase take me a simple code for a run a video file with tkinter??? or pymedia... thanks fabri -- http://mail.python.org/mailman/listinfo/python-list It cant be more simple than this but with pygame! most of

sovrascrivere

2006-12-11 Thread fabri16
ciao.. ho creato i tasti con le immagini def creaImmagine(self): img = tk.PhotoImage(file=self.ico1) b = tk.Button(root, image=img, command=self.allaPressione) b.pack(side='left',padx=25) b.configure (width=80, height=80) b.image = img mi resta solo un problema.. questo metodo

Re: sys.stdin.encoding

2006-12-11 Thread aine_canby
Duncan Booth skrev: [EMAIL PROTECTED] wrote: The following line in my code is failing because sys.stdin.encoding is Null. I'll guess you mean None rather than Null. This has only started happening since I started working with Pydef in Eclipse SDK. Any ideas?

Re: sys.stdin.encoding

2006-12-11 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: The following line in my code is failing because sys.stdin.encoding is Null. This has only started happening since I started working with Pydef in Eclipse SDK. Any ideas? uni=unicode(word,sys.stdin.encoding) That's a problem with pydev, where the standard

wxPython: Icon aus base64 decoded Image

2006-12-11 Thread Roland Rickborn
Hallo zusammen, in meine Anwendung ist ein Bild eingebettet und oben in der Leiste soll ein Icon erscheinen. Ausserdem will ich nur _eine_ Datei ausgeben, also ohne zusärtliche Bild-Dateien etc. Dazu habe ich das Bild in base64 codiert und als String im Skript gespeichert, siehe unten. Beim

Re: sys.stdin.encoding

2006-12-11 Thread Duncan Booth
[EMAIL PROTECTED] wrote: The call to sys.getdefaultencoding() returns ascii. Since I can enter the characters åöä on the command line in Pydef/Eclipse doesn't that mean that the stdin is not ascii? What should I do? I think that depends on what sort of script you are writing. If it is just

sovrascrivere

2006-12-11 Thread fabri16
ciao.. ho creato i tasti con le immagini def creaImmagine(self): img = tk.PhotoImage(file=self.ico1) b = tk.Button(root, image=img, command=self.allaPressione) b.pack(side='left',padx=25) b.configure (width=80, height=80) b.image = img mi resta solo un problema.. questo metodo

Re: sys.stdin.encoding

2006-12-11 Thread aine_canby
Duncan Booth skrev: [EMAIL PROTECTED] wrote: The call to sys.getdefaultencoding() returns ascii. Since I can enter the characters åöä on the command line in Pydef/Eclipse doesn't that mean that the stdin is not ascii? What should I do? I think that depends on what sort of script you

Re: sys.stdin.encoding

2006-12-11 Thread Leo Kislov
[EMAIL PROTECTED] wrote: Duncan Booth skrev: [EMAIL PROTECTED] wrote: The following line in my code is failing because sys.stdin.encoding is Null. I'll guess you mean None rather than Null. This has only started happening since I started working with Pydef in Eclipse SDK.

Re: merits of Lisp vs Python

2006-12-11 Thread Timofei Shatrov
On 11 Dec 2006 00:27:28 -0800, Ravi Teja [EMAIL PROTECTED] tried to confuse everyone with this message: That's a lot of hate in 2 sentences for judging a novel feature you barely came across. But, you have to admit that it looks horrible (at least at the first glance). If there's some

Re: merits of Lisp vs Python

2006-12-11 Thread Cliff Wells
On Sun, 2006-12-10 at 01:28 -0800, Kay Schluehr wrote: Who really wants to write web apps? Web apps are just an excuse for Pythonistas to write web frameworks. I've been lurking, waiting for the right moment to toss in my two cents, and finally, and here it is. I've been using Python

Re: sys.stdin.encoding

2006-12-11 Thread Leo Kislov
Martin v. Löwis wrote: [EMAIL PROTECTED] schrieb: The following line in my code is failing because sys.stdin.encoding is Null. This has only started happening since I started working with Pydef in Eclipse SDK. Any ideas? uni=unicode(word,sys.stdin.encoding) That's a problem with

Avoiding invalid literal for int() exception

2006-12-11 Thread aine_canby
v = raw_input(Enter: ) Enter: kjjkj int(v) Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid literal for int() with base 10: 'kjjkj' In my program I need to be able to enter char strings or int strings on the command line. Then I use an if-elif structure to

Re: merits of Lisp vs Python

2006-12-11 Thread Michele Simionato
Timofei Shatrov wrote: It's not surprising that no one uses this stuff for serious work. Well, I replaced all my unittests with doctests long ago, and I am not the only one following this way (see the Zope 3 project for instance). Michele Simionato --

Re: merits of Lisp vs Python

2006-12-11 Thread greg
[EMAIL PROTECTED] wrote: compilers are GREATLY facilitated by having a macro facility because (at first blush) all you need to do is to macro-expand down to something you know how to turn into code. There's no way you could compile Python to efficient machine code just by macro expansion.

Re: merits of Lisp vs Python

2006-12-11 Thread greg
Ken Tilton wrote: But with Lisp one does not have to clean up the indentation manually after thrashing away at ones code. That's not how I would describe the experience I have when I'm editing Python code. When moving a set of statements in Python, you are usually selecting a set of complete

How do I edit a PythonWin path to import custom built modules???

2006-12-11 Thread mohan
Hi Guys, I've been using the following IDE, Pythonwin - Python IDE and GUI Framework for Windows. Copyright 1994-2001 Mark Hammond With respect to my work, I had created my own modules (.py files) in drives and folders other than the python root. I know that if I need to import these modules,

Re: merits of Lisp vs Python

2006-12-11 Thread Ravi Teja
Timofei Shatrov wrote: But, you have to admit that it looks horrible (at least at the first glance). If there's some programming style that I absolutely can't stand, it would be the one where programmer writes a huge block of commentary describing what a function does, followed by one-liner

Re: merits of Lisp vs Python

2006-12-11 Thread Paddy
On Dec 11, 8:07 am, Kaz Kylheku [EMAIL PROTECTED] wrote: Paddy wrote: http://en.wikipedia.org/wiki/DoctestI pity the hoplelessly anti-intellectual douche-bag who inflicted this undergraduate misfeature upon the programming language. Oh wow! So much invective. So little reason. Doctest is

Re: Automatic debugging of copy by reference errors?

2006-12-11 Thread greg
Russ wrote: The copy by reference semantics of Python give it great efficiency but are also its achille's heel for tough-to-find bugs. You need to stop using the term copy by reference, because it's meaningless. Just remember that assignment in Python is always reference assignment. If you want

Re: merits of Lisp vs Python

2006-12-11 Thread Alex Mizrahi
(message (Hello 'Paul) (you :wrote :on '(10 Dec 2006 21:06:56 -0800)) ( ?? read the book. PR Which book? Paul Graham's On Lisp. or just refreshing your knowledge about CPS transformaction might be sufficient. i've found very good explanation of CPS transformaction in the book Programming

Re: Avoiding invalid literal for int() exception

2006-12-11 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], aine_canby wrote: elif uniList[0].lower() in (p,pass): break elif int(uniList[0]) in range(0,10): Replace this line with: elif uniList[0].isdigit() and 0 = int(uniList[0]) 10: verb.SetImportance(int(uniList[0])) break else:

Re: Avoiding invalid literal for int() exception

2006-12-11 Thread John Machin
[EMAIL PROTECTED] wrote: v = raw_input(Enter: ) Enter: kjjkj int(v) Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid literal for int() with base 10: 'kjjkj' In my program I need to be able to enter char strings or int strings on the command line.

Re: Avoiding invalid literal for int() exception

2006-12-11 Thread aine_canby
John Machin skrev: [EMAIL PROTECTED] wrote: v = raw_input(Enter: ) Enter: kjjkj int(v) Traceback (most recent call last): File stdin, line 1, in module ValueError: invalid literal for int() with base 10: 'kjjkj' In my program I need to be able to enter char strings or int

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Alex Mizrahi [EMAIL PROTECTED] writes: PR Which book? Paul Graham's On Lisp. Oh ok, someone mentioned that was online, and I just bookmarked it. I'll look at it when I'm more awake. Programming Languages:Application and Interpretation Shriram Krishnamurthi Brown University it's not

Pb ReportLab (ttfonts.py)

2006-12-11 Thread M�ta-MCI
Hi! I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have: C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack(LLL, checksum, offset, len(data))) C:\Python25\reportlab\pdfbase\ttfonts.py:419:

Re: merits of Lisp vs Python

2006-12-11 Thread rdiaz02
Maybe this was already mentioned in this thread and I didn't see it. Anyway, I find that Scheme (so I am talking about Scheme as a member of the lisp family) has pedagogical advantages over Python. 1. There are a range of excellent books that will introduce not just Scheme but programming and

Re: merits of Lisp vs Python

2006-12-11 Thread Michele Simionato
Paul Rubin wrote: Alex Mizrahi [EMAIL PROTECTED] writes: Programming Languages:Application and Interpretation Shriram Krishnamurthi Brown University This book doesn't seem to be online. http://cs.brown.edu/~sk/Publications/Books/ProgLangs/ Michele Simionato --

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Michele Simionato [EMAIL PROTECTED] writes: Programming Languages:Application and Interpretation Shriram Krishnamurthi Brown University This book doesn't seem to be online. http://cs.brown.edu/~sk/Publications/Books/ProgLangs/ Thanks! --

Re: merits of Lisp vs Python

2006-12-11 Thread Dmitry V. Gorbatovsky
[EMAIL PROTECTED] wrote: I challenge anyone making psychological claims about language X (for any X) being easier to either read/learn/use than language Y (for any Y) to come up with any valid evidence whatever. Put aside,that I don't understand meaning of term psychological claim in that

Re: need guidance on sending emails with attachment with python.

2006-12-11 Thread Bernard
here's the function I've been using for while :P import smtplib from email.MIMEMultipart import MIMEMultipart from email.MIMEBase import MIMEBase from email.MIMEText import MIMEText from email.Utils import COMMASPACE, formatdate from email import Encoders def sendMail(arrRecipients, sender,

Re: merits of Lisp vs Python

2006-12-11 Thread Alex Mizrahi
(message (Hello 'Paul) (you :wrote :on '(11 Dec 2006 04:14:20 -0800)) ( ?? optimizing language. i think it's called trampolined style. ?? example can be found in PAIP book: interpreter of Scheme is implemented in PR This book doesn't seem to be online. But anyway I think you mean, PR

Re: merits of Lisp vs Python

2006-12-11 Thread André Thieme
Steven D'Aprano schrieb: On Sat, 09 Dec 2006 14:57:08 -0500, Bill Atkins wrote: Paul Rubin http://[EMAIL PROTECTED] writes: There is just not that much boilerplate in Python code, so there's not so much need to hide it. Well, of course there is. There are always going to be patterns in

Re: Pb ReportLab (ttfonts.py)

2006-12-11 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Méta-MCI wrote: Hi! I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have: C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack(LLL, checksum, offset, len(data)))

Re: About alternatives to Matlab

2006-12-11 Thread Jon Harrop
[EMAIL PROTECTED] wrote: On 10.12.2006, at 11:23, Jon Harrop wrote: F# addresses this by adding operator overloading. However, you have to add more type annotations... That sounds interesting, but I'd have to see this in practice to form an opinion. As long as F# is a Windows-only language,

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Alex Mizrahi [EMAIL PROTECTED] writes: PR the different macros being used. But I think I understand one part of PR what was confusing me before: your call/cc macros depend on a PR nonstandard feature of some CL implementations. no, it's standard Common Lisp. it's an ARNESI library. it's

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Paul Rubin http://[EMAIL PROTECTED] writes: (defun sum_to_n (n optional (acc 0)) ;; (sum_to_n n) computes sum of integers from 0 to n (if (= n 0) 0 (sum_to_n (- 1 n) (+ n acc Of course meant: (defun sum_to_n (n optional (acc 0)) ;;

Re: Pb ReportLab (ttfonts.py)

2006-12-11 Thread Fredrik Lundh
Méta-MCI wrote: I try to generate PDF from Python 2.5 + ReporLab_lib, and, I have: C:\Python25\reportlab\pdfbase\ttfonts.py:407: DeprecationWarning: struct integer overflow masking is deprecated stm.write(pack(LLL, checksum, offset, len(data)))

Re: About alternatives to Matlab

2006-12-11 Thread Jon Harrop
Carl Banks wrote: Jon Harrop wrote: What about translating the current Python interpreter into a language with a GC, like MLton-compiled SML? That would probably make it much faster, more reliable and easier to develop. I doubt it would work too well. MLton-compiled SML's semantics differ

Re: About alternatives to Matlab

2006-12-11 Thread Paul Rubin
Jon Harrop [EMAIL PROTECTED] writes: F# runs under Linux with Mono. Interesting, where do I get it, and is there source? I've never been interested in Mono but maybe this is a reason. How does the compiled code compare to OCaml or MLton code? --

Re: About alternatives to Matlab

2006-12-11 Thread Paul Rubin
Jon Harrop [EMAIL PROTECTED] writes: That's not what I meant. I was referring to translating the Python _interpreter_ into another language, not translating Python programs into other languages. MLton-compiled SML is especially fast at symbolic manipulation, e.g. interpreters, so it will be

Re: merits of Lisp vs Python

2006-12-11 Thread philip . armitage
Juan R. wrote: [EMAIL PROTECTED] ha escrito: - Lisp is hard to learn (because of all those parenthesis) I cannot understand why. It is like if you claim that packaging things in boxes is difficult to learn. HTML and XML have more brackets than LISP (usually double) for structuring data

A Call to Arms for Python Advocacy

2006-12-11 Thread Jeff Rush
As the Python Advocacy Coordinator, I've put up some wiki pages on the Python website for which I'm soliciting ideas, writing and graphics. Some of the material exists scattered about and just needs locating and organizing. http://wiki.python.org/moin/Advocacy First there is a need for

Re: merits of Lisp vs Python

2006-12-11 Thread André Thieme
Steven D'Aprano schrieb: With Lisp macros, even that isn't guaranteed. Now, if Lispers would say Oh yes, macros give you great power, and with great power comes great responsibility. Be careful. Well, macros are one (big) thing that Lisp has and which many other languages don't have. Their

Re: merits of Lisp vs Python

2006-12-11 Thread André Thieme
Bill Atkins schrieb: Bill Atkins [EMAIL PROTECTED] writes: every corner of the language? Please. Why are you so post-happy when it's quite obvious that you don't know enough about Lisp to attack it? In addition to macros that define classes or methods, a common macro is the WITH-*

Re: merits of Lisp vs Python

2006-12-11 Thread Bill Atkins
Paddy [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: Python has to rely more on using the right algorithm... This sound familiar: Macros are dangerous! Yes. I changed my opinion on advocating Python having macros in one of our long threads on the subject. Maintainance counts. Yes, it

Re: merits of Lisp vs Python

2006-12-11 Thread André Thieme
Paul Rubin schrieb: Steven D'Aprano [EMAIL PROTECTED] writes: Now, if you want to tell me that, despite all the talk, Lisp coders don't actually create new syntax or mini-languages all that often, that they just use macros as functions, then the question becomes: why do you need macros then

Re: Automatic debugging of copy by reference errors?

2006-12-11 Thread Beliavsky
Carl Banks wrote: Niels L Ellegaard wrote: Marc 'BlackJack' Rintsch wrote: In [EMAIL PROTECTED], Niels L Ellegaard wrote: I have been using scipy for some time now, but in the beginning I made a few mistakes with copying by reference. But copying by reference is the way Python

Re: merits of Lisp vs Python

2006-12-11 Thread Bill Atkins
greg [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: compilers are GREATLY facilitated by having a macro facility because (at first blush) all you need to do is to macro-expand down to something you know how to turn into code. There's no way you could compile Python to efficient machine

Newbie: Installing packages on windows

2006-12-11 Thread bg_ie
Hi, I'm reading the python tutorials on docs.python.org, but I'm still not sure how install a package. I have downloaded pylint in zip form from www.logilab.org, but I'm unsure what to do with it. The file I wish to test (i.e. the file I have writen myself) is located in C:\Python25\ Hope you

Re: merits of Lisp vs Python

2006-12-11 Thread Bill Atkins
greg [EMAIL PROTECTED] writes: When moving a set of statements in Python, you are usually selecting a set of complete lines, cutting them out and then pasting them in between two other lines somewhere else. You're missing Ken's point, which is that in Lisp an s-expression represents a single

Re: merits of Lisp vs Python

2006-12-11 Thread Juan R.
[EMAIL PROTECTED] ha escrito: Juan R. wrote: [EMAIL PROTECTED] ha escrito: - Lisp is hard to learn (because of all those parenthesis) I cannot understand why. It is like if you claim that packaging things in boxes is difficult to learn. HTML and XML have more brackets than LISP

Re: alternate language

2006-12-11 Thread Lou Pecora
In article [EMAIL PROTECTED], Bryan [EMAIL PROTECTED] wrote: what is a good alternate language to learn? i just want something to expand my mind and hopefully reduce or delay any chance of alzheimer's. i would especially like to hear from those of you who learned python _before_ these

Re: merits of Lisp vs Python

2006-12-11 Thread Kay Schluehr
[EMAIL PROTECTED] schrieb: Now, speaking as a scientist, permit me to make a small practical suggestion: Why not just figure out a way to simplify some brand of Python -- make parens (or whatever) optionally replace whitespace and line breaks as syntax -- and then add a simple macro facility

Re: merits of Lisp vs Python

2006-12-11 Thread Paddy
On Dec 11, 2:17 pm, Bill Atkins [EMAIL PROTECTED] wrote: Paddy [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: Python has to rely more on using the right algorithm... This sound familiar: Macros are dangerous! Yes. I changed my opinion on advocating Python having macros in one

Re: Automatic debugging of copy by reference errors?

2006-12-11 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Beliavsky wrote: ISTM the big catch for Fortran programmers is when a mutable container is referenced from multiple places; thus a change via one reference will confusingly show up via the other one. As a Fortranner, I agree. Is there an explanation online of why

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Bill Atkins [EMAIL PROTECTED] writes: There's no way you could compile Python to efficient machine code just by macro expansion. You'd also need some very heavy-duty type inferencing. When I used to use Ruby a lot, I believed this line that the Ruby community fed itself (and apparently

Re: How do I edit a PythonWin path to import custom built modules???

2006-12-11 Thread BartlebyScrivener
mohan wrote: I had created my own modules (.py files) in drives and folders other than the python root. Probably easiest if you keep them all in one place. Then add that place to your path by going into Control Panel|System|Advanced|Environment Variables and adding the path to the path

Encapsulating conditional execution based on list membership - how do you do it?

2006-12-11 Thread metaperl
I have a series of scripts which retrieve files. None of these scripts should continue if the file to be retrieved already exists in the archive. Here is the code: if f in path(self.storage.archive).files('*'): print f, exists in archive. Not continuing

Re: merits of Lisp vs Python

2006-12-11 Thread Marc 'BlackJack' Rintsch
In [EMAIL PROTECTED], Kay Schluehr wrote: Once an easy to use metaprogramming system could be done for Python it could be ported with some adaptions to other languages with more complicated syntax ( non LL(1) parsable ). FYI: Here's how Nemerle does macros: http://nemerle.org/Macros I guess

ElementTree, XML and Unicode -- C0 Controls

2006-12-11 Thread Sébastien Boisgérault
Hi all, The unicode code points in the -001F range -- except newline, tab, carriage return -- are not legal XML 1.0 characters. Attempts to serialize and deserialize such strings with ElementTree will fail: elt = Element(root, char=u\u) xml = tostring(elt) xml 'root char=\x00 /'

SSH File Transfer Protocol or SFTP

2006-12-11 Thread Lad
Is there a module in Python available that I can use for uploading files via SFTP (SSH File Transfer Protocol)? Or do you think that FTP protocol for files uploading is OK? Thank you for replies Lad. -- http://mail.python.org/mailman/listinfo/python-list

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jean-Paul Calderone
On 11 Dec 2006 07:29:27 -0800, Lad [EMAIL PROTECTED] wrote: Is there a module in Python available that I can use for uploading files via SFTP (SSH File Transfer Protocol)? Or do you think that FTP protocol for files uploading is OK? Thank you for replies Lad. Twisted Conch includes support

Rinning Excel macro's with Jython?

2006-12-11 Thread smkhalamayzer
Is there a way to run Excel macro's with jython? Similar to the win32com in python? Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Jan Dries
Lad wrote: Is there a module in Python available that I can use for uploading files via SFTP (SSH File Transfer Protocol)? Or do you think that FTP protocol for files uploading is OK? Thank you for replies Lad. You probably want Paramiko (http://www.lag.net/paramiko/). It provides

Re: Pyparsing troubles

2006-12-11 Thread Harry George
[EMAIL PROTECTED] writes: Hello, I have written a small pyparsing parser to recognize dates in the style november 1st. I wrote something to the effect of: expression = task + date and tried to parse Doctor's appointment on november 1st, hoping that task would be Doctor's appointment and

Re: merits of Lisp vs Python

2006-12-11 Thread Espen Vestre
Paul Rubin http://[EMAIL PROTECTED] writes: If you say foo.frob() in Python, that's supposed to look up 'frob' in a dictionary hanging off of foo. You can modify the contents of this dictionary any time you want. You can redefine CLOS methods at run time any time you like, so this doesn't

Re: ElementTree, XML and Unicode -- C0 Controls

2006-12-11 Thread Fredrik Lundh
Sébastien Boisgérault wrote: Could anyone comment on the rationale behind the current behavior ? Is it a performance issue, the search for non-valid unicode code points being too expensive ? the default serializer doesn't do any validation or well-formedness checks at all; it assumes that

Re: SSH File Transfer Protocol or SFTP

2006-12-11 Thread Avell Diroll
Lad wrote: Is there a module in Python available that I can use for uploading files via SFTP (SSH File Transfer Protocol)? Or do you think that FTP protocol for files uploading is OK? Thank you for replies Lad. I believe there are many of those, personally i am using paramiko :

Re: merits of Lisp vs Python

2006-12-11 Thread Jan Dries
Bill Atkins wrote: greg [EMAIL PROTECTED] writes: On the plus side, Python makes less demands on the capabilities of the editor. All you really need is block-shifting commands. Bracket matching is handy for expressions but not vital, and you certainly don't need bracket-based auto-indenting.

Re: merits of Lisp vs Python

2006-12-11 Thread Kay Schluehr
Marc 'BlackJack' Rintsch schrieb: In [EMAIL PROTECTED], Kay Schluehr wrote: Once an easy to use metaprogramming system could be done for Python it could be ported with some adaptions to other languages with more complicated syntax ( non LL(1) parsable ). FYI: Here's how Nemerle does

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Espen Vestre [EMAIL PROTECTED] writes: If you say foo.frob() in Python, that's supposed to look up 'frob' in a dictionary hanging off of foo. You can modify the contents of this dictionary any time you want. You can redefine CLOS methods at run time any time you like, so this doesn't

Re: merits of Lisp vs Python

2006-12-11 Thread Paul Rubin
Marc 'BlackJack' Rintsch [EMAIL PROTECTED] writes: FYI: Here's how Nemerle does macros: http://nemerle.org/Macros I guess you can't really transform Nemerle into a completely different language, but it is at least interesting to see such a feature in language with a more complex syntax than

Re: merits of Lisp vs Python

2006-12-11 Thread [EMAIL PROTECTED]
Bill Atkins wrote: On the plus side, Python makes less demands on the capabilities of the editor. All you really need is block-shifting commands. Bracket matching is handy for expressions but not vital, and you certainly don't need bracket-based auto-indenting. Oh, please. So we

Help with weave.blitz()

2006-12-11 Thread monkeyboy
Hello, I'm a new scipy user, and I'm trying to speed up some array code with weave. I'm running xp with gcc from cgywin, and scipy.weave.test() returns an OK status. I'm trying to speed up the code below. I've found a couple of examples of weave on the web, and I think it should be straight

Re: alternate language

2006-12-11 Thread Aahz
In article [EMAIL PROTECTED], Lou Pecora [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Bryan [EMAIL PROTECTED] wrote: what is a good alternate language to learn? i just want something to expand my mind and hopefully reduce or delay any chance of alzheimer's. i would especially like

Help with install python-mysql lib on OS X

2006-12-11 Thread scum
How do you install MySQL-python on a PPC OS X 10.4 machine with MySQL 4.1? And I know about the precompiled binary at macpython.org... I'm just sick of getting this warning Python 2.5 (r25:51918, Sep 19 2006, 08:49:13) [GCC 4.0.1 (Apple Computer, Inc. build 5341)] on darwin Type help,

RE: merits of Lisp vs Python

2006-12-11 Thread Michael . Coll-Barth
After 394 postings in this thread, you all have convinced me. I am dropping all of my python code and switching to Lisp. thank-you The information contained in this message and any attachment may be proprietary, confidential, and privileged or subject to the work product doctrine and thus

Re: wxPython: Icon aus base64 decoded Image

2006-12-11 Thread Bjoern Schliessmann
Roland Rickborn wrote: Wo ist der Fehler und was muss ich machen, damit das Icon angezeigt wird? I'm sorry that I can't help you, but you'll probably get more answers if you write again in English (this is comp.lang.python). Grüße, Björn -- BOFH excuse #126: it has Intel Inside --

Re: merits of Lisp vs Python

2006-12-11 Thread Fred Gilham
Paul Rubin http://[EMAIL PROTECTED] writes: André Thieme [EMAIL PROTECTED] writes: Instead of function = memoize(function) one could just say: memoize(function). In Python you'd say @memoize def function(): ... But in Lisp you'd write the function, say, Damn, I need to memoize

Re: merits of Lisp vs Python

2006-12-11 Thread [EMAIL PROTECTED]
Kay Schluehr wrote: [Interesting and useful analysis of issues in language homogenization snipped.] You might even get a compiler out of the deal, at a pretty low cost, too! If you get macros, and get a compiler, I'm pretty sure that you will have no problem winning over the Lisp

Re: merits of Lisp vs Python

2006-12-11 Thread Michael Livshin
Paul Rubin http://[EMAIL PROTECTED] writes: Nobody seems to concerned that Haskell lacks macros. What's up with that? Haskell is lazy, so it doesn't need macros (well, it would be more accurate to say that by not evaluating function arguments until they are needed it makes many of the usual

Re: merits of Lisp vs Python

2006-12-11 Thread André Thieme
Steven D'Aprano schrieb: On Sat, 09 Dec 2006 22:41:12 -0500, Ken Tilton wrote: I know that. It was more of a rhetorical question -- Lispers are either trying to emphasis the radical nature of what you can do with macros, or understate it and make them seem just like functions. Yep, both.

Re: alternate language

2006-12-11 Thread Lou Pecora
In article [EMAIL PROTECTED], [EMAIL PROTECTED] (Aahz) wrote: In article [EMAIL PROTECTED], Lou Pecora [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Bryan [EMAIL PROTECTED] wrote: what is a good alternate language to learn? i just want something to expand my mind and

Re: Newbie: Installing packages on windows

2006-12-11 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: I'm reading the python tutorials on docs.python.org, but I'm still not sure how install a package. I have downloaded pylint in zip form from www.logilab.org, but I'm unsure what to do with it. The file I wish to test (i.e. the file I have writen myself) is located in

Re: alternate language

2006-12-11 Thread Michele Simionato
Bryan wrote: what is a good alternate language to learn? i just want something to expand my mind and hopefully reduce or delay any chance of alzheimer's. i would especially like to hear from those of you who learned python _before_ these languages. haskell, erlang, ocaml, mozart/oz, rebel,

How can I get involved

2006-12-11 Thread Prateek
Hey all, I'm messaging this group for the first time. Basically I've been a (pretty intensive) Python programmer for the past 2 years. I started a software company which has just released an SDK (v1.0b - developer preview) for developing web applications in Python. Key points: 1) It comes with a

os.popen3 hangs in Windows XP SP1, SP2. Python 2.5 2.4. Consistent test case.

2006-12-11 Thread Pierre Rouleau
Hi all, I have a consistent test case where os.popen3() hangs in Windows. The system hangs when retrieving the lines from the child process stdout. I know there were several reports related to os.popen3() hanging under Windows in this group before. I stumbled on a case where a piece of code

Re: Automatic debugging of copy by reference errors?

2006-12-11 Thread Russ
greg wrote: You need to stop using the term copy by reference, because it's meaningless. Just remember that assignment I agree that copy by reference is a bad choice of words. I meant pass by reference and assign by reference. But the effect is to make a virtual copy, so although the phrase

  1   2   3   >