fastest postgresql module

2005-03-17 Thread Timothy Smith
has anyone got some hard numbers on which pg access module is the fastest, i currently use pypgsql, but i can't help but feel it's a little slow. 3 seconds to connect, send one query, get th return data. i'm on a adsl 1.5mbit/256kbit link, the server is on a 10/10mbit, and i have a ping of 245ms

Re: fastest postgresql module

2005-03-17 Thread Timothy Smith
Leif B. Kristensen wrote: Timothy Smith skrev: has anyone got some hard numbers on which pg access module is the fastest, i currently use pypgsql, but i can't help but feel it's a little slow. 3 seconds to connect, send one query, get th return data. i'm on a adsl 1.5mbit/25

Re: fastest postgresql module

2005-03-17 Thread Timothy Smith
Leif B. Kristensen wrote: Timothy Smith skrev: my only issue with psycopg, is last time i looked they had no win32 port? Uh, in that case, maybe you should consider changing platform? 8^) my app has to be multiplatform, but i would gladly rip windows from the drives of every computer

Time zones

2004-12-01 Thread Timothy Hume
Hi, I want to ensure that all my time calculations are done in UTC. This is easy with Python on UNIX machines. I simply set the TZ environment variable to "UTC", and it ensures that the time functions use UTC. My question is, how do I get similar functionality using Python on Windows? Thanks

Recursive list comprehension

2004-12-06 Thread Timothy Babytch
t look pythonic.. I tried print [x for x in y for y in c_vars] and got NameError: name 'y' is not defined. -- Timothy Babytch -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursive list comprehension

2004-12-06 Thread Timothy Babytch
: data = [] for sub in [['N', 'F'], ['E'], ['D']]: ... data.extend(sub) ... Thanks. Both tips were helpful. -- Timothy Babytch -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursive list comprehension

2004-12-06 Thread Timothy Babytch
Serhiy Storchaka wrote: >>>sum([['N', 'F'], ['E'], ['D']], []) ['N', 'F', 'E', 'D'] THE BEST! -- Timothy Babytch, PHP-dev Teamleader -- http://mail.python.org/mailman/listinfo/python-list

while 1 vs while True

