Re: Octal notation: severe deprecation

2005-01-13 Thread Tim Roberts
. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: why are people still using classic classes?

2005-01-13 Thread Tim Roberts
characters. Once a person has a case where the new classes make a difference, I suspect they catch the new habit and never look back. I haven't crossed that threshhold yet. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: from __future__ import decorators

2005-01-15 Thread Tim Roberts
Jacek Generowicz [EMAIL PROTECTED] wrote: I have some code, which makes copious use of the @decorator syntax I'm very curious to know what kind of application you are writing in which copious use of the @decorator syntax actually solved a problem productively. -- - Tim Roberts, [EMAIL PROTECTED

Re: Is there a library to parse Mozilla mork documents?

2005-01-20 Thread Tim Roberts
be in, say, INI format. I wrote a Python script to parse it, but it isn't terribly robust. I was able to produce a dictionary, but I didn't do anything with the results. You're welcome to take a look: http://www.probo.com/timr/parsemsf.py -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: global variable, ok for string, bad for int

2005-01-21 Thread Tim Roberts
'] # ok, that works #!/bin/python varint = 1 def print_value(): print varint # ok, that failed python 2.3.4 - windows2000 (it works in linux!) -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo

Re: getting file size

2005-01-22 Thread Tim Roberts
of a file, won't tell() be just as accurate as os.path.getsize()? On Windows, those two are not equivalent. Besides the newline conversion done by reading text files, the solution in 2. will stop as soon as it sees a ctrl-Z. If you used 'rb', you'd be much closer. -- - Tim Roberts, [EMAIL PROTECTED

Re: is there better 32 clock() timing?

2005-01-25 Thread Tim Roberts
in Windows is to write a kernel driver, and even then there are no guarantees. Windows is NOT a real-time system. If you have an environment where an unexpected delay of a millisecond or more is going to cause damage, then you need to redesign your application. -- - Tim Roberts, [EMAIL PROTECTED

Re: Why can't use cursor.nextset() in adodbapi package?

2005-01-25 Thread Tim Roberts
something like this: sql = select * from wjtmp; select count(*) from wjtmp; That's when you need nextset(). Personally, I've never used it. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter: Can You Underline More Than 1 Char In A Menu Title

2005-01-31 Thread Tim Roberts
invoke this menu to have it behave differently in different circumstances. You can, of course, CHANGE the underlined character to match the circumstances. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Converting a string to a function pointer

2005-02-06 Thread Tim Roberts
(myFunction): return lookup[myFunction]() else: print Couldn't find, myFunction -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python mail filter

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

Re: dos box appears when clicking .pyc

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

Re: Considering python - have a few questions.

2005-02-13 Thread Tim Roberts
in the background, and bring up Internet Explorer as your user interface. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: image fourier transform

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

Re: connect to https unpossible. Please help.

2005-10-21 Thread Tim Roberts
' and 'pwd' fields in the POST data. However, that isn't the end of your trouble. That page will almost certainly send you a cookie, which you will need to send back with every request. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python

Re: sqlstring -- a library to build a SELECT statement

2005-10-21 Thread Tim Roberts
characters in identifiers. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Accessing a dll from Python

2005-10-21 Thread Tim Roberts
? If you had to add a reference, then it is either a COM interface or a managed code class. DLLs don't get in through references -- they use the Declare statement. COM interfaces are pretty easy to call in Python. Calling managed code is almost impossible right now. -- - Tim Roberts, [EMAIL

Re: Cursor Location

2005-10-21 Thread Tim Roberts
handler gets a mouse event as a parameter: def OnClick( self, evt ): print evt.GetPositionTuple() Once you have the tuple, it's up to you to save it somewhere. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax across languages

2005-10-25 Thread Tim Roberts
be neater if I had a real-life example. # # As it is, it looks silly. # # print New result, cool print All done -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Tricky Areas in Python

2005-10-25 Thread Tim Roberts
not sure I need a job with a company that insists on playing Programming Jeopardy during the interview. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi All - Newby

2005-10-27 Thread Tim Roberts
whatever you are using to place a window is something you downloaded, or something that was installed with your Python. That's what we need to find out. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: strange problems with urllib2

2005-10-27 Thread Tim Roberts
That kind of thing is often caused by DNS problems. Are you running named on your Linux machine? Have you double-checked that the named configuration and /etc/resolv.conf is correct? How long does it take for you to do this: wget http://site.heavenlytreasures.com/images/e6115.jpg -- - Tim Roberts

Re: Microsoft Hatred FAQ

2005-10-29 Thread Tim Roberts
thread, which was started by a completely useless troll. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Hi All - Newby

2005-10-29 Thread Tim Roberts
serious with Tkinter, I strongly recommend it. Personally, I started with Tkinter, but I couldn't wrap my brain around the details. I switched to wxPython, and never looked back. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python

Re: Scanning a file

2005-10-29 Thread Tim Roberts
. This behavior is deterministic. At the end of that line, the anonymous file object out of scope, the object is deleted, and the file is closed. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows - Need to process quotes in string...

2005-11-02 Thread Tim Roberts
') or launchWithoutConsole(devcon.exe, r'enable @USB\VID_0403PID_6010MI_00\715E4F681') However, devcon.exe supports regular expressions, and is forgiving about syntax. If you have only one such device, you could use: launchWithoutConsole(devcon.exe, r'enable @USB\VID_0403PID_6010*') -- - Tim Roberts

Re: String Identity Test

2005-11-02 Thread Tim Roberts
Richard Brodie [EMAIL PROTECTED] wrote: Roy Smith [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On the other hand, I can't imagine any reason why you would want to define such a class, PEP 754? My congratulations on a very subtle and somewhat multicultural joke... -- - Tim

Re: something wrong in wx

2005-11-13 Thread Tim Roberts
the GUI version? Are you double-clicking on an icon somewhere? Are you sure the application is starting in the correct directory -- the one that contains zapis.txt? Perhaps you should try hard-code the full path, or at least doing an os.chdir(). -- - Tim Roberts, [EMAIL PROTECTED] Providenza

Re: os.chown()

2005-11-13 Thread Tim Roberts
is usually restricted to root. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: AJAX = APAX? Or: is there support for python in browsers?

2005-11-16 Thread Tim Roberts
, there is a script in win32comext/axscript/client/pyscript.py that will register Python as an ActiveScript language. The you can say script language=python print h1Hello, there./h1 /script -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman

Re: Python under Citrix Metaframe

2005-11-20 Thread Tim Roberts
? What problems did you encounter? I've used Python extensively with Microsoft's Terminal Services. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: check if com api is still available

2005-11-20 Thread Tim Roberts
in the world that use the ROT. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem printing in Win98

2005-11-20 Thread Tim Roberts
should work. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: BaseHTTPServer module

2005-11-20 Thread Tim Roberts
. However, as the module documentation also tells you, that has already been done for you in SimpleHTTPServer.py. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Aproximative string matching

2005-11-20 Thread Tim Roberts
by a 4-character string, such that all words that are pronounced similarly encode to the same string. The algorithm is easy to implement; you can probably find one by Googling. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python

Re: Problem printing in Win98

2005-11-22 Thread Tim Roberts
file types have an open verb and a print verb; some also have edit. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question: Tab key giving different output

2005-11-28 Thread Tim Roberts
. You can use one space for your indentation, which is the same number of keystrokes as a tab. Good looking code is not of prime importance when you're typing at the Python prompt. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo

Re: ver 23 invokation on Windows

2004-11-30 Thread Tim Roberts
disappear. Any idea what to do? Did you remember to pass the parameters when you created the file association? C:\TMPassoc .py .py=Python.File C:\TMPftype Python.File Python.File=C:\Apps\Python23\python.exe %1 %* C:\TMP -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http

Re: Delphi/Kylix and Python

2004-12-04 Thread Tim Roberts
is in getting them to connect with PostgreSQL and SQLite. Any suggestions? From what I have read, ODBC or JDBC may do it, but I have experience with neither. There are direct Delphi components for both databases. Google is your friend. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide

Re: Time for : comp.lang.python.newbies ??

2004-12-06 Thread Tim Roberts
, the percentage of questions that SEEM like newbie questions goes up. comp.lang.python has always been a bastion of kindness and tolerance in the comp.lang hierarchy. I hope that remains true. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman

Re: Upgrading Python Article

2004-12-11 Thread Tim Roberts
compilers. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiler method

2004-12-16 Thread Tim Roberts
!!! Perhaps you could ask your question in a different way. Python is designed as an interpreted language, like Perl and Javascript. It isn't compiled to machine language. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading Python Article

2004-12-18 Thread Tim Roberts
JanC [EMAIL PROTECTED] wrote: Tim Roberts schreef: I don't think that's fair. Visual C++ 7.1 is signficantly better at compliance than their past compilers. AFAIK that's only for C++, not for C...? Yes. Microsoft has largely chosen to ignore C99. According to the Visual Studio team

Re: Python on Linux

2004-12-28 Thread Tim Roberts
Hat installs packages that are needed for its configuration scripts. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: smtp question

2005-01-06 Thread Tim Roberts
length is + repr(len(msg)) Easier is: print Message length is, len(msg) More efficient is: print Message length is %d % len(msg) -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Getting rid of self.

2005-01-09 Thread Tim Roberts
to be useful. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python CGI

2005-12-01 Thread Tim Roberts
can use one script and detect which step it is using, for example a hidden field. If you need common file processing in both scripts, I'm sure you already know you can put that code in a separate Python file and import it into the two CGI scripts. -- - Tim Roberts, [EMAIL PROTECTED] Providenza

Re: CGI module does not parse data

2005-12-03 Thread Tim Roberts
amfr [EMAIL PROTECTED] wrote: import cgi form = cgi.FieldStorage() print form[test] print test I would only be able to see test, not hello world I am sure its not my browser Did you mean: print form[test].value -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http

Re: CGI and long running job

2005-12-03 Thread Tim Roberts
. This is what I use: # We flush stdout, fork, then close stdout. This closes the HTTP socket, # allowing the browser to continue while we munge with sendmail. sys.stdout.flush() if os.fork(): return fw = open('/dev/null','w') os.dup2(fw.fileno(),1) os.dup2(fw.fileno(),2) -- - Tim

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Tim Roberts
, and no rational argument will ever convince someone else to abandon their brand. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-05 Thread Tim Roberts
Things are fascinating books that should be mandatory reading for all engineering students. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: win32com 'catastrophic failure'

2005-12-05 Thread Tim Roberts
is E_UNEXPECTED. That's a generic error which may mean that you called something in the wrong order, or provided a parameter that was not expected. What OCX were you calling, and what did the code look like? -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org

Re: sql escaping module

2005-12-08 Thread Tim Roberts
) ) # THIS IS WRONG -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to put form and display its result(data from database) on the same window?

2005-12-10 Thread Tim Roberts
: PrintTheResultTable() -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: newby question: Splitting a string - separator

2005-12-10 Thread Tim Roberts
pythonic) than using regexes. But it is slower than this, which produces EXACTLY the same (incorrect) result: data = Guido van Rossum Tim Peters Thomas Liesner names = data.split() -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman

Re: How to detect the presence of a html file

2005-12-10 Thread Tim Roberts
on all Microsoft operating systems back to at least MS-DOS 5, and on every version of Windows. The command interpreters don't accept them, but all of the APIs do. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: PHP = Perl Improved

2005-12-10 Thread Tim Roberts
samples on the web are crap. Maybe the simplicity of the language encourages inexperienced programmers who write spaghetti code without a thought to the structure; I don't know the exact cause, but I have seen it more often than not. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: how to put form and display its result(data from database) on the same window?

2005-12-11 Thread Tim Roberts
right in your *guess* that he doesn't need that, but there isn't enough information present in his request for either of us to know. You are correct. Once you pointed it out, I now see what you were suggesting. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http

Re: newbie question

2005-12-11 Thread Tim Roberts
) if __name__ == __main__: if len(sys.argv) 2: print 'Usage: .py filename 3 5 7' ) drawAsciiFile( sys.argv[1], sys.argv[2] ) -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I load python script into Html ??

2005-12-16 Thread Tim Roberts
by the server would be an obscene security mistake. Internet Explorer will happily do so, if you have the Python Windows extensions installed, and register the active scripting component that cmes with it. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org

Re: CGI module does not parse data

2005-12-18 Thread Tim Roberts
amfr [EMAIL PROTECTED] wrote: Neither work Yes, they do. Post your form HTML and the Python code you're using, and we'll show you what you're doing wrong. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing a date-time string?

