Re: Converting existing module/objects to threads

2006-10-19 Thread Hendrik van Rooyen
<[EMAIL PROTECTED]> wrote: > I have inheirted some existing code, that i will explain in a moment, > have needed to extend and ultimately should be able to run in threads. > I've done a bunch of work with python but very little with threads and > am looking for some pointers on how to implement, an

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Hendrik van Rooyen
"Fredrik Lundh" <[EMAIL PROTECTED]>wrote: 8<--- > 'a man a plan a canal panama' is not a palindrome > > ? not if spaces count - able was I ere I saw elba - is one - but its a tougher test... - Hendrik -- http://mail.python.org/mailman/listinfo/python-list

Re: Decorators and how they relate to Python - A little insight please!

2006-10-19 Thread Gabriel Genellina
At Friday 20/10/2006 02:38, [EMAIL PROTECTED] wrote: it's handy for doing things like validation of parameter and return types. Like... @accepts(int,int) @returns(int) def add(a,b): return a+b So, it's handy for converting Python into another language :) -- Gabriel Genellina Softlab SRL

Re: help with my first use of a class

2006-10-19 Thread BartlebyScrivener
Wow, That's great, James. Thanks. I shall put it together. Appreciate it. rd -- http://mail.python.org/mailman/listinfo/python-list

Re: help with my first use of a class

2006-10-19 Thread James Stroud
BartlebyScrivener wrote: > I am a mere hobbyist. Spent several hours trying to make a class, > because I think this is an occasion where I need one. But I can't make > it work. > > This code "works" (only because of the global c, which I know I'm > supposed to avoid, by using a Class). I edited th

Re: help with my first use of a class

2006-10-19 Thread [EMAIL PROTECTED]
BartlebyScrivener wrote: > I am a mere hobbyist. Spent several hours trying to make a class, > because I think this is an occasion where I need one. But I can't make > it work. > > This code "works" (only because of the global c, which I know I'm > supposed to avoid, by using a Class). I edited the

Re: help with my first use of a class

2006-10-19 Thread BartlebyScrivener
Whoah. At least I got the connection. I think. Maybe I can figure more on my own. Any help appreciated. Thanks - class Connection: def __init__(self, aDatasource): self.db = aDatasource self.conn = odbc.DriverConnect(self.db) self.conn.cursor() def random_quo

ANN compiler2 : Produce bytecode from Python 2.5 Abstract Syntax Trees

2006-10-19 Thread Michael Spencer
Announcing: compiler2 - For all you bytecode enthusiasts: 'compiler2' is an alternative to the standard library 'compiler' package, with several advantages. Improved pure-python compiler - Produces identical bytecode* to the built-in compile function for all /Lib and L

Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-19 Thread Martin v. Löwis
[EMAIL PROTECTED] schrieb: > I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need > to uninstall python 2.4.3 first ? > > I'd rather not to do so, because I have installed some other python > packages for python2.4.3. You don't have to uninstall. Installing "on top" will work ju

Re: How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-19 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need > to uninstall python 2.4.3 first ? afaik, no. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-19 Thread Martin v. Löwis
Christopher Taylor schrieb: > This basically means to me that Python2.4 is loading gloab.py from > /usr/lib64/Python2.3 insead of /usr/lib/Python2.4 (even thought I > wanted to install the related files in /usr/lib64/Python2.4) > > Can someome please help! Can you please report what sys.path is?

Re: Need help in Py2exe

2006-10-19 Thread Kirt
> > there's a page on the py2exe site about tweaks necessary for specific > modules: > > http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules > > look for: > > If you're getting File "xml\sax\saxexts.pyc", line 77, in > make_parser; xml.sax._exceptions.SAXReaderNotAv

How to upgrade python from 2.4.3 to 2.4.4 ?

2006-10-19 Thread [EMAIL PROTECTED]
Hi, I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need to uninstall python 2.4.3 first ? I'd rather not to do so, because I have installed some other python packages for python2.4.3. Thanks. xiaojf -- http://mail.python.org/mailman/listinfo/python-list

