Newbie question about Class

2007-02-12 Thread JStoneGT
I'm reading the book of "Dive into Python" and got these code pieces: class UserDict: def __init__(self, dict=None): self.data = {} if dict is not None: self.update(dict) My question is,for the statement of: if dict is not None: self.update(dic

Re: Testers please

2007-02-12 Thread James Stroud
martien friedeman wrote: > I have written this tool that allows you to look at runtime data and > code at the same time. > And now I need people to test it. > > The easiest way to see what I mean is to look at some videos: > http://codeinvestigator.googlepages.com/codeinvestigator_videos > > It

Re: how to compare...

2007-02-12 Thread James Stroud
James Stroud wrote: > jairodsl wrote: > >> Hello everybody ! >> >> >> I have two list, they are, S1=['A','B','C','D','E'], and >> S2=['F','G','H','I','J'], but i have to compare both in this way: >> >> A vs J >> A vs I, B vs J >> A vs H, B vs

Re: get pid of a nohup command in Python

2007-02-12 Thread Gabriel Genellina
En Tue, 13 Feb 2007 01:52:57 -0300, <[EMAIL PROTECTED]> escribió: > I'm new to Python and am evaluating moving a project from Tcl/Tk to > Python and am stuck on one issue. How can I nohup (or any detached > task for that matter) a process and get its PID in Python. The obvious > route of (with a

Re: how to compare...

2007-02-12 Thread Gabriel Genellina
En Tue, 13 Feb 2007 01:03:07 -0300, jairodsl <[EMAIL PROTECTED]> escribió: > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H, B v

Re: how to compare...

2007-02-12 Thread attn . steven . kuo
On Feb 12, 8:03 pm, "jairodsl" <[EMAIL PROTECTED]> wrote: > Hello everybody ! > > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H,

Re: how to compare...

2007-02-12 Thread James Stroud
jairodsl wrote: > Hello everybody ! > > > I have two list, they are, S1=['A','B','C','D','E'], and > S2=['F','G','H','I','J'], but i have to compare both in this way: > > A vs J > A vs I, B vs J > A vs H, B vs I, C vs J > A

Weekly Python Patch/Bug Summary

2007-02-12 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 417 open ( -6) / 3565 closed (+12) / 3982 total ( +6) Bugs: 960 open ( -3) / 6498 closed (+19) / 7458 total (+16) RFE : 266 open ( +6) / 251 closed ( +1) / 517 total ( +7) New / Reopened Patches __ stream wr

get pid of a nohup command in Python

2007-02-12 Thread g . willgoose
I'm new to Python and am evaluating moving a project from Tcl/Tk to Python and am stuck on one issue. How can I nohup (or any detached task for that matter) a process and get its PID in Python. The obvious route of (with a trivial example) os.system("nohup ls > junk &") returns the status of the

MacPython wiki "moved" to Python wiki - now it's your turn...

2007-02-12 Thread skip
After much wailing and gnashing of teeth the past couple of days, I managed to move (most of?) the content from the MacPython wiki to the main Python wiki (*). All pages were created as subpages of http://wiki.python.or/moin/MacPython The motivation for this rather hasty move was that the M

how to compare...

2007-02-12 Thread jairodsl
Hello everybody ! I have two list, they are, S1=['A','B','C','D','E'], and S2=['F','G','H','I','J'], but i have to compare both in this way: A vs J A vs I, B vs J A vs H, B vs I, C vs J A vs G, B vs H, C vs I, D vs J

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Grant Edwards
On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: >> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >>> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> I at least need the code for useing some library for >> connecting to acrobat reader and giving

Re: c++ for python programmers

2007-02-12 Thread Andy Terrel
On Feb 12, 4:11 pm, "Thomas Nelson" <[EMAIL PROTECTED]> wrote: > On Feb 12, 1:35 pm, andrew clarke <[EMAIL PROTECTED]> wrote: > > > Thomas, I sent you a message off-list but it bounced due to your mailbox > > being full. > > > Short answer: Subscribe to the [EMAIL PROTECTED] mailing list and > > as

python mms library