2004-12-12 Thread Timothy Fitz
[ http://www.python.org/moin/PythonSpeed ] "Starting with Py2.3, the interpreter optimizes 'while 1' to just a single jump. In contrast "while True" takes several more steps. While the latter is preferred for clarity, time-critical code should use the first form." Out of pure curiousity, Why wasn'

Re: Regular Expression

2004-12-14 Thread Timothy Grant
On Tue, 14 Dec 2004 23:16:43 -0700, Michael McGarry <[EMAIL PROTECTED]> wrote: > Hi, > > I am horrible with Regular Expressions, can anyone recommend a book on it? > > Also I am trying to parse the following string to extract the number > after load average. > > " load average: 0.04, 0.02, 0

Re: do you master list comprehensions?

2004-12-14 Thread Timothy Babytch
Will Stuyvesant wrote: data = [['foo','bar','baz'],['my','your'],['holy','grail']] sum(data, []) ['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail'] The sec

cross platform use of set locale

2005-03-22 Thread Timothy Smith
hi there i need to set my locale so that when i output a number it's formatted with thousands grouped. the problem i've found is there doesn't seem to be very good cross platform support for locales, even between unix's it's horrid. -- http://mail.python.org/mailman/listinfo/python-list

Re: cross platform use of set locale

2005-03-22 Thread Timothy Smith
Marc 'BlackJack' Rintsch wrote: In <[EMAIL PROTECTED]>, Timothy Smith wrote: hi there i need to set my locale so that when i output a number it's formatted with thousands grouped. the problem i've found is there doesn't seem to be very good cross platform sup

Re: cross platform use of set locale

2005-03-23 Thread Timothy Smith
Serge Orlov wrote: Timothy Smith wrote: thats ok, but how do i get it to group thousands with a , ? and thats would mean i'd have to run everything through a formatter before i displayed it :/ it'd be nicer if i could just select a proper locale I think you're misusing loca

Re: cross platform use of set locale

2005-03-23 Thread Timothy Smith
Serge Orlov wrote: Timothy Smith wrote: Serge Orlov wrote: Timothy Smith wrote: thats ok, but how do i get it to group thousands with a , ? and thats would mean i'd have to run everything through a formatter before i displayed it :/ it'd be nicer if i could just selec

urllib problem (maybe bugs?)

2005-03-30 Thread Timothy Wu
or return self.http_error_default(url, fp, errcode, errmsg, headers) File "C:\Python24\lib\urllib.py", line 550, in http_error_default return addinfourl(fp, headers, "http:" + url) File "C:\Python24\lib\urllib.py", line 836, in __init__ addbase.__init__(self, fp) File "C:\Python24\lib\urllib.py", line 786, in __init__ self.read = self.fp.read AttributeError: 'NoneType' object has no attribute 'read' Timothy -- http://mail.python.org/mailman/listinfo/python-list

Re: urllib problem (maybe bugs?)

2005-03-31 Thread Timothy Wu
On Wed, 30 Mar 2005 18:25:56 +0200, Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Timothy Wu wrote: > > > After I've done that it works fine for small SEQ values. Then, when I > > try to send large amount of data (1.4MB), it fails miserably with > > AttributeEr

Re: A little request about spam

2005-04-14 Thread Timothy Grant
On 4/14/05, mark hellewell <[EMAIL PROTECTED]> wrote: > On 4/14/05, BJörn Lindqvist <[EMAIL PROTECTED]> wrote: > > Please do not reply to spam. Replying to spam makes it much harder for > > spam filters to catch all the spam or will produce very many false > > positives. Atleast that's how gmail's

pysvn install on freebsd

2005-04-15 Thread Timothy Smith
has anyone used or installed this on fbsd the install for it is totally redundant. i get this error for it make -f freebsd.mak clean all test cd ../Source && make -f pysvn_freebsd_py.mak clean make: cannot open pysvn_freebsd_py.mak. *** Error code 2 Stop in /usr/home/timothy/pysvn-1.1.2/E

pysvn install on freebsd

2005-04-16 Thread Timothy Smith
has anyone used or installed this on fbsd the install for it is totally redundant. i get this error for it make -f freebsd.mak clean all test cd ../Source && make -f pysvn_freebsd_py.mak clean make: cannot open pysvn_freebsd_py.mak. *** Error code 2 Stop in /usr/home/timothy/pysvn-1.1.2/E

Heartbleed and the windows distributions on python.org

2014-04-28 Thread Timothy McDonald
I am building a cherrypy app that is testing as vulnerable to the heartbleed exploit. The app is running on the 64 bit 3.3.5 Windows distribution of python. An updated version of 64 bit Python 3.3.x for Windows or an updated pyopenssl? I am kind of surprised the distribution on python.org hasen'

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Timothy Johnson
On 8/5/2015 9:06 PM, Terry Reedy wrote: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as are ap

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-07 Thread Timothy Johnson
On 8/5/2015 9:06 PM, Terry Reedy wrote: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as are ap

How to write a language parser ?

2013-02-22 Thread Timothy Madden
parsers you have used for complete languages ? Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

QT Inspired web development framework for python

2013-02-28 Thread timothy crosley
interested the main link for the widgets is http://www.webelements.in and the link for the framework overall is http://www.webbot.ws Thanks! Timothy -- http://mail.python.org/mailman/listinfo/python-list

Re: QT Inspired web development framework for python

2013-03-01 Thread timothy crosley
future I plan on adding even more django integration For things such as ajax abstraction. The long term vision is to be able to create apps and widgets that will run on any python framework unmodified except for calls to the database etc. Timothy Thursday, February 28, 2013 11:43:04 PM UTC-5

Re: QT Inspired web development framework for python

2013-03-01 Thread timothy crosley
Hi Ian, The intention would be to invoke WebElements at view run time, this way the developer can write code to interact with the elements and effect the produced HTML dynamically on every request Timothy -- http://mail.python.org/mailman/listinfo/python-list

Re: QT Inspired web development framework for python

2013-03-13 Thread timothy crosley
I've added special hooks into the framework to make integration with Django projects fairly seemless, these are detailed under the django quick start guide: http://www.webbot.ws/QuickStartGuide I hope this addresses some of the questions that have come up here, Thanks! Timothy --

Re: Test a list

2013-03-20 Thread timothy crosley
Hi Ana, if I understand your question correctly, all you have to do to test this is to write: if i in t: print "Test1" else: print "Test2" On Wednesday, March 20, 2013 2:15:27 PM UTC-4, Ana Dionísio wrote: > t= [3,5,6,7,10,14,17,21] > > > > Basically I want to print Test 1 when i is e

Re: QT Inspired web development framework for python

2013-03-20 Thread timothy crosley
tion, that will hopefully make it more obvious what the framework is about and it's advantages. These are available here: http://www.webbot.ws/Demos Thanks Again, Timothy -- http://mail.python.org/mailman/listinfo/python-list

Screencast: Creating and deploying an advanced python web application in under 15 minutes!

2013-03-26 Thread timothy crosley
Hi, I've created a screen cast showing how a message board with live-validation and Ajax calls written in python can be built and deployed in under 15 minutes. You can view it here: http://www.youtube.com/watch?v=ucougrZK9wI I hope some of you find it useful, Thanks! Timothy --

Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!

2013-03-29 Thread timothy crosley
I apologize for the audio from the original screen cast, it was really sub-par. I bought a new microphone and re-recorded it: http://www.youtube.com/watch?v=0L8TsmrZPLg&feature=youtu.be Thanks! Timothy On Tuesday, March 26, 2013 4:54:15 AM UTC-4, timothy crosley wrote: > Hi, > &g

Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!

2013-03-29 Thread timothy crosley
Thanks Karim! On Friday, March 29, 2013 10:47:41 AM UTC-4, Karim wrote: > On 29/03/2013 14:53, timothy crosley wrote: > > > I apologize for the audio from the original screen cast, it was really > > sub-par. I bought a new microphone and re-recorded it: > > http:/

Re: I hate you all

2013-04-05 Thread Timothy Madden
is too much), or - drop tabs altogether The new rules may look flexible at first sight, but the net effect they have is they push me to use non-default tab size (which is not good), or drop the tabs, which I could have used before python 3 just fine. Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-05 Thread Timothy Madden
he python syntax does. Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-06 Thread Timothy Madden
On 06.04.2013 08:53, Ian Kelly wrote: On Fri, Apr 5, 2013 at 11:07 PM, Timothy Madden wrote: [...] So in other words, everybody must be forced to use 8-character tabs because you want to be able to mix tabs and spaces. People say I can use tabs all the way, just set them to the indent I

