Re: does anybody earn a living programming in python?

2006-09-25 Thread Max M
walterbyrd skrev: > If so, I doubt there are many. > > I wonder why that is? Because you are ignorant? -- http://mail.python.org/mailman/listinfo/python-list

Re: A critique of cgi.escape

2006-09-26 Thread Max M
Lawrence D'Oliveiro skrev: > In message <[EMAIL PROTECTED]>, Gabriel G > wrote: > >> At Monday 25/9/2006 11:08, Jon Ribbens wrote: >> > What precisely do you think it would "break"? existing code, and existing tests. >>> I'm sorry, that's not good enough. How, precisely, would it break >>

Re: builtin regular expressions?

2006-10-01 Thread Max M
rrently /underrated/ in the Python community. Or, > I suspect, everybody disrespects them in public but secretly use them when > they're hacking ;-) When I used to program in Perl I used regex' for lots of stuff. In python I probably use them once every half year.

Re: Making posts to an ASP.NET webform.

2006-10-02 Thread Max M
Bernard skrev: > Has anyone tried what I'm doing? and if you tried how have you > succeeded getting the data back after the post action? Most likely you get assigned a cookie that you then need to return. Try the cookielib which automates all this for you. -- http://mail.python.org/mailman/list

Re: Email headers and non-ASCII characters

2006-11-23 Thread Max M
irst string Why offcourse? But it seems that you are passing the Header object a utf-8 encoded string, not a latin-1 encoded. You are telling the header the encoding. Not asking it to encode. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Email headers and non-ASCII characters

2006-11-24 Thread Max M
Christoph Haas skrev: > On Thursday 23 November 2006 16:31, Max M wrote: >> Christoph Haas skrev: >>> Hello, everyone... >>> >>> I'm trying to send an email to people with non-ASCII characters in >>> their names. A recpient's address

Re: Ensure a variable is divisible by 4

2006-12-05 Thread Max M
; >>> x = 111 >>> x = (x /4) * 4 X *= 4 ;-) -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

write an update manager in python/wxPython

2006-12-07 Thread m . errami
Hello all I have a small application for which I would like to write an update manager. I assume that the basics of it is to compare versions of the user's current application and a new one store in a new file on a particular URL. Now is there any standard way to do that. I am sure I can figure out

Re: write an update manager in python/wxPython

2006-12-07 Thread m . errami
Will & Gabriel Well I will then think of something. Thank you very much. I do appreciate your help. M.E. [EMAIL PROTECTED] wrote: > On 7 dic, 19:04, Will McGugan <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > I have a small application for which I would like to write an update > >

Re: Is there a way to push data into Ical from Python ?

2006-12-18 Thread Max M
ttp://www.google.dk/search?q=python+icalendar -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: code optimization (calc PI) / Full Code of PI calc in Python and C.

