Re: Which blog tool

2005-01-01 Thread Daniel Bickett
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

Re: screen clear question

2005-01-01 Thread Daniel Bickett
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

Re: Problem remotely shutting down a windows computer with python

2005-01-02 Thread Daniel Bickett
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

Re: DOS problem (simple fix??)

2005-01-07 Thread Daniel Bickett
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

shutil.move has a mind of its own

2005-01-10 Thread Daniel Bickett
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

Re: shutil.move has a mind of its own

2005-01-11 Thread Daniel Bickett
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

Re: shutil.move has a mind of its own

2005-01-11 Thread Daniel Bickett
y referenced as variables, so this is clearly not a matter of escape sequences. Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: threading and sockets ?

2005-01-16 Thread Daniel Bickett
http://www.twistedmatrix.com/ Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: What YAML engine do you use?

2005-01-21 Thread Daniel Bickett
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

Re: What YAML engine do you use?

2005-01-22 Thread Daniel Bickett
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

Re: What YAML engine do you use?

2005-01-23 Thread Daniel Bickett
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

Re: how to write a tutorial

2005-01-23 Thread Daniel Bickett
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

Re: compile python to binary

2005-01-23 Thread Daniel Bickett
ly read an article in the linux magazine,) but I hope this helps. Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: compile python to binary

2005-01-23 Thread Daniel Bickett
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

Re: on the way to find pi!

2005-01-23 Thread Daniel Bickett
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

OT: problems mirroring python-list to c.l.py?

2005-01-23 Thread Daniel Bickett
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

Re: OT: problems mirroring python-list to c.l.py?

2005-01-23 Thread Daniel Bickett
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? > >

Re: how to write a tutorial

2005-01-23 Thread Daniel Bickett
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 > >

Re: how to write a tutorial

2005-01-23 Thread Daniel Bickett
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

Re: how to write a tutorial

2005-01-23 Thread Daniel Bickett
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

Help! Host is reluctant to install Python

2005-01-25 Thread Daniel Bickett
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

Re: Help! Host is reluctant to install Python

2005-01-25 Thread Daniel Bickett
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

Re: gmail access with python!

2005-01-30 Thread Daniel Bickett
cy and use gmail-specific libraries, really. -- Daniel Bickett dbickett at gmail.com http://heureusement.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: gmail access with python!

2005-01-30 Thread Daniel Bickett
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

Re: Q: quoting string without escapes

2005-01-31 Thread Daniel Bickett
quot; or "license" for more information. >>> string = """ " ' " ' " ' " ' \""" """ >>> string ' " \' " \' " \' " \' """ '

Re: Go visit Xah Lee's home page

2005-02-02 Thread Daniel Bickett
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

Re: Easy Q: dealing with object type

2005-02-02 Thread Daniel Bickett
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

Re: streaming a file object through re.finditer

2005-02-02 Thread Daniel Bickett
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

Re: CONTEST - What is the (best) solution?

2005-02-02 Thread Daniel Bickett
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

Re: streaming a file object through re.finditer

2005-02-02 Thread Daniel Bickett
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

Re: IDLE history, Python IDE, and Interactive Python with Vim

2005-02-02 Thread Daniel Bickett
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

Re: bytecode obfuscation

2005-02-03 Thread Daniel Bickett
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

Re: Where are list methods documented?

2005-02-03 Thread Daniel Bickett
; 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

Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-03 Thread Daniel Bickett
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

Re: Possible additions to the standard library? (WAS: About standard library improvement)

2005-02-04 Thread Daniel Bickett
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

Re: returning True, False or None

2005-02-04 Thread Daniel Bickett
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

Re: returning True, False or None

2005-02-04 Thread Daniel Bickett
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

Re: Alternative to standard C "for"

2005-02-05 Thread Daniel Bickett
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 ),

Re: Alternative to standard C "for"

2005-02-05 Thread Daniel Bickett
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

Re: Which IDE supports python and wxpython?

2005-02-05 Thread Daniel Bickett
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

Definitive documentation on newstyle classes? (WAS: Pickling and inheritance are making me hurt)

2005-02-05 Thread Daniel Bickett
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

Re: Definitive documentation on newstyle classes? (WAS: Pickling and inheritance are making me hurt)

2005-02-05 Thread Daniel Bickett
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

Yet Another Python Web Programming Question

2005-07-09 Thread Daniel Bickett
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

Re: Yet Another Python Web Programming Question

2005-07-09 Thread Daniel Bickett
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

Re: Safest manner to extend search path for modules?

2005-07-27 Thread Daniel Bickett
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

Re: pygame.mixer.music not playing

2005-02-06 Thread Daniel Bickett
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

Re: [NooB] Using Escape Sesquences with Strings...

2005-02-11 Thread Daniel Bickett
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.

Re: Safe string escaping?

2005-03-07 Thread Daniel Bickett
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

Re: quick question

2005-03-07 Thread Daniel Bickett
..\"" >>> 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] >>

Re: pickle and py2exe

2004-12-03 Thread Daniel Bickett
> 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

Re: installing wxPython on Linux and Windows

2004-12-03 Thread Daniel Bickett
> 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)

Skinnable/Stylable windows in wxPython?

2004-12-12 Thread Daniel Bickett
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

Re: Best book on Python?

2004-12-12 Thread Daniel Bickett
:) But maybe that's just me. Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: Skinnable/Stylable windows in wxPython?

2004-12-12 Thread Daniel Bickett
), 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 :)

Re: Skinnable/Stylable windows in wxPython?

2004-12-22 Thread Daniel Bickett
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

Re: IDLE problem :-(

2004-12-24 Thread Daniel Bickett
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 <[

Re: need some help with threading module...

2004-12-26 Thread Daniel Bickett
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

Re: Tricks to install/run Python on Windows ?

2004-12-26 Thread Daniel Bickett
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, > >

Event-Driven Woes: making wxPython and Twisted work together

2004-12-30 Thread Daniel Bickett
a solution to this problem. Any help would be very much appreciated, Daniel Bickett -- http://mail.python.org/mailman/listinfo/python-list

Re: System bell

2005-03-31 Thread Daniel Bickett
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

Re: very simple tkinter demo program

2005-04-09 Thread Daniel Bickett
# 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

Re: passing arguments

2005-05-20 Thread Daniel Bickett
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

ANN: Concurrence 0.0.5.2 Alpha

2005-06-17 Thread Daniel Bickett
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

Prevalent Python/Django academic software

2008-08-20 Thread Daniel Bickett
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

Re: Prevalent Python/Django academic software

2008-08-21 Thread Daniel Bickett
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

Re: python tutorial: popular/informative Python sites ?

2006-04-02 Thread Daniel Bickett
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

ANN: pyISBNdb 0.1

2006-04-07 Thread Daniel Bickett
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