2005-12-23 Thread Tim Roberts
the validity of the tz part, but ...) Central European Time. GMT +1 hour. Quite valid. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: email package and line ending

2005-12-26 Thread Tim Roberts
error; you've asked it to accomplish something that cannot be done. However, it is true that _split has enough information to diagnose this. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows and python execution

2005-12-26 Thread Tim Roberts
. The Python .msi installer DOES do this, if you let it do its default thing. You should check whether these are already set up, by doing this: assoc .py -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: HTMLGen- Table Align property

2005-12-29 Thread Tim Roberts
it would have been quicker and easier to just Go Look It Up. That's the beauty of Python. No, it's not there. It's easy enough to add it, or you can wrap the table in center or div align='center'. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org

Re: Numeric RandomArray seed problem

2006-01-02 Thread Tim Roberts
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I tried calling RandomArray.seed() by calling RandomArray.get_seed() I get the seed number (x,y). My problem is that x is always 113611 any advice? What did you expect? -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http

Re: HELP! on wxPython Error

2006-01-02 Thread Tim Roberts
. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Xah's Edu Corner: the bug-reporting attitude

2006-01-04 Thread Tim Roberts
and somewhat controversial opinions that I hesitate to expose in public, for fear of being laughed at and labeled as a nutcase. Xah Lee has absolutely no such fears. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: smtplib error('Connection reset by peer')

2006-01-08 Thread Tim Roberts
. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Returning Values from Bash Scripts

2006-01-08 Thread Tim Roberts
. That is, assuming by values you mean the stdout from the script. If you really mean the numerical return code, you can use os.system. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: string to datetime parser?

2006-01-10 Thread Tim Roberts
beza1e1 [EMAIL PROTECTED] wrote: Is there a library which can parse strings and output a datetime object? It should be as magical as possible and allow things like: 12:30 tomorrow 10.10.2005 02-28-00 28/03/95 And given 10/03/95, is that a date in mid-March, or in early October? -- - Tim Roberts

Re: How to create a script that list itself ?

2006-01-11 Thread Tim Roberts
is: -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: can't solve an exercise-help me with it

2006-01-12 Thread Tim Roberts
that's a terrible series for computing pi. At 100,000 terms, it still only has 5 digits. n = input( How many terms? ) sum = 0 sign = 4.0 for i in range(n): sum += sign / (i+i+1) sign = -sign print sum -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc

Re: command line path

2005-09-06 Thread Tim Roberts
Instruments\LabVIEW 7.1\project\calibration\FREQUENCY_13.CSV -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled?

2005-09-10 Thread Tim Roberts
not suffered from being interpreted. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: nested tuples

2005-09-10 Thread Tim Roberts
),..., (rowNvalue1, rowNvalue2, rowNvalue3)] Then, I get what I want with tuple(a). Why? What is it about the list of tuples that you don't like? Philosophically, it's more in line with Guido's separation of list and tuple. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http

Re: p2exe using wine/cxoffice

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

Re: p2exe using wine/cxoffice

2005-09-17 Thread Tim Roberts
rather than thinking that commercial software is somehow better. Regardless of your opinion on their operating systems, only a religious zealot would try to argue that Microsoft Office is not better than any of the open source alternatives. -- - Tim Roberts, [EMAIL PROTECTED] Providenza

Re: influence platorm during install -end user question

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

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

2005-09-20 Thread Tim Roberts
, that name is now bound to None, because it has already been cleaned up. Kaboom. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Dynamic character substitution.