2007-01-03 Thread Michael M.
Ok, here is the code. It is a translation of the following code, found on the internet. * The C is very fast, Python not. * Target: Do optimization, that Python runs nearly like C. Auf 800 Stellen in 160 Zeichen... -- int a=1,b,c=2800,d,e,f[2801],g;main(){for(;b-c;)f[b++]=a/5; for

Re: code optimization (calc PI) / New Algorithme for PI

2007-01-04 Thread Michael M.
Mainly, it was fload-div. Changed to int-div (python //) runs faster. Yes, this "gmpy" sounds good for calc things like that. But not available on my machine. ImportError: No module named gmpy Anyway, thanks for posting. This gmpy module can be very intersting. But right now, the focus was, if i

Re: code optimization (calc PI) / New Algorithme for PI

2007-01-04 Thread Michael M.
[EMAIL PROTECTED] wrote: >>Yes, this "gmpy" sounds good for calc things like that. >>But not available on my machine. >>ImportError: No module named gmpy > > > What type of machine? Windoof with Cygwin. > > The home page for gmpy is http://sourceforge.net/projects/gmpy/ > > I have Windows ve

Python re expr from Perl to Python

2007-01-06 Thread Michael M.
In Perl, it was: ## Example: "Abc | def | ghi | jkl" ## -> "Abc ghi jkl" ## Take only the text betewwn the 2nd pipe (=cut the text in the 1st pipe). $na =~ s/\ \|(.*?)\ \|(.*?)\ \|/$2/g; ## -- remove [ and ] in text $na =~ s/\[//g; $na =~ s/\]//g; # print "DEB: \"

how to find the longst element list of lists

2007-01-07 Thread Michael M.
How to find the longst element list of lists? I think, there should be an easier way then this: s1 = ["q", "e", "d"] s2 = ["a", "b"] s3 = ["a", "b", "c", "d"] if len(s1) >= len(s2) and len(s1) >= len(s3): sx1=s1 ## s1 ist längster if len(s2) >= len(s3): sx2=s2

Re: how to find the longst element list of lists

2007-01-07 Thread Michael M.
> > Err... this makes three distinct lists, not a list of lists. > Sure. Logically spoken. Not in Python code. Or a number of lists. Sure not [[ bla... ] [bla.]] etc. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find the longst element list of lists

2007-01-07 Thread Michael M.
Bruno Desthuilliers wrote: > > Err... this makes three distinct lists, not a list of lists. > Sure. Logically spoken. Not in Python code. Or a number of lists. Sure not [[ bla... ] [bla.]] etc. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find the longst element list of lists

2007-01-07 Thread Michael M.
Sorry, wrong place. -- http://mail.python.org/mailman/listinfo/python-list

Re: where is python on linux?

2007-01-08 Thread Michael M.
$ whoami cannibal ;-) Hendrik van Rooyen wrote: > "rzed" <[EMAIL PROTECTED]> wrote: > > > >>mmm... sloppy joes >> >>-- >>rzed >> >>"A sandwich is a sandwich, but a Manwich is a meal." > > > You eat people? > > - Hendrik > > -- http://mail.python.org/mailman/listinfo/python-l

Re: Redirecting stdin/stdout to self

2006-01-23 Thread Dan M
>>> And if I'm reading it correctly, the Perl >>> script's process starts tcpdump, but redirects its output to its own >>> input, and reads it line by line. And to clarify, what the Perl script is doing is redirecting the standard error to standard out. STDIN is file handle 0, STDOUT is file handl

Re: Webmail with Python

2006-02-06 Thread Max M
iler written > in python? This also requires Plone, so it might be a bit heavyweight for your needs: http://www.mxm.dk/products/public/mxmImapClient/ -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: script to read emails and extract attachments from cron

2006-02-06 Thread Dan M
On Mon, 06 Feb 2006 10:57:23 -0800, [EMAIL PROTECTED] wrote: > Hi: > > I am looking for advice on the best way to set up a process to read > incoming emails (from a normal unix mailbox on the same host) > containing a gzipped telemetry attachment. I'd like the script to > extract the attachment i

Re: Code Feedback

2006-02-06 Thread Dan M
> 2) Anybody know how to alter the "while 1: pass" section to make the > app stoppable? That one I think I can help with! See below. > while 1: pass try: while 1: pass except KeyboardInterrupt: break -- http://mail.python.org/mailman/listinf

os.mkdir simple help

2006-02-18 Thread m . wanstall
Hi there, I'm totally new to Python and was wondering why I was getting an error for this. I'm just trying to create a folder based on user input: import os def setupProject(project): os.mkdir(project) os.chdir(project) test = input("Please enter project name: ") setupProject(test) If

Re: os.mkdir simple help

2006-02-19 Thread m . wanstall
That's got it, thanks Steven! -- http://mail.python.org/mailman/listinfo/python-list

Re: Zope 3?? How do you start it on Windows?

2006-02-21 Thread Max M
py Make a Zope instance with Python24\Scripts\mkzopeinstance.bat Start that instance by running /bin/runzope.bat -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: groupwise send mail

2006-02-25 Thread Max M
thon to be called > oMail.send() > gwApp.quit() Otherwise you are just adressing the objects eg. this is perfectly ok: send = oMail.send send() or q = gwApp.quit q() -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Read / Write image file

2005-05-03 Thread Max M
ing something like.. > > x = open("abc.jpg") > y = x.read() > tmp = open("newFile.jpg", "w") > tmp.write(y) > tmp.close() > x.close() > > ...but that doesn't give me a copy of abc.jpg > > any ideas? Thanks > x = open("abc

