(",) Do You Want To Know For Sure You Are Going To Heaven?

2005-03-20 Thread Ron038548
http://www.want-to-be-sure.blogspot.com << Click On Link -- http://mail.python.org/mailman/listinfo/python-list

Re: RotatingFileHandler and logging config file

2005-03-20 Thread Vinay Sajip
Rob Cranfill wrote: NID (No, It Doesn't) ;-) but thanks anyway. To reiterate, the question is how to make RotatingFileHandler do a doRotate() on startup from a *config file*. No mention of that in what you point to. I don't think that RotatingFileHandler *should* be configurable to do a doRoll

Re: Software for Poets (Was: Re: Text-to-speech)

2005-03-20 Thread Charles Hartman
On Mar 20, 2005, at 4:10 PM, Francis Girard wrote: Hello M. Hartman, It's a very big opportunity for me to find someone that both is a poet and knows something about programming. First, please excuse my bad english ; I'm a french canadian. My French is a great deal worse than your English; fear n

Re: getting text from WinXP console

2005-03-20 Thread Chris Rebert (cybercobra)
You want the function raw_input(). Have you read the tutorial? I should have been covered there. -- http://mail.python.org/mailman/listinfo/python-list

Lowest hassle Python web server?

2005-03-20 Thread kanzen
I keep telling my friends that Python rocks. Now it's time to put my money where my mouth is. I'm about to start writing a server for a phone based game. It needs to handle simlpe requests from some Java code running on the phone at a fairly low transaction rate. There will also be a simple web sit

Re: Python scope is too complicated

2005-03-20 Thread Ivan Van Laningham
Hi All-- Dan Bishop wrote: > > > """In Python, there are only two scopes. The global and the local. > > The global scope is a dictionary while the local, in the case of a > > function is extremely fast. There are no other scopes. > > This isn't true anymore, now that generator comprehensions h

Re: Software for Poets (Was: Re: Text-to-speech)

2005-03-20 Thread Paul Rubin
Francis Girard <[EMAIL PROTECTED]> writes: > 4- Propose a synonym that will fit in a verse, i.e. with the right amount of > syllabs > > 5- Suggest a missing word or expression in a verse by applying the Shannon > text generation principle > ... > First, do you think it may be a useful tool ? > W

Re: Building Time Based Bins

2005-03-20 Thread alessandro -oggei- ogier
MCD wrote: > This goes on throughout a 12hr. period. I'd like to be able to place > the low and high values of the additional fields in a single line > divided into 5min intervals. So it would look something like this >> > > 1235 22 88 > 1240 31 94 what about a sane list comprehension madness ?

Re: simultaneous copy to multiple media

2005-03-20 Thread Diez B. Roggisch
> > Nope. Or yes. Here comes into play why Heiko said think of what USB stands > for. While the devices appear to be responsive concurrently (the bus > arbitration and multiplexing/demultiplexing is tranparent to the user), it > still is a serial bus, so at a given point in time you can only writ

Re: Overloaded Constructors?!?

2005-03-20 Thread Kent Johnson
[EMAIL PROTECTED] wrote: Hello NG, I am trying to port a useful class from wxWidgets (C++) to a pure Python/wxPython implementation. In the C++ source code, a unique class is initialized with 2 different methods (???). This is what it seems to me. I have this declarations: class wxFoldWindowI

Re: For loop extended syntax

2005-03-20 Thread George Sakkis
"Heiko Wundram" <[EMAIL PROTECTED]> wrote: > Am Sonntag, 20. März 2005 22:22 schrieb George Sakkis: > > Once more, the 2D/3D example was just that, an example; my point was not to > > find a specific solution to a specific problem. > > And my point being: it's simple enough to give a general recip

Re: simultaneous copy to multiple media

2005-03-20 Thread Heiko Wundram
Am Sonntag, 20. März 2005 23:16 schrieb Claudio Grondi: > 2) if I understand it right, an USB controller is connected to > to the PCI bus and there can be many separate USB > controller on one PC Yes, there may be more than one USB-controller in a PC, but this doesn't matter, they are all connect

HTML editor component?

2005-03-20 Thread skol
Is there any HTML WYSIWYG editor component available for Python/wxPython? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: getting text from WinXP console

2005-03-20 Thread Peter Hansen
Chris Rebert (cybercobra) wrote: You want the function raw_input(). Have you read the tutorial? I should have been covered there. I'm pretty sure he's looking for a means of capturing the entire contents of a console window, not just letting the user enter some textual input. To the OP: this is an

Re: Lowest hassle Python web server?

2005-03-20 Thread Peter Hansen
kanzen wrote: - Does threading cause any more of a hassle in Python than Java? What hassles have you had? I thought threads in Java were pretty straightforward. In any case, in Python they are generally very easy to use, provided you have a basic knowledge of thread safety issues and/or provided

Overloaded Constructors?!?

2005-03-20 Thread andrea_gavana
Hello Kent, thank you a lot for your answer. I was starting to think that my question was a little bit strange to obtain an answer... >This is a strange design. My first reaction is, why do you want to do that? Maybe you >should split the class in two? You are right. The problem is that this

Re: HTML editor component?

2005-03-20 Thread Lars Heuer
Hi skol, > Is there any HTML WYSIWYG editor component available for > Python/wxPython? Thanks. There is wxMozilla: http://wxMozilla.sf.net/ Best regards, Lars -- http://semagia.com -- http://mail.python.org/mailman/listinfo/python-list

I'm just an idiot when it comes logging

2005-03-20 Thread olsongt
I'm trying to be a good boy and use the logging module but it's behaving rather counter-intuitively. I've posted a simplified test script below. To summarize, I've set the basic config to only log root level messages with >= ERROR level. I've created another named logger that logs on info level.

Re: simultaneous copy to multiple media

2005-03-20 Thread Jacek Trzmiel
Claudio Grondi wrote: > I am on a Widows 2000 box using the NTFS file system. > Both up to now suggested approaches as > - tee.exe (where I used the http://david.tribble.com/dos/tee.exe > DOS-port with redirecting stdout to NULL) and > - parallel copy (hoping caching does the job) are by far > slo

Shell re-direction

2005-03-20 Thread Mike Gould
Hi all, I have a very strange problem with the output run from commands run via os.system(). If the python script is run without re-direction the output appears as expected, but if I re-direct the output from the script the output gets re-ordered. For example given the following script: import

Re: How to create an object instance from a string??

2005-03-20 Thread Max M
Tian wrote: How can I create an instance of an object from a string? For example, I have a class Dog: class Dog: def bark(self): print "Arf!!!" def Factory(class_name): classes = { 'Dog':Dog } return classes[class_name] dog = Factory('Dog')() -- hilsen/regards Max M

Re: HTML editor component?

2005-03-20 Thread skol
"Lars Heuer" <[EMAIL PROTECTED]> wrote >> Is there any HTML WYSIWYG editor component available for >> Python/wxPython? Thanks. > > There is wxMozilla: http://wxMozilla.sf.net/ Thanks for the tip. Looks like a very elaborate component. Is there anything simpler? I'd need just simple HTML editing w

Re: Shell re-direction

2005-03-20 Thread Jeff Epler
buffering. In the first case, there is either no buffering, or line buffering on sys.stdout, so you see the lines in order. In the second case, there is a buffer of a few hundred or thousand bytes for stdout in the python process, and you see the two lines of python output together (in this case,

Sybase module 0.37pre2 released

2005-03-20 Thread Dave Cole
WHAT IS IT: The Sybase module provides a Python interface to the Sybase relational database system. It supports all of the Python Database API, version 2.0 with extensions. NOTES: This release contains a number of small bugfixes and patches received from users. I have been unable to find the sourc

Re: Lowest hassle Python web server?

2005-03-20 Thread Adonis
kanzen wrote: I keep telling my friends that Python rocks. Now it's time to put my money where my mouth is. I'm about to start writing a server for a phone based game. It needs to handle simlpe requests from some Java code running on the phone at a fairly low transaction rate. There will also be a

Re: Pre-PEP: Dictionary accumulator methods

2005-03-20 Thread David Eppstein
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz) wrote: > >I am surprised nobody suggested we put those two methods into a > >separate module (say dictutils or even UserDict) as functions: > > > >from dictutils import tally, listappend > > > >tally(mydict, key) > >listappend(mydict, key,

Re: HTML editor component?

2005-03-20 Thread Lars Heuer
Hi skol, >>> Is there any HTML WYSIWYG editor component available for >>> Python/wxPython? Thanks. >> >> There is wxMozilla: http://wxMozilla.sf.net/ > Thanks for the tip. Looks like a very elaborate component. > Is there anything simpler? I'd need just simple HTML editing > with formatting (bold

Re: Overloaded Constructors?!?

2005-03-20 Thread Michael Spencer
[EMAIL PROTECTED] wrote: [trying to create a single Python class with the equivalent of the following overloaded constructors] wxFoldWindowItem(wxWindow *wnd, int flags = wxFPB_ALIGN_WIDTH, int ySpacing = wxFPB_DEFAULT_YSPACING, int leftSpacing = wxFPB_DEFAULT_LE

Re:[perl-python] a program to delete duplicate files

2005-03-20 Thread Xah Lee
Sorry i've been busy... Here's the Perl code. I have yet to clean up the code and make it compatible with the cleaned spec above. The code as it is performs the same algorithm as the spec, just doesn't print the output as such. In a few days, i'll post a clean version, and also a Python version, a

Re: simultaneous copy to multiple media

2005-03-20 Thread Diez B. Roggisch
> Well, 430 MB/s is only for USB 2.0. AFAIK, most devices (esp. storage > devices) are still only USB 1.1 compliant, which makes this rate go down > to a mere 40 MB/s or something close. I think it is 430 MBit(!), so about 50MB per second. The old usb 1.1 has 12MBits. So I don't think that Claudio

Re: FAQ 1.7.3 : How can I have modules that mutually import each other

2005-03-20 Thread John Roth
Circular import dependencies don't work well; depending on the exact conditions they can leave you pulling your hair out for hours. In your example, just pull the global variable out into a third module and have both of your major modules import and reference it from there. In general, you should

Re: [DB-SIG] Sybase module 0.37pre2 released

2005-03-20 Thread Dave Cole
Dave Cole wrote: The module is available here: http://www.object-craft.com.au/projects/sybase/download/sybase-0.37pre1.tar.gz Ooops. Make that: http://www.object-craft.com.au/projects/sybase/download/sybase-0.37pre2.tar.gz - Dave -- http://www.object-craft.com.au -- http://mail.python.org/mailman

Re: Overloaded Constructors?!?

2005-03-20 Thread Shalabh Chaturvedi
[EMAIL PROTECTED] wrote: Hello NG, I am trying to port a useful class from wxWidgets (C++) to a pure Python/wxPython implementation. In the C++ source code, a unique class is initialized with 2 different methods (???). This is what it seems to me. I have this declarations: The 2 different in

printing anomaly

2005-03-20 Thread Paul Rubin
What's the deal with this? >>> print 3.2 3.2 >>> print [3.2] [3.2002] >>> Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering why it's converted differently depending on whether it's in a list. -- http://mail.python.org/mailman/listinfo/python-lis

Re: Lowest hassle Python web server?

2005-03-20 Thread Gerhard Häring
kanzen wrote: I keep telling my friends that Python rocks. Now it's time to put my money where my mouth is. I'm about to start writing a server for a phone based game. It needs to handle simlpe requests from some Java code running on the phone at a fairly low transaction rate. There will also be a

RE: printing anomaly

2005-03-20 Thread Delaney, Timothy C (Timothy)
Paul Rubin wrote: > What's the deal with this? > > >>> print 3.2 > 3.2 > >>> print [3.2] > [3.2002] > >>> > > Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering > why it's converted differently depending on whether it's in a list. `print 3.2` ==

Re: printing anomaly

2005-03-20 Thread Roy Smith
In article <[EMAIL PROTECTED]>, Paul Rubin wrote: > What's the deal with this? > > >>> print 3.2 > 3.2 > >>> print [3.2] > [3.2002] > >>> > > Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering > why it's converted diff

Re: printing anomaly

2005-03-20 Thread Erik Max Francis
Paul Rubin wrote: What's the deal with this? >>> print 3.2 3.2 >>> print [3.2] [3.2002] >>> Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering why it's converted differently depending on whether it's in a list. repr vs. str. The str of the sequenc

Re: Import mechanism to support multiple Python versions

2005-03-20 Thread Greg Ewing
Nicolas Fleury wrote: All my code in under a single package. Is it possible to override the import mechanism only for modules under that package and sub-packages so that?: Yes. A package module has a __path__ attribute to which you can add additional directories to be searched for submodules of

Re: Overloaded Constructors?!?

2005-03-20 Thread Paul McGuire
>>Another way is to make two factory methods that >>create instances of the class and do the correct initialization. >I am sorry to be so tedious, but I am still quite a >newbie in Python... could you please provide a very >small example of your last sentence? Looks >quite interesting... See the

(",) Do You Want To Know For Sure You Are Going To Heaven?

2005-03-20 Thread Ron038548
http://www.want-to-be-sure.blogspot.com << Click On Link -- http://mail.python.org/mailman/listinfo/python-list

PyPI errors?

2005-03-20 Thread Daniel Yoo
Does anyone know why PyPI's doesn't like my PKG-INFO file? Here's what I have: ## mumak:~/work/aho/src/python/dist/ahocorasick-0.8 dyoo$ cat PKG-INFO Metadata-Version: 1.0 Name: ahocorasick Version: 0.8 Summary: Aho-Corasick automaton implementation Home-page: http://hkn.eecs.berkeley.edu/~

Python limericks (was Re: Text-to-speech)

2005-03-20 Thread Tim Churches
Steve Holden wrote: > Tim Churches wrote: >> There once was a language called Python... >> >> (which is pretty close to having three anapaestic left feet) >> >> or more promisingly, rhyme-wise, but metrically rather worse : >> >> There once was a mathematician named van Rossum... >> >> Tim C >> > O

RE: IORCC Crossword and Wordfind Puzzles

2005-03-20 Thread iorcc
Hello Fellowist Rubyist (and scripters of all flavor) Here is a neat Ruby-centric 84 word crossword puzzle. To follow will be the word find for solution words. Its not too hard, but a good strong search engine and some knowledge of Ruby helps. I found all but 10 or so words/questions online. S

Re: How to create stuffit files on Linux?

2005-03-20 Thread Greg Ewing
Leif K-Brooks wrote: Noah wrote: The problem is that my users want to see .sit files. I know it's sort of silly. Zip files are foreign and frightening to them. Would Stuffit open zip files renamed to .sit? Yes! I just tried it, and it works. -- Greg Ewing, Computer Science Dept, University of Cante

exec src in {}, {} strangeness

2005-03-20 Thread Stefan Seefeld
hi there, I have trouble running some python code with 'exec': t.py contains: class Foo: pass class Bar: f = Foo From a python shell I do: >>> f = ''.join(open('t.py').readlines()) >>> exec f in {}, {} Traceback (most recent call last): File "", line 1, in ? File "", line 2, in ? File "",

Re: Pre-PEP: Dictionary accumulator methods

2005-03-20 Thread Ron
On Sun, 20 Mar 2005 15:14:22 -0800, David Eppstein <[EMAIL PROTECTED]> wrote: >In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Aahz) >wrote: > >> >I am surprised nobody suggested we put those two methods into a >> >separate module (say dictutils or even UserDict) as functions: >> > >> >from di

Re: printing anomaly

2005-03-20 Thread Greg Ewing
Paul Rubin wrote: What's the deal with this? >>> print 3.2 3.2 >>> print [3.2] [3.2002] >>> Yes, I know that 3.2 isn't an exact binary fraction. I'm wondering why it's converted differently depending on whether it's in a list. It's not. The difference is that prin

Re: Event Handeling Between Two wxPanles in A wxNotebook

2005-03-20 Thread F. GEIGER
My DataPool then is a singleton, well, actually, a Borg. See Alex Martelli's recipe for that. If you use new style classes, then you have to look for "Singleton" in the cookbook. HTH Franz GEIGER "MyHaz" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] > so you run data pool as

Re: For loop extended syntax

2005-03-20 Thread Kay Schluehr
George Sakkis wrote: > > Looks very appealing, but what to do with > > > > [x*y-z for (x=0,y,z) in (1,2,3), (4,5), (6,7,8)] ? > > > > Should it raise an exception due to a pattern mismatch? > > I didn't have in mind to generalize the syntax even more than the respective > for function > signatures

Re: (",) Do You Want To Know For Sure You Are Going To Heaven?

2005-03-20 Thread Chris Rebert (cybercobra)
Please do STFU! You are most annoying and this is the wrong place to post this. If anyone else if reading this, yes, I do realize it's probably a bot. But I need to vent some rage. Now if only his nick didn't have a "..." in it... I would so report it to yahoo and/or counterspam it. -- http://mai

Re: exec src in {}, {} strangeness

2005-03-20 Thread Do Re Mi chel La Si Do
Hi ! Try : exec f in globals(),locals() or exec(f,globals(),locals()) or exec f in globals(),globals() or exec(f,globals(),globals()) @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Python limericks (was Re: Text-to-speech)

2005-03-20 Thread Brian van den Broek
Steve Holden said unto the world upon 2005-03-20 16:18: Since it's PyCon week, I will offer a prize of $100 to the best (in my opinion) limerick about Python posted to this list (with a Cc: to [EMAIL PROTECTED]) before midday on Friday. The prize money will be my own, so there are no other rule

IconvCodec, UTF-32 & P4 ?

2005-03-20 Thread Do Re Mi chel La Si Do
Hi ! Iconvcodec was good, for to work with UTF-32, with Python 2.3 But, which tool, for the same use, with Python 2.4 ? Thanks for suggestions. Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

<    1   2