Re: I hate you all

2013-04-06 Thread Timothy Madden
when they no longer have a choice they used to have. But I hear programmers should get used to the feeling: using code that you did not write is bound to trigger that reaction every so often. Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-06 Thread Timothy Madden
will run all code written for the new "python 3 way", and brings back some compatibility, so it is not that bad. And some people might actually want it. Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-06 Thread Timothy Madden
On 06.04.2013 17:20, Chris Angelico wrote: On Sun, Apr 7, 2013 at 12:52 AM, Nobody wrote: Historically, software and hardware which assigns a meaning to a tab character has come in two flavours: 1. Tab stops are every 8 columns; this cannot be changed. 2. Tab stops are configurable, defaulting

Re: I hate you all

2013-04-07 Thread Timothy Madden
rice to be paid for relying solely on white space to delimit code blocks, like the python syntax does. And in actual practice, that has been shown to be a Good Thing. Yes, I agree, it is. It just could have been better. Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-07 Thread Timothy Madden
make tabs work the way they used to would have been nice. Just my opinion, I do see other people here think otherwise... Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

sending bytes to parallel port

2006-07-28 Thread Timothy Smith
hello people. i've been trying to send an 8 byte string to my parallel port under freebsd. the purpose is it to control a relay board. the board simply responds to the output byte coming from the port. eg. 0001 will set pin 1 high and flick the relay open. todate i've attempted this with mer

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Grant Edwards wrote: > On 2006-07-28, Timothy Smith <[EMAIL PROTECTED]> wrote: > > >> i've been trying to send an 8 byte string to my parallel port >> under freebsd. the purpose is it to control a relay board. the >> board simply responds to the o

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Grant Edwards wrote: > On 2006-07-29, Grant Edwards <[EMAIL PROTECTED]> wrote: > > >> I'd particularly recommend taking a look at the pyparallel >> module found here: >> >> http://pyserial.sourceforge.net/ >> > > Oops, there isn't actually a link to pyparallel from that page > (I swear th

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Dennis Lee Bieber wrote: > On Sat, 29 Jul 2006 13:59:02 +1000, Timothy Smith > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > >> and yes i've done quite a bit of googling, i never expected it to be >> this difficult. i've done work

Re: sending bytes to parallel port

2006-07-28 Thread Timothy Smith
Diez B. Roggisch wrote: >> >>> fd = open('/dev/ppi0','w') >> >>> fcntl.ioctl(fd.fileno(),'PPISCTRL',1000) >> Traceback (most recent call last): >> File "", line 1, in ? >> TypeError: an integer is required >> >> i guess i'm failing to properly define the int i need for the 8byte >> value in

Re: sending bytes to parallel port

2006-07-29 Thread Timothy Smith
Diez B. Roggisch wrote: >> *sigh* >> if only pyparallel would install >> > > *sigh* If only you said _what_ failed we could maybe help you make it > work... :) > > Diez > titan# python setup.py install running install running build running build_py Traceback (most recent call last): File