Re: [Plone] DTML instead of ZPT for PHPParse

2005-05-03 Thread Max M
master"> > > > > HERE IS MY DYNAMIC PHP: > > > > > > I need to use DTML instead of ZPT because PHPParse product cannot work with > ZPT. :( Just an idea, cant you put the PHP into a dtml method that you the

Re: PHPParser pod Zope

2005-05-04 Thread Max M
omething like that. And if somebody knows the language he speaks, then >>a pointer to an appropiate list would be usefull. As far as I know, there is no rule that you have to use english in this forum. But it is a lot easier to get answers if you do. -- hilsen/regards Max M, De

Re: Trouble saving unicode text to file

2005-05-09 Thread Max M
Fredrik Lundh wrote: > (I just noticed that there's no euro sign on my swedish keyboard. I've > never missed it ;-) It's probably "AltGR + E" like here in DK -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Unique Elements in a List

2005-05-10 Thread Max M
Fredrik Lundh wrote: > depending on the data, it might be more efficient to store the > "last seen index" in a dictionary, and sort the result on the way > out (if necessary). something like form sets import Set data = list(Set([0.1,0.5,0.6,0.4,0.1,0.5,0.6,0.9])) -- h

Re: Unique Elements in a List

2005-05-10 Thread Max M
Fredrik Lundh wrote: > Max M wrote: > > >>>depending on the data, it might be more efficient to store the >>>"last seen index" in a dictionary, and sort the result on the way >>>out (if necessary). something like >> >>form sets import

Re: Regarding Mail sending Module

2005-05-10 Thread Max M
already gone through MimeWriter,smtplib and so > on. But I can't get clear details. so if anyone know > regarding this kindly give me answer You need the 'email' module for reading and writing email messages, and the 'smtplib' module for sending them. -- hilsen

Merging overlapping spans/ranges

2005-05-10 Thread Max M
2005, 1, 1, 9, 0, 0), datetime(2005, 1, 1, 14, 0, 0))) ms.add((datetime(2005, 1, 1, 12, 0, 0), datetime(2005, 1, 1, 17, 0, 0))) print ms.spans -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Merging overlapping spans/ranges

2005-05-11 Thread Max M
with regards to size of "search window" and number of events. Bengts/Jims and Jordans solutions seems to be relatively similar. I will use one of those instead of my own code. Thanks! -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.pyth

Re: processing a Very Large file

2005-05-17 Thread Steve M
I'm surprised you didn't recommend to use ZODB. Seems like an ideal way to manage this large amount of data as a collection of Python objects... -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python suitable for a huge, enterprise size app?

2005-05-18 Thread Steve M
This thread: http://mail.python.org/pipermail/python-dev/2005-January/051255.html discusses the problem with memory allocation in CPython. Apparently CPython is not good at, or incapable of, releasing memory back to the operating system. There are ways to compensate for this. I guess the comment

Re: Markov chain with extras?

2005-05-19 Thread Max M
[EMAIL PROTECTED] wrote: I want to use it for music. So given list 1 (melody), list 2 (chords) could be generated by a Markov chain. Also, given the chords the melody could be generated again by a chain. I have this small module, that can be used for markov chains. -- hilsen/regards Max M

Re: ZODB memory problems (was: processing a Very Large file)

2005-05-22 Thread Steve M
class ExtendedTupleTable(Persistent): def __init__(self): self.interning = ObjectInterning() # This Set stores all generated ExtendedTuple objects. self.ets = Set() # et(s): ExtendedTuple object(s) # This dictionary stores a mapping of elements to Sets of

Re: Parsing XML - Newbie help

2005-05-22 Thread Dan M
Hi rh0dium wrote: > I am relatively new to python and certainly new to XML parsing. Me too. However there are plenty of good docs/tutorials available to help with both XML and using it in Python. For XML you may wish to look at http://www.w3schools.com/. It has a very accessible set of tutor

The need to put "self" in every method

2005-05-31 Thread Fernando M.
Hi, i was just wondering about the need to put "self" as the first parameter in every method a class has because, if it's always needed, why the obligation to write it? couldn't it be implicit? Or is it a special reason for this being this way? Thanks. -- http://mail.python.org/mailman/listinf