help with my first use of a class

2006-10-19 Thread BartlebyScrivener
I am a mere hobbyist. Spent several hours trying to make a class, because I think this is an occasion where I need one. But I can't make it work. This code "works" (only because of the global c, which I know I'm supposed to avoid, by using a Class). I edited the rest to leave out the irrelevant fo

Re: Decorators and how they relate to Python - A little insight please!

2006-10-19 Thread Fredrik Lundh
Jerry wrote: > even though I've read the PEP even the examples section? http://www.python.org/dev/peps/pep-0318/#examples if you want more examples, see the cookbook http://www.google.com/search?q=+site%3Aaspn.activestate.com+decorator+cookbook -- http://mail.python.org/mailman/listin

Re: Decorators and how they relate to Python - A little insight please!

2006-10-19 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > it's handy for doing things like validation of parameter and return > types. Like... > > @accepts(int,int) > @returns(int) > def add(a,b): > return a+b using Python decorators to turn Python into something that's not Python doesn't seem very handy to me, though.

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-19 Thread Fredrik Lundh
Kevin Walzer wrote: > Coming from Tcl/Tk, where there are a huge number of extension packages > to enhance the Tk widgets and which allow you to make really polished > GUI's, I'm struck mainly by how little of this stuff has made it over > into Tkinter/Python. For instance, I've developed several

Re: Decorators and how they relate to Python - A little insight please!

2006-10-19 Thread [EMAIL PROTECTED]
it's handy for doing things like validation of parameter and return types. Like... @accepts(int,int) @returns(int) def add(a,b): return a+b On Oct 19, 2:04 pm, "Jerry" <[EMAIL PROTECTED]> wrote: > I have just started to do some semi-serious programming (not one-off > specialized scripts) and

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-19 Thread Paul Rubin
Kevin Walzer <[EMAIL PROTECTED]> writes: > Am I better off biting the bullet and learning wxPython--a different GUI > paradigm to go with the new language I'm trying to learn? I had hoped to > reduce my learning curve, but I'm very concerned that I simply can't do > what I want to do with Tkinter.

Re: is it possible to send raw data through ftp?

2006-10-19 Thread daniel
On Oct 20, 1:10 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > daniel wrote: > > well, I'm trying to use ftplib to upload data that received from > > socket, and the application is required to restart the transfer at a > > specific interval so as to generate a different target file on the > > se

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Fredrik Lundh
Bernard Lebel wrote: > That's because I'm using Python through another application, via the > pywin32 extensions. When that other application starts, it performs > several thousands of file requests (we're talking 4,500, roughly) in > the Python installation, locations where there are Python files

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-19 Thread [EMAIL PROTECTED]
wxPython is much more powerful and flexible. I would suggest moving more in that direction. On Oct 19, 3:29 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote: > I'm a Tcl/Tk developer who has been working, slowly, at learning Python, > in part because Python has better support for certain kinds of > appl

Re: Need help in Py2exe

2006-10-19 Thread Fredrik Lundh
Kirt wrote: > --- > When i run this as python setup.py py2exe. I get an main.exe file in > dist folder. But when i run the file i get an error -- > Traceback (most recent call last): > File "main.py", line 7, in ? > Fi

Re: is it possible to send raw data through ftp?

2006-10-19 Thread Fredrik Lundh
daniel wrote: > well, I'm trying to use ftplib to upload data that received from > socket, and the application is required to restart the transfer at a > specific interval so as to generate a different target file on the > server to store subsequent data. > the problem is 'storbinary' accepts on

is it possible to send raw data through ftp?

2006-10-19 Thread daniel
well, I'm trying to use ftplib to upload data that received from socket, and the application is required to restart the transfer at a specific interval so as to generate a different target file on the server to store subsequent data. the problem is 'storbinary' accepts only file-like object, I ha

Need help in Py2exe

2006-10-19 Thread Kirt
I have a simple scrips that Parses a XML file and prints its element. 1)Main.py 2)Handler.py 3)test.xml The scripts works fine from comand prompt. Now i wanted to convert it to an exe. So i wrote a setup.py scripts as folows: #-Setup.py--

