Re: Question Re urllib (Jeff James)

2013-12-16 Thread Jeff James
/my..com/intranet.html* is down* http://#.main..com/psso/pssignsso.asp?dbname=FSPRD90 * is down* http://sharepoint..com/regions/west/PHX_NSC/default.aspx * is down* Cc: [email protected] Date: Mon, 16 Dec 2013 06:54:48 -0500 Subject: Re: Question RE urllib On Mon, Dec 16, 2013

RE: Question RE urllib

2013-12-16 Thread Jeff James
Sorry to be a pain here, guys, as I'm also a newbie at this as well. Where, exactly in the script would I place the " print str(e) " ? Thanks Original message : I'm not really receiving an "exception" other than those three sites, out > of the 30 or so I have listed, are the only sites which s

Re: Question Re urllib (Resolved)

2013-12-16 Thread Jeff James
This worked perfectly. Thank You Where, exactly in the script would I place the " print str(e) " ? The line after the print site + " is down" line. Original Post : I'm not really receiving an "exception" other than those three sites, out of the 30 or so I have listed, are the only sites

RE: Question RE urllib

2013-12-17 Thread Jeff James
So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are "down" when, in fact, they are actually up. These sites do not require a logon in order for the home page to come up. Could this be due to some port being blocked internally

RE: Use of urllib (update)

2013-12-18 Thread Jeff James
Folks, I promise I'll get to the point where my questions aren't so basic, but I'm just now starting to get into Python. So I'm using the urllib script to check to make sure our company sites are up. As stated earlier, I have three sites which require some form of authentication in order to repo

RE: urllib and authentication script integration

2013-12-23 Thread Jeff James
I have some simple code I would like to share with someone that can assist me in integrating authentication script into. I'm sure it's an easy answer for any of you. I am still researching, but on this particular project, time is of the essence and this is the only missing piece of the puzzle for

Re: Would Python be suitable for a sports statistics website?

2014-01-30 Thread Jeff Sandvik
Python is definitely suitable for that sort of task. Django is good for this sort of thing, but I’d also like to mention using Flask (http://flask.pocoo.org), especially if you are a beginner. I use it for some of my work, and you could potentially get your project up and running that much quic

Is anyone in this group using Python Editor v5 for Chromebooks?

2016-03-13 Thread Jeff Schumaker
I'm trying to use Python Editor v5 for Chromebooks. It works fine, except it won't read data files. I'm just wondering if anyone else is using this editor and has found a solution to this problem. -- https://mail.python.org/mailman/listinfo/python-list

IronPython 2.7.5 Released

2014-12-09 Thread Jeff Hardy
c features. IronPython 2.7.5 is also available for embedding via NuGet. The main package is IronPython, and the standard library is in IronPython.StdLib. - Jeff [1] http://ironpython.codeplex.com/releases/view/169382 [2] http://bit.ly/ipy275fixed [3] https://github.com/IronLanguages/main/compare

Re: ipy %run noob confusion

2013-10-04 Thread Jeff Shrager
Thank you. This is extremely helpful. The key that I was missing is that it's running them outside of the ipy context. I also discovered that if you call the script .ipy instead of .py, it actually does more or less what I was expecting -- that is, it allows magic commands, and I got the thing work

Beginning question #compilersetup, #windows7, #vs2010

2015-09-27 Thread Jeff VanderDoes
and the like. Thanks for your help! Jeff -- https://mail.python.org/mailman/listinfo/python-list

Re: Beginning question #compilersetup, #windows7, #vs2010

2015-09-28 Thread Jeff VanderDoes
r (in part) didn't know if the whole thing would be useful. Thinking about this I'm not sure if this a compiler issue or a situation where lxml isn't supported in 3.5 yet. Might someone be able to shed some insight? Thanks, Jeff ... C:\Program Files (x86)\Microsoft Visual Studi

Trying to build Python

2015-10-17 Thread Jeff Archer
I am trying to build Python on windows. I have gotten the source in compressed form, Python-3.5.0.tgz. Attempting to follow PCBuild\readme.txt Ran the get_externals.bat in the PCBuild folder. No apparent errors. Trying to build and getting errors: 1> abort: there is no Mercurial repository he

Re: Trying to build Python

2015-10-18 Thread Jeff Archer
On Sun, Oct 18, 2015 at 5:15 AM, Tim Golden wrote: > On 17/10/2015 17:25, Jeff Archer wrote: > >> I am trying to build Python on windows. I have gotten the source in >> compressed form, Python-3.5.0.tgz. Attempting to follow >> PCBuild\readme.txt >> >> Ran

Re: Building a python extension on Windows

2015-10-27 Thread Jeff Archer
x27;t remember the specific issues off-hand but since I was successful using the batch files, I didn't worry about it. With this build of Python I have gotten rudimentary extensions working with Boost.Python and straight C code. Had to build Boost against this build of Python to make that work. j

Re: Implementing Python-OAuth2

2011-10-06 Thread Jeff Gaynor
ettle to a steady state. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Using python to dynamically divine the contents of a CORBA (omniORB) interface

2012-01-17 Thread Jeff Frontz
cribing a successive parameter. I'm hoping this reflects the implementation of omniORBpy. Assuming that it does, are there well-defined routines for interrogating/ manipulating these interface class objects? Thanks, Jeff [note: this was originally posted at stackoverflow http://stackoverf

Re: Which Python web framework is most like Ruby on Rails?

2005-12-22 Thread Jeff Rush
be a proprietary license that states you purchased this program and don't have the right to pass it on to others, similar to ActiveState or somesuch. The real hook would seem to be the social one that you provide support and improvements so they need to keep you in business. -Jeff -- http://mail.python.org/mailman/listinfo/python-list

return a default form with BaseHTTPServer

2006-01-09 Thread Jeff Gercken
rver class ServerHandler(CGIHTTPServer.CGIHTTPRequestHandler): cgi_directories=[ '/cgi-bin' ] httpserver = BaseHTTPServer.HTTPServer(("", 80), ServerHandler) httpserver.serve_forever() Many thanks, Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: String question - find all possible versions of a person's firstname

2006-01-10 Thread Jeff Gercken
This sounds like a homework problem. You might try splitting the name at the e's, check the length of the resulting list and do that many nested loops. On 1/10/06, Nico Grubert <[EMAIL PROTECTED]> wrote: > Hi there, > > I have a string 'Michèle' that represents the firstname of a person. > > What

Re: SQLObject connection pooling

2006-01-17 Thread jeff . lewis
://pythonpaste.org/archives/message/20051128.204519.6c759047.en.html http://trac.turbogears.org/turbogears/wiki/SqlobjectCaching Cheers, Jeff [EMAIL PROTECTED] wrote: > Hello. Does SQLObject provide connection pooling? If so, is it > automatic or do I have to do something to manage it? If not,

Re: re.sub() backreference bug?

2006-08-17 Thread jeff emminger
thanks - that's the trick. On 8/17/06, Tim Chase <[EMAIL PROTECTED]> wrote: > Looks like you need to be using "raw" strings for your > replacements as well: > > s = re.sub(r'([A-Z]+)([A-Z][a-z])', r"\1_\2", s) > s = re.sub(r'([a-z\d])([A-Z])', r"\1_\2", s) > > This should allow the backslashes to

RE: Where is Python in the scheme of things?

2006-10-04 Thread Demel, Jeff
u, even if you check out VB. I just didn't want to see incorrect information on VB get spread like that. There are enough real problems with it. :) -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged,

Reminder re Talk Proposals for PyCon 2007

2006-10-07 Thread Jeff Rush
iki page of topic idea at: http://us.pycon.org/TX2007/TalkIdeas so add a link and create a subpage that contains the outline of your dream talk, and then shop it around to find a speaker to give it. ;-) Jeff Rush PyCon 2007 Co-Chair --- Python: Produce impressive results and have fun too! -- http:

Seeking Publicity Coordinator for PyCon 2007

2006-10-11 Thread Jeff Rush
press release. There is a wiki page at the following on which to collect ideas on where to submit a press release: http://us.pycon.org/TX2007/PublicityIdeas That's it! It really shouldn't take a lot of time; a bit of surfing, perhaps a few email queries. -Jeff -- http://mail.pyt

A Call for a Presenter on Python Eggs

2006-10-11 Thread Jeff Rush
ect files under CVS/subversion control - how does that work? * Also eggs have support for units tests - how? * Where do the egg experts hang out? An Old Talk of mine about Eggs (from which to borrow slides/ideas): * Attach:2006-03-25-AboutPythonEggs.odt * Attach:2006-03-25-About

Call for Members of Panels on Web Technologies

2006-10-11 Thread Jeff Rush
access control security at the object level? * What flavor and degree of transaction support is offered? Per thread, per context, autocommit? -Jeff Co-Chair PyCon 2007 -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: how to wait for callbacks...

2006-10-13 Thread jeff . clough
t "z" > time.sleep(0.1) > #end while > > print "...done" > #raise smtp.SMTPDeliveryError(code=550, resp="Unable to deliver > email, please try again later", isFatal=True, retry=False) > print "" > #endif > > #end ProcessEmail For semaphores, check out the mutex module (http://docs.python.org/lib/module-mutex.html). For timeouts, look at the alarm signal in the signal module (http://docs.python.org/lib/module-signal.html). --Jeff -- http://mail.python.org/mailman/listinfo/python-list

RE: invert or reverse a string... warning this is a rant

2006-10-19 Thread Demel, Jeff
clarity standpoint. A string.reverse() method would be a decent thing to have. Just my $.02. -Jeff P.S. How about a string.shuffle() method that splits the string in half into two new strings str1 and str2, and then recompiles the string by alternating one character from each str1 and str2 as it

RE: invert or reverse a string... warning this is a rant

2006-10-19 Thread Demel, Jeff
rity standpoint. A string.reverse() method would be a decent thing to have. Just my $.02. -Jeff P.S. How about a string.shuffle() method that splits the string in half into two new strings str1 and str2, and then recompiles the string by alternating one character from each str1 and str2 as it goe

RE: invert or reverse a string... warning this is a rant

2006-10-19 Thread Demel, Jeff
mming" classes nail me again! Is this why the applicants I see that are fresh out of college with their shiny new computer science degrees can't seem to code their way out of a wet paper bag? -Jeff This email is intended only for the individual or entity to which it is addressed. T

RE: OT--Shuffling, was Re: invert or reverse a string... warning thisis a rant

2006-10-19 Thread Demel, Jeff
rase), it's quite possible it's not 100% clear what I was saying. It was just meant to demonstrate a silly method, one as essentially useless as a reverse() method. -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain informatio

RE: invert or reverse a string... warning this is a rant

2006-10-20 Thread Demel, Jeff
Paul wrote: >"".join(sum(map(list,zip(s,s[len(s)/2:])),[])) > >perhaps? Not quite as elegant as a "string.shuffle" would be, am I right? -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain information tha

RE: invert or reverse a string... warning this is a rant

2006-10-20 Thread Demel, Jeff
>Demel, Jeff wrote: >> I've been programming professionally for over 10 years, and have never >> once needed to reverse a string. Maybe it's a lack of imagination on >> my part, but I can't think of a single instance this might be necessary. Carl wrote:

Talks at PyCon that Teach How to Be Better Programmers

2006-10-23 Thread Jeff Rush
fully name-qualify all imports? http://us.pycon.org/TX2007/PyPgmStyle I've included links to the wiki pages holding the outlines in hopes that people will suggest additional topics to cover. To give a talk, before Oct 31 visit the conference page at: http://us.pycon.org/TX2007/CallFo

Odd build errors

2006-10-30 Thread Jeff Blaine
We have a GCC in /usr/rcf that was not built with --disable-shared. As such, there is a /usr/rcf/lib/libgcc_s.so. We also have a (preferred) GCC in /afs/rcf/lang/gcc/current that was built with --disable-shared. As such, there is no /afs/rcf/lang/gcc/current/lib/libgcc_s.so and binaries built wit

CSV module, DictReader problem (bug?)

2006-11-01 Thread Jeff Blaine
It's been a year or so since I written Python code, so maybe I am just doing something really dumb, but... Documentation = class DictReader(csvfile[,fieldnames=None, [,restkey=None[, restval=None[, dialect='excel' [, *args, **kwds]) Cr

Re: CSV module, DictReader problem (bug?)

2006-11-01 Thread Jeff Blaine
I see what's wrong. Me. Wow am I ever rusty. Jeff Blaine wrote: > It's been a year or so since I written Python code, so maybe > I am just doing something really dumb, but... > > Documentation > = > > class DictReader(csvfile[,fieldnames=None

An Invitation to Get Involved in Python Advocacy

2006-11-13 Thread Jeff Rush
and near-term To-Do's for myself at: http://wiki.python.org/moin/PythonAdvocacyCoordinator Jeff Rush Python Advocacy Coordinator -- http://mail.python.org/mailman/listinfo/python-list

RE: Noob | datetime question

2006-11-14 Thread Demel, Jeff
Perfect. Thanks a million. .strftime was the method I was looking for. -Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kevin Kelley Sent: Tuesday, November 14, 2006 9:34 AM To: [email protected] Subject: Re: Noob | datetime question

Noob | datetime question

2006-11-14 Thread Demel, Jeff
module is brand new to me, and I'm not sure how to do this. Can someone help me out here? TIA -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential or otherwise protected from disclosure

RE: Python v PHP: fair comparison?

2006-11-15 Thread Demel, Jeff
rices and they know Python. I think they used to be python-hosting.com or something. -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential or otherwise protected from disclosure. Dissemin

Re: matplotlib real time grap.

2006-11-16 Thread Jeff Sandys
It sounds like you need a stripchart like: http://jstripchart.sourceforge.net/ written in Python of course. On Nov 16, 12:02 am, "luca72" <[EMAIL PROTECTED]> wrote: ... > > with this i have the grap on the screen but i have to update every time > that i receive others data coming from two instrume

RE: Python v PHP: fair comparison?

2006-11-16 Thread Demel, Jeff
Walterbyrd wrote: >Okay, where can I get Python and Apache 2.X for $10 a year? Webfaction.com This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, confidential or otherwise protected from disclosure. Disseminat

RE: Python v PHP: fair comparison?

2006-11-16 Thread Demel, Jeff
eems like an absurd price requirement to me. I was stoked to find Python/Apache2.0/Django/IMAP Email/2GB storage for about 10 or so bucks a *month*. -Jeff This email is intended only for the individual or entity to which it is addressed. This email may contain information that is privileged, conf

cPickle problems

2006-11-16 Thread Jeff Poole
eed be I can probably provide the code to the class, though it's about 1000 lines, most of which is PyParsing code. I appreciate any help you guys can provide. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: cPickle problems

2006-11-16 Thread Jeff Poole
Oh, and I suppose I should provide some version information: $ python Python 2.4.3 (#1, May 18 2006, 07:40:45) [GCC 3.3.3 (cygwin special)] on cygwin Jeff Poole wrote: > This is going to be a pretty vague message because it involves a large > block of code I'd rather avoid posting.

Re: cPickle problems

2006-11-16 Thread Jeff Poole
with explicit self File "/usr/lib/python2.4/pickle.py", line 663, in save_dict self._batch_setitems(obj.iteritems()) File "/usr/lib/python2.4/pickle.py", line 677, in _batch_setitems save(v) File "/usr/lib/python2.4/pickle.py", line 313, in save rv = r

Re: cPickle problems

2006-11-16 Thread Jeff Poole
tate__ cannot be pickled I think I need to talk to the author of PyParsing about this one... Thanks for your help! Jeff > Someway, self.__getstate__ is a string, not a method... > Since it fails inside a python module, you could print some debug > information to see what happens, l

Re: Running multiple versions of Python on the same host..

2006-07-10 Thread jeff . pitman
Cowmix wrote: > For my day job I am forced to run RHEL3 (and Centos3 on my desktop). I > want to be able to use a few applications that require Python 2.4.X but > RHEL3 ships with Python 2.2.3. I have tried to install and upgrade > Python 2.4.X many ways like using PyVault and doing a source based

Re: does anybody earn a living programming in python?

2006-09-27 Thread Jeff Hagen
I do... but then I'm a grad student so I'm not sure what extent you would call it "a living" I know that Python is used __extensively__ in academia for running experiments where speed is not important. -Jeff Magnus Lycka wrote: > walterbyrd wrote: >> If so, I

Be Paid to Attend PyCon 2007!

2006-09-27 Thread Jeff Rush
eginning programmers, advanced users, core Python developers, etc.) * (Recommended) At least one previous presentation/teaching engagement reference So get cranking and let us see your best. Jeff Rush PyCon 2007 Co-Chair -- http://mail.python.org/mailman/listinfo/python-list

Announcing: Keynote Speakers for PyCon 2007

2006-11-27 Thread Jeff Rush
z ("r0ml") (speaking Sunday AM) Topic: "The Importance of Programming Literacy" -Jeff Co-Chair PyCon 2007 -- http://mail.python.org/mailman/listinfo/python-list

A Call for Community Input re PyCon Slogans/Swag

2006-11-27 Thread Jeff Rush
e've tried to keep it short, to respect your time. http://us.pycon.org/swagpoll Thanks! Jeff Rush Co-Chair PyCon 2007 -- http://mail.python.org/mailman/listinfo/python-list

A Call to Arms for Python Advocacy

2006-12-07 Thread Jeff Rush
to the extent possible by the delivery media. Make your mark. Jeff Rush <[EMAIL PROTECTED]> Python Advocacy Coordinator -- http://mail.python.org/mailman/listinfo/python-list

A Call to Arms for Python Advocacy

2006-12-11 Thread Jeff Rush
to the extent possible by the delivery media. Make your mark. Jeff Rush <[EMAIL PROTECTED]> Python Advocacy Coordinator -- http://mail.python.org/mailman/listinfo/python-list

Re: [Edu-sig] automatically grading small programming assignments

2006-12-14 Thread Jeff Rush
then you'd need to manually review the rest for creatively solving it another way. ;-) But I think Crunchy is the most classroom-friendly way to quickly solve this. A weekend's work at most. -Jeff -- http://mail.python.org/mailman/listinfo/python-list

connection hangs

2007-01-04 Thread jeff . dyke
onnection, even when i have removed all connectivity from the FTP server mid upload. Has anyone ever seen this? or have any ideas how i could code around it. Thanks Jeff --- debug log *resp* '227 Entering Passive Mode (##.##.##.##,173,244).' *cmd* 'NLST *filematch*.xml'

RE: Learning to program in Python

2007-01-05 Thread Demel, Jeff
nk of a project that includes several of the key fundamentals of programming that we do every day, like reading and writing files, reading and writing to a database, GUI development, and things like that. HTH -Jeff -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On B

Wanted: Django Programmer Seeking PyCon Fame and Glory

2006-02-03 Thread Jeff Rush
site is at http://us.pycon.org. Drop me a line if you have questions to get your finished application installed on the conference server. (offer includes fame only, no fortune). -Jeff P.S. Can't make it to PyCon this year? Hey, you too can write the app and let'm know what th

Booksigning Party at PyCon This Year!

2006-02-05 Thread Jeff Rush
uthor in attendance who would like to promote your book, drop an email to "jeff at taupro.com" or come forward when we call the book signing to order in the store. So that the bookstore can have copies on-hand, we'd like to collect a list of titles you'd consider having

New Mailing List for PyCon Technology and Conference Software

2006-02-05 Thread Jeff Rush
lease consider signing up by visiting: http://mail.python.org/mailman/listinfo/pycon-tech -Jeff -- http://mail.python.org/mailman/listinfo/python-list

Booksigning Party at PyCon This Year -- UPDATE

2006-02-06 Thread Jeff Rush
announcement. So that the bookstore can have copies on-hand, we'd like to collect a list of titles you'd consider having signed. Please edit the following wiki page and add your choices. Authors, you can add your books too. http://us.pycon.org/TX2006/BookSigning -Jeff -- http://mail.

Re: Python, Forms, Databases

2006-02-17 Thread Jeff Reavis
You should check out Spyce: http://spyce.sourceforge.net/ It will work under CGI as well as Fast CGI, ModPython, or its own built in server. It also has an ASP/JSP like syntax: http://spyce.sourceforge.net/docs/doc-lang_asp.html If you plan on getting a new hosting company you might also want to

Re: Removing Non-Unicode Support?

2006-02-20 Thread Jeff Rush
I am not currently doing so. I could never get the footprint down sufficiently to make it usable, unfortunately. But I would like to see the Python developers maintain an awareness of memory consumption and not assume that Python is always run on modern fully-loaded desktops. We are seein

ReadEventLog doesn't return, CPU usage increases

2006-02-24 Thread Jeff Quandt
):     self.CloseLog()     self.OpenLog()     time.sleep( 5 )     return bOk     #     # snip...     # manipulate event records here     # # # main # OpenLog Ok = 1 while Ok:     Ok = ReadLog() CloseLog() Jeff -- http://m

Long running Script stops responding, CPU usage increases

2006-02-28 Thread Jeff Quandt
Title: Long running Script stops responding, CPU usage increases This is running Python 2.3 on windows 2003/windows xp. I have written a script to display and filter the Win32 event log in a scrolling list to the command line (it also does some summary tasks).  It uses the win32evtlog.ReadE

Re: Write a GUI for a python script?

2006-03-03 Thread Jeff Quandt
> Another option is to use Jython, which allows you access to Java as well.  So, you can can write the procedural aspects in Python and add GUI support from Java.  You're probably looking for Tkinter, but I thought I'd throw the Jython option out there. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: How to track down all required shared libraries?

2005-04-30 Thread Jeff Epler
libm.so.6 => /lib/tls/libm.so.6 (0x00fcf000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00656000) If you know what shared modules your program uses, you can "ldd" them all and find out the set of libraries they are linked to. Jeff pgpeC5PdZ34hJ.pgp Description: PGP signature --

Re: cgi "print statement" in multithreaded enviroment?

2005-05-02 Thread Jeff Epler
ad_id, __init__, and a way to clean up items from self.files when a thread passes away. Jeff pgpfNtl83qNgI.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: How to read an integer value from a binary file?

2005-05-03 Thread Jeff Epler
As your 'for' loop shows, the number of items in the slice [2:5] is only 3, not 4. Maybe you want the slice [2:6] instead. >>> x = "xx\xb6/\0\0" >>> struct.unpack('i', x[2:6]) (12214,) Jeff pgprzSG2OzoK4.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: A faster method to generate a nested list from a template?

2005-05-04 Thread Jeff Epler
quot;[" + ",".join(result) + "]", s def make_nesting_function(l): return eval("lambda l: %s" % make_nesting_expression(l, 0)[0]) t = [['a1','a2'],['b1'],['c1'],['d1']] l = [1, 2, 3, 4, 5] f = make_nesting_

Re: descriptor dilemma

2005-05-04 Thread Jeff Epler
se id() is being calculated on the right-hand-side could turn out to be the same, since the two objects have disjoint lifetimes. Here are some more cases of the same thing: >>> id([]) == id([]) 1 >>> id([]) == id([1]) 1 Jeff pgp0amP007OuW.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Best way to convert a list into function call arguments?

2005-05-05 Thread Jeff Epler
nts [3, 4, 5] >>> args = [3, 6] >>> range(*args)# call with arguments unpacked from a list [3, 4, 5] Jeff pgpaezewLDmEG.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: New Python regex Doc (was: Python documentation moronicities)

2005-05-06 Thread Jeff Epler
it your own style. Or maybe just as an excuse to write offensive things like "[a] fucking toy whose max use is as a simplest calculator" I can't see anything to make me recommend this documentation over the existing documentation. Jeff pgp5Y4v6p63xE.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: [HELP] Tkinter Application Minimized to System Tray :)

2005-05-06 Thread Jeff Epler
Tk, the library that Tkinter wraps, does not offer a way to "minimize to the taskbar". Jeff pgp3ATXnxg0dO.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Newbie: saving dialog variables

2005-05-07 Thread jeff elkins
27;m sure this is obvious, but this newbie's stuck! Thanks, Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie: saving dialog variables

2005-05-07 Thread jeff elkins
On Saturday 07 May 2005 01:24 pm, jeff elkins wrote: > Howdy, > > I've written a program that calls an imported dialog to gather some needed > input. What's the common method for passing that data back to the caller? > I've tried a 'return data' prior to sel

Re: Newbie: saving dialog variables

2005-05-07 Thread jeff elkins
On Saturday 07 May 2005 02:34 pm, Jeremy Bowers wrote: > On Sat, 07 May 2005 13:24:34 +0000, jeff elkins wrote: > > Howdy, > > > > I've written a program that calls an imported dialog to gather some > > needed input. What's the common method for passing that da

Re: Newbie: saving dialog variables

2005-05-07 Thread jeff elkins
er entered; this comes after the try: finally: (i.e., > on the same indentation as "dlg = vents.vents(self)"). Thanks! That did the trick. Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Using TCL files in Python ?

2005-05-11 Thread Jeff Epler
x27;ScrolledGrid', 'FileEntry', 'ScrolledHList', 'DirTree', 'OptionMenu', 'ScrolledText', 'LabelFrame', 'FileSelectBox', 'ScrolledListBox', 'InputOnly', 'PanedWindow', 'StdButtonBo

Finding startup files

2005-05-11 Thread jeff elkins
r startup files? Right now, I'm hard coding the path, which won't work. Thanks, Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding startup files

2005-05-11 Thread jeff elkins
.argv[0])) Works perfectly, thanks much! Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding startup files

2005-05-11 Thread jeff elkins
e directory containing the executable is not where > configuration files are supposed to be stored under > Unix/Linux. Thanks Grant, I live and develop in Linux, but unfortunately, 99.99% of the users of this particular application (analysis of medical laboratory data) will be wor

Re: Finding startup files

2005-05-11 Thread jeff elkins
On Wednesday 11 May 2005 10:18 pm, Robert Kern wrote: > jeff elkins wrote: > > On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote: > >>On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >>>The following script demonstrates a method that shoul

Re: Finding startup files

2005-05-12 Thread jeff elkins
On Thursday 12 May 2005 05:24 am, Mike Meyer wrote: > jeff elkins <[EMAIL PROTECTED]> writes: > > On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote: > >> On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> > The following script demonst

Re: HELP Printing with wxPython

2005-05-12 Thread jeff elkins
r range of graphics formats, though > postscript is preferred. > > -- > Mike Meyer <[EMAIL PROTECTED]> > http://www.mired.org/home/mwm/ > Independent WWW/Perforce/FreeBSD/Unix consultant, email for more > information. I've been using: p=os.popen('lp','w') p.write("some text') p.Close() Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: How "return" no return ?

2005-05-13 Thread Jeff Epler
;>> f() # because the result of the expression is 'None' Your example >>> int a is not Python, but if it was it would probably be a non-expression statement, and thus never print a result in the interpreter. Jeff pgpYRHXaq9ZxI.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Precision?

2005-05-15 Thread Jeff Epler
t;>> from decimal import Decimal as D >>> D("1.0") + D("3.0") + D("4.6") Decimal("8.6") >>> when you write '4.6', you get a binary floating-point number which is not equal to the decimal number 4.6. >>> 4.6 4.5999

Re: BLT with TCL/TK 8.4.9 and Python 2.4

2005-05-15 Thread Jeff Hobbs
Kenneth Miller wrote: > Has anyone acheived this? There is no reason why Tkinter couldn't load BLT (from the Tcl side). You could wrap it up into a Tkinter-style widget, or just drive it through lower level evals. -- Jeff Hobbs, The Tcl Guy http://www.ActiveState.com/, a div

Re: Recommended version of gcc for Python?

2005-05-16 Thread Jeff Epler
as the "previous release series". I'd steer clear of this version. I recommend using the default compiler of your distribution, unless you know of a specific reason to use a different one. Jeff pgpIOvlvJwm7i.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Interaction between TclTk editor with Python code

2005-05-17 Thread Jeff Epler
it may or may not work without modification. Jeff # This code is in the public domain from Tkinter import * def makevar(master, name, klass, *default): self = newinstance(klass) self._master = master self._tk = master.tk self._name = name if default: self.set(default[0]

Re: iso_8859_1 mystery/tkinter

2005-05-18 Thread Jeff Epler
thai user of Windows might see THAI CHARACTER THO THAN, for instance, and I would see a question mark because I use utf-8 and this is an invalid byte sequence). By using x = u'%c' % (0xb0) you get a unicode string, and there is no confusion about the meaning of the symbol---you always

Re: Byte-operations.

2005-05-19 Thread Jeff Epler
In Python, "chr" gives a 1-byte string from a small integer, "ord" does the reverse. Strings are concatenated with "+" and substrings are taken with the slice operator, s[pos1:pos2]. I'm not a visual basic expert, but it looks like these are the operat

Re: Tkinter special math chars

2005-05-19 Thread Jeff Epler
dered as an escape sequence like "\u220e". This is falliable because there's no guarantee that the symbol would not be as wide as 000, but also it's possible for some escape code (say \u) to be narrower than 000. Neither of these seem very likely in practice. Jeff pgpCovRiRsUh0.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter special math chars

2005-05-19 Thread Jeff Epler
he low-level font handling in Tk; The information in the above paragraph was gleaned by reading the source code (tkUnixFont.c and tkWinFont.c). Jeff pgpEsZ31qI4Yx.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: Shift-JIS to UTF-8 conversion

2005-05-19 Thread Jeff Epler
# If the file is so large that it can't be read at once, do a loop which # reads and writes smaller chunks #while 1: #block = f.read(4096000) #if not block: break #g.write(block) f.close() g.close() Jeff pgp72dlRWI08A.pgp Description: PGP signature -- h

Re: passing arguments

2005-05-20 Thread Jeff Elkins
On Friday 20 May 2005 06:46 pm, James Stroud wrote: > import sys > > try: > arg1 = sys.argv[1] > except IndexError: > print "This script takes an argument, you boob!" > sys.exit(1) > > OR, way better: See the optparse module. > > On Friday 20 Ma

Re: SQL Query via python

2005-05-21 Thread Jeff Elkins
ot;"" % (arg1,), > (arg2,)) > > See how I didn't just use arg1 to paste it in the query string, but checked > it before trying the query to consist only of characters. You'd have to > adjust this accordingly for field-names you use (maybe you use underscores, > etc.). But, be sure that arg1 contains no ";"! > > HTH! Hey, I could barely spell SQL yesterday...:) I really appreciate the pointers! Jeff -- http://mail.python.org/mailman/listinfo/python-list

Re: SQL Query via python

2005-05-21 Thread Jeff Elkins
On Saturday 21 May 2005 01:32 pm, Dennis Lee Bieber wrote: > On Fri, 20 May 2005 23:57:01 -0400, Jeff Elkins > You have to remember that .execute(), using the (template, > (arg...)) format, is designed to apply suitable quoting to the > arguments. It does not parse the SQL to

<    1   2   3   4   5   6   7   8   9   10   >