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
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
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
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
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
:
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
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
[ 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'
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
Will Stuyvesant wrote:
data = [['foo','bar','baz'],['my','your'],['holy','grail']]
sum(data, [])
['foo', 'bar', 'baz', 'my', 'your', 'holy', 'grail']
The sec
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
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
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
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
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
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
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
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
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
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'
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
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
parsers you have used for complete languages ?
Thank you,
Timothy Madden
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
--
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
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
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
--
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
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:/
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
he python
syntax does.
Thank you,
Timothy Madden
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
[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
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
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
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
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
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
least, it's too
difficult for me to grasp.
Timothy
--
http://mail.python.org/mailman/listinfo/python-list
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
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
&
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
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
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
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
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
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
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 &
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
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
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
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"
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",
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
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
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?
>
>
>
&
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
>>
>>
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,
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
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.
>>
>>
[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/
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
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
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
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
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.
>>
>>
>
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
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
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
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
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
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
On 5/15/06, Cameron Laird <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>,
> Delaney, Timothy (Tim) <[EMAIL PROTECTED]> wrote:
> .
> .
> .
> >That's exactly my point.
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
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
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
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
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
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
, 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
101 - 200 of 482 matches
Mail list logo