2007-02-12 Thread mark
Hi Is there a library for creating mms message in python? thanks mark -- http://mail.python.org/mailman/listinfo/python-list

Re: Testers please

2007-02-12 Thread azrael
I took a first look on the video. Amazing. I love it. You got a tester good job, man // but one thing, why not zope and postgre? martien friedeman je napisao/la: > I have written this tool that allows you to look at runtime data and > code at the same time. > And now I need people to test it. >

Re: Gosper arithmetic in Python

2007-02-12 Thread Subscriber123
By the way, there are some commented out portions of code in there which you can just remove, if you want. The last two lines of the program are unnecessary, as well. On 2/12/07, Subscriber123 <[EMAIL PROTECTED]> wrote: Speaking of useful home-made modules, I wrote this primitive module which d

Testers please

2007-02-12 Thread martien friedeman
I have written this tool that allows you to look at runtime data and code at the same time. And now I need people to test it. The easiest way to see what I mean is to look at some videos: http://codeinvestigator.googlepages.com/codeinvestigator_videos It requires Apache and Sqlite. It works fo

Re: Gosper arithmetic in Python

2007-02-12 Thread Subscriber123
Speaking of useful home-made modules, I wrote this primitive module which does limited math with fractions. Anyone is welcome to expand on it or use it for any purpose. If anyone would like to submit it as a PEP to be added to the Python library of reference, that would be great. If anyone wishes

Re: Newbie Question

2007-02-12 Thread Paul Hummer
Stef Mientki wrote: > Oh I forgot that, ... > ... in Delphi you don't have to choose ;-) Dang it! I hate it when they give me choices like that! Paul -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim scripting with python

2007-02-12 Thread Ben Finney
"J. Clifford Dyer" <[EMAIL PROTECTED]> writes: > Which versions of vim is this valid for? I tried ":py print 'Hello'", > and got "E319: Sorry, the command is not available in this version" The ability of Vim to run Python commands is one of many optional features that can be enabled or disabled

Re: star_new_thread

2007-02-12 Thread worlman385
Simpified the code to use FUNCTION only without CLASS http://chiu424.hypermart.net/code5-demo2.py.txt (short version) the above code start a new thread to run the function that send / receive data to socket, but still hangs at the timeout_h function forever == htt

Re: multiple inheritance of a dynamic list of classes?

2007-02-12 Thread devicerandom
Thanks both for suggestions. I still think that using inheritance is somehow cleanest in this case (I always hear the mantra "avoid multiple inheritance!", but this is one of the cases it seems to make a lot of sense to me), but it's nice food for thought/code anyway. Other suggestions are always

Make 1million in 6 weeks or less

2007-02-12 Thread Sam Wortzberg
Legal Consultants http://legal-rx.blogspot.com/index.html will show you how to make 1 million in less than 6 weeks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim scripting with python

2007-02-12 Thread Neil Cerutti
On 2007-02-12, J. Clifford Dyer <[EMAIL PROTECTED]> wrote: > Stuart D. Gathman wrote: >> On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: >> Use :py inside your vimrc - don't run python externally. > > Which versions of vim is this valid for? I tried ":py print > 'Hello'", and got "E319: Sorry, t

Re: Does anyone have the db_row module compiled for python 2.4 on windows?

2007-02-12 Thread Larry Bates
vj wrote: > Would really appreciate the binary files for the db_row. > > Thanks, > > VJ > If you don't get an answer you may want to take a look at replacing with SQLObject: http://sqlobject.org/ -Larry -- http://mail.python.org/mailman/listinfo/python-list

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Larry Bates
Grant Edwards wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > I at least need the code for useing some library for > connecting to acrobat reader and giving the print command on > windows and some thing similar on

Does anyone have the db_row module compiled for python 2.4 on windows?

2007-02-12 Thread vj
Would really appreciate the binary files for the db_row. Thanks, VJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Vim scripting with python

2007-02-12 Thread J. Clifford Dyer
Stuart D. Gathman wrote: > On Sat, 03 Feb 2007 05:02:54 -0800, Tool69 wrote: > >> Does anyone have any advice, and more genraly how to script Vim with >> Python ? > > :py import sys > :py print sys.version > :help :py > >> I know I can put some python functions inside my vimrc file like >> this