Re: Pressing A Webpage Button

2005-06-01 Thread Steve M
Do you actually need to 'press' the button? Or do you just need the effect that pressing the button would bring about (e.g., submitting a Google search query and receiving the results page)? If the latter, then you might want to search for, e.g., "html form get post" and check out some results. Pu

Re: The need to put "self" in every method

2005-06-01 Thread Max M
lf to a could have made it obvious: def __add__(self, b): a = self return Vector((a.x+b.x), (a.y+b.y), (a.z+b.z)) -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: The need to put "self" in every method

2005-06-01 Thread Max M
Aahz wrote: > [posted & e-mailed] > Any objection to swiping this for the FAQ? (Probably with some minor > edits.) I think it is missing the most important reason, that functions can act as unbound methods. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Ma

Re: how to export data from ZODB to text files

2005-06-08 Thread Max M
nt to export from, you only need to write an external method in Zope to export the data you want. Its pretty easy that way. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: \r\n or \n notepad editor end line ???

2005-06-08 Thread Max M
; > I get h : ['Helo\n', 'World'] > > I thought notepad use \r\n to to end the line. > > What's wrong with it? Python tries to be clever. Open it in binary mode to avoid it: FName = open(d:\myfile.txt,'rb') -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Tabnanny?

2005-06-08 Thread Anna M.
Hello, i am very new to this.  Only heard of python a week ago and have never posted before anywhere.  But I am trying to rewrite a program that I made in C++ in Python, a radixSort I did as a school project.  I get a Tabnanny Tokenizing Error that says Token Error: EOF in multi-line statem

RE: Tabnanny?

2005-06-08 Thread Anna M.
see what is happening. > >See ya ! > >Em Quarta 08 Junho 2005 23:36, Anna M. escreveu: >> Hello, i am very new to this. Only heard of python a week ago and have >> never posted before anywhere. But I am trying to rewrite a program that >I >> made in C++ in Pyth