2005-09-27 Thread Tim Roberts
) It IS possible to create variables on the fly, but except in very special situations, it is almost never the right way to do things. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Straight line detection

2005-09-30 Thread Tim Roberts
there? -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: PyWin SendMessage

2005-10-01 Thread Tim Roberts
communication. The WM_USER range is only if you are inventing a custom message for some new purpose. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursive Property of Octal Numbers

2005-10-04 Thread Tim Roberts
you have there is hexadecimal. 0377 is an example of an octal number. However, as was pointed out elsewhere, the same thing would be true even if you used 'z'. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: question about smtplib

2005-10-04 Thread Tim Roberts
[EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? Use the source, Luke. Source code for every standard module is included on your hard disk. If you look in the __init__ for class SMTP, your question will be answered. -- - Tim Roberts, [EMAIL

Re: question about smtplib

2005-10-05 Thread Tim Roberts
Piet van Oostrum [EMAIL PROTECTED] wrote: Tim Roberts [EMAIL PROTECTED] (TR) wrote: TR [EMAIL PROTECTED] wrote: cool. so this line server = smtplib.SMTP(localhost) is when i connect ? TR Use the source, Luke. Source code for every standard module is included on TR your hard disk. If you

Re: Using command line args on Windows

2005-10-09 Thread Tim Roberts
will prevent redirecting from stdin in that case. That is: C:\Tmptype x.py import sys print sys.stdin.readline() C:\Tmpecho 123 | python x.py 123 C:\Tmpecho 123 | x.py The process tried to write to a nonexistent pipe. C:\Tmppython x.py x.py import sys C:\Tmpx.py x.py C:\Tmp -- - Tim Roberts

Re: Matching zero only once using RE

2005-10-09 Thread Tim Roberts
operation is a regular expression match upon that string. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to capture key pressing

2005-10-11 Thread Tim Roberts
, credits or license for more information. import msvcrt msvcrt.getch() '\x1b' (I pressed escape after the second enter.) -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Here I am again, same old arguments

2005-10-15 Thread Tim Roberts
to it. Nice work. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Perl-Python-a-Day: Sorting

2005-10-15 Thread Tim Roberts
comparator to the sort function. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-15 Thread Tim Roberts
of powerful computers. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with regexes

2005-05-26 Thread Tim Roberts
matches a string such as r'\r\n' Hint: the string r'\r\n' contains four characters. It contains neither carriage return nor newline. Bigger hint: the string '\r\n' contains two characters. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman

Re: Pressing A Webpage Button

2005-06-01 Thread Tim Roberts
reading on HTTP, and the GET and POST methods of transmitting parameters. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: BUG pythonw vs subprocess

2005-06-01 Thread Tim Roberts
-console Win32 apps don't have stdin and stdout. The handles are invalid. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: BUG pythonw vs subprocess

2005-06-04 Thread Tim Roberts
to me. There's no absolute requirement that a tkinter app use pythonw. If you call them with python.exe, they'll get a stdin and stdout. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with pythonpath

2005-06-05 Thread Tim Roberts
. When Python goes to look for a package called pkg, it starts at the beginning of PYTHONPATH and stops as soon as it finds one. You either need to use different names for the two packages (pkg1, pkg2), or use a symbolic link to link spkg2 into the src directory. -- - Tim Roberts, [EMAIL PROTECTED

Re: anygui,anydb, any opinions?

2005-06-08 Thread Tim Roberts
xCHM, Boa Constructor, aMule, VLC and some other app together... instant madness. They why would you do it? gvim and wxPython do the job for me. No mess. -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: Destructive Windows Script

2005-06-08 Thread Tim Roberts
', '~', '!', '@', '#', '$', '%', '^', '', '*', ';'] (Not that it solves your disk wiping issue.) This is a lot easier to type: data = list([EMAIL PROTECTED]*;) -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Re: help with sending mail in Program

2005-06-08 Thread Tim Roberts
, to, body) s.sendmail(frm, to, msg) s.sendmail(frm, [to], msg) s.quit() if __name__ == '__main__': sendToMe('Testing', 'This is a test') -- - Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   9   10   >