Re: Just Getting Started with Python on MS XP Pro

2007-01-06 Thread Thomas Ploch
dbg.exe. Do I need both or is just the > latter one? A google query 'pythonwin' directly brings me here: https://sourceforge.net/projects/pywin32/ I think this is the place to go Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Dividing integers...Convert to float first?

2007-01-06 Thread Thomas Ploch
ot the language to use, unfortunately. From what I have read, > Python 3 will break things more fundamental than int/int. > Yes, but until then we have to use python 2.x. And I think that python 2.x will be around quite a while after python 3000 has been released if it breaks so m

Re: Why less emphasis on private data?

2007-01-06 Thread Thomas Ploch
[EMAIL PROTECTED] schrieb: > Coming from a C++ / C# background, the lack of emphasis on private data > seems weird to me. I've often found wrapping private data useful to > prevent bugs and enforce error checking.. > It appears to me (perhaps wrongly) that Python prefers to leave class > data publi

Re: I want to learn

2007-01-07 Thread Thomas Ploch
r to be > happily at work on the next level apps at google nobody responded to > my craigslist ads. You can always ask your questions here on the list, there are enough people that are willing to help. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
e to being 'private' already. It depends on the definition of private. For me, private means 'not accessible from outside the module/class'. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
Paul Rubin schrieb: > Thomas Ploch <[EMAIL PROTECTED]> writes: >> Me neither, although I have to say that the '__' prefix comes pretty >> close to being 'private' already. It depends on the definition of >> private. For me, private means &

Re: Just Getting Started with Python on MS XP Pro

2007-01-07 Thread Thomas Ploch
ere is no 404 whatsoever. On none of the posted links in the whole thread. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
sturlamolden schrieb: > [EMAIL PROTECTED] wrote: >> Coming from a C++ / C# background, the lack of emphasis on private data >> seems weird to me. I've often found wrapping private data useful to >> prevent bugs and enforce error checking.. >> >> It appears to me (perhaps wrongly) that Python prefer

Re: Why less emphasis on private data?

2007-01-07 Thread Thomas Ploch
Sebastian 'lunar' Wiesner schrieb: > > Those people deserve to fail for being just extraordinary stupid... > Yes, but there are a lot of them around... Thomas P.S.: I don't mean they are around here. :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python re expr from Perl to Python

2007-01-07 Thread Thomas Ploch
(\w+ )\| (\w+ )\| (\w+ )\[(\w+)\]', na) >>>> na=m.expand(r'\1\2\3\5') >>>> na > 'Abc def ghi gugu' I'd rather have the groups grouped without the whitespaces >>> import re >>> na="Abc | def | ghi | jkl [gugu]" >>> m=re.match(r'(\w+) \| (\w+) \| (\w+) \| (\w+) \[(\w+)\]', na) >>> na=m.expand(r'\1 \3 \4 \5') >>> na 'Abc ghi jkl gugu' Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find the longst element list of lists

2007-01-07 Thread Thomas Ploch
sx3 = ["a", "b"] > I don't really get that. You have three lists, you want to sort them after their length. You should put them into one list. I think you should rather implement this as: >>> list = [a1, s2, s3] >>> list.sort(lambda x,y: cmp(len(y), len(x))) >>> list [['a', 'b', 'c', 'd'], ['q', 'e', 'd'], ['a', 'b']] Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find the longst element list of lists

2007-01-07 Thread Thomas Ploch
Michael M. schrieb: >> 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. ??? Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: help: code formatter?

2007-01-08 Thread Thomas Heller
code formatter that first removes all indentations and > then refomats correctly? > > Please help! Tools\scripts\reindent.py in your Python distribution. Thomas -- http://mail.python.org/mailman/listinfo/python-list

xmlrpc an auth-diget

2007-01-08 Thread Thomas Liesner
Hi all, this may have been asked before, but as a newbie with xmlrpc i can't find any suitable info on that. Sorry. I am trying to write a simple xmlrpc-client in python and the server i am trying to receive data from requires http auth digest. The info on xmlrpclib covers auth basic thrugh url ec

xmlrpc and auth-digest

2007-01-08 Thread Thomas Liesner
Hi all, this may have been asked before, but as a newbie with xmlrpc i can't find any suitable info on that. Sorry. I am trying to write a simple xmlrpc-client in python and the server i am trying to receive data from requires http auth digest. The info on xmlrpclib covers auth basic thrugh url ec

Re: newbieee

2007-01-08 Thread Thomas Nelson
lee wrote: > I getting familiarised with python...can any one suggest me a good > editor available for python which runs on windows xpone more > request guys...can nyone tell me a good reference manual for python.. I think vim is a very good editor for python, and it's certainly available for

How to write temporary data to file?

2007-01-08 Thread Thomas Ploch
#x27;: {... } This dictionary will get _very_ big, so I want to write it somehow to a file after it has grown to a certain size. How would I achieve that? Thanks, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: private variables

2007-01-08 Thread Thomas Ploch
o called 'private variables' were added. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: How to write temporary data to file?

2007-01-08 Thread Thomas Ploch
Ravi Teja schrieb: > Thomas Ploch wrote: >> Hi folks, >> >> I have a data structure that looks like this: >> >> d = { >> 'url1': { >> 'emails': ['a', 'b', 'c',...], >>

Re: How to write temporary data to file?

2007-01-08 Thread Thomas Ploch
Ravi Teja schrieb: > Thomas Ploch wrote: >> Ravi Teja schrieb: >>> Thomas Ploch wrote: >>>> Hi folks, >>>> >>>> I have a data structure that looks like this: >>>> >>>> d = { >>>>'u

Re: How to write temporary data to file?

2007-01-09 Thread Thomas Ploch
Laszlo Nagy schrieb: > Thomas Ploch írta: >> Hi folks, >> >> I have a data structure that looks like this: >> >> d = { >> 'url1': { >> 'emails': ['a', 'b', 'c',...], >> '

Re: How to write temporary data to file?

2007-01-09 Thread Thomas Ploch
Thomas Ploch schrieb: > Laszlo Nagy schrieb: >> Thomas Ploch írta: >>> Hi folks, >>> >>> I have a data structure that looks like this: >>> >>> d = { >>> 'url1': { >>> 'emails

Re: Testing for the presence of input from stdin.

2006-01-24 Thread Thomas Bellman
to read, you will terminate prematurely in many cases. Even 'dd if=/dev/zero | myprogram.py' will stop at some random point, when the OS happens to decide that myprogram.py should be scheduled twice without dd getting the chance to fill the pipe buffer inbetween. -- Thomas Bellman, Ly

Re: file_name_fixer.py

2006-01-25 Thread Thomas Heller
> >>>> def isprime(n): >>>> return n > 1 and not re.match(r'(xx+)\1+$', 'x'*n) > > finds prime numbers. So, who will post a 'Pior' (Python in one regex)? Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: py-ext: casting pointers to ints on 32bit and 64bit systems

2006-01-27 Thread Thomas Heller
ly work (under unix,mac&windows and with gcc, vc > and borland)? PyLong_FromVoidPtr and PyLong_AsVoidPtr. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: VB to Python migration

2006-01-28 Thread Thomas Ganss
re were "good coding practices" known - some of the old "libraries" were better decoupled than modern day OOP class libraries.) get rid of most of the people responsible and start only then. my 0.02 EUR thomas > We have a program written in VB6 (over 100,000 lines of code and 23

Re: writing large files quickly

2006-01-29 Thread Thomas Bellman
zeros 65M zeros (You can infer from the above that my file system has a block size of 4 Kbyte.) -- Thomas Bellman, Lysator Computer Club, Linköping University, Sweden "There are many causes worth dying for, but ! bellman @ lysator.liu.se none worth killing for."

Fatal Python error: Py_EndInterpreter: thread still has a frame

2006-02-02 Thread Thomas Korimort
ked for being NULL. Does anyone know, when this pointer is not NULL at the time where Py_EndInterpreter() is called? Greetings, Thomas Korimort. -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie - script works in PythonWin - fails from Python

2006-02-03 Thread Thomas Heller
s a difference. Clearly both either run a > different interpreter or with different switches. I was hoping someone > knows what the difference is. One difference is that PythonWin runs a messageloop. Does the documentation of the library you call say something about the error code you get? Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to determine if a certain PID is still running

2006-02-03 Thread Thomas Guettler
ally like the idea of calling something non-pure-python to find out. Hi, at least on linux you can test this: os.path.exists("/proc/%d" % mypid) If you want to be sure that the pid is not reused, you can look at: /proc/PID/cmdline Maybe you can read the parent-pid in the proc direct

Webmail with Python

2006-02-04 Thread Thomas Guettler
Hi, Is there an application like Squirrelmail[1] written in python? I want to access IMAP folder with a web-browser. Google shows me some dead projects. Most webmail applications seem to be written in PHP. Is there a useable webmailer written in python? Thomas -- Thomas Guettler, http

Re: Webmail with Python

2006-02-05 Thread Thomas Guettler
On Sat, 04 Feb 2006 15:50:00 -0600, Larry Bates wrote: > Thomas Guettler wrote: >> Hi, >> >> Is there an application like Squirrelmail[1] written in python? >> >> I want to access IMAP folder with a web-browser. >> >> Google shows me some dead proj

Re: Webmail with Python

2006-02-06 Thread Thomas Guettler
Am Mon, 06 Feb 2006 11:36:37 +0100 schrieb Max M: > Thomas Guettler wrote: >> Hi, >> >> Is there an application like Squirrelmail[1] written in python? >> >> I want to access IMAP folder with a web-browser. >> >> Google shows me some dead proj

variables preceeded with @

2006-02-07 Thread Thomas Girod
nd any references to this syntax. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: variables preceeded with @

2006-02-07 Thread Thomas Girod
Yum, food for thoughts. Thanks Diez. -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with curses and UTF-8

2006-02-08 Thread Thomas Dickey
uses more than one byte per cell, normal curses uses one byte per cell. To handle UTF-8, you need ncursesw. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacing curses

2006-02-08 Thread Thomas Dickey
ooking forward to bug reports, rather than line noise) -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: sys.path and unicode folder names

2006-02-08 Thread Thomas Heller
Windows XP is a native Unicode OS. Python internally converts unicode entries on sys.path to strings before using them. Changing that would require a large rewrite of the import machinery. I once started to work on a patch, but got ZERO feedback, so I gave up. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with curses and UTF-8

2006-02-08 Thread Thomas Dickey
script I would write). > to make it change the compiler/linker settings, or even edit the > compiler/linker line manually at first. that works -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with curses and UTF-8

2006-02-08 Thread Thomas Dickey
ER A WITH RING ABOVE > +00F5 LATIN SMALL LETTER O WITH TILDE > so, the UTF-8 characters didn't appear and the " U" at the beginning > became just " ". well - running in uxterm I see the second line properly. But some more tinkering is needed to make python work properly. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacing curses

2006-02-08 Thread Thomas Dickey
f course he's welcome to show the code ;-) -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacing curses

2006-02-08 Thread Thomas Dickey
ursor > - a way to detect when the terminal is resized > - a way to query the terminal size ...and send UTF-8 text, keeping track of where you really are on the screen. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Replacing curses

2006-02-08 Thread Thomas Dickey
Ian Ward <[EMAIL PROTECTED]> wrote: > Thomas Dickey wrote: >> hmm - I've read Urwid, and most of the comments I've read in that regard >> reflect problems in Urwid. Perhaps it's time for you to do a little >> analysis. >> >> (looking for

Re: Replacing curses

2006-02-09 Thread Thomas Dickey
iety > of terminals, and it links agains ncurses, not ncursesw... Interesting. It's probably using termcap (and the wide-character functions declared in wchar.h). -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Single-file executables

2006-02-12 Thread Thomas Heller
ther interpreters running in the same process. py2exe simulates a statically linked python interpreter together with statically linked extension modules. So, it is very similar to what freeze creates. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Arcane deployment considerations

2006-02-13 Thread Thomas Heller
Cameron Laird wrote: > In article <[EMAIL PROTECTED]>, > Thomas Heller <[EMAIL PROTECTED]> wrote: > . > . > . >> Usually the bundle=1 option in py2exe can create a single file exe, but it >

listing attributes

2006-02-13 Thread Thomas Girod
ggest me a way to get this list of variables ? Thanks Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: listing attributes

2006-02-14 Thread Thomas Girod
Thanks a lot for all your answers ! Thanks to you I resolved this problem. Here is what i've done : [...] for (_,v) in getmembers(self): if isinstance(v,Property): st += "\t%s\n" % str(v) [...] as all the attributes I want to get are instances of Property or a subclass of Property,

Re: listing attributes

2006-02-14 Thread Thomas Girod
You are right, using __dict__ is what i needed. But I chose the solution explained before because i don't want to list all attributes of the object, only attributes that are instances of the class Property (or a subclass of it). -- http://mail.python.org/mailman/listinfo/python-list

Code organization

2006-02-15 Thread Thomas Girod
? Maybe my question is not very clear, but I hope someone will understand anyway ... Thomas -- http://mail.python.org/mailman/listinfo/python-list

multiple inheritance

2006-02-15 Thread Thomas Girod
of 'x' comes from the 'Bar' superclass rather than Foo. So, to have what I want, I would have to invert the two calls to __init__ in order to have the right x value. What I find awkward here is that the order of __init__ calls matters, rather than the order of the classes in

Re: multiple inheritance

2006-02-16 Thread Thomas Girod
thanks, you pointed exactly on what distrurbed me. I'll see what I can do with cooperative methods. -- http://mail.python.org/mailman/listinfo/python-list

Re: multiple inheritance

2006-02-16 Thread Thomas Girod
That's perfect. thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: May i customize basic operator (such as 1==3)?

2006-02-22 Thread Thomas Heller
n as one >> test tool... >> i think my suggestion or requirement may benefit users greatly... >> > > you could use the py.test testing framework > (http://codespeak.net/py/current/doc/test.html), which tries to print > useful information if a test fails. The standard uni

Re: Newbie question: Multiple installations of Python on Windows machines

2006-02-22 Thread Thomas Heller
else). You should install them in different directories, of course. The lastest one installed will be the 'default' python, and windows file associations will use this one. To use the other versions, batch files (for example) work fine. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: Urwid 0.9.0 - Console UI library

2006-02-23 Thread Thomas Dickey
sion" of ncurses has supported UTF-8 for the past few years. You may perhaps mean "default configuration", which has a different connotation. -- Thomas E. Dickey http://invisible-island.net ftp://invisible-island.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple System Tray Icon

2006-03-02 Thread Thomas Heller
ingonline.net/simon/blog/archives/001835.html Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe and library.zip

2005-05-04 Thread Thomas Heller
files into a sub dir instead of building an archive. You still have to make sure that your exe has this directory on sys.path. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe and library.zip

2005-05-04 Thread Thomas Heller
s them.) > > Don't know, but I assume yes. There's an option for that, because it slows down the imports. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Q: The `print' statement over Unicode

2005-05-04 Thread Thomas Heller
dinal not in range(128) > > (last line wrapped for legibility). > > So (trying to be crystal clear), why is the first `print' working over > its third argument, but not the second? How does `print' convert that > Unicode string to a 8-bit string for output, if not through `str()'? > What is missing to the documentation, or to my way of understanding it? AFAIK, print uses sys.stdout.encoding to encode the unicode string. Thomas -- http://mail.python.org/mailman/listinfo/python-list

UnicodeDecodeError

2005-05-05 Thread thomas ct
Hi Fredrik   Sorry that I confused u Thomas Thomas wrote:>there's no way the tuple creation will generate a UnicodeDecodeError>all by itself.  are you sure the error occurs on that line?u r right, the error is not generated in tuple creation . it generated where join the strings

How to implement multiple constructors

2005-05-08 Thread tron . thomas
I am a C++ developer with only a little experience using Python. I want to create a Python class where by I can construct an instance from that class based on one of two different object types. For example, if I were programming in C++, I would do the something like the following: class MyClass

Re: Trouble saving unicode text to file

2005-05-10 Thread Thomas Bellman
compatible with ASCII (the way UTF-8 is), nor uses fixed-with characters (like UTF-32 does)? -- Thomas Bellman, Lysator Computer Club, Linköping University, Sweden "You are in a twisty little passage of ! bellman @ lysator.liu.se standards, all conflicting."!

Re: Python Graphing Utilities.

2005-05-10 Thread Thomas Lotze
to check out PyX: <http://pyx.sf.net/>. -- Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble saving unicode text to file

2005-05-10 Thread Thomas Bellman
o an octet position that can be calculated directly from N. In-place editing of single characters in large files becomes more efficient. The codec for UTF-32 is extremely simple. There are no illegal sequences to care about, like there are in UTF-8 and UTF-16, just illegal single 32-bit values (those

Re: Trouble saving unicode text to file

2005-05-11 Thread Thomas Bellman
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= <[EMAIL PROTECTED]> wrote: >Thomas Bellman wrote: >> Fixed-with characters *do* have advantages, even in the external >> representation. With fixed-with characters you don't have to >> parse the entire file or stream in

Serving binary data from a cgi-script

2005-05-11 Thread Thomas W
d and write the data I'm doing a plain : f = open (..., 'rb') d = f.read(2048) while d: if not d: break print d d = f.read(2048) f.close() Any hints? Best regards, Thomas -- http://mail.python.org/mailman/listinfo/python-list

working directory for debugging in pythonwin

2005-05-11 Thread Thomas Pfaff
this group but didn't find anything helpful so far. I could use some os.chdir in my code, but that's ugly and I neither want to copy the script around to the places where I would like to test it. Any suggestions? Thanks in advance Thomas -- http://mail.python.org/mailman/listinfo/python-list

Speed of the different python-based HTTP-servers

2005-05-12 Thread Thomas W
seems to have some code available using SQLObject allready, while Snakelets does not, so I'm leaning towards CherryPy at the moment ). I want to use ZPT or simpleTAL for templating and SQLObject for database-access etc if that makes any differences. Thanks for any input you might have. Bes

Re: working directory for debugging in pythonwin

2005-05-13 Thread Thomas Pfaff
Colin J. Williams schrieb: > Thomas Pfaff wrote: > >> Hello all, >> >> I started using the nice Pythonwin IDE together with Python 2.3 (I have >> come to prefer its editor to IDLE). >> My problem is, that when I want to run a script in the debugger, I can &

Re: working directory for debugging in pythonwin

2005-05-13 Thread Thomas Pfaff
lly I'm used to being able to set an arbitrary working directory from MS Developer Studio, and I wanted to know before I would contact Mark Hammond directly, if there is anything else than workarounds for this problem. Cheers, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Parsing text into dates?

2005-05-16 Thread Thomas W
d me solve this problem, especially with regards to the locale date format issues. Best regards, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: best way to do this ...

2005-05-17 Thread Thomas Guettler
this message means, that you can't change the dictionary in the loop. Maybe this helps: for a, b in list(mydict.items()): Thomas -- Thomas Güttler, http://www.thomas-guettler.de/ -- http://mail.python.org/mailman/listinfo/python-list

Twisted an several CPUs

2005-05-19 Thread Thomas Guettler
Hi, Out of sheer curiosity: Does Twisted scale if the server has several CPUs? As far as I know twisted uses one interpreter. This means a prefork server modul might be better to server database driven web-apps. Has anyone experience high load and twisted? Thomas -- Thomas Güttler, http

Re: py2exe for WMI

2005-05-24 Thread Thomas Heller
olution, if I understood him correctly, and the other things that were suggested didn't work. Basically, IIUC, he did add the typelib wrappers from the 'other' windows version manually to the library.zip file. Totally different solutions would be: - change Tim's wmi.py

Re: Running in Release or Debug version of the python interpreter?

2005-05-24 Thread Thomas Heller
x27;rb', 3), ('_d.dll', 'rb', 3) Another way would be to look at the filename of any binary extension module. _ctypes.__file__, for example: '.\\_ctypes.pyd' vs. '\\_ctypes_d.pyd'. Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe for WMI

2005-05-24 Thread Thomas Heller
Tim Golden schrieb: > [Thomas Heller] > > [... snip problems with py2exe & WMI ...] > > | The OP of the thread Tim mentions here already had a solution, if I > | understood him correctly, and the other things that were suggested > | didn't work. Basically

Re: open file in dir independently of operating system

2005-05-25 Thread Thomas Heller
) and for a binary file: f = open( os.path.join( dir , 'configuration.smo' ), 'rb' ) That way it also works on Windows. Thomas > > Joerg Schuster schrieb: > >> Hello, >> >> >> I want to open the file 'configuration.smo' that is

Re: converting jpg to pdf

2005-05-26 Thread Thomas Guettler
t foo.jpg foo.pdf") convert is part of ImageMagick. HTH, Thomas -- Thomas Güttler, http://www.thomas-guettler.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: File list from listdir or shell?

2005-05-26 Thread Thomas Guettler
Am Thu, 26 May 2005 06:31:40 -0700 schrieb qwweeeit: Hi, > ls -1 *.py (for the filenames only) or This can be done with the module "glob" of the standard library. HTH, Thomas -- Thomas Güttler, http://www.thomas-guettler.de/ -- http://mail.python.org/mailman/listinfo/python-list

NSLU2 and python - a love story ?

2005-06-01 Thread Thomas W
-box are of interest. Regards, Thomas References : [1] : http://www.nslu2-linux.org/ [2] : http://www.linksys.com/products/product.asp?grid=35&scid=43&prid=640 -- http://mail.python.org/mailman/listinfo/python-list

ConfigParser, mapping one key to multiple values

2005-06-01 Thread Thomas Guettler
Hi, I need a config like this: [sync files] ignore=".*/foodir/.*\.pyc" ignore=".*/foodir/.*~" ... The ConfigParser of the standard library can't handle this, because one key maps to multiple values. Is there a simple and lightweight config parser which can handle this?

Monitoring a USB-drive / Card-reader using python?

2005-06-01 Thread Thomas W
en do-able ? Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
oint, one has to break out of theory and produce! Or challenge the theory with some hard questions. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
oint, one has to break out of theory and produce! Or challenge the theory with some hard questions. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
"Skip Montanaro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Thomas> The Python world lacks the phenomenally successful development > Thomas> models enjoyed by the now ancient Turbo Pascal, Delphi and > Thomas> Visual Basic. &

Re: anygui,anydb, any opinions?

2005-06-01 Thread Thomas Bartkus
"Paul Rubin" <http://[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > "Thomas Bartkus" <[EMAIL PROTECTED]> writes: > > > Given that for the most part nobody in the Python community has a > > > handle on any other Python pers

Re: NSLU2 and python - a love story ?

2005-06-01 Thread Thomas W
Well, AFAIK people are running web-sites using apache, php and mysql on it and with ok performance. I'm not saying this would replace a real server, but for normal home-use with not too much traffic it seems to do the job. It's a fact that Linksys uses a somewhat modified version of linux on the N

Re: ConfigParser, mapping one key to multiple values

2005-06-02 Thread Thomas Guettler
regex = .*/CVS(/.*)?$ .*/\.cvsignore$ .*\.pyc$ .*/\.# If you call split() on the value, you get the list you need. Thomas -- Thomas Güttler, http://www.thomas-guettler.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-02 Thread Thomas Bartkus
"Skip Montanaro" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > >> Are we talking about a drag-and-drop GUI builder? > Thomas> I am! > > >> What about Glade? > Thomas> Dying to try that. Ask me again in a week.

Re: odbc and python

2005-06-03 Thread Thomas Heller
ribeCol(p1, p2, p3, p4, p5, p6, p7, p8, p9): # C:/PROGRA~1/MICROS~3.NET/Vc7/PLATFO~1/Include/sql.h 650 return SQLDescribeCol._api_(p1, p2, p3, p4, p5, p6, p7, p8, p9) SQL_DROP = 1 # Variable c_int SQL_DATA_SOURCE_NAME = 2 # Variable c_int SQL_TXN_SERIALIZABLE = 8 # Variable c_long SQL_TRANSACTION_SERIALIZABLE = SQL_TXN_SERIALIZABLE # alias Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Formatting Time

2005-06-03 Thread Thomas Guettler
ormat it > like this: > > 0:00:00 (h:mm:ss) Hi, Does this work? (not well tested) i=12009 # Number of seconds res=[] # dh, m for d in [24*60*60, 60*60, 60]: res.append("%02d" % (i/d)) i=i%d res.append("%02d" % i) print ":&quo

Re: bdist_wininst to distribute a patched python

2005-06-03 Thread Thomas Heller
mg <[EMAIL PROTECTED]> writes: > Hi, > > Because of I have patched Python, I would like to create a Windows > installer containing my patched-Python. So, I try to use the option > 'bdist_wininst' on the setup.py file distributed by python it is > supported ? bdist_wininst can only be used to

Re: couple of new python articles on onlamp

2005-06-03 Thread Thomas Heller
m/pub/a/python/2005/06/02/logging.html > > > Comments, criticisms, flames all welcome. I've read the logging article, and I like it. Good work. Thanks, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
"bruno modulix" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Thomas Bartkus wrote: > > "rzed" <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > > > >>So what do you think? What's wrong

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
ess has nothing to do with the language and everything to do with the integrated GUI / IDE available to that particular (VB) language. Anything that reduces the overhead involved in producing a consistent/attractive/idiot proof user interface makes a far more productive environment. Thomas Bartkus -- http://mail.python.org/mailman/listinfo/python-list

Re: anygui,anydb, any opinions?

2005-06-06 Thread Thomas Bartkus
"James Tanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Previously, on Jun 6, Thomas Bartkus said: > > # "bruno modulix" <[EMAIL PROTECTED]> wrote in message > # news:[EMAIL PROTECTED] > # > You mean the "wimp gui build

Re: anygui,anydb, any opinions?

2005-06-07 Thread Thomas Bartkus
"James Tanis" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Previously, on Jun 6, Thomas Bartkus said: > > # "James Tanis" <[EMAIL PROTECTED]> wrote in message > # news:[EMAIL PROTECTED] > # > > # > > # > My 2 cents, I&#

Re: circular import Module

2005-06-08 Thread Thomas Guettler
ule file2.py there exist command import file1? > > This is not working in C#. Circular import does not work on module level, but you can import the module in a method: file1.py: import file2 file2.py: # import file1 # Does not work! def foo(): import file1 # Does work HTH, Th

Re: running distutils installer without admin on windows

2005-06-08 Thread Thomas Heller
> needed to have the .NET SDK installed. You could at least open the installer exe in winzip or a similar tool, and unpack it manually to the site-packages directory. Thomas PS: I *think* that the distutils from newer Python versions (2.4.1 and 2.3.5) create installers that can also r

<    16   17   18   19   20   21   22   23   24   25   >