Re: Overcoming herpetophobia (or what's up w/ Python scopes)?

2005-06-17 Thread Steve M
This link seems to be about Closures in Python, but I am not feeling sharp enough at the moment to evaluate the correctness of the discussion. http://en.wikipedia.org/wiki/Python_programming_language#Closures As others have said, you might get more useful responses if you can elaborate upon what

Re: speeding things up with C++

2007-06-01 Thread Max M
oured with python and had > better develop an arsenal of tricks for the rare times when it's just > not fast enough. A dash of c combined integrated via ctypes is probably the easiest solution? -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http:/

A different debugger

2007-07-05 Thread M Friedeman
Try a different type of debugger. This one does not need you to set breakpoints. Run the program once and after that everything is available to you. You then just scroll to any line you're interested in and click the variable. It requires Firefox and Python 2.5. http://codeinvestigator.googlepa

C Python Network Performance

2007-07-11 Thread GM M
Hello, I am writing an application bulk of which is sending and receving UDP data. I was evaluating which language will be a better fit for the job. I wrote following small pieces of code in Python and C respectively: from socket import * import sys if __name__ == '__main__': s = socket(AF

Re: getting scancodes

2007-04-25 Thread Andrés M .
>From: faulkner <[EMAIL PROTECTED]> >To: python-list@python.org >Subject: Re: getting scancodes >Date: 25 Apr 2007 14:02:59 -0700 > >On Apr 23, 8:39 pm, [EMAIL PROTECTED] wrote: > > Anyone knows if its possible to get scan codes ??? > > I tried with getch () but with no success, just keycodes. > >

Re: Parsing HTML/XML documents

2007-04-26 Thread Max M
at all. Just inefficient xpath expressions. That is pretty good in my book. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Cgi File Upload without Form

2007-04-28 Thread Max M
lieve that would be more difficult than necessary. The client > program I have to use does not support FTP. Try out urllib2 -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Calling Exe from Python

2007-05-02 Thread M Abbas
Hello Folks, This is what i am required to do. Call an executable from my python script, and when the executable is fininshed running, i should continue with my python script. I have tried "os.exec()" but it calls the executable and never returns to the calling python script. I tried "os.fork" it

Re: Basic question

2007-05-14 Thread Max M
ns: [53.0, 20.0, 4.0, 2.0] The lambda is not needed there, as float is a callable. map(float, str.split(',')) -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Issue with MySQLdb wrapper

2007-05-15 Thread Gerard M
Hi guys I have a big problem with this wrapper im using Ubuntu 7.04 and I want to install python-MySQLdb, I used synaptics and it is installed, but when I try to do >>> import MySQLdb and I get this error: Traceback (most recent call last): File "", line 1, in File "MySQLdb/__init__.py", lin

pymssql query

2007-05-16 Thread m . biddiscombe
Hi, I'm trying to use pymssql to execute a stored procedure. Currently, I have an Excel spreadsheet that uses VBA in this manner: Private Function CreateNewParrot(connDb As ADODB.Connection) As Long Dim objCommand As ADODB.Command Dim iParrot As Long Dim bSuccess As Boolean Set objComman

Re: Xml parser

2007-05-25 Thread Max M
ashish skrev: > Hi All, > > I want to know weather is there any api available in python for parsing > xml(XML parser) I have had very good succes with lxml -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Free Air Conditioners!!!!!!

2007-08-21 Thread Scott M.
Oh my God! How did you know?!! You were so smart to post that here! <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > http://freeairconditioners.blogspot.com/ > -- http://mail.python.org/mailman/listinfo/python-list

[OT] MSN client for console project

2007-04-11 Thread Andrés M .
to all you interested in knowing more, do not hesitate to contact me. Saludos. Andrés M. _ Consigue aquí las mejores y mas recientes ofertas de trabajo EE.UU. http://latino.msn.com/empleos -- http://mail.python.org/mailman/listinfo/python-list

Parsing problems: A journey from a text file to a directory tree

2007-09-16 Thread Martin M.
Hi everybody, Some of my colleagues want me to write a script for easy folder and subfolder creation on the Mac. The script is supposed to scan a text file containing directory trees in the following format: [New client] |-Invoices |-Offers |--Denied |--Accepted |-Delivery notes As you can see,

Adding behaviour for managing "task" dependencies

2007-10-02 Thread m . pricejones
Hi, I'm currently writing an animation pipeline in Python which is a system for controlling the flow of work and assets for a team of people working on a computer animated film. The system will be fairly large with a database backend. One particular problem that I'd like to address is the need fo

Re: Adding behaviour for managing "task" dependencies

2007-10-02 Thread m . pricejones
Stargaming: Thanks, that's given me plenty to think about. Some wise words. I guess I should appreciate that with my particular goal there aren't going to be easy solutions but I definitely don't want to dive down the wrong track if it can be avoided. Cheers, Mike -- http://mail.python.org/mail

Re: The fundamental concept of continuations

2007-10-09 Thread Jeff M.
ation that modifies itself (bad?) to define a list iterator. http://blog.plt-scheme.org/2007/07/callcc-and-self-modifying-code.html I recommend putting that code into a Scheme interpreter and running it. You'll get it. Hope this helps, and I look forward to better explanations than min

Re: Namespace question

2007-10-31 Thread Chris M
On Oct 31, 10:06 am, Frank Aune <[EMAIL PROTECTED]> wrote: > Hello, > > Is it possible writing custom modules named the same as modules in the > standard library, which in turn use the same module from the standard > library? > > Say I want my application to have a random.py module, which in turn m

Re: Email attachments

2007-01-24 Thread Max M
sages just because the sentbox isn't set correctly pass # # returns a portal status message if REQUEST: if success: message = 'Succes! The message was sent ' else: message = 'Error! The message could not be sent' REQUEST.RESPONSE.redirect(self.absolute_url() + '/mxmImapClient_compose?portal_status_message=%s' % message) -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Some "pythonic" suggestions for Python

2007-11-09 Thread Chris M
Multi-return value lambda? Just so you know, there is no concept of returning more than one value from a function. def a(): return 1, 2 returns one value - a tuple of (1, 2). lambda: (1, 2) does the same thing. -- http://mail.python.org/mailman/listinfo/python-list

Re: Interfaces.

2007-11-15 Thread Chris M
On Nov 15, 8:55 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > Does anyone know what the state of progress with interfaces for python > (last I can see ishttp://www.python.org/dev/peps/pep-0245/) > > I would argue that interfaces/(similar feature) are necessary in any > modern languag

Re: Interfaces.

2007-11-16 Thread Chris M
On Nov 16, 12:26 am, James Stroud <[EMAIL PROTECTED]> wrote: > Chris M wrote: > > On Nov 15, 8:55 pm, "[EMAIL PROTECTED]" > > <[EMAIL PROTECTED]> wrote: > >> Hi, > > >> Does anyone know what the state of progress with interfaces for python

Re: auto-increment operator - why no syntax error?

2007-12-08 Thread Chris M
On Dec 8, 7:58 pm, Karthik Gurusamy <[EMAIL PROTECTED]> wrote: > I see python doesn't have ++ or -- operators unlike say, C. > I read some reasonings talking about immutable scalars and using ++/-- > doesn't make much sense in python (not sure if ++i is that far-fetched > compared to the allowed i

Re: Is a "real" C-Python possible?

2007-12-09 Thread Chris M
On Dec 9, 10:04 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Dec 9, 6:07 pm, "Jack" <[EMAIL PROTECTED]> wrote: > > > Plus, Psyco is not the > > main stream and has stopped development. > > > > What makes you think it has stopped development? I just swung by the > SF project page, and its most

How to get the target of a Windows shortcut file

2006-05-05 Thread Steve M
Below is some code adapted from something I think was written by Mark Hammond. Originally I needed to create a Windows shortcut (link), and this code does the trick, requiring only the target filename and the desired shortcut name. Now, I find I need to open a shortcut and extract the target filena

Re: I'm just not cut out for web programming, I guess :)

2006-05-17 Thread Dan M
On Wed, 17 May 2006 20:51:07 +, John Salerno wrote: > Ok, I've tinkered with this thing for a while, and I keep fixing little > problems, but I always get a 500 Internal Server error when I go to this > site: > > I don't necessarily even want help just yet, I'd like to figure it out > myse

Re: Why this apparent assymetry in set operations?

2008-01-15 Thread Chris M
On Jan 15, 11:51 am, "Neil Cerutti" <[EMAIL PROTECTED]> wrote: > > So this is a bug in set_update or in set_ior. They can't both be > right. > It's not a bug. "Note, the non-operator versions of union(), intersection(), difference(), and symmetric_difference(), issubset(), and issuperset() method

Portable linux python install

2008-02-26 Thread Mike M
Hello, I've been digging around the list archives and I haven't found a good answer to this, so I was hoping someone on this list could help me out. Here's my conundrum: I have a python application which I'd like to distribute to thousands of machines in our server farm. The good news is, all o

Re: Book Recomendations

2008-03-01 Thread Ryan M.
On Mar 1, 7:56 pm, Ira Solomon <[EMAIL PROTECTED]> wrote: > I am an experienced programmer (40 years).  I've done Algol (if you've > heard of that you must be old too), PL/1, VB,VBA, a little C, and a > few other odd languages (e.g. Taskmate). > I'm interested in learning Python and have downloaded

Re: Python-list Digest, Vol 64, Issue 644

2009-01-29 Thread M Kumar
ion to run as CGI? (Jeroen Ruigrok van der Werven) > 3. Re: Profiling Python Apps on Mac? (Robert Kern) > 4. Re: Results of executing hyperlink in script (Tino Wildenhain) > 5. Re: I'm a python addict ! (afri...@yahoo.co.uk) > 6. ANN: eGenix mx Base Distribution 3.1.2 >

is python Object oriented??

2009-01-29 Thread M Kumar
Object oriented languages doesn't allow execution of the code without class objects, what is actually happening when we execute some piece of code, is it bound to any class? Those who have time and consideration can help me -- Regards, Maneesh KB Comat Technologies Bangalore Mob: 9740-19230

Re: is python Object oriented??

2009-01-29 Thread M Kumar
but still I am not clear of the execution of the code, when we write or execute a piece of python code without defining class, predefined class attributes are available (not all but __name__ and __doc__ are available). does it mean anything to this topic. Is it necessory to have __module__, __dict_

Re: Python-list Digest, Vol 65, Issue 365

2009-02-18 Thread M Kumar
I think the given statement below will give you what you r looking .__file__print On Wed, Feb 18, 2009 at 2:43 PM, wrote: > Send Python-list mailing list submissions to >python-list@python.org > > To subscribe or unsubscribe via the World Wide Web, visit >http://mail.python.org/m

Re: Can't get exclusive file lock when safely renaming a file

2008-12-06 Thread Steve M
On Dec 6, 12:25 am, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: > The rename works, but here is my problem: after getting what I thought > was an exclusive lock on the new file, but before calling os.rename(), I > can still over-write it from another process: > > $ echo "this com

os module

2009-03-02 Thread M Kumar
Hi, I am writing a server side program, clients can be any machine but the server machine is Linux. In program I want to use the OS module based on the client's operating system. But when I do "import os" m only able to get the module with the property of Linux. ANy idea how to im

Re: os module

2009-03-02 Thread M Kumar
r 2, 2009 at 12:26 AM, M Kumar wrote: > > > > Hi, > > > > I am writing a server side program, clients can be any machine but the > > server machine is Linux. In program I want to use the OS module based on > the > > client's operating system. But

Re: os module

2009-03-02 Thread M Kumar
Oh that might be the problem, I m new to this and new to this kind of conversations. What you said was correct. But what I am looking for is, if one client reqst comes I need to process the data which I got from the client, so I need to use the os module. But since my program executes on the

Re: os module

2009-03-02 Thread M Kumar
is Rebert > wrote: > >> >> > >> >> On Mon, Mar 2, 2009 at 12:26 AM, M Kumar > wrote: > >> >> > > >> >> > Hi, > >> >> > > >> >> > I am writing a server side program, clients can be any mac

Openings for Python Programmer at CA

2009-03-18 Thread Aniket M
Hello , This is Aniket from Techclique, a New Jersey based software development and IT consulting firm providing top quality technical and software professionals on a permanent and contractual basis to Government and commercial customer including fortune 500 companies and most of states and federal

Help in reading the pdf file

2009-03-26 Thread M Kumar
Hi, I need to read pdf files and extract data from it, is there any way to do it through python. thanks & reagards Maneesh KB -- http://mail.python.org/mailman/listinfo/python-list

Help in getting the IP address of client machines

2009-05-04 Thread M Kumar
Hi, I am using pylons web framework for my server. I need to get the ip address of the client machine which made a request to the server in my python code. How can I do that, I am new to pylons and the existing server has so many applications. looking forward to get some solutions from the kind fr

help required with pylons

2009-05-05 Thread M Kumar
Hi, I am having an application server in pylons, which was giving error sometimes and sometimes it gives the result. I will copy paste the error below. I am new to pylons and not getting any clue of this kind of behavior. Please help me what should I do to avoid this kind of errors. -

Re: Literate programs in Python

2008-05-13 Thread Max M
xample.html -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: New chairman

2008-05-27 Thread Max M
/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Handling some isolated iso-8859-1 characters

2008-06-04 Thread Max M
t.com/2008/03/python-unicode-lessons-from-school-of.html -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Sydebar 1.0 - A browser sidebar generator for Python documentation

2008-06-04 Thread Max M
This looks great. I have been missing my chm based docs since moving to Python. This goes a long way. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: palindrome function

2008-07-11 Thread Hugh M
> Basically, it reverses the list in place, so it modifies the list which > called it. It does not return a /new/ list which is a reversed version of > the original, as you expected it to. Since it doesn't return anything > explicitly, Python makes it return None. Hence, the comparison you are doin

Re: expanding a variable to a dict

2008-04-03 Thread Max M
/usr/src' for a in ['dictFoo','dictBar','dictFrotz']: if not 'srcdir' in a: a['srcdir'] = '/usr/src' for a in ['dictFoo','dictBar','dictFrotz']: a.setdefault('srcdir') = '/usr/src' -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: expanding a variable to a dict

2008-04-09 Thread Max M
John Machin skrev: > On Apr 4, 9:44 am, Max M <[EMAIL PROTECTED]> wrote: > Ummm ... excessive apostrophes plus bonus gross syntax error, dood. > Did you try running any of these snippets??? No I just wanted to quickly show different ways to do it. The dicts in the original

Re: Python Success stories

2008-04-22 Thread Max M
mply gone quiet. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >