EOFError not getting raised

2005-06-09 Thread David Bear
I have been trying to do something like this: f = open('someDocs.str', 'r') try: while True: ln = f.readline() except EOFError: print 'reached eof' f.close() sys.exit(1) However, EOFError is never raised. What am I missing? -- http://mail.python.org/mailman/listinfo/pyt

python2.41 distutil setup.py

2005-06-09 Thread mahongquan
when i install pysqlite in python2.41,it show error below,and i install other package error also ocur, ,but when i copy the cmdline ,it can run without error,who can help me: ' running install running build running build_py running build_ext building '_sqlite' extension C:\PROGRA~1\MICROS~2\VC9

without shell

2005-06-09 Thread km
hi all, can any linux command be invoked/ executed without using shell (bash) ? what abt security concerns ? regards, KM -- http://mail.python.org/mailman/listinfo/python-list

Re: Is pyton for me?

2005-06-09 Thread Andrew Dalke
Mark de la Fuente wrote: > Here is an example of the type of thing I would like to be able to do. > Can I do this with python? How do I get python to execute command line > functions? ... > # simple script to create multiple sky files. > > foreach hour (10 12 14) > gensky 3 21 $ho

Re: Python as CGI on IIS and Windows 2003 Server

2005-06-09 Thread jean-marc
Some bits are coming back to me: the problems stemmed from adresses - getting the root of IIS was different so accessing files didn't work the same way. I'm also quite positive that my desktop (developement version) was IIS 5.1 which comes with XP Pro compared to 6.0 for IIS Server. I changed the w

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Thanks Kent Johnson wrote: > Philippe C. Martin wrote: >> Hi, >> >> I wish to use an easy way to generate reports from wxPython and feel >> wxHtmlEasyPrinting could be a good solution. >> >> I now need to generate the HTML wxHtmlEasyPrinting can print: I need to >> have a title followed by line

Re: Python Developers Handbook

2005-06-09 Thread Aahz
In article <[EMAIL PROTECTED]>, wooks <[EMAIL PROTECTED]> wrote: > >I am sorry. I don't have any other Python books to sell so it won't >happen again. The reason people jumped on you is that historically groups get overrun with "just one ad" posts, and there goes the neighborhood. -- Aahz ([EMAIL

Re: how to operate the excel by python?

2005-06-09 Thread Rune Strand
The key is Python for Windows : http://starship.python.net/crew/mhammond/win32/ See here for an Excel dispatch example: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/325735 When doing such operations, I generally save all the Excel files to CSV files and do the operations on them using

Re: Python Developers Handbook

2005-06-09 Thread Sakesun Roykiattisak
wooks wrote: >I thought that posting a link that contained the word ebay and a >subject title of Python Developers Handbook conveyed all the relevant >information and didn't want to patronise the NG. > >I have had 110 hits on the item but seem to have upset 3 people. > > >I am sorry. I don't hav

Re: Any way to not create .pyc files?

2005-06-09 Thread Terry Hancock
On Thursday 09 June 2005 03:48 pm, Lonnie Princehouse wrote: > At one point last week, users started reporting that they were > encountering problems running our Python application (the one that uses > the package on the network drive). The admins noticed that lots of > .pyc files had been inadver

Re: Embedding: many interpreters OR one interpreter with many thread states ?

2005-06-09 Thread grahamd
Greg Ewing wrote: > [EMAIL PROTECTED] wrote: > > > - creating many sub-interpreters (Py_NewInterpreter) with a thread > > state each > > > > Or > > > > - creating one interpreter with many thread states (PyThreadState_New) > > My understanding is that using multiple interpeters isn't > really supp

Announcement: Synopsis 0.8

2005-06-09 Thread Stefan Seefeld
I'm pleased to announce the release of Synopsis 0.8. Synopsis is a multi-language source code introspection tool that provides a variety of representations for the parsed code, to enable further processing such as documentation extraction, reverse engineering, and source-to-source translation. W

Re: Is pyton for me?

2005-06-09 Thread Dan Bishop
Mark de+la+Fuente wrote: > I need to write simple scripts for executing command line functions. Up till > now I've used C-Shell scripts for this, but I'm looking for a better > alternative. And I keep reading about how "easy" it is to program with > python. > > Unfortunately after reading "divein

Re: Saving/retrieving user preferences

2005-06-09 Thread flyingfred0
If you're creating your GUI with wxPython, you might be able to use wx.Config and related classes. http://wxpython.org/docs/api/wx.ConfigBase-class.html Brian Wallis wrote: > This may be a FAQ,but I cannot find it. > > I want to save user preferences, window sizes, recently opened file names,

Re: Python Developers Handbook

2005-06-09 Thread wooks
I thought that posting a link that contained the word ebay and a subject title of Python Developers Handbook conveyed all the relevant information and didn't want to patronise the NG. I have had 110 hits on the item but seem to have upset 3 people. I am sorry. I don't have any other Python books

Weekly Python Patch/Bug Summary

2005-06-09 Thread Kurt B. Kaiser
Patch / Bug Summary ___ Patches : 339 open ( -5) / 2857 closed (+12) / 3196 total ( +7) Bugs: 908 open ( -8) / 5036 closed (+22) / 5944 total (+14) RFE : 189 open ( -2) / 168 closed ( +5) / 357 total ( +3) New / Reopened Patches __ Trivial t

Re: anygui,anydb, any opinions?

2005-06-09 Thread flyingfred0
Renato Ramonda wrote: > Tim Roberts ha scritto: > >> Renato Ramonda <[EMAIL PROTECTED]> wrote: >> >>> wxWidgets apps look ALMOST native on windows (combobox and similar >>> widgets are emulated, and look really bad), >> >> >> >> That just isn't true. They use the standard combo box. > > > > T

Is pyton for me?

2005-06-09 Thread Mark de+la+Fuente
I need to write simple scripts for executing command line functions. Up till now I've used C-Shell scripts for this, but I'm looking for a better alternative. And I keep reading about how “easy” it is to program with python. Unfortunately after reading "diveintopython" and the python tutorial

how to operate the excel by python?

2005-06-09 Thread ÒÊÃÉɽÈË
i want to compare the content in excel,but i don't know whick module to use! can you help me? -- http://mail.python.org/mailman/listinfo/python-list

Re: Dealing with marketing types...

2005-06-09 Thread EP
flyingfred0 wrote: > A small software team (developers, leads and even the manager when he's > had time) has been using (wx)Python/PostgreSQL for over 2 years and > developed a successful 1.0 release of a client/server product. > > A marketing/product manager has brought in additional managemen

Re: Embedding: many interpreters OR one interpreter with many thread states ?

2005-06-09 Thread flyingfred0
Of course, with multiple threads in one process, it's important to know about the dreaded global interpreter lock (GIL) -- http://docs.python.org/api/threads.html With one instance of the interpreter, only one Python thread will be running at a time, no matter how many CPUs you have in the syst

Dealing with marketing types...

2005-06-09 Thread flyingfred0
A small software team (developers, leads and even the manager when he's had time) has been using (wx)Python/PostgreSQL for over 2 years and developed a successful 1.0 release of a client/server product. A marketing/product manager has brought in additional management and "architecture" experts

Re: inactive Spambayes w/ Outlook

2005-06-09 Thread Peter Hansen
Peter Hansen wrote: > The following link might help. Pay particular attention to item 6 under > "Addin doesn't load", since what you describe is very similar to a > problem I had which that sequence fixed for me. Hah! And you thought the link was going to follow in the same message. Oh no,

Re: inactive Spambayes w/ Outlook

2005-06-09 Thread Peter Hansen
[EMAIL PROTECTED] wrote: > I had installed spambayes with outlook 2003 a while ago and it worked > great. Then I did who know what it stopped working. I would click on > the 'delete spambayes' toolbar icon but nothing would happen. I clicked > on the 'spambayes' icon for options but nothing happene

Re: Python Developers Handbook

2005-06-09 Thread Paul Rubin
"wooks" <[EMAIL PROTECTED]> writes: > I am somewhat nonplussed that the opportunity to buy a Python book > cheaply is off limits for this NG. There have been alot of hits and as > there are very few Python books listed on Ebay I presume they came from > here. One really annoying thing is when the

Re: Interpreter-like help in cmd.Cmd

2005-06-09 Thread Peter Hansen
Sarir Khamsi wrote: > Peter Hansen <[EMAIL PROTECTED]> writes: > >>class _Helper(object): ... >> def __call__(self, *args, **kwds): >> import pydoc >> return pydoc.help(*args, **kwds) > > Thanks, but how do I integrate this with cmd.Cmd? I can't say exactly. That might depen

Re: Python Developers Handbook

2005-06-09 Thread Peter Hansen
Lucas Raab wrote: > Sorry, but Terry just seemed to come off a little too strong. I'm well > aware of the dangers of clicking on a link in an email and the whole > nine yards. I realize that Terry is right, but his attackdog respose was > offputting. "Attackdog" is about as far from an accurate

Re: MySQLDBAPI

2005-06-09 Thread =?ISO-8859-1?Q?Gregory_Pi=F1ero?=
I didn't see anything about mysql-devel package in the release notes. Is that something I can install all to my home directory? On 6/9/05, deelan <[EMAIL PROTECTED]> wrote: > Gregory Piñero wrote: > > Hey guys, > (...) > > > > My first question is if there is anything built into python as far as

Re: DB API 2.0 and transactions

2005-06-09 Thread flyingfred0
I've found it's occasionally necessary to go one lever deeper and use the _pg module directly so you are in control of your transactions (instead of letting pgdb automatically put you in one). vincent wehren wrote: > "Christopher J. Bottaro" <[EMAIL PROTECTED]> schrieb im > Newsbeitrag news:[EMA

Re: Fast text display?

2005-06-09 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > > OK. But I found on RH9 and FC3, as well as on Windows, that tcl/tk > > was preinstalled (or included with Python). I didn't find wxwidgets > > preinstalled on any of those systems. > > I think posts are getting crossed here. The python sources you get >

Re: Python Developers Handbook

2005-06-09 Thread wooks
Thank you. I have taken on board your input. The link is to an item on ebay entitled the Python Developers Handbook by Andre Lessa. The starting price of the auction is 5 pounds and costs 5 pounds to shipping as it weighs 1.6kg. The book was published in 2000, it's ISBN is 0672319942 RRP $44.99.

Re: Fast text display?

2005-06-09 Thread Mike Meyer
Paul Rubin writes: > Mike Meyer <[EMAIL PROTECTED]> writes: >> > I mean included with the source distro from python.org. >> Well, it includes Tkinter, but it doesn't include tcl/tk. So you get a >> non-functional version of Tkinter if you install from those >> sources. N

Re: Software licenses and releasing Python programs for review

2005-06-09 Thread poisondart
1. You seem to ignore the fact that volunteer teachers exist. 2. I aspire to not repeat history. Esp. history that I don't completely agree with... The description I supplied for the license I had in mind was not ready for your scrutiny, but as somebody else said licensing is less trivial than we

Re: Controlling source IP address within urllib2

2005-06-09 Thread Dan
Just FYI ... I finally got this to work. Unfortunately, I was unable to use the urllib2 library. The embedded Linux team here informed me that the urllib2 library will not be available on the machine I wanted to deploy on, so I had to go back to using the urllib and httplib libraries. After tryi

Re: Python Developers Handbook

2005-06-09 Thread Lucas Raab
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Lucas Raab <[EMAIL PROTECTED]> wrote: > >>Terry Reedy wrote: >> >>>Perhaps you have never seen a newgroup ruined by commercial announcements >>>like I have. >> >>O wise one, we bow to you with your deep knowledge. > > > If that's sarcasm, I sugge

Re: Interpreter-like help in cmd.Cmd

2005-06-09 Thread Sarir Khamsi
Peter Hansen <[EMAIL PROTECTED]> writes: > class _Helper(object): > """Define the built-in 'help'. > This is a wrapper around pydoc.help (with a twist). > > """ > > def __repr__(self): > return "Type help() for interactive help, " \ > "or help(object) f

Re: Python Developers Handbook

2005-06-09 Thread Aahz
In article <[EMAIL PROTECTED]>, Lucas Raab <[EMAIL PROTECTED]> wrote: >Terry Reedy wrote: >> >> Perhaps you have never seen a newgroup ruined by commercial announcements >> like I have. > >O wise one, we bow to you with your deep knowledge. If that's sarcasm, I suggest you reconsider your attit

Re: Python Developers Handbook

2005-06-09 Thread Lucas Raab
Terry Reedy wrote: > "wooks" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > > Perhaps you have never seen a newgroup ruined by commercial announcements > like I have. > > Terry J. Reedy > > > O wise one, we bow to you with your deep knowledge. -- ---

Re: Python Developers Handbook

2005-06-09 Thread Terry Reedy
"wooks" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I am somewhat nonplussed Since you reponded, I will mention a couple points of newsgroup ettiquete. First, a bare URL is or is close to being spam. It could have been spit out automatically by an seller program. It requires

ANN: Python for Maemo released!

2005-06-09 Thread [EMAIL PROTECTED]
We are proudly to announce the first release of Python for Maemo platform. This is in *alpha* stage yet. Bug fixes, wishes, suggestions, etc, are encouraged and welcomed. Please, contact us by mail (ok, bugzilla coming soon). * Ruda Moura <[EMAIL PROTECTED]> * Osvaldo Santana <[EMAIL PROTECTED]>

Re: Generating HTML from python

2005-06-09 Thread Kent Johnson
Philippe C. Martin wrote: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have > a title followed by lines of text that do not look too ugly. I

inactive Spambayes w/ Outlook

2005-06-09 Thread tendengarci
I had installed spambayes with outlook 2003 a while ago and it worked great. Then I did who know what it stopped working. I would click on the 'delete spambayes' toolbar icon but nothing would happen. I clicked on the 'spambayes' icon for options but nothing happened. I uninstalled and reinstalled

PEP 304 (was: Re: Any way to not create .pyc files?)

2005-06-09 Thread Skip Montanaro
>> PEP 304 would have helped, but it appears to be deceased. Just resting... FWIW, I reapplied it to my cvs sandbox the other day and plan to at least generate a new patch from that. It's pretty much done, except... Once upon a time, someone identified some problems for Windows with its

Multithreaded Python FSM (Harel State Machines)

2005-06-09 Thread Leonard J. Reder
Hello list, I have been searching on the web for a while now for a specific Python implementation of an FSM. More specifically what I am looking for is a Python implementation of the so called UML Harel State Machine notion of a state machine. These are multi-threaded capable state machines wit

Re: Fast text display?

2005-06-09 Thread Renato Ramonda
Paul Rubin ha scritto: > The installer is going to download more stuff? Yuccch, I'd rather not > need a network connection to do an install. Anyway, wxpython built ok > on FC3. The problem was wxwidgets, which needed an obsolete version > of GTK. I spent at least an hour or two messing around w

Re: Start application & continue after app exits

2005-06-09 Thread Renato Ramonda
guy lateur ha scritto: > I see what you mean, but wouldn't a call to open(fn, 'w') on a filename > that's in use (for reading or writing) result in an error condition or > something? I'm a noob, btw. Uh... no, not on linux. Try this: $ touch foo.txt $ gedit foo.txt & (write something in it an

howto send html mails using smtplib

2005-06-09 Thread Philippe C. Martin
Hi, I have the following problem: 1) I can use smtplib to send text messages 2) I can generate html 3) I want to email the html and want it to be seen by the email client as html. However, when I receive the message, the email client displays it as text (code hereunder) - I assume it has to do wi

Re: Fast text display?

2005-06-09 Thread Paul Rubin
Mike Meyer <[EMAIL PROTECTED]> writes: > > I mean included with the source distro from python.org. > > Well, it includes Tkinter, but it doesn't include tcl/tk. So you get a > non-functional version of Tkinter if you install from those > sources. Not very useful. OK. But I found on RH9 and FC3,

Re: Start application & continue after app exits

2005-06-09 Thread Paul McNett
Mike Meyer wrote: > "guy lateur" <[EMAIL PROTECTED]> writes: > > Also note that this method of creating tempfiles is technically unsafe, as it is theoretically possible that another process would create a file of the same name in the same directory and then try to use it, resulting >>

Re: A question about time

2005-06-09 Thread John Machin
Jan Danielsson wrote: > Hello all, > >I have a list of servers which an application connects to. If the > connection fails, the application should mark the server as temporarily > unavailable, and should try to use the server again after x units of time. > > In C, I would do this: > > server

Re: a library of stock mock objects?

2005-06-09 Thread Raymond Hettinger
> Given the "duck typing" nature of the Python itself, it's pretty > trivial to build mocks without using any pre-built libraries. I've also found it trivial to build a custom mock object whenever the need arises. > What is > less trivial and potentially more worthwhile is to have a library of

Re: Fast text display?

2005-06-09 Thread Renato Ramonda
Mike Meyer ha scritto: > Then I can go do something useful while the package system downloads, > compiles and installs all the required software. I don't know if > Debian has a similar system for installing from source. Gentoo does if > you want to stay with Linux. Debian actually has such a mecha

Re: A question about time

2005-06-09 Thread Jan Danielsson
Grant Edwards wrote: >>In C, I would do this: >> >>server.invalidUntil = time(NULL) + 5*60; // five minute delay > > In Python, I would do this: > > server.invalidUntil = time.time() + 5*60 # five minute delay Ah. Well. Um. I feel like an idiot. I found datetime by accident, and thought "it

Re: cx_freeze error : LookupError: no codec search functions registered:can't find encoding

2005-06-09 Thread Thomas W
Ok, I'll post my findings here since there are allready several questions about this topic on the net allready : The solution was to do an explicit import in my module, like so : from encodings import ascii from encodings import idna This solved the problem, at least in my case. Regards, Thomas

Re: Fast text display?

2005-06-09 Thread Renato Ramonda
Riccardo Galli ha scritto: > GUI cross platform need external support, in a OS or in another. Sure, but using win32 versions of gtk and glade plus py2exe and InnoSetup (if you want to build a fancy installer) will give you a self contained gui program in windows. Big, sure, but self contained :

Re: Start application & continue after app exits

2005-06-09 Thread Mike Meyer
"guy lateur" <[EMAIL PROTECTED]> writes: >>>Also note that this method of creating tempfiles is technically unsafe, >>>as it is theoretically possible that another process would create a file >>>of the same name in the same directory and then try to use it, resulting >>>in a race condition between

Re: anygui,anydb, any opinions?

2005-06-09 Thread Renato Ramonda
Thomas Bartkus ha scritto: >>Then download gtk2.6 and glade for windows and then install pygtk and >>code away to your satisfaction! :-D >> > > > I *will* try that. On linux you probably have everything installed or a command away, on windows use this: http://gladewin32.sourceforge.net/ choo

Re: my golf game needs gui

2005-06-09 Thread Mike Meyer
Mike Hoy <[EMAIL PROTECTED]> writes: > hi > > i've been writing a golf game in text only. this was to work out some of > details. it's great but making a golf course with ---'s and |||'s is > kinda silly looking. (at least to some..) > > now i'm ready to begin shopping for a gui widget to work wi

Re: A question about time

2005-06-09 Thread Grant Edwards
On 2005-06-09, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2005-06-09, Jan Danielsson <[EMAIL PROTECTED]> wrote: > >> In C, I would do this: >> >> server.invalidUntil = time(NULL) + 5*60; // five minute delay > > In Python, I would do this: > > server.invalidUntil = time.time() + 5*60 # five min

Re: Remove duplicates from list

2005-06-09 Thread Chris Lambacher
You are probably going about solving the problem from the wrong direction: Try something like this, overly verbose variable names used on purpose: regHours = context.getMainPrint(); #let a dictionary do the grouping for us hours_to_libraries_dic = {} for lib in regHours: key = lib.Monday + l

Re: Interpreter-like help in cmd.Cmd

2005-06-09 Thread Peter Hansen
Sarir Khamsi wrote: > Is there a way to get help the way you get it from the Python > interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the > module cmd.Cmd? I know how to add commands and help text to cmd.Cmd > but I would also like to get the man-page-like help for classes and > fu

Re: smtpd module

2005-06-09 Thread Tim Williams
- Original Message - From: "Hughes, Chad O" <[EMAIL PROTECTED]> > No, I know how to use the smtplib module and I can send email through > that. However what I want is a the ability to set up a very simple mail > server with python, for some tests that I need to run that just prints > o

Re: smtpd module

2005-06-09 Thread Douglas Soares de Andrade
Hi Chad ! I dont know how to use smtpd, but... why not use Twisted ? See ya ! Em Quinta 09 Junho 2005 21:13, Hughes, Chad O escreveu: > No, I know how to use the smtplib module and I can send email through > that. However what I want is a the ability to set up a very simple mail > server with p

Re: Fast text display?

2005-06-09 Thread Mike Meyer
Paul Rubin writes: > Jp Calderone <[EMAIL PROTECTED]> writes: >> What does "included with Python" mean anyway? Different packagers >> make different decisions. > I mean included with the source distro from python.org. Well, it includes Tkinter, but it doesn't include t

Re: A question about time

2005-06-09 Thread Grant Edwards
On 2005-06-09, Jan Danielsson <[EMAIL PROTECTED]> wrote: > In C, I would do this: > > server.invalidUntil = time(NULL) + 5*60; // five minute delay In Python, I would do this: server.invalidUntil = time.time() + 5*60 # five minute delay > ..and the check: > > if(time(NULL) > server.invalidUtil

Custom type: PyObject_IS_GC access violation

2005-06-09 Thread Bue Krogh Vedel-Larsen
I'm extending my C++ app by embedding Python 2.4.1 in it. The app is multithreaded and split into several DLL's. The main EXE calls Py_Initialize and Py_Finalize and each DLL gets a seperate interpreter with Py_NewInterpreter. The problem comes when I try to add a new type. I've been following

RE: smtpd module

2005-06-09 Thread Hughes, Chad O
No, I know how to use the smtplib module and I can send email through that. However what I want is a the ability to set up a very simple mail server with python, for some tests that I need to run that just prints out the message to the standard out and disregards the message. The smtpd module see

RE: A question about time

2005-06-09 Thread Ivan Shevanski
From: Jan Danielsson <[EMAIL PROTECTED]> To: python-list@python.org Subject: A question about time Date: Thu, 09 Jun 2005 22:58:17 +0200 Hello all, I have a list of servers which an application connects to. If the connection fails, the application should mark the server as temporarily una

Re: Any way to not create .pyc files?

2005-06-09 Thread Mark Tolonen
"Lonnie Princehouse" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In short: > > Is there any way to run Python WITHOUT trying to create .pyc files (or > .pyo) or to have Python not attempt to import the .pyc files it finds? > > Reason: > > We have a site-specific package installed

RE: smtpd module

2005-06-09 Thread Ivan Shevanski
So youre wondering how to send mail in python? I have a lot of examples if you want the smtp module. I don't have anything for anything other than the smtp module. -Ivan _ Express yourself instantly with MSN Messenger! Download tod

A question about time

2005-06-09 Thread Jan Danielsson
Hello all, I have a list of servers which an application connects to. If the connection fails, the application should mark the server as temporarily unavailable, and should try to use the server again after x units of time. In C, I would do this: server.invalidUntil = time(NULL) + 5*60; // fi

Interpreter-like help in cmd.Cmd

2005-06-09 Thread Sarir Khamsi
Is there a way to get help the way you get it from the Python interpreter (eg, 'help(dir)' gives help on the 'dir' command) in the module cmd.Cmd? I know how to add commands and help text to cmd.Cmd but I would also like to get the man-page-like help for classes and functions. Does anyone know how

smtpd module

2005-06-09 Thread Hughes, Chad O
Title: smtpd module Does anyone know of any documentation on how to use the smtpd module, either the SMTPServer or the DebuggingServer?  I cannot find any usage cases or examples anywhere.  I can find examples of using the smtplib module but not the smtpd module. Thanks, Chad -- http:/

Re: Python Developers Handbook

2005-06-09 Thread Lucas Raab
Terry Reedy wrote: > "wooks" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=5206943952 > > > Are you the seller flogging his item? We really don't need every auction > listing for Python books copied to this forum. Pleas

Re: Any way to not create .pyc files?

2005-06-09 Thread Lonnie Princehouse
> You didn't really describe the nature of the problem. Perhaps the whole > .pyc thing is a bit of a red herring, and the real problem lies > elsewhere? What are the actual symptoms of your problem? Yes, the .pyc thing could be a red herring. I was hoping to find an easy way to disable them to

Re: Remove duplicates from list

2005-06-09 Thread Derek Perriero
Sorry for not being more clear.  I'm using Zope to store the hours of each library on the campus.  The hours of each library will be set on a basis of Monday - Friday. i.e. Monday for a specific library, let's say Downtown Campus Library will stored as an attribute of 8am - 9pm, in Zope, and each d

XMLGenerator.startElementNS bug - how to escalate?

2005-06-09 Thread Nikolai Grigoriev
Dear all, what is the process to escalate bugs in Python core libraries? I am interested in one specific bug - that of xml/sax/saxutils.py, XMLGenerator.startElementNS(). The method is completely unusable, as it crashes on empty-namespace attributes (making me wonder if its author ever tested it -

Re: Questions on using Qt or wxWindows with Python and OS X

2005-06-09 Thread Phil Thompson
On Thursday 09 June 2005 8:07 pm, Tim Jarman wrote: > Hi Kenneth! > > In article <[EMAIL PROTECTED]>, > > Kenneth McDonald <[EMAIL PROTECTED]> wrote: > > If this is not an appropriate newsgroup for this type of posting, > > please let me know and (if possible) suggest an alternative. I've > > done

Re: Remove duplicates from list

2005-06-09 Thread Chris Lambacher
It is very unclear what you are trying to do. Why not explain what you want the output to be. You will get better answers. As a first stab at what you are doing wrong: collect = item.Monday + item.Tuesday + item.Wednesday + item.Thursday + item.Friday + item.Saturday + item.Sunday The above is

Re: some profiler questions

2005-06-09 Thread Dieter Maurer
"Mac" <[EMAIL PROTECTED]> writes on 7 Jun 2005 20:38:51 -0700: > > 1) I'd still like to run my whole app (i.e., using main()), but I'd > like to limit the profiling to only the select few subroutines. That > is, say I have a set of such fns in mind, call it "key_fns", and I > would like to on

Re: PIL and GeoTIFF

2005-06-09 Thread Matt Feinstein
On Thu, 09 Jun 2005 14:19:21 -0400, Khalid Zuberi <[EMAIL PROTECTED]> wrote: >If you are willing to go in a bit of a different direction, GDAL >supports GeoTIFF and includes python bindings: > >http://www.remotesensing.org/gdal/ Looks interesting, but kinda heavy-duty for my purposes. If a c

Re: Questions on using Qt or wxWindows with Python and OS X

2005-06-09 Thread Tim Jarman
Hi Kenneth! In article <[EMAIL PROTECTED]>, Kenneth McDonald <[EMAIL PROTECTED]> wrote: > If this is not an appropriate newsgroup for this type of posting, > please let me know and (if possible) suggest an alternative. I've > done a fair bit of research on the net, but information is scattered >

Re: Any way to not create .pyc files?

2005-06-09 Thread Peter Hansen
Lonnie Princehouse wrote: > We have a site-specific package installed on a network drive[1]. When > anyone with write access imports this package, the network drive gets > spammed with .pyc files. > > If these .pyc files exist, they appear to cause problems when other > users' Python interpreters

Re: Any way to not create .pyc files?

2005-06-09 Thread Lonnie Princehouse
>> PEP 304 would have helped, but it appears to be deceased. > Not sure it's deceased (a dead parrot?) - it's on the standards track, > it hasn't been rejected, and Skip has actually provided a patch to > implement the solution. It is possible that PEP 304 is really just pining for the fjords, bu

Re: Any way to not create .pyc files?

2005-06-09 Thread Peter Hansen
Peter Hansen blathered [about whether a .pyc will be regenerated if the path encoded in it changes]: > I take it back... that could be the reason. I just checked and the path > to the .py file is encoded in the .pyc. I don't know if it's actually > used in the decision whether to recompile the

Remove duplicates from list

2005-06-09 Thread Derek Perriero
I've been un-triumphantly trying to get a list of mine to have no repeats in it.   First, I'm pulling attributes from Zope and forming a list.  Next, I'm  pulling those same values and comparing them against the same list and if the values equal each other and are not already in the list, they appe

Re: Generating HTML from python

2005-06-09 Thread Cappy2112
I looked at HTMLGen a while ago- I didn't see what the advantage was. I wrote soem code similar to the example above, to generate a page.. It worked out fine. However, I want to add HTML ouput to many of my other python programs, and I don't want to re-write this for each program. So some higher

Re: re behaving strangely

2005-06-09 Thread Josh Close
Thanks for pointing out my utter stupidity :) It's been a long day. -Josh On 6/9/05, Peter Hansen <[EMAIL PROTECTED]> wrote: > Josh Close wrote: > > This is not returning a match > > > > re.compile( r'b' ).search( 'back', re.I ) > > > > Anyone know why this is? > > Yes: > >>> import re > >>>

ANNOUNCE: twill v0.7.1, scriptable Web testing.

2005-06-09 Thread C. Titus Brown
ANNOUNCING twill v0.7.1. twill is a simple Web scripting language built on top of Python and John J. Lee's 'mechanize'. It's designed for automated testing of Web sites, but it should prove useful for anybody who needs to interact with Web sites (especially those using logins and cookies) on the

Re: Any way to not create .pyc files?

2005-06-09 Thread Peter Hansen
Peter Hansen wrote: >> Lonnie Princehouse wrote: >>> If these .pyc files exist, they appear to cause problems when other >>> users' Python interpreters use them instead of the .py files. (I know, >>> they *should* work, but they don't). This may have something to do >>> with the fact that all of

Re: re behaving strangely

2005-06-09 Thread Peter Hansen
Josh Close wrote: > This is not returning a match > > re.compile( r'b' ).search( 'back', re.I ) > > Anyone know why this is? Yes: >>> import re >>> re.compile(r'b').search('back', re.I) >>> re.compile(r'b').search('back') <_sre.SRE_Match object at 0x00AF3D78> >>> re.compile(r'b', re.I).searc

Re: Any way to not create .pyc files?

2005-06-09 Thread Lonnie Princehouse
Of course! ZIP imports! I think that will solve the problem nicely. We already have a starter application that locates the codebase on the network drive, so it wouldn't be too hard to implement the "keep a local copy up to date" solution. But I'll try the zip idea first. Many thanks for your h

Re: Any way to not create .pyc files?

2005-06-09 Thread Peter Hansen
Steve Holden wrote: > Lonnie Princehouse wrote: >> If these .pyc files exist, they appear to cause problems when other >> users' Python interpreters use them instead of the .py files. (I know, >> they *should* work, but they don't). This may have something to do >> with the fact that all of these

re behaving strangely

2005-06-09 Thread Josh Close
This is not returning a match re.compile( r'b' ).search( 'back', re.I ) Anyone know why this is? -- -Josh -- http://mail.python.org/mailman/listinfo/python-list

Re: PIL and GeoTIFF

2005-06-09 Thread Khalid Zuberi
Matt Feinstein wrote: > Hi all-- > > I've succeeded in using the PIL (Python Imaging Library) to read a > simple GeoTIFF file and to extract data from the file's GeoTIFF key-- > but I'd also like to write GeoTIFFs, and there doesn't appear to be a > one-step way of doing that. > If you are will

Re: Exe file

2005-06-09 Thread Peter Hansen
Philip Seeger wrote: > I'm sorry for that newbie question but how can I compile a program (a .py > file) to an executable file? To save you what might be much wasted time on a wild goose chase, could you please tell us why you want to do this? (performance, protection from prying eyes, easier

Re: Changing entities

2005-06-09 Thread Kent Johnson
Daniel wrote: > I need match a regular expression, change it erasing the other strings > after this. Just like: > > a = "I'm going send to out of space, find another race" > > And I want to match "space" instance, and erase the other. If you mean you want to get rid of everything after 'space',

Re: Changing entities

2005-06-09 Thread Daniel
Hi Kent Thanks for your help, it worked sucessfully. I have another question, I think it is a stupid and simple but... I need match a regular expression, change it erasing the other strings after this. Just like: a = "I'm going send to out of space, find another race" And I want to match "space

Re: Any way to not create .pyc files?

2005-06-09 Thread Steve Holden
Lonnie Princehouse wrote: > In short: > > Is there any way to run Python WITHOUT trying to create .pyc files (or > .pyo) or to have Python not attempt to import the .pyc files it finds? > > Reason: > > We have a site-specific package installed on a network drive[1]. When > anyone with write acc

Re: Start application & continue after app exits

2005-06-09 Thread guy lateur
>>Also note that this method of creating tempfiles is technically unsafe, >>as it is theoretically possible that another process would create a file >>of the same name in the same directory and then try to use it, resulting >>in a race condition between the two processes. This is practically >>unli

  1   2   3   >