pycrust xmlrpclib problem

2006-08-06 Thread Timothy Gee
Have do a lot of lab work making use of xmlrpclib and am quite dependent on it. I just started working with pycrust under Linux RH9, and wanted to use it as my standard python environment, however, when I import xmlrpclib, I get a segmentation fault. Command line still works fine however. Details f

Re: Newbie question - leading zeros

2006-10-13 Thread Timothy Grant
On 10/13/06, eldorado <[EMAIL PROTECTED]> wrote: > I have looked around and cannot seem to find a way to strip leading zeros > off of values in a dictionary. Basically, I am looking to do a for loop > and any value that has one or more leading zeros would be stripped. Any > pointers would be apprec

Re: Best Python Editor

2006-05-31 Thread Timothy Grant
On 5/31/06, Manoj Kumar P <[EMAIL PROTECTED]> wrote: > > Hi, > > Can anyone tell me a good python editor/IDE? > It would be great if you can provide the download link also. > > Thank You, > -Manoj- > > > "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY > 2005 conducted by

Re: what are you using python language for?

2006-06-06 Thread Timothy Grant
On 6/4/06, hacker1017 <[EMAIL PROTECTED]> wrote: > im just asking out of curiosity. My current gig is perl only, but I still use python for personal stuff 1) +Twisted for a couple of IRC Bots 2) an interface between TextMate and py.test 3) a soccer management game (wxPython + PyGame) -- Stand

ANN: DMetaph.py An implementation of the Double Metaphone algorithm

2006-08-25 Thread Timothy Grant
Hello everyone, I recently had a need to do some work with fuzzy matches, so I ported Lawrence Philips DMetaph class from C++ to Python. This is currently pretty much a line for line port of his his C++ code. It is not very pythonic at all. Because it is SO ugly, I'm not yet making it available

threads and return values