'File name' is not recognized as an internal or external command, operable program

2007-02-12 Thread Roger A. Wehage
Here it is-nearly four and a half years since Mike Henley posted 'File name' is not recognized as an internal or external command, operable program-and the problem still persists. Some weeks ago I installed ActiveState 8.3.5.0 on Windows XP and many things stopped working. Like Mike, I struggled to

star_new_thread

2007-02-12 Thread worlman385
please take a look at my code (short version) http://chiu424.hypermart.net/code5.py.txt I write a instant messaging app over bluetooth My code will send / receive data from a bluetooth socket (same concept TCP socket) at the same time The code has infinite loop poll for and send data to the sock

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Patricio Olivares
On Feb 12, 3:06 pm, "krishnakant Mane" <[EMAIL PROTECTED]> wrote: > os.start does not work.. attribute error. > regards. > Krishnakant. It's os.system('thefile') or os.system('start thefile') but that's windows only. It seems like there's no platform-independent way to launch a preferred applica

Re: SystemError: _PyImport_FixupExtension: module _types not loaded

2007-02-12 Thread Gabriel Genellina
En Mon, 12 Feb 2007 15:44:36 -0300, <[EMAIL PROTECTED]> escribió: > I'm trying to write some "C" code that will run a python script that > can in turn call some "C" functions. However I'm having a problem > getting started because although I can run a script from the python > ide that imports cty

Re: Help with Optimization of Python software: real-time audio controller

2007-02-12 Thread Klaas
On Feb 11, 6:40 pm, [EMAIL PROTECTED] wrote: > Currently, I have all of the above "working", although I'm running > into some serious timing issues. When I run the program, I get > irregular timing for my metronome (if it sounds at all), as well as > irregular timing in writing to the external dev

Re: c++ for python programmers

2007-02-12 Thread Thomas Nelson
On Feb 12, 1:35 pm, andrew clarke <[EMAIL PROTECTED]> wrote: > Thomas, I sent you a message off-list but it bounced due to your mailbox > being full. > > Short answer: Subscribe to the c-prog@yahoogroups.com mailing list and > ask your C/C++ questions there. > > Regards > Andrew I have to edit a

Re: huge amounts of pure Python code broken by Python 2.5?

2007-02-12 Thread Klaas
On Feb 10, 5:59 am, Brian Blais <[EMAIL PROTECTED]> wrote: > Klaas wrote: > > I have converted our 100 kloc from 2.4 to 2.5. It was relatively > > painless, and 2.5 has features we couldn't live without. > > Just out of curiosity, what features in 2.5 can you not live without? I just > migrated t

Re: irclib problems

2007-02-12 Thread David Boddie
On Sunday 11 February 2007 09:29, Tina I wrote: > I'm playing around with the 'irclib' library working with the first > example at > http://www.devshed.com/c/a/Python/IRC-on-a-Higher-Level-Concluded/ > > When copying the example verbatim and running it from a console it works > flawlessly. It con

Re: How to Speed Up Internet Searches??

2007-02-12 Thread Irmen de Jong
Patrick Klos wrote: > In article <[EMAIL PROTECTED]>, > <[EMAIL PROTECTED]> wrote: >> How to Speed Up Internet Searches?? >> When you go to a web site, the first thing that happens is that. >> and for networking tips see at >> : : : > > Please don't post this kind of stu

ANN: Pyro 3.6 beta released

2007-02-12 Thread Irmen de Jong
It is with great pleasure that I announce that the release of a beta version of Pyro 3.6-- the greatest Pyro release yet! "What is Pyro?" "Pyro is short for PYthon Remote Objects. It is an advanced and powerful Distributed Object Technology system written entirely in Python, that is designed to be

Gosper arithmetic in Python

2007-02-12 Thread Marcin Ciura
Hello, I hacked together a module implementing exact real arithmetic via lazily evaluated continued fractions. You can download it from http://www-zo.iinf.polsl.gliwice.pl/~mciura/software/cf.py an use as an almost drop-in replacement for the math module if you don't care too much about performanc

Re: Newbie Question

2007-02-12 Thread Stef Mientki
Bjoern Schliessmann wrote: > Stef Mientki wrote: > >> - in Delphi the GUI design itself is done in a graphical >> environment, making it much easier and faster > > RAD possible with Python, too. > >> - auto-scaling of components on a form is very easy (so if the >> user changes form size ..) >

Re: favourite editor

2007-02-12 Thread Stef Mientki
azrael wrote: > I expirienced some big craches. tra running some aplication vith using > Vpython. when you close the vpython window, pyscripter also crashes. > sometimes im writing some code and suddenly get about 300 error > messages without running anything. I like pyscripter, but sometimes it >

Re: c++ for python programmers

2007-02-12 Thread andrew clarke
On Mon, Feb 12, 2007 at 10:00:51AM -0800, Thomas Nelson wrote: > I realize I'm approaching this backwards from the direction most > people go, but does anyone know of a good c/c++ introduction for > python programmers? Thomas, I sent you a message off-list but it bounced due to your mailbox being

Re: favourite editor

2007-02-12 Thread Gabriel Genellina
En Mon, 12 Feb 2007 16:11:23 -0300, azrael <[EMAIL PROTECTED]> escribió: > I expirienced some big craches. tra running some aplication vith using > Vpython. when you close the vpython window, pyscripter also crashes. > sometimes im writing some code and suddenly get about 300 error > messages wi

Re: c++ for python programmers

2007-02-12 Thread [EMAIL PROTECTED]
Thomas Nelson wrote: > I realize I'm approaching this backwards from the direction most > people go, but does anyone know of a good c/c++ introduction for > python programmers? I would stick with C unless you need to edit C++ code. (Calling them C/C++ doesn't make much sense as they're separate l

Re: favourite editor

2007-02-12 Thread azrael
I expirienced some big craches. tra running some aplication vith using Vpython. when you close the vpython window, pyscripter also crashes. sometimes im writing some code and suddenly get about 300 error messages without running anything. I like pyscripter, but sometimes it drives me crazy On Fe

Re: Generating pdf files in epydoc on Windows

2007-02-12 Thread Don Taylor
Duncan Smith wrote: > As I remember, LaTeX and ghostscript. Thanks. OK, I have these installed now, but apparently epydoc can't find them and I don't know how to teach it to find them. Error: latex failed: [Errno 2] The system cannot find the file specified epydoc does creates so

Re: multiple inheritance of a dynamic list of classes?

2007-02-12 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hi, > > I am currently using the Cmd module for a mixed cli+gui application. I > am starting to refactor my code and it would be highly desirable if > many commands could be built as simple plugins. > > My idea was: > - Load a list of plugin names (i.e. from the config

Re: multiple inheritance of a dynamic list of classes?

2007-02-12 Thread Michele Simionato
On Feb 12, 4:48 pm, [EMAIL PROTECTED] wrote: > - is there a better way than using multiple inheritance to plug-in > dynamically commands in a Cmd command line? I had to solve the same problem recently, and I decided to avoid multiple inheritance by using delegation. My idea was to make the Cmd cla

post data using curl

2007-02-12 Thread elrondrules
hi need some help from the experts in this group as to how to do the following i have a http listener (A) that has subscribed to a process (B) and listening on a port.. now based on some command line arguments i need to send a xml file to the process B using curl.. is there a way to do this in p

SystemError: _PyImport_FixupExtension: module _types not loaded

2007-02-12 Thread usenet1
I'm a newbie with hopefully an easy question. I'm trying to write some "C" code that will run a python script that can in turn call some "C" functions. However I'm having a problem getting started because although I can run a script from the python ide that imports ctypes, when I execute that 'im

MIME-Version in interpart, Python MIMEMultipart

2007-02-12 Thread berb . web
list - using python's MIMEMultipart() object I've noticed that it interjects a 'MIME-Version' in the interpart header, like so... --some_MIME_Boundry Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit some_test Now, RFC1521, section 3 reads: Note

Re: Newbie Question

2007-02-12 Thread Bjoern Schliessmann
Stef Mientki wrote: > - in Delphi the GUI design itself is done in a graphical > environment, making it much easier and faster RAD possible with Python, too. > - auto-scaling of components on a form is very easy (so if the > user changes form size ..) Just to name one library, wxPython can do

Zope 3 Boot Camp early bird registration deadline near

2007-02-12 Thread Chris Calloway
The early bird registration deadline for Camp 5 and the BBQ Sprint is Wednesday, February 14: http://trizpug.org/boot-camp/camp5/ You can save $50 by registering early. Registration ends Friday March 2. -- Sincerely, Chris Calloway http://www.seacoos.org office: 332 Chapman Hall phone: (919

Re: standardized us address

2007-02-12 Thread John Nagle
Chris Mellon wrote: > On 2/11/07, mark <[EMAIL PROTECTED]> wrote: > >> Hi >> Is there any python module that will convert address to standard US >> address >> format: >> for ex: >> >> 314 south chauncey avenue >> >> should be: >> 314 s chauncey ave >> >> >> thanks >> mark >> > > This isn't stand

Re: Embedding, "import site", PYTHONHOME, and an old, old issue

2007-02-12 Thread Jim Hill
Gabriel Genellina wrote: >En Sat, 10 Feb 2007 03:57:05 -0300, Jim Hill <[EMAIL PROTECTED]> escribió: > >> int routine() { >> Py_Initialize(); >> ... >> } > >(Why routine() and not main()? Unfortunately you can't repeteadly >initialize/finalize the interpreter, you must do that only once.)

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Grant Edwards
On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> I at least need the code for useing some library for connecting to acrobat reader and giving the print command on windows and some thing similar on ubuntu linux. >> >>>

Re: Exception

2007-02-12 Thread Gabriel Genellina
En Mon, 12 Feb 2007 10:37:52 -0300, Navid Parvini <[EMAIL PROTECTED]> escribió: > Would you please tell me if there is a pysignal or method that called > when an exception is occurred? No > (I don't want to use "try" method) Why not? -- Gabriel Genellina -- http://mail.python.org/mailm

Re: multiple inheritance of a dynamic list of classes?

2007-02-12 Thread devicerandom
> Most of the above should be straight-forward. I used type(cmd.Cmd)(name, > bases, classdict) instead of just type(name, bases, classdict) because > cmd.Cmd is a classic class. It seems it works. It is not so straight-forward to me because I don't know about new-style types and classes very well

Re: string.replace non-ascii characters

2007-02-12 Thread Gabriel Genellina
En Mon, 12 Feb 2007 07:44:14 -0300, Duncan Booth <[EMAIL PROTECTED]> escribió: > "Gabriel Genellina" <[EMAIL PROTECTED]> wrote in triplicate: > >> If I were paid for the number of lines *written* that would not be a >> great deal :) > > You don't by any chance get paid by the number of posts to

Re: c++ for python programmers

2007-02-12 Thread Maël Benjamin Mettler
SAMS "Teach yourself C in 21 days" by Bradley L. Jones and Peter Aitken Learning C++ is not worth is in my opinion, since you can get the OOP power from Python and use C if you need speed... Thomas Nelson schrieb: > I realize I'm approaching this backwards from the direction most > people go, but

Re: About getattr()

2007-02-12 Thread Duncan Booth
Leif K-Brooks <[EMAIL PROTECTED]> wrote: >> Why do I still need the getattr() func as below? >> > print getattr(os.path,"isdir").__doc__ >> Test whether a path is a directory > > You don't. Correct > getattr() is only useful when the attribute name is > determined at runtime. > getattr()

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Larry Bates
Grant Edwards wrote: > On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: > >>> I at least need the code for useing some library for >>> connecting to acrobat reader and giving the print command on >>> windows and some thing similar on ubuntu linux. > >> Just let the registered .PDF viewer do

Re: Jython / Java / C / C++ interoperability

2007-02-12 Thread Roman Yakovenko
On 12 Feb 2007 09:57:48 -0800, Charity <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a code base primarily written in Java. I would like to use > Jython to "use" this code base. Everything is wonderful because > Jython calls Java easily. > > However, there may be a time when I would like to cal

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread krishnakant Mane
os.start does not work.. attribute error. regards. Krishnakant. -- http://mail.python.org/mailman/listinfo/python-list

c++ for python programmers

2007-02-12 Thread Thomas Nelson
I realize I'm approaching this backwards from the direction most people go, but does anyone know of a good c/c++ introduction for python programmers? Thanks, Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions

2007-02-12 Thread Gabriel Genellina
En Mon, 12 Feb 2007 07:20:11 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > The source of HTMLParser and xmllib use regular expressions for > parsing out the data. htmllib calls sgmllib at the begining of it's > code--sgmllib starts off with a bunch of regular expressions used to > par

Jython / Java / C / C++ interoperability

2007-02-12 Thread Charity
Hi all, I have a code base primarily written in Java. I would like to use Jython to "use" this code base. Everything is wonderful because Jython calls Java easily. However, there may be a time when I would like to call C/C++ from Jython. I can't do this directly, can I? Would I have to wrap

Re: Newbie Question

2007-02-12 Thread Stef Mientki
Ed Leafe wrote: > On Feb 12, 2007, at 9:59 AM, Stef Mientki wrote: > >> but to be honest ... >> ... I never even tried to write a GUI in Python, ... >> ... just looked at others examples, >> ... and still not seen what I can perform in Delphi ;-) > > You should definitely look at our product:

Re: Regular Expressions

2007-02-12 Thread skip
dbl> The source of HTMLParser and xmllib use regular expressions for dbl> parsing out the data. htmllib calls sgmllib at the begining of it's dbl> code--sgmllib starts off with a bunch of regular expressions used dbl> to parse data. I am almost certain those modules use regular ex

SQLObject 0.8.0

2007-02-12 Thread Oleg Broytmann
Hello! I'm pleased to announce the 0.8.0 release of SQLObject. What is SQLObject = SQLObject is an object-relational mapper. Your database tables are described as classes, and rows are instances of those classes. SQLObject is meant to be easy to use and quick to get started wi

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Grant Edwards
On 2007-02-12, Larry Bates <[EMAIL PROTECTED]> wrote: >> I at least need the code for useing some library for >> connecting to acrobat reader and giving the print command on >> windows and some thing similar on ubuntu linux. > Just let the registered .PDF viewer do it for you. > > os.start('myfil

Re: multiple inheritance of a dynamic list of classes?

2007-02-12 Thread Peter Otten
[EMAIL PROTECTED] wrote: > I am currently using the Cmd module for a mixed cli+gui application. I > am starting to refactor my code and it would be highly desirable if > many commands could be built as simple plugins. > > My idea was: > - Load a list of plugin names (i.e. from the config file, or

Re: Hacking in python

2007-02-12 Thread Gasten
On Feb 12, 1:18 am, [EMAIL PROTECTED] wrote: > On Feb 10, 5:25 pm, "Geoff Hill" <[EMAIL PROTECTED]> wrote: > > > The word "hack" can be known as a "smart/quick fix" to a problem. > > Giving the benefit of the doubt here, perhaps Enes Naci saw this > article:http://www.hetland.org/python/instant-hac

Re: New Pythin user looking foe some good examples to study

2007-02-12 Thread Larry Bates
Johnny Garcia wrote: > I have just discovered Python and am familiarizing myself with the syntax > but I have always found that code examples where the best way for me to > learn. > > > > Can anyone point me to a site with some good open source functioning python > applications? > > > > I

Re: can't find a way to display and print pdf through python.

2007-02-12 Thread Larry Bates
krishnakant Mane wrote: > hello all, > I am stuck with a strange requirement. > I need a library that can help me display a pdf file as a report and > also want a way to print the same pdf file in a platform independent > way. > if that's not possible then I at least need the code for useing some >

Re: favourite editor

2007-02-12 Thread Larry Bates
azrael wrote: > Since i'm new on this forum, and first time meeting a python comunity, > i wanted to ask you for your python editors. > > Im looking for some good python editor, with integrated run function, > without having to set it up manualy like komodo. > I found the pyscripter, and it has al

Re: WindowsNT user authentication

2007-02-12 Thread Tim Golden
billie wrote: > Do you got any idea about how getting user's home directory? The answer to that is unfortunately slightly complicated, because Windows has no such thing as a "user's home directory" or, if you prefer, it has several such things. If you want, you can let Python make the decision,

multiple inheritance of a dynamic list of classes?

2007-02-12 Thread devicerandom
Hi, I am currently using the Cmd module for a mixed cli+gui application. I am starting to refactor my code and it would be highly desirable if many commands could be built as simple plugins. My idea was: - Load a list of plugin names (i.e. from the config file, or from the plugins directory) - Im

Re: searching a list of lists as a two-dimensional array?

2007-02-12 Thread Neil Cerutti
On 2007-02-12, James Stroud <[EMAIL PROTECTED]> wrote: > Paul Rubin wrote: >> "agent-s" <[EMAIL PROTECTED]> writes: >>>Basically I'm programming a board game and I have to use a >>>list of lists to represent the board (a list of 8 lists with 8 >>>elements each). I have to search the adjacent cells

Re: WindowsNT user authentication

2007-02-12 Thread billie
On 12 Feb, 14:45, Tim Golden <[EMAIL PROTECTED]> wrote: > billie wrote: > > Hi there, > > I would like to submit a username/password pair to a Windows NT > > workstation and find out if it's valid. > > Moreover I would like to get the user's home directory given the > > username. > > Does it is pos

Re: Newbie Question

2007-02-12 Thread Ed Leafe
On Feb 12, 2007, at 9:59 AM, Stef Mientki wrote: > but to be honest ... > ... I never even tried to write a GUI in Python, ... > ... just looked at others examples, > ... and still not seen what I can perform in Delphi ;-) You should definitely look at our product: Dabo. Both myself and m

Exception

2007-02-12 Thread Navid Parvini
Dear All, Would you please tell me if there is a pysignal or method that called when an exception is occurred? (I don't want to use "try" method) Thank you in advance. Navid - Food fight? Enjoy some healthy debate in the Yahoo! Answers Food & D

Re: Regular Expressions

2007-02-12 Thread Neil Cerutti
On 2007-02-10, Geoff Hill <[EMAIL PROTECTED]> wrote: > What's the way to go about learning Python's regular > expressions? I feel like such an idiot - being so strong in a > programming language but knowing nothing about RE. A great way to learn regular expressions is to implement them. -- Neil

Re: Newbie Question

2007-02-12 Thread Stef Mientki
[EMAIL PROTECTED] wrote: > On 9 fév, 14:06, Stef Mientki <[EMAIL PROTECTED]> wrote: will explain the rest >>> Delphi is a (dying) proprietary, MS-Windows-only[1] software relying >>> on a low-level language. >> Well it may be dying, >> but for the moment it beats Python with a factor of 10, >>

Re: How to Speed Up Internet Searches??

2007-02-12 Thread Patrick Klos
In article <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> wrote: >How to Speed Up Internet Searches?? >When you go to a web site, the first thing that happens is that. >and for networking tips see at > : : : Please don't post this kind of stuff here any more. It's off topic

Re: New Pythin user looking foe some good examples to study

2007-02-12 Thread Matimus
I agree, the standard libraries are a good place to start. I learned a lot by looking at them, plus it has the added bonus that you learn the standard libraries. > I suspect them to be below usr/lib on linux. /usr/lib/python2.4 /usr/lib/python2.5 On Debian/Ubuntu anyway. -- http://mail.python.

Re: Help with Optimization of Python software: real-time audio controller

2007-02-12 Thread Jean-Paul Calderone
On 12 Feb 2007 06:21:39 -0800, Ross Ridge <[EMAIL PROTECTED]> wrote: > >Paul Rubin wrote: >> I think you can't really do that, not just because of Python but also >> as a result of using a multitasking OS that's not especially designed >> for real time. You have to rely on some buffering in the au

Re: Help with Optimization of Python software: real-time audio controller

2007-02-12 Thread Laurent Pointal
[EMAIL PROTECTED] a écrit : > As mentioned above, my application deals with music training. I have a > Tkinter GUI, which communicates via pyserial with an external device I > built myself. The code reads in a MIDI file and converts the song to > "output data " for the external device and the GUI,

Re: Help with Optimization of Python software: real-time audio controller

2007-02-12 Thread Ross Ridge
Paul Rubin wrote: > I think you can't really do that, not just because of Python but also > as a result of using a multitasking OS that's not especially designed > for real time. You have to rely on some buffering in the audio > hardware, so you don't have to be sample-accurate with the timings.

Re: Win98 - exceptions.IOError: (13, 'Permission denied')

2007-02-12 Thread Robert Dollinger
Ok, I have solved the problem. You have to set to something different than "Local System account" under properties of the service. bye Robert Robert Dollinger schrieb: > Hi to everyone, > > I have a Service, that runs on a WinXP machine. The service read a file > on a Win98 machine and write t

Re: wxPython libraries never detected

2007-02-12 Thread Chris Mellon
On 10 Feb 2007 07:55:05 -0800, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, I recently started coding with Python and I've been trying for the > past hour or so to determine why, every time I "import wx" (or compile > another piece of code that imports wx), Python can never find the > librari

Re: interacting with shell - another newbie question

2007-02-12 Thread Hertha Steck
James Stroud schrieb: > > Yes, and finding ways to have employees pointlessly waste time is equal > to simply removing them. Not as long as they are paid for the wasted time. -- http://mail.python.org/mailman/listinfo/python-list

Re: favourite editor

2007-02-12 Thread Dick Moores
At 08:41 PM 2/10/2007, azrael wrote: >Since i'm new on this forum, and first time meeting a python comunity, >i wanted to ask you for your python editors. > >Im looking for some good python editor, with integrated run function, >without having to set it up manualy like komodo. >I found the pyscript

Re: Putting wxFrame on the second monitor

2007-02-12 Thread Chris Mellon
On 2/12/07, Michael Butscher <[EMAIL PROTECTED]> wrote: > Hi, > > My software is written with wxPython. At some point it pops up a child- > frame of the main frame. The child-frame gets a fixed position in > constructor (maybe this is the problem). > > Now I got reports from users with dual monitor

Re: standardized us address

2007-02-12 Thread Chris Mellon
On 2/11/07, mark <[EMAIL PROTECTED]> wrote: > Hi > Is there any python module that will convert address to standard US address > format: > for ex: > > 314 south chauncey avenue > > should be: > 314 s chauncey ave > > > thanks > mark > This isn't standardization, it's normalization. The USPS mainta

Re: Progress when parsing a large file with SAX

2007-02-12 Thread marc . omorain
On Feb 12, 1:21 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > Anastasios Hatzis wrote: > > Diez B. Roggisch wrote: Thanks guys! I'll try it out later today and let you know how I get on. -- http://mail.python.org/mailman/listinfo/python-list

Re: WindowsNT user authentication

2007-02-12 Thread Tim Golden
billie wrote: > Hi there, > I would like to submit a username/password pair to a Windows NT > workstation and find out if it's valid. > Moreover I would like to get the user's home directory given the > username. > Does it is possible to do that by using pywin32 extension? http://timgolden.me.uk/p

Putting wxFrame on the second monitor

2007-02-12 Thread Michael Butscher
Hi, My software is written with wxPython. At some point it pops up a child- frame of the main frame. The child-frame gets a fixed position in constructor (maybe this is the problem). Now I got reports from users with dual monitor systems that this child- frame is always shown on the primary moni

Re: string.replace non-ascii characters

2007-02-12 Thread John Machin
On Feb 12, 11:44 pm, Deniz Dogan <[EMAIL PROTECTED]> wrote: > Duncan Booth wrote: > > "Gabriel Genellina" <[EMAIL PROTECTED]> wrote in triplicate: > > >> If I were paid for the number of lines *written* that would not be a > >> great deal :) > > > You don't by any chance get paid by the number of

WindowsNT user authentication

2007-02-12 Thread billie
Hi there, I would like to submit a username/password pair to a Windows NT workstation and find out if it's valid. Moreover I would like to get the user's home directory given the username. Does it is possible to do that by using pywin32 extension? Could someone point me in the right direction? B

  1   2   >