Re: Default location while open an Excel file

2006-10-19 Thread Johnny
On Oct 20, 11:24 am, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Friday 20/10/2006 00:08, Johnny wrote: > > >doc.Workbooks.Open(excelFile, ReadOnly=True) > > >But the problem is when I only pass the filename to the Open() > >method, and of course the file is in the current directory, it

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Rainy
Brad wrote: > John Salerno wrote: > > rick wrote: > >> Why can't Python have a reverse() function/method like Ruby? > > > > I'm not steeped enough in daily programming to argue that it isn't > > necessary, but my question is why do you need to reverse strings? Is it > > something that happens ofte

Re: Default location while open an Excel file

2006-10-19 Thread Gabriel Genellina
At Friday 20/10/2006 00:08, Johnny wrote: doc.Workbooks.Open(excelFile, ReadOnly=True) But the problem is when I only pass the filename to the Open() method, and of course the file is in the current directory, it will throw an exception that the specified file can't be found. When I use os.p

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 23:19, Bernard Lebel wrote: I'm affraid this step has already been done. I was not being pedantic when I said "locations that don't make sense", I *really* meant it. You would have to see the Filemon log! Python searches modules along the directories in sys.path - if you

Default location while open an Excel file

2006-10-19 Thread Johnny
Hi, As you know, I can use this to open an Excel file: """ import win32com.client doc = win32com.client.Dispatch("Excel.Application") doc.Workbooks.Open(excelFile, ReadOnly=True) """ But the problem is when I only pass the filename to the Open() method, and of course the file is in the curr

Re: Can I use decorators to manipulate return type or create methods?

2006-10-19 Thread WakeBdr
Diez, I get what that accomplishes now, but I'm having problems in my implementation. I was able to write a standalone class that worked correctly. However, in my code the class that I need to exhibit this functionality inherits from another class. This seems to cause problems when I attempt to

Re: Lead Software Engineer

2006-10-19 Thread James Stroud
alex23 wrote: > Emma wrote: > >>5. Please provide us with a comparison of the following music discovery >> >>sites: >> >>http://www.blogmusik.net >>http://www.seeqpod.com/music >>http://www.finetune.com >>http://www.webjay.com >> >>For each of these we like to know: >>A) What you like and dislike

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Bernard Lebel
I'm affraid this step has already been done. I was not being pedantic when I said "locations that don't make sense", I *really* meant it. You would have to see the Filemon log! Anyway, then is there a way to tell Python not to look for pyd/dll and others in certain locations? In locations were you

Re: Getting method name from within the class method

2006-10-19 Thread Ben Finney
Mitko Haralanov <[EMAIL PROTECTED]> writes: > On Thu, 19 Oct 2006 08:16:57 +0200 > Fredrik Lundh <[EMAIL PROTECTED]> wrote: > > > why are you writing functions that needs to output their own name > > a 100 times? why should the program's *external* behaviour depend > > on such an irrelevant detai

Re: A suggestion/request for IDEs

2006-10-19 Thread Harold Trammel
John Salerno wrote: > I apologize for the slightly off-topic nature, but I thought I'd just > throw this out there for anyone working on text editors or IDEs with > auto-completion. > > I think it should be a feature, when an item is selected for > auto-completion in a drop-down box, that press

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 22:38, Bernard Lebel wrote: That's because I'm using Python through another application, via the pywin32 extensions. When that other application starts, it performs several thousands of file requests (we're talking 4,500, roughly) in the Python installation, locations wher

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Bernard Lebel
Hi, That's because I'm using Python through another application, via the pywin32 extensions. When that other application starts, it performs several thousands of file requests (we're talking 4,500, roughly) in the Python installation, locations where there are Python files, and in some other locat

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 21:07, Brad wrote: > Gah!!! That's *awful* in so many ways. It has been my experience that Python has discouraging forums with someone always calling someone else an idiot or telling them they are awful in some way. I love Python, but the community is way too negative, up

Re: Getting method name from within the class method

2006-10-19 Thread Mitko Haralanov
On 18 Oct 2006 21:01:36 -0700 "George Sakkis" <[EMAIL PROTECTED]> wrote: > from inspect import getframeinfo,currentframe > > class test(object): > def a_method(self,this,that): > print getframeinfo(currentframe())[2] Thanx for the reply! This about the most useful one I've gotten so

Re: Getting method name from within the class method

2006-10-19 Thread Mitko Haralanov
On Thu, 19 Oct 2006 08:16:57 +0200 Fredrik Lundh <[EMAIL PROTECTED]> wrote: > why are you writing functions that needs to output their own name a > 100 times? why should the program's *external* behaviour depend on > such an irrelevant detail of its internal design? sounds like lousy > design t

Re: SPE for 2.5?

2006-10-19 Thread SPE - Stani's Python Editor
Fuzzyman schreef: > Shame as it is a *very* nice IDE, but it had too many quirks (with > little chance of them being fixed it seemed) to use it for commercial > development at Resolver. I've never head from a company called Resolver. A commercial company can not assume if it picks up a free proje

Re: SPE for 2.5?

2006-10-19 Thread SPE - Stani's Python Editor
Hi Fuzzy, I think you refer to pyxides (http://pyxides.stani.be). Pyxides turned out to be more like an exchange between different IDE developpers, rather than a common project. There are a lot of reasons for that: different GUI toolkits, geographical distances rendering physical sprints almost im

python module for finite element program

2006-10-19 Thread [EMAIL PROTECTED]
Hello, Is there any add on python modules suitable for finite element 3D mesh such as to create (beam, plate, etc) ? Best Regards, ajikoe -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I use decorators to manipulate return type or create methods?

2006-10-19 Thread Diez B. Roggisch
WakeBdr schrieb: > Diez, > What does the function._marked accomplish? Its a decorator that tells the metaclass which functions to provide with a *XML/*FOO variant as well. I thought that was pretty obvious, given the name "mark" and all that. Diez -- http://mail.python.org/mailman/listinf

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Brad
Steven D'Aprano wrote: > Gah!!! That's *awful* in so many ways. Thanks... I'm used to hearing encouragement like that. After a while you begin to believe that everything you do will be awful, so why even bother trying? It has been my experience that Python has discouraging forums with someo

Re: Lead Software Engineer

2006-10-19 Thread alex23
Emma wrote: > 5. Please provide us with a comparison of the following music discovery > > sites: > > http://www.blogmusik.net > http://www.seeqpod.com/music > http://www.finetune.com > http://www.webjay.com > > For each of these we like to know: > A) What you like and dislike about each of these. >

Re: Lead Software Engineer

2006-10-19 Thread Edward Diener No Spam
Emma wrote: > Successful candidates meet the following requirements: > · A burning desire to build rock-solid apps that people will be > unable > to live without I use to have a burning desire to cleverly answer questionnaires for companies which either don't exist or, if they do, don't tell you

Re: How to use python in TestMaker

2006-10-19 Thread Ben Finney
[Please don't top-post your responses.] "kelin,[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I just can't find a good tool to do Unit Test with Python. Could you > please tell me any? Python comes with batteries included. http://docs.python.org/lib/module-unittest> -- \ "I went

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Paul Rubin
Steven D'Aprano <[EMAIL PROTECTED]> writes: > >>> ''.join(list(reversed("some string"))) > 'gnirts emos' ''.join(reversed('some string')) should work, without building the intermediate list. I generally don't remember the ::-1 syntax so the above would occur to me sooner. -- http://mail.python.o

Re: I would like write some data recovery software

2006-10-19 Thread gel
Laurent Pointal wrote: > gel a écrit : > > I would like to write some data recovery software as a learning thing. > > The sort of thing that you would use to recover data from a currupt HDD > > or floppy etc. I would like to be pointed in the right direction as > > far as modules to use and sugges

Re: How to use python in TestMaker

2006-10-19 Thread Ben Finney
"kelin,[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > I just can't find a good tool to do Unit Test with Python. Could you > please tell me any? Python comes with batteries included. -- \ "Two rules to success in life: 1. Don't tell people everything | `\

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Steven D'Aprano
On Thu, 19 Oct 2006 12:38:55 -0400, Brad wrote: > John Salerno wrote: >> rick wrote: >>> Why can't Python have a reverse() function/method like Ruby? >> >> I'm not steeped enough in daily programming to argue that it isn't >> necessary, but my question is why do you need to reverse strings? Is i

Re: Lead Software Engineer

2006-10-19 Thread Paul Rubin
Gabriel Genellina <[EMAIL PROTECTED]> writes: > So you almost have to be Tim Berners-Lee to qualify... Who were > developing "high volume web applications" on 1996? Amazon.com was founded in 1995 and IPO'd in 1997, but yeah, things were sparse back then. -- http://mail.python.org/mailman/listinfo

Re: Can I use decorators to manipulate return type or create methods?

2006-10-19 Thread WakeBdr
Diez, What does the function._marked accomplish? Diez B. Roggisch wrote: > WakeBdr schrieb: > > I'm writing a class that will query a database for some data and return > > the result to the caller. I need to be able to return the result of > > the query in several different ways: list, xml,

Re: Lead Software Engineer

2006-10-19 Thread Paul Rubin
"Emma" <[EMAIL PROTECTED]> writes: > Successful candidates meet the following requirements: Um, who is asking? -- http://mail.python.org/mailman/listinfo/python-list

Re: Lead Software Engineer

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 19:06, Emma wrote: >Successful candidates meet the following requirements: >· 10+ years experience designing and implementing high volume web >applications So you almost have to be Tim Berners-Lee to qualify... Who were developing "high volume web applications" on 1996?

ignore cstylecomment issues

2006-10-19 Thread jchumnanvech
from pyparsing import Word, printables,ZeroOrMore,cStyleComment expr = ZeroOrMore(Word(printables)) expr.ignore(cStyleComment) for line in expr.parseString('#include \n\nint main()\n{/*interesintg\ncomment*/\nstd::cout << "hello world";\n}'): print line outputs #include int main() {/*interes

Re: callback crashing python

2006-10-19 Thread Bryan
Bryan wrote: > hi, > > i have a multithreaded c server that calls process_method in a different > c thread per each call. process_method calls a python function bar in > module foo. function bar calls back into c. i've removed all the type > error handling and simplified the code to hopefull

Lead Software Engineer

2006-10-19 Thread Emma
Successful candidates meet the following requirements: · A burning desire to build rock-solid apps that people will be unable to live without · Detail-oriented · Superb written and verbal communication skills · Self-directed, highly motivated, and eager to make a positive impact · 10+ years experie

Re: Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 18:38, Bernard Lebel wrote: By default, when I import a module in Python, Python looks for pyd, dll, py, then pyw and finally pyc file. In our company we do not use pyd and dll for Python stuff. Is there any chance to disable Python from looking at these? Perhaps a flag w

Re: Insert characters into string based on re ?

2006-10-19 Thread guido . thelen
Hi, initially I had the same idea before I started writing a SQL Formatter. I was sure that coding a few "change" commands in a script would reformat my SQL statements. But step by step I recognized that SQL statements can not be formatted by regular expressions. Why not? Because there is a risk th

Re: Rapid desktop application development

2006-10-19 Thread Ravi Teja
Stephen Eilert wrote: > Hi all, > > There has been much hype lately about web "megaframeworks", like > TurboGears, Django and Rails(Ruby side). Those are all fantastic > frameworks, nicely integrated so that the user can focus on solving his > problem, instead of doing all the scaffolding and fram

Re: proper format for this database table

2006-10-19 Thread Jordan Greenberg
John Salerno wrote: > Hi guys. I was wondering if someone could suggest some possible > structures for an "Education" table in a database. It will contain at > minimum university names, years of attendance, and degrees earned. My > problem is that I don't know quite how to set this up for people wh

Re: proper format for this database table

2006-10-19 Thread [EMAIL PROTECTED]
Gabriel Genellina wrote: > At Thursday 19/10/2006 17:07, John Salerno wrote: > > >Hi guys. I was wondering if someone could suggest some possible > >structures for an "Education" table in a database. It will contain at > >minimum university names, years of attendance, and degrees earned. My > >pro

Restricting import file lookup for pyd, dll, ...

2006-10-19 Thread Bernard Lebel
Hello, Running Python 2.4.0 on Windows. I have run a series of tests using Filemon (SysInternals), which logs the file system requests performed by the computer. By default, when I import a module in Python, Python looks for pyd, dll, py, then pyw and finally pyc file. In our company we do not u

Rapid desktop application development

2006-10-19 Thread Stephen Eilert
Hi all, There has been much hype lately about web "megaframeworks", like TurboGears, Django and Rails(Ruby side). Those are all fantastic frameworks, nicely integrated so that the user can focus on solving his problem, instead of doing all the scaffolding and framework integration by hand. Now, I

Re: Decorators and how they relate to Python - A little insight please!

2006-10-19 Thread johnzenger
When you want to repeatedly apply a certain ALGORITHM to arbitrary sets of DATA, you write a FUNCTION. When you want to add a certain BEHAVIOR to arbitrary sets of FUNCTIONS, you write a DECORATOR. An excellent use of decorators is in Django, the web programming framework. Django keeps track of

Re: Help: Python2.3 & Python2.4 on RHEL4 x86_64

2006-10-19 Thread Trent Mick
Christopher Taylor wrote: > RHEL comes with Python2.3 installed. A program I need to install > requires Python2.4 ActivePython has a 2.4 build for Linux/x86_64: http://www.activestate.com/Products/ActivePython/ Cheers, Trent -- Trent Mick [EMAIL PROTECTED] -- http://mail.python.org/mailman/l

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread skip
James> I guess while I'm at it, this thread wouldn't have so much steam James> were these idioms seemingly unpythonic: James>"".join(reverse(x)) James>alist[::-1] James> The latter, while more terse than alist.reversed(), is unnatural James> and ugly compa

Re: advice for web-based image annotation

2006-10-19 Thread Paul Rubin
Brian Blais <[EMAIL PROTECTED]> writes: > I want to set up a system where I can have my family members write > comments about a number of pictures, as part of a family tree project. > ...Any suggestions would be greatly appreciated! How about a wiki? -- http://mail.python.org/mailman/listinfo/pyt

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread James Stroud
Neil Cerutti wrote: > On 2006-10-19, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > >>James Stroud wrote: >> >> >>>without requiring an iterator >> >>can we perhaps invent some more arbitrary constraints while >>we're at it? > > > No letter G. I don't like them. They wet their nests. > The requi

Re: proper format for this database table

2006-10-19 Thread Bruno Desthuilliers
John Salerno a écrit : > Hi guys. I was wondering if someone could suggest some possible > structures for an "Education" table in a database. Wrong newsgroup, then. comp.database.* is right next door... -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter--does anyone use it for sophisticated GUI development?

2006-10-19 Thread James Stroud
Kevin Walzer wrote: > I'm a Tcl/Tk developer who has been working, slowly, at learning Python, > in part because Python has better support for certain kinds of > applications that I want to develop than Tcl/Tk does. Naturally, I > thought that I would use Tkinter as the GUI for these programs. Howe

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread James Stroud
Fredrik Lundh wrote: > James Stroud wrote: > > > without requiring an iterator > > can we perhaps invent some more arbitrary constraints while we're at it? > > > I guess while I'm at it, this thread wouldn't have so much steam were these idioms seemingly unpythonic: "".join(reverse(

Re: Compile for 64bit RHEL

2006-10-19 Thread MrJean1
Both Python 2.4.4 and 2.5 built just fine on my Opteron box with RHEL (release 3 update 7). There are no test failures, only 35 skipped tests (which are expected on Linux). /Jean Brouwers Christopher Taylor wrote: > Has anyone been able to get python 2.4 to compile properly for x86_64 RHEL? >

Re: pexpect with apache

2006-10-19 Thread [EMAIL PROTECTED]
Thank you both for your help. I don't know why I didn't think of that before. I had the expect mindset, and was determined to get it working that way. I added an entry for sudo for the script and it works without a hitch. I'm still curious to know what was going on to disallow the authentication

Re: proper format for this database table

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 17:07, John Salerno wrote: Hi guys. I was wondering if someone could suggest some possible structures for an "Education" table in a database. It will contain at minimum university names, years of attendance, and degrees earned. My problem is that I don't know quite how to

proper format for this database table

2006-10-19 Thread John Salerno
Hi guys. I was wondering if someone could suggest some possible structures for an "Education" table in a database. It will contain at minimum university names, years of attendance, and degrees earned. My problem is that I don't know quite how to set this up for people who have attended multiple

Re: right curly quote and unicode

2006-10-19 Thread TiNo
That is actually> not an apostrophe, but ASCII char 180: ´It's actually Unicode char #180, not ASCII. ASCII characters are in 0..127 range.Yep, that's what I ment... :D > In the Itunes library it is encoded as: Don%E2%80%99t Looks like a utf-8 encoded string, then encoded like an url.It is. I just

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Neil Cerutti
On 2006-10-19, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > James Stroud wrote: > > > without requiring an iterator > > can we perhaps invent some more arbitrary constraints while > we're at it? No letter G. I don't like them. They wet their nests. -- Neil Cerutti You only get a once-in-a-lifeti

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread James Stroud
Fredrik Lundh wrote: > James Stroud wrote: > > > without requiring an iterator > > can we perhaps invent some more arbitrary constraints while we're at it? > > > Why does it seem to me that you are confusing convienience with constraint, or are the two equivalent? James -- James Stroud U

Re: wxPython help wxSashWindow

2006-10-19 Thread MrJean1
Take a look at the "wxSashWindow" example in the wxPython demo. That is located under the Core Windows/Controls item. /Jean Brouwers MatthewWarren wrote: > Hi, I'm wondering if anyone can tell me here, or point to a specific > tutorial ( I have searched for 1/2hour, but can find only referenc

Re: Calling a definition

2006-10-19 Thread elake
Thanks for all of the help guys. I am still new to Python so this is part of the learning curve I guess. I will look at the glob module and see if that will do what I need to better. On Oct 19, 3:34 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 19/10/2006 15:43, elake wrote: > > >

Re: Calling a definition

2006-10-19 Thread Gabriel Genellina
At Thursday 19/10/2006 15:43, elake wrote: I have a piece of code that I need some help with. It is supposed (in my mind at least) take two arguments, a start path and a file extension. Then when called it should return each of the file paths that are found matching the criteria. It is only retu

Tkinter--does anyone use it for sophisticated GUI development?

2006-10-19 Thread Kevin Walzer
I'm a Tcl/Tk developer who has been working, slowly, at learning Python, in part because Python has better support for certain kinds of applications that I want to develop than Tcl/Tk does. Naturally, I thought that I would use Tkinter as the GUI for these programs. However, in doing research into

Re: Calling a definition

2006-10-19 Thread Fredrik Lundh
"elake" (if that's supposed to be swedish, that should be "elak") wrote: > I have a piece of code that I need some help with. It is supposed (in > my mind at least) take two arguments, a start path and a file > extension. Then when called it should return each of the file paths > that are found ma

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Fredrik Lundh
rick wrote: >> Well, there you go! Apparently, your wet paper bag has no "detect a >> palendrome" exit. While you're installing such an egress to your soggy >> dead-tree satchel, you could also provide similar "write a binary > > Glad you guys are enjoying this. We're getting off-topic and I

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Fredrik Lundh
James Stroud wrote: > without requiring an iterator can we perhaps invent some more arbitrary constraints while we're at it? -- http://mail.python.org/mailman/listinfo/python-list

Re: pywin32 COM sort in Excel (late binding fails, early binding works) (+py2exe)

2006-10-19 Thread Thomas Heller
[EMAIL PROTECTED] schrieb: > ISSUE: COM Excel Sort works with Early Binding, but not Late Binding, > but py2exe only does Late Binding > > I have code similar to this (type from notes, so there may be a > typo...) > > import win32com.client > xl = win32com.client.Dispatch("Excel.Application") > x

Re: Image.draft -- what are the modes that I can use?

2006-10-19 Thread abcd
Gabriel Genellina wrote: > A VNC server is about 400K in size... Yea, VNC is not an option in my case. thanks anyway, perhaps I'll look into generating a slideshow using HTML/javascript which can load the images. -- http://mail.python.org/mailman/listinfo/python-list

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Ron Adam
James Stroud wrote: > Of course, I think str.join can operate on iterators, as Paul Rubin > suggests: > > > print ''.join(reversed(x)) > > This latter approach still seems a little clunky, though. > > James Slices can be named so you could do... >>> reverser = slice(None, None, -1) >>> >

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread James Stroud
Paul Boddie wrote: > James Stroud wrote: >>(1,2,3).reversed() >> >>"123".reversed() >> >>[1,2,3].reversed() > > I guess Python 2.5 has the reversed method of which you speak. Not that I could find (as methods of any built in sequence type). 2.5 just has the "reversed" function that returns and i

Re: Calling a definition

2006-10-19 Thread Tim Chase
> I have a piece of code that I need some help with. It is > supposed (in my mind at least) take two arguments, a start > path and a file extension. Then when called it should return > each of the file paths that are found matching the criteria. > It is only returning the first file that it finds.

Re: [OT] a little about regex

2006-10-19 Thread Ron Adam
Fulvio wrote: > *** > Your mail has been scanned by InterScan MSS. > *** > > > On Wednesday 18 October 2006 15:32, Ron Adam wrote: > >> |Instead of using two separate if's, Use an if - elif and be sure to test > > Thank you, Ron, for the input :) > I'll e

Calling a definition

2006-10-19 Thread elake
I have a piece of code that I need some help with. It is supposed (in my mind at least) take two arguments, a start path and a file extension. Then when called it should return each of the file paths that are found matching the criteria. It is only returning the first file that it finds. What am I

Re: invert or reverse a string... warning this is a rant

2006-10-19 Thread Paul Boddie
James Stroud wrote: > > It would provide symmetry for reversing any sequence (without requiring > an iterator). > > (1,2,3).reversed() > > "123".reversed() > > [1,2,3].reversed() That might infuriate those who regard strings as "mischievous" sequences (ie. things which cause errors because you thi

RE: OT--Shuffling, was Re: invert or reverse a string... warning thisis a rant

2006-10-19 Thread Demel, Jeff
J.Clifford Dyer wrote: >To my mind that would be the exact opposite of shuffling a deck >of cards. In your case, each time, you know exactly which stack >the card comes from, but not which card out of the stack. When >you shuffle cards, it's more like you know exactly which card is > coming n

Re: comparing Unicode and string

2006-10-19 Thread Neil Cerutti
On 2006-10-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Suggestion: shouldn't an error raise already when I try to > assign s2? There's been discussion on pydev about changing this, but for now I believe a str is a sequence of bytes in Python, rather than a string of characters. My current p

ANN: wxPython 2.7.1.1 released

2006-10-19 Thread Robin Dunn
Announcing -- The 2.7.1.1 release of wxPython is now available for download at http://wxpython.org/download.php. This release is the first offical release in the 2.7.x development series, and includes a lot of new features, enhancements and fixes. Source and binaries are available for bo

  1   2   3   >