icle: http://help.blogger.com/bin/answer.py?answer=135
Daniel Bickett
On Sat, 01 Jan 2005 13:14:23 +, Mark Carter <[EMAIL PROTECTED]> wrote:
> I currently use python to automatically summarise a certain newsgroup
> daily, and post the findings that it makes. Someone has suggested
import os
# windows
os.system("cls")
# bash ( mac, linux )
os.system("clear")
That's all I can account for.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
While I have no solution for the recipe you cited, it seems like alot
of trouble could be avoided by simply importing the os module and
running the following command using os.system:
shutdown -s
Daniel Bickett
On 2 Jan 2005 20:13:35 -0800, EW <[EMAIL PROTECTED]> wrote:
> I have a pro
at pastes its path
(in quotes) into the command line, and you can just hit enter. I
wouldn't recommend this, though, because the cwd wouldn't be that of
the script, and it could cause instability for some apps that use
relative paths.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
ceptions)?
Thank you for your time,
Daniel Bickett
P.S. I know I said I didn't need to post code, but I will anyway. You
never know :)
http://rafb.net/paste/results/FcwlEw86.html
--
http://mail.python.org/mailman/listinfo/python-list
Oh, I'm sorry, that was my mistake. The example contained that error,
but my code does not.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
y referenced as variables, so this
is clearly not a matter of escape sequences.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
http://www.twistedmatrix.com/
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
names
and files with .c extensions. So, discouraged, I gave up on yaml.
Elementtree, on the other hand, is wonderful :)
Irmen de Jong wrote:
> +1 QOTW
I second that, as well.
here's-to-appreciating-the-end-without-having-to-be-interested-in-the-means-ly
y'rs
Daniel Bickett
--
http://mai
know about you, but I
have no trouble whatsoever reading and writing XML. But alas, I don't
need to. Long live elementtree (once again) :-)
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
Doug Holton wrote:
> You might like programming in XML then: http://www.meta-language.net/
> :)
http://www.meta-language.net/sample.html#class-metal
I'm not so sure ;-)
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
less clouded than ours, so only *you* are in the position to write the
proper replacement.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
ly read an article in the linux magazine,) but I hope this
helps.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
python and delivered as binary form.
>
> How does these binary code get generated by python compiler?
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
Python 2.3.4 (#53, May 25 2004, 21:17:02) [MSC v.1200 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import math
>>> math.pi
3.1415926535897931
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
not a question).
Is there a reason that Google Groups isn't mirroring python-list
exactly like it used to, or is it simply a conspiracy I'm not in on?
perfectly-capable-of-conspiring-ly y'rs,
Daniel Bickett
NOTES:
[1] http://mail.python.org/pipermail/python-list/2005-January/261966.htm
John Lenton wrote:
> > On Sun, Jan 23, 2005 at 01:53:52PM -0500, Daniel Bickett wrote:
> > >
> > > Is there a reason that Google Groups isn't mirroring python-list
> > > exactly like it used to, or is it simply a conspiracy I'm not in on?
> >
Lucas Raab wrote:
> Daniel Bickett wrote:
> >>Most texts in computing are written by authors to defend and showcase
> >>their existence against their peers.
> >
> >
> > When you aren't busy `showcasing' your ignorance, this is *all* i see
> >
t's painfully obvious that it is all for the sole purpose of negative
attention.
You guys are just begging for a YHBT ;-)
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
Daniel Bickett wrote:
> [snip]
> You guys are just begging for a YHBT ;-)
I apologize, that should have been "we" -- I was criticizing him too.
no-one-wants-to-be-a-hypocrite-ly y'rs,
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
going to do is link him to this thread once it has accumulated
any answers)
Thank you all for your help :)
Wishing-to-be-liberated-from-the-clutches-of-PHP-ly y'rs,
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
On [EMAIL PROTECTED] wrote:
> Daniel Bickett <[EMAIL PROTECTED]> writes:
> > I've been trying to convince my host to install python/mod_python on
> > his server for a while now, however there are a number of reasons he
> > is reluctant to do so, which I will outli
cy and use gmail-specific libraries, really.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
Outgoing server: smtp.gmail.com
Be sure to include @gmail.com for your username.
For the incoming server (the topic at hand, if I'm not mistaken,) It
instructs you to use an SSL connection and port 995, so that is sure
to change some things.
I believe that's all.
--
Daniel Bickett
quot; or "license" for more information.
>>> string = """ " ' " ' " ' " ' \""" """
>>> string
' " \' " \' " \' " \' """ '
then I'll get amused by what he is
doing with perl-python, and how he intentionally makes those mistakes,
but then when we have a real conversation it just makes me angry.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
pass
>>> objA = A()
>>> objB = B()
>>> type( objA )
>>> type( objB )
>>> type( objB ) == B
True
I believe that achieves what you were aiming for.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
t;> import re
>>> data = file( "important.dat" , "r" )
>>> line = data.readline()
>>> while line:
for x in re.finditer( "\w+" , line):
print x.group()
line = data.readline()
this
is
important
data
>>>
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
Cappy2112 wrote:
> > dictionaries can NOT contain dictionaries.
>
> Who told you this?
> In my python, they can.
> [snip]
You took his reply out of context. Fuzzyman asked him if *his*
dictionaries were to contain dictionaries, and the reply was no, they
will not.
--
Daniel B
Erick wrote:
> True, but it doesn't work with multiline regular expressions :(
If your intent is for the expression to traverse multiple lines (and
possibly match *across* multiple lines,) then, as far as I know, you
have no choice but to load the whole file into memory.
--
Daniel
interpreter load my code and be ready
for testing.
That said, that is my only reason for my ever using IDLE. Without it I
would probably forget that IDLE exists, were it not for the obnoxious
context menu entry. ;)
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http
crazy-compilers.com/decompyle/
Other than that link, which I stumbled upon at some point (at
python-eggs), I'm decidedly uninformed on this subject.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
; or "license" for more information.
>>> help(list)
Help on class list in module __builtin__:
[big snip]
It goes into good detail about all of the methods, etcetera.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
ults/Yh6x0598.html
newstring methods: http://rafb.net/paste/results/O51kja41.html
NOTES:
[1] http://tinyurl.com/4dkgw
[2] I'm currently unaware if _winreg is a c extension module or pure
python, but I'm assuming it's C, so I don't know how possible it is to
add pure python to it...
[3] I made a few quick edits after I pasted it in, so please bring to
my attention any errors or inconsistencies you see
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
e
> someone wrote that "winreg" module... (hint).
I wasn't aware that was even on our plate ;) Is the intent for it just
to have wrappers around the _winreg functions, or were there things
planned for it?
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
if falseExists:
return False
>>> l1 = [ True , None , None , False ]
>>> l2 = [ None , False , False , None ]
>>> l3 = [ False , True , True , True ]
>>> boolhunt( l1 )
True
>>> boolhunt( l2 )
False
>>> boolhunt( l3 )
Tru
Jeremy Bowers wrote:
> The defense rests, your honor. :-)
I stand corrected :-) My apologies.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
p , step = 1 ):
while start < stop:
yield start
start += step
>>> for x in range( 5 ):
print "%s " % str( x ),
0 1 2 3 4
>>> for x in genrange( 0 , 5 ):
print "%s " % str( x ),
Paul Rubin wrote:
> use xrange instead of range.
Woops ;) I wasn't aware such a function existed.
apologies-for-reinventing-the-wheel-ly y'rs,
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
I know of two:
Boa Constructor: http://boa-constructor.sourceforge.net/
wxGlade: http://wxglade.sourceforge.net/
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
the
features of the newstyle classes, and explains what they all do? If
so, can anyone provide me with such a link?
Thanks :-)
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
Bruno Desthuilliers wrote:
> Well, the fact is that __[get|set]state__() have nothing to do with new
> style classes, but with the Pickle protocol:
> http://www.python.org/doc/2.3.4/lib/pickle-inst.html
Thank you for pointing that out, but all the same ;)
--
Daniel Bickett
dbickett at
the best/most carefree way
of interfacing with MySQL databases.
Thanks for your time,
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
I neglected to mention an important fact, and that is the fact that I
am limited to Apache, which elminates several suggestions (that are
appreciated none-the-less).
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
ives/2005/02/06/using-pth-files-for-python-development/
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
Marian Aldenhövel wrote:
> Maybe some way to remote control another player would be in order. Leave it
> to software that is specialized and all. But I would want something that runs
> on Windows and Linux which narrows down my options.
Perhaps Zinf?
http://www.zinf.org/
--
Danie
administrata wrote:
> print \trock
Your problem lies in this line. The escape sequence \t is not a
variable, so to speak. It is just that, an escape sequence, so it must
be located inside of a string:
print "\t" + rock
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.
quot;\0" )
>>> string
'foo\n\x00'
>>> print string
foo
Hope this helps.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
..\""
>>> print string
"If thou wert my fool, nuncle..."
>>> if string.startswith("\""): string = string[1:]
>>> print string
If thou wert my fool, nuncle..."
>>> if string.endswith("\""): string = string[:-1]
>>
> While looking into this, I had seen some mention of protocol option in
> pickle. I
> hadnt specified anything for protocol, so it defaults to 0 though I dont know
> what that is. Its my first time using pickle and second with py2exe.
If you think this might be your problem, then it would be bes
> I have no way to build it on Windows though, as I don't have Visual C++
> 7.1, for that we must wait for Robin Dunn.
Would it be too difficult of a task to try getting the build working
with Dev-C++? That way those without enough incentive for purchasing
Visual C++ (in excess of $100, I believe)
eally can't use that.
I've combed through the demo countless times, but I really can't find
any answers. So, the question: what is the best way (or is there one,
rather) to achieve an end comparable to skinning my wx windows?
Thanks for your help,
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
:) But maybe that's
just me.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
), but it would be more useful, considering
the fact that it is in fact a frame, and wouldn't have the problems
that M.E.Farmer outlined above regarding controls on wxPopupWindows.
Regardless, I'm happy that I've uncovered the answer, and I hope this
helps someone else in the same situation :)
se it has not yet been caught blah blah", so I just
wrapped the contents of OnMouseLeftUp in a try..except..pass.
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
limited to the beginning of
the prompt, and 'home' sends you beyond it. The only 'work around', so
to speak, I can think to recommend is simply using a different shell
for your purposes, i.e. python.exe (on windows).
Daniel Bickett
On Sat, 25 Dec 2004 09:55:10 +1030, Ishwor <[
odified by one thread
amd printed by the other.)
Daniel Bickett
NOTES:
[1] Google killed my whitespace (as spaces _and_ tabs...) in the
previews, so I pasted it on Nopaste:
http://rafb.net/paste/results/KilM6t70.html
--
http://mail.python.org/mailman/listinfo/python-list
towards the values of those that 2.4 uses and
manually adding them) but I seriously doubt it involves any that your
system's stability balances on.
Daniel Bickett
NOTES:
[1] http://drpython.sf.net/
On Sun, 26 Dec 2004 19:43:24 +0100, StepH
<[EMAIL PROTECTED]> wrote:
> Hi,
>
>
a solution to this problem.
Any help would be very much appreciated,
Daniel Bickett
--
http://mail.python.org/mailman/listinfo/python-list
r, as the OP put it,
the system "bell" . I can only speak as a Windows user however; I'm
unaware of the prevalence of this feature across operating systems.
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
# 2) making sure the path is a file
print "Error!"
Error!
>>>
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
An even better way would be to use the optparse module.-- Daniel Bickettdbickett at gmail.comhttp://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
net, or on the mailing list
[EMAIL PROTECTED]
--
Daniel Bickett
dbickett at gmail.com
http://heureusement.org/
--
http://mail.python.org/mailman/listinfo/python-list
Is anyone working on any software at present, using django or python
in general, which serves various academic/course functions, or else
that of student-instructor arbitration? A popular example which my
university uses is the "Blackboard Academic Suite" (wpedia:Blackboard
Inc.), which offers a wid
On Aug 21, 7:39 am, [EMAIL PROTECTED] (Cameron Laird) wrote:
> I don't understand the question. YES, there are MANY
> Python-based applications doing service in a variety
> of academic contexts. No, there is no central index
> of all such programs.
Sorry if I was unclear. If there are many such
I read c.l.py and (the Unofficial) Planet Python (and that's it), so
perhaps that's an appropriate suggestion:
http://www.planetpython.org/
(From the Starship: "If you want to join the crew, we only require your
PSA membership....")
--
Daniel Bickett
dbickett a
Package: pyISBNdb
Version: 0.1 Pre-Alpha
Author: Daniel Bickett <[EMAIL PROTECTED]>
Website: http://heureusement.org/programming/pyISBNdb/
ABOUT:
pyISBNdb is a library that serves as a pythonic interface with the
ISBNdb.com API, a service that provides a vast database of book
infor
67 matches
Mail list logo