2006-09-13 Thread Timothy Smith
say i'm issuing t = Thread(target=lambda: WeeklyReportPDF.MakeReport(self.UserNameValue, self.PassWordValue,ReportType,self.db)) t.start() which works just fine, BUT how do i get access to the return value of WeeklyReportPDF.MakeReport() ?? -- http://mail.python.org/mailman/listinfo/python-li

Re: FtpUtils Progress Bar

2006-09-13 Thread Timothy Smith
[EMAIL PROTECTED] wrote: > Hi, > I can successfully upload and download files using Stefan's Schwarzer's > ftputil script. > > The problem is that as some of the files are quite large you cannot see > how much has been downloaded/uploaded. > Even a percentage or just dots going across the screen wo

Re: Re: Leave the putdowns in the Perl community, the Python world does not need them

2006-09-25 Thread Timothy Grant
On 25 Sep 2006 07:35:45 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Metaperl, > > Steve makes a good point. Fredrik is one of the most important > contributors of Python code, tools, etc and as far as I am concerned, > that is so important that it gives him the right to be cranky from tie

Re: Ruby/Python/REXX as a MUCK scripting language

2006-11-24 Thread Timothy Goddard
Tony Belding wrote: > I'm interested in using an off-the-shelf interpreted language as a > user-accessible scripting language for a MUCK. I'm just not sure if I > can find one that does everything I need. The MUCK must be able to > call the interpreter and execute scripts with it, but the interp

Generator question

2006-11-26 Thread Timothy Wu
Hi, Using generator recursively is not doing what I expect: def test_gen(x): yield x x = x - 1 if x != 0: test_gen(x) for item in test_gen(3): print item This gives me a single number 3 and not printing 2 and 1 as I would expect. What is wrong?? Timothy -- http

Re: Generator question

2006-11-26 Thread Timothy Wu
x != 0: ...: for y in test_gen(x): ...: yield y ...: ...: In [3]: list(test_gen(3)) Out[3]: [3, 2, 1] Ha-HA, that makes perfect sense I guess. Though in my opinion the definition makes the code a bit harder to read. Thanks for the explanation. Timothy -- http://mail.pyth

Re: Re: Good script editor for Python on Mac OS 10.3

2006-11-29 Thread Timothy Grant
On 11/29/06, Lou Pecora <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > "Scott_Davies" <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > I have an old Mac with OS X Panther installed. I also have the Python > > language download file, but I haven't got a text/script editor to use > > fo

Gdmodule

2006-12-23 Thread Timothy Wu
least, it's too difficult for me to grasp. Timothy -- http://mail.python.org/mailman/listinfo/python-list

py2exe and library.zip

2005-05-02 Thread Timothy Smith
is it possible instead of py2exe putting all library's in a zip file, to just put them in a sub dir? -- http://mail.python.org/mailman/listinfo/python-list

Re: py2exe and library.zip

2005-05-03 Thread Timothy Smith
Peter Hansen wrote: >Timothy Smith wrote: > > >>is it possible instead of py2exe putting all library's in a zip file, to >>just put them in a sub dir? >> >> > >Anything's possible. Maybe you could explain what you're actually &

Re: py2exe and library.zip

2005-05-04 Thread Timothy Smith
Simon Brunning wrote: >On 5/4/05, Timothy Smith <[EMAIL PROTECTED]> wrote: > > >>Simon Brunning wrote: >> >> >>>The zip file is a generated artifact. I've always found it a good rule >>>of thumb that you should keep source artifacts in

Re: py2exe and library.zip

2005-05-04 Thread Timothy Smith
Peter Hansen wrote: >Timothy Smith wrote: > > >>Peter Hansen wrote: >> >> >>>Anything's possible. Maybe you could explain what you're actually >>>trying to accomplish (or the reasons) so we can better understand >>>where y

utf encoding error

2005-05-04 Thread Timothy Smith
hi there, this one is in relation to my py2exe saga. when i compile a package using py2exe i get the error msg below, if i just run the py files it doesn't error, so i assume pysvn is trying to use something thats not being included in the build. only i have no idea where to start looking. Tra

Re: Py2Exe security

2005-05-05 Thread Timothy Smith
i used to work in a place that did this exact same thing. they attempted to hide passwords in source code. there is an even bigger problem with this then security of it in source - if someone comprimises the password, how are you going to change it quickly? all those systems will have to update the

Re: py2exe and library.zip

2005-05-05 Thread Timothy Smith
David Bolen wrote: >Peter Hansen <[EMAIL PROTECTED]> writes: > > > >>Do you know that Subversion has (as I understand it) a fairly >>intelligent binary file comparison routine, and it will (again, as I >>understand it) not transmit the entire contents of the zip file but >>would actually send on

py2exe + svn - the final drama

2005-05-05 Thread Timothy Smith
ok, i am updating my program from my svn - this works, however, i am getting the following error when i close the program. the zip file successfully updates, so i'm curious as to the meaning of this. Traceback (most recent call last): File "Main.pyo", line 820, in ValidateLogin File "Main.py

Re: py2exe + svn - the final drama

2005-05-06 Thread Timothy Smith
Timothy Smith wrote: >ok, i am updating my program from my svn - this works, however, i am >getting the following error when i close the program. the zip file >successfully updates, so i'm curious as to the meaning of this. > >Traceback (most recent call last): > File &

Re: py2exe + svn - the final drama

2005-05-06 Thread Timothy Smith
Just wrote: >In article <[EMAIL PROTECTED]>, > David Bolen <[EMAIL PROTECTED]> wrote: > > > >>Are you perhaps trying to update the zip file in-place while it is still >>being used by the application? I'm not sure that's a safe operation. >> >> > >I'm sure it's not :) > >[lots of useful hel

Re: py2exe + svn - the final drama

2005-05-06 Thread Timothy Smith
David Bolen wrote: >Timothy Smith <[EMAIL PROTECTED]> writes: > > > >>what i do is as soon as the update is complete i close the app, but it >>still gives the error, i tried clear() after update and before it, it >>still got the same error. it's be nic

computer unable to load _pysvn.pyc

2005-05-08 Thread Timothy Smith
this is truely maddening Traceback (most recent call last): File "PubWare.py", line 11, in ? File "Main.pyc", line 46, in ? File "pysvn\__init__.pyc", line 12, in ? File "pysvn\_pysvn.pyc", line 9, in ? File "pysvn\_pysvn.pyc", line 7, in __load ImportError: DLL load failed: A device att

Re: computer unable to load _pysvn.pyc

2005-05-08 Thread Timothy Smith
Timothy Smith wrote: >this is truely maddening > >Traceback (most recent call last): > File "PubWare.py", line 11, in ? > File "Main.pyc", line 46, in ? > File "pysvn\__init__.pyc", line 12, in ? > File "pysvn\_pysvn.pyc"

Re: computer unable to load _pysvn.pyc

2005-05-08 Thread Timothy Smith
vincent wehren wrote: >"Timothy Smith" <[EMAIL PROTECTED]> schrieb im Newsbeitrag >news:[EMAIL PROTECTED] >| Timothy Smith wrote: >| >| >this is truely maddening >| > >| >Traceback (most recent call last): >| > File "PubWare.py",

RE: py23-pysvn-svn114-1.2.0-415.exe << won't load on win98

2005-05-09 Thread Timothy Smith
hello there, i get the following error when attempting to load pysvn on a win98 system Traceback (most recent call last): > File "PubWare.py", line 11, in ? > File "Main.pyc", line 46, in ? > File "pysvn\__init__.pyc", line 12, in ? > File "pysvn\_pysvn.pyc", line 9, in ? > File "pysvn\_pysvn

sync dir's

2005-05-09 Thread Timothy Smith
what would be the best tool to use to sync my local dir with a remote one, say off a http resorce (although i'm open to other options there) i haven't gotten any feed back on my problems with loading pysvn on win98, and i can apprechiate if the dev's are too busy/can't be bothered with win98. b

Re: sync dir's

2005-05-10 Thread Timothy Smith
Fredrik Lundh wrote: >Timothy Smith wrote: > > > >>what would be the best tool to use to sync my local dir with a remote >>one, say off a http resorce (although i'm open to other options there) i >> >> > >rsync? wget --mirror? > > > &

Re: sync dir's

2005-05-10 Thread Timothy Smith
Gerhard Haering wrote: >On Tue, May 10, 2005 at 05:21:30PM +1000, Timothy Smith wrote: > > >>i need something which has a python library, so far i haven't seen >>anything like that for rsync. i'll check out the others but >> >>

urllib download insanity

2005-05-11 Thread Timothy Smith
ok what i am seeing is impossible. i DELETED the file from my webserver, uploaded the new one. when my app logs in it checks the file, if it's changed it downloads it. the impossible part, is that on my pc is downloading the OLD file i've deleted! if i download it via IE, i get the new file. SO,

query progress bar

2005-05-16 Thread Timothy Smith
is it possible to mke a progress bar for queries? say i have a query that will take 20 seconds, i'd like to give some feed back to users on how long this will take. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on a public library computer

2005-05-16 Thread Timothy Smith
John J. Lee wrote: >"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes: > > > >>Here's my situation: >> >>I'm typing this in a public library on a computer with OS windows 2000 >>server. I can run Internet explorer, word, excel and powerpoint, that's >>it. Maybe java, but it seems to be flaky. >> >>

Re: query progress bar

2005-05-16 Thread Timothy Smith
[EMAIL PROTECTED] wrote: >What type of UI is this for? The Python Cookbook, 2nd Ed. has a nice >textual solution. I'm not sure if this is the same one, but here is href="http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/168639";>one >from ASPN. Here is one href="http://wxpython.org/docs/api/

Re: query progress bar

2005-05-16 Thread Timothy Smith
Harald Massa wrote: >>it's for wx, the problem isn't making the progress bar itself, it's >>knowing how long the query is going to run for. >>i'm using pypgsql >> >> > >It is quite easy: > >from timemachine import oracle > >guesser=oracle(guess="SQL") >guesser.set_hint(driver="pypgsql") >gues

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Paul Rubin wrote: >As what must be penance for something or other, I'm needing to release >a Python app for use under Windows XP. Please be gentle with me since >I'm a Un*x weenie and the only thing I've had much practice with under >Windows is rebooting it. > >My app contains three different pro

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Paul Rubin wrote: >Bernhard Holzmayer <[EMAIL PROTECTED]> writes: > > >>I can feel your unhappiness, and I share it. Hi Paul! >>Here are some hints... >> >> > >Thanks! ;-) > > > >>Since your installer needs to run before Python is installed, you need >>something else. Go to http://www.wis

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Toby Dickenson wrote: >On Tuesday 17 May 2005 09:35, Timothy Smith wrote: > > >>mate dont bugger around with all that. py2exe will make you a windows >>native exe to run. and for updates you just need to update it's >>library.zip. >> &g

Re: Windows distribution suggestions?

2005-05-17 Thread Timothy Smith
Ivan Voras wrote: >Paul Rubin wrote: > > > >>>your active code is then in some library.zip shared between the >>>three, and you need never change alice.exe, bob.exe, and carol.exe >>> >>> >>I think I understand what you're saying and it sounds like a very >>good idea. Thanks. >> >> >

Re: query progress bar

2005-05-17 Thread Timothy Smith
Bernhard Holzmayer wrote: >Timothy Smith wrote: > > > >>i'm using pypgsql >> >> > >Assuming you work with PostgreSQL, then: >You know the EXPLAIN command? > >EXPLAIN will give you a very accurate estimation for the expense for the >query

decimal and trunkating

2005-06-02 Thread Timothy Smith
i want to trunkate 199.999 to 199.99 getcontext.prec = 2 isn't what i'm after either, all that does is E's the value. do i really have to use floats to do this? -- http://mail.python.org/mailman/listinfo/python-list

Getting wxPython to work on a Mac

2007-12-04 Thread Timothy Smith
Not sure exactly what I need to do to get wxPython to work on either of my Macs. (One's a notebook running Tiger (OS X 10.4.11), the other a Mac Pro running Leopard (10.5.1.)) I downloaded what should be the latest binary, and it installed without error. So Python comes up as $ python -V Pytho

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Timothy Smith
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > If you don't get an answer here, you should try the wxPython mailing > list: > http://www.wxpython.org/maillist.php > I'm sure they'll be able to help you out (I don't have a Mac, so I > don't know). OK, will try there. Thanks. -- http

Re: Getting wxPython to work on a Mac

2007-12-05 Thread Timothy Smith
In article <[EMAIL PROTECTED]>, Piet van Oostrum <[EMAIL PROTECTED]> wrote: > >TS> I set PYTHONPATH to > >TS> System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5 > > Why would you do that? Don't know, as it's not clear (to me) from the documentation whether PYTHONPATH has to

py.test munging strings in asserts?

2006-04-20 Thread Timothy Grant
I'm playing around with py.test and writing a parser for it's output for use in TextMate. I've run into what appears to be a strange phenomenon, but which is likely me doing something wrong. I'm writing a test to test some HTML output and the test fails for several reasons, all of which I underst

Re: Test professionalism (was: count items in generator)

2006-05-15 Thread Timothy Grant
On 5/15/06, Cameron Laird <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > Delaney, Timothy (Tim) <[EMAIL PROTECTED]> wrote: > . > . > . > >That's exactly my point.

xml sax

2008-03-19 Thread Timothy Wu
rs(), when seeing that flag set, save the content? What if multiple tags of the same name are nested at different levels and I want to differentiate them? I would be setting a flag for each level. I can imagine things get pretty messy when flags are all around. Timothy -- http://mail.python.o

Re: xml sax

2008-03-19 Thread Timothy Wu
Oh right, why didn't I think of that. =) Many thanks. Timothy On Thu, Mar 20, 2008 at 1:45 AM, Robert Bossy <[EMAIL PROTECTED]> wrote: > Timothy Wu wrote: > > Hi, > > > > I am using xml.sax.handler.ContentHandler to parse some simple xml. > > > > I

xml.sax problem

2008-03-23 Thread Timothy Wu
atters is where the string "evidence: IEA" is split into two printouts. First it prints only "e", then "vidence: IEA". I parsed 825 such XMLs without a problem, this occurs on my 826th XML. Any explanations?? Timothy -- http://mail.python.org/mailman/listinfo/python-list

Sr. Architect - NYC - Opportunity

2008-03-26 Thread Timothy B
Senior Developer Must be proficient in Python, expert preferred Must have one large scale public web project in their portfolio, preferably startup experience Must be able to develop with certain architectural considerations in mind at all times, such as: multilingual text, runtime efficiency in a

Re: how to set the time of a directory?

2008-10-10 Thread Timothy Grant
ath, (atime, mtime)) utime(path, None) Set the access and modified time of the file to the given values. If the second form is used, set the access and modified times to the current time. >>> os.utime('test', None) >>> ^D ([EMAIL PROTECTED]) ls

Re: Selecting random elements from a list.

2008-10-13 Thread Timothy Grant
gt; > -- > http://mail.python.org/mailman/listinfo/python-list > > I would start here http://docs.python.org/library/random.html you are likely interested in choice or sample. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: chomp?

2008-10-17 Thread Timothy Grant
, right or wrong,' is a thing that no patriot would think of > saying. It is like saying, 'My mother, drunk or sober.'" > > -- G.K. Chesterton > -- > http://mail.python.org/mailman/listinfo/python-list > a ',' on the end of your print should suppress the newline. >>> def x(): ...print 'foo', ...print 'bar' ... >>> x() foo bar -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   >