[Tutor] Quick question on dirsync a python pkg

2017-07-31 Thread Jeff VanderDoes
Hi, Just curious if anyone can give me an explanation of when using the pkg dirsync 2.2.2 what the difference is between --update and --sync option. Maybe my brain is just a bit slow this morning. Thanks! Jeff ___ Tutor maillist - Tutor@python.org To

[Tutor] USB volume unique volume info

2012-01-09 Thread Jeff Peery
program is still operating on the original USB drive? Thanks, Jeff ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python Speech

2011-08-24 Thread Jeff Johnson
On 08/24/2011 10:17 AM, Alan Gauld wrote: On 24/08/11 18:09, Christopher King wrote: how do you unzip a gz on windows? Pretty much any zip tool (Qzip, Winzip etc) will handle gz files too. 7 zip works great on Windows for most formats. http://www.7-zip.org/ Jeff

Re: [Tutor] Passing functions(with parameters) as paramiters to (looping)functions.

2011-08-16 Thread Jeff Peters
On 08/16/2011 01:46 PM, Peter Otten wrote: Jeff Peters wrote: Hi; I am trying to run a function inside a continuing loop, but do not seem to be able to pass any parameters (arguments ) when I do so. I have placed working and non-working code , with output below. ## This works: def loop(fn

[Tutor] Passing functions(with parameters) as paramiters to (looping)functions.

2011-08-16 Thread Jeff Peters
nction(a=" i am not a string"): print( a ) loop(this_function("I am a string") ) ## note the only change is here ## With this as output: >>> I am a string Traceback (most recent call last): File "/home/jeff/MyPythonStuff/call_sub.py", line 9, in loo

Re: [Tutor] Lists

2011-06-11 Thread Jeff Johnson
Alan: Thank you for all you do. I always look for your posts! You have helped me immensely with Python and I appreciate it! Jeff --- Jeff Johnson j...@dcsoftware.com Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-dc.com On 06/11/2011 08:30

Re: [Tutor] Reading elements in a file

2011-05-04 Thread Jeff Peery
Greg, You might try… Import sting delimiter = ‘.’ f = open('words.txt', "r") lines = f.readlines() for line in lines: line_items = string.split(line,delimiter) From: tutor-bounces+jeffpeery=seametrics@python.org [mailto:tutor-bounces+jeffpeery=seametrics@python.org] On Behal

[Tutor] Problem Automating Internet Explorer Printing

2011-05-04 Thread Jeff Peery
html doc from my desktop. The document loads as I can see it on the screen, but it chokes when printing. any ideas? thanks, Jeff line 23, in Print win32com.client.constants.OLECMDEXECOPT_DONTPROMPTUSER) File "C:\Python27\lib\site-packages\win32com\gen_py\EAB22AC0-30C1-11CF-A7EB-C05BAE0

[Tutor] Print/Loop Question

2011-03-17 Thread Jeff Goodwin
I'm trying to run the below program and get it to print out feedback as the loop goes. However, if you enter a number too high or too low, it skips the print statement under the if and elif clauses and asks the user to "Guess a number between 1-100" again. Any suggestions on how to get it to print

[Tutor] [RFI] Resources for graphic modeling of dynamic systems

2011-03-07 Thread Jeff Horn
I want to produce a model very much like the one here: http://demonstrations.wolfram.com/SolowGrowthModel/ -- Jeffrey Horn http://www.failuretorefrain.com/jeff/ ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: ht

Re: [Tutor] Choice of Python

2010-12-28 Thread Jeff Johnson
On 12/28/2010 01:35 PM, Brett Ritter wrote: On Tue, Dec 28, 2010 at 3:06 PM, Jeff Johnson wrote: Webfaction supports long processes and that is why they are the largest Django hosting site. They support a ton of software, too. SVN, Trac are two I use. I didn't see git hosting among

Re: [Tutor] Choice of Python

2010-12-28 Thread Jeff Johnson
y they are the largest Django hosting site. They support a ton of software, too. SVN, Trac are two I use. I've been with them at least 3 years and I find their cost amazing for what I get! Their documentation, support and forums are about the best I've seen.

Re: [Tutor] Choice of Python

2010-12-28 Thread Jeff Johnson
eck out Webfaction for a hosting company. They are probably the largest Django host, but using their control panel to do things is very easy! I have been using them for over two years. Jeff --- Jeff Johnson j...@dcsoftware.com ___

Re: [Tutor] Random Number Question

2010-11-24 Thread Jeff Goodwin
Thanks Adam and Alan for responding, I'm very much a non-programmer, but my 14 year old son wants to learn, so I have to learn to teach him...slow process lol. Happy Thanksgiving! Jeff On Wed, Nov 24, 2010 at 8:27 PM, Alan Gauld wrote: > > "Jeff Goodwin" wrote > >

Re: [Tutor] Random Number Question

2010-11-24 Thread Jeff Goodwin
Ok, I found the problem, I had saved the file as random.py looks like that was a no-no. Its working now that I changed the name. Thanks! Jeff On Wed, Nov 24, 2010 at 5:06 PM, Jeff Goodwin wrote: > Thanks Adam, that was a typo on my part, in the program the print is > actually indente

Re: [Tutor] Random Number Question

2010-11-24 Thread Jeff Goodwin
Thanks Adam, that was a typo on my part, in the program the print is actually indented. Any other suggestions? Thanks again! Jeff On Wed, Nov 24, 2010 at 5:00 PM, Adam Bark wrote: > On 24/11/10 21:51, Jeff Goodwin wrote: > > Hello, > > I'm trying to find a way to us

[Tutor] Random Number Question

2010-11-24 Thread Jeff Goodwin
t number: ") z = random.randint(x,y) print "The random number between ", x, " and ", y, " is ", z main() Can you tell me where I'm going wrong here? When I run the program it allows me to enter the numbers for x and y, then freezes. Thanks! Jeff

Re: [Tutor] variables question.

2010-11-12 Thread Jeff Honey
Steven D'Aprano, et al, Thanks everyone for the thorough explanations on variable use and scope in Python. It was enlightening...and sometimes confusing, but I'm working on that. It just points out all the new things I have yet to learn about the language. -- ¤¤ ¤ kyoboku kazeo

[Tutor] variables question.

2010-11-10 Thread Jeff Honey
I have a question about where variables are exposed in python. I have a monolothic script with a number of functions defined, can those functions share variables? can I instantiate them outside the function of where they are needed? do they need to be wrapped in quotes, ever? For example: blah

[Tutor] URL test function.

2010-10-22 Thread Jeff Honey
I am trying to create a function to plug into a restart script I'm creating. I can't seem to successfully loop through making an http connection, if it fails to retry, if it succeeds, to end and continue with its parent function. I'm using the Fabric project's module and including my functions

Re: [Tutor] Django Read

2010-07-08 Thread Jeff Johnson
I have six books on my bookshelf for Django. There are others I don't have. Django 1.0 Template Development is my favorite. Many of them walk you through building apps step by step. Do a search on Amazon. That is where I got most of them. -- Jeff

Re: [Tutor] Help with choices for new database program

2010-07-04 Thread Jeff Johnson
On 07/03/2010 08:25 AM, Jim Byrnes wrote: Jeff Johnson wrote: On 07/02/2010 11:40 AM, Chris C. wrote: I'm writing this question because I want, for my own satisfaction, to rewrite one of my Access dbs (one that does our finances) into a stand-alone Python database program using SQLite. I

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
On 07/02/2010 08:19 PM, bob gailer wrote: On 7/2/2010 5:56 PM, Jeff Johnson wrote: [snip] Visual FoxPro ... is very similar to Access I differ. Access and FoxPro are very different. Yes they both use tables, relationships, indexes and SQL. Yes they both have visual designers for forms and

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
plications. -- Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-dc.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
y Mac Book Pro? You do have to make some decisions before moving on. The choices are endless. I have found Dabo and Django to be beneficial for me because they target what I want to do. Your mileage may vary. ;^) -- Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-d

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
creates too many decisions then you can consider Microsoft .NET and Microsoft SQL Server on Windows 7. I am a recovering Microsoft developer of over 20 years. ;^) BTW learning Python is awesome! -- Jeff --- Jeff Johnson j...@san-dc.com (623) 582-0323 www.san-dc.com _

Re: [Tutor] Help with choices for new database program

2010-07-03 Thread Jeff Johnson
On 07/02/2010 05:35 PM, Chris C. wrote: Hi Jeff, thank for your reply! I'm aware of Dabo and was pretty much sold on using it until the last couple of days. I was trying to install it so I could start connecting to my tables when I ran into a problem with the instructions for insta

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
plications. -- Jeff --- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
too many decisions then you can consider Microsoft .NET and Microsoft SQL Server on Windows 7. I am a recovering Microsoft developer of over 20 years. ;^) BTW learning Python is awesome! -- Jeff --- Jeff Johnson j...@dcsoftware.com ___

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
On 07/02/2010 05:35 PM, Chris C. wrote: Hi Jeff, thank for your reply! I'm aware of Dabo and was pretty much sold on using it until the last couple of days. I was trying to install it so I could start connecting to my tables when I ran into a problem with the instructions for insta

Re: [Tutor] Help with choices for new database program

2010-07-02 Thread Jeff Johnson
com and subscribe to the dabo-user email list. -- Jeff --- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-16 Thread Jeff Johnson
ile if you want me to. -- Jeff --- Jeff Johnson j...@dcsoftware.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] conventions for establishing and saving default values for variables

2010-06-15 Thread Jeff Johnson
nd WritePrivateProfileString. On Linux I use ConfigParser to read and write to an ".ini" file in the home directory. I have avoided the Windows registry completely. Obviously you could use ConfigParser on Windows because of Python. -- Jeff

[Tutor] browing windows registry

2010-03-17 Thread Jeff Peery
hello, I want to browse the windows registry for the program ids listed under the categories: 63D5F430-CFE4-11d1-B2C8-0060083BA1FB 63D5F432-CFE4-11d1-B2C8-0060083BA1FB where might be the best way to learn how to do that with python? thanks, Jeff

[Tutor] os.popen4 help!

2010-03-16 Thread Jeff Peery
the component category CLSID. details are here: http://opcactivex.com/Support/General/OPCEnum/opcenum.html how can I improve things here? thanks, Jeff ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] sorting algorithm

2010-03-12 Thread Jeff Johnson
ust didn't on that thread. Thanks, -- Jeff Jeff Johnson j...@dcsoftware.com http://www.VetsFindingVets.org ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] sorting algorithm

2010-03-11 Thread Jeff Johnson
nfo/tutor ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor Take out the = in the following line if item1 >= item2: and it will sort like items together, whic

Re: [Tutor] Really learn programming

2010-03-08 Thread Jeff Johnson
day tutorials have great merit and can help you. YMMV -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] What books do you recommend?

2009-12-11 Thread Jeff Johnson
ate Python. http://www.amazon.com/Python-Phrasebook-Brad-Dayley/dp/0672329107 I am not suggesting Amazon, it was just the first link I found. I see it in bookstores like Borders. -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@google

[Tutor] numpy and py2exe

2009-11-21 Thread Jeff Peery
dules *** Traceback (most recent call last):   File "C:\Users\Jeff\Documents\Working\App\setup.py", line 298, in     cmdclass = {"py2exe": build_installer},   File "C:\Python26\lib\distutils\core.py", line 152, in setup     dist.run_commands()   File "C:\Python26\lib\distu

Re: [Tutor] Do you use unit testing?

2009-11-16 Thread Jeff R. Allen
wing you to take another stab at it. -jeff ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Unexpected Result in Test Sequence

2009-11-16 Thread Jeff R. Allen
on of list1 into p() also.) Another thing... play in the interpreter with range(1,5) and range(0,5). Can you see another little bug your program has? It is not doing precisely what you think it is yet... -jeff ___ Tutor maillist - Tutor@python.org To unsubscri

Re: [Tutor] How to call a method with a print statement?

2009-11-12 Thread Jeff R. Allen
You are looking for the __str__ method. See http://docs.python.org/reference/datamodel.html#object.__str__ class Foo():   def __init__(self):      pass   def  __str__(self)      return "hello world!" -jeff ___ Tutor maillist - Tutor@pyt

[Tutor] Unexpected iterator

2009-11-12 Thread Jeff R. Allen
a feeling there's an interesting lesson hidden in this example... Thanks. -jeff ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Beginners question

2009-10-08 Thread Jeff Johnson
s in this procedure are not required but don't do any harm. I often use extra parentheses to clarify what I am doing so it is more readable when going back to look at it a couple of years later. Especially in long calculations or SQL with lots of ands and ors. -- Jeff Jeff Johnson j...@dcs

Re: [Tutor] What language should I learn after Python?

2009-10-07 Thread Jeff Johnson
cost (free), licensing, and ease of use. One other thing that is important to me is packaging an application for distribution and updating existing applications. That "language" would be Inno Setup. HTH FWIW, Python is my favorite language to use for too many reasons to list here!

Re: [Tutor] ODBC SQL Server Question

2009-09-18 Thread Jeff Johnson
Thanks for the clarification Kent! Kent Johnson wrote: On Fri, Sep 18, 2009 at 2:14 PM, Jeff Johnson wrote: Kent: How about this: self.cursor.execute("SELECT CUSTID FROM Stories WHERE NAME = '%s'" % (name, )) No, that has the same result as your original. For example,

Re: [Tutor] ODBC SQL Server Question

2009-09-18 Thread Jeff Johnson
n wrote: On Fri, Sep 18, 2009 at 11:49 AM, Jeff Johnson wrote: Kristina: I would format it as follows: self.cursor.execute("SELECT CUSTID FROM Stories WHERE NAME = '%s'" % name) No, that is a recipe for SQL injection attacks such as this: http://xkcd.com/327/ self.cur

Re: [Tutor] ODBC SQL Server Question

2009-09-18 Thread Jeff Johnson
e invalid cursor state error online but most of it occurs on the fetchall statement not the execute statement. Any ideas? Thanks! -- Cheers, Krissy --- Testing the waters is always fun... -- Jeff Jeff Johnson j...@dcsoftware

[Tutor] python queue

2009-09-16 Thread Jeff Peery
raw once to reflect the 10 samples. so there are 9 redraws that are a waste of energy.   I was hoping there was some feature in the queue class the would prevent or discard a duplicate message. This way my drawing thread won't draw more than it needs to.   thanks! Jeff _

Re: [Tutor] Vista UAC

2009-09-11 Thread Jeff Johnson
Lie Ryan wrote: Jeff Johnson wrote: I have an application that uses something that auto updates but it may not be the same process as yours. I have a "stub" executable that checks a network location for a different copy of the "real" executable. If one exists, it c

Re: [Tutor] Vista UAC

2009-09-10 Thread Jeff Johnson
ot;real" executable. If one exists, it copies the exe to the application folder and executes it. My solution for Vista - which works very well - is to put my application in a folder C:\users\public\applications\myapplication. This way there is no need for raised privileges. -- Jeff Je

[Tutor] thread causes idle to crash

2009-08-28 Thread Jeff Peery
pretty straight forward. my sample code is listed below. I'm using Python 2.6.2, and I'm running on Microsoft Vista. Any thoughts would be much appreciated. thanks! Jeff   import threading import Queue import time, random WORKERS = 2   class Worker(threading.Thread):     def __init__(s

Re: [Tutor] how do I post event to thread?

2009-08-27 Thread Jeff Peery
then calculates some stats and writes data to a file. eventually I will put a GUI on it.   I think you are correct that since my logic is in its own thread I can put a portion of code that watches the queue.   Thanks for the advice!   Jeff --- On Thu, 8/27/09, Kent Johnson wrote: From: Kent Jo

[Tutor] how do I post event to thread?

2009-08-26 Thread Jeff Peery
7;m not sure how the main thread handles this, my guess is that it can only do one thing at a time so it might be exactly that same as 'posting an event'.   any thoughts would be much appreciated. thanks!   Jeff ___ Tutor

Re: [Tutor] monitor number of files in a folder

2009-08-10 Thread Jeff Younker
lude files that begin with '.', but it does not include the entries '.' and '..'. -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] python interpreter vs bat file

2009-07-18 Thread Jeff Johnson
from the Python interpreter no memory error occurs. Any idea why this might be? Dinesh Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python.org http://mail.python.org

Re: [Tutor] Personal: Fwd: Re: Paython as a career

2009-03-17 Thread Jeff Johnson
k it out. The video of the report designer will get you hooked. I just wish I had more time. Malcolm Greene wrote: Hi Jeff, My success as a programmer has little to do with the language or even how well I program. It has more to do with my ability to understand the problem and communicate

Re: [Tutor] Paython as a career

2009-03-17 Thread Jeff Johnson
that beneficial for income. Sincerely Hussain -- Jeff Jeff Johnson j...@dcsoftware.com Phoenix Python User Group - sunpigg...@googlegroups.com ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Translating FORTRAN (77?) to Python?

2009-01-16 Thread Smith, Jeff
There was an add-on to the GNU C compiler for FORTRAN77 at one time (g77). I don't know if it is still available to how well it works though. Jeff From: tutor-bounces+jsmith=medplus@python.org [mailto:tutor-bounces+jsmith=medplus@python.org] On B

[Tutor] [Fwd: Python Course]

2008-12-02 Thread Jeff Johnson
type of information, please let me know. I thought members might be interested in available Python courses. -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] ___ Tutor maillist - Tutor@python.org http://mail.python.

[Tutor] file locations

2008-11-24 Thread Jeff Peery
that it needs because it is looking in the parents directory location and not its own. I want to keep the child wxapp in its own sub directory for organizational purposes, but what is the best way to deal with this problem? thanks, Jeff _

Re: [Tutor] experience/opinions with deploying python GUI app to Linux, Win32, and Mac OS X

2008-11-13 Thread Jeff Johnson
-- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] greg whittier wrote: Hi gang, I know this is probably like asking whether vi or emacs is better, but I'm looking for the best cross-platform (linux, windows, mac os x) user interface toolkit. Sinc

Re: [Tutor] sample python twill scripts?

2008-10-02 Thread Jeff Younker
ed quite a bit for performing functional testing from Python. - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Win32 extensions

2008-09-14 Thread Jeff Younker
rtual machine on whatever flavor of unix you're using. - Jeff Younker - [EMAIL PROTECTED] - -- Spencer Parker ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor ___

Re: [Tutor] PySQLite vs SQLalchemy

2008-09-12 Thread Jeff Younker
against sqlite, but runs against mysql in production.] -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Threading

2008-09-11 Thread Jeff Younker
ten the whole program. Instead of passing around arrays or urls and results you can pass around the queues directly. In addition you can run the report function as another thread. It prints the jobs from the result pool as they're completed. These will make the code more elegant, but the

Re: [Tutor] importing strings

2008-09-11 Thread Jeff Younker
ormat = "this is a %s" subst = 'test' print format % subst FYI: You shouldn't reply to a message when you have a new question. That attaches it to the previous topic. - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor mail

[Tutor] executing a script from a script

2008-08-26 Thread Jeff Peery
ms to kill both the current python program and the one I just launched. How can I launch a new program and kill the current one without killing the new one as well? Thanks! Jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailma

Re: [Tutor] Is this a "Class" problem?

2008-08-20 Thread Jeff Younker
I'm assuming you do that so that you don't confuse what a Python built-in method (or function) is, compared to methods (or functions) that you've authored. It's done more to distinguish classes from methods and attributes. I can't claim any credit though. It's part of the python coding con

Re: [Tutor] Is this a "Class" problem?

2008-08-18 Thread Jeff Younker
On Aug 18, 2008, at 9:13 AM, Adrian Greyling wrote: def MainToSecond(self, event): # wxGlade: MyMainFrame. MySecondFrame(self).Show() MySecondFrame.text_ctrl_2.SetValue("This text was generated from the 'MainFrame' window") The expression MySecondFrame(self) creates a n

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-15 Thread Jeff Johnson
You can use just the Editor if you wish. Editor.py is the program. Dick Moores wrote: Thanks for the info. I'll take a look at Dabo. Dick -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] ___ Tutor mai

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-15 Thread Jeff Johnson
coloring and I can make changes, save and run it all in the editor. YMMV -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] Dick Moores wrote: At 06:36 AM 8/14/2008, Jeff Johnson wrote: I use Dabo's Editor.py. It has templates to provide code highlighting, et

Re: [Tutor] study advice on javascript to python hand-off

2008-08-14 Thread Jeff Johnson
This is a three tier framework where you can use any back end you want. They currently support the major ones: MySQL, SQLite, PostGreSQL, MSSql to name the ones I can think of. http://dabodev.com/wiki/FrontPage -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL

Re: [Tutor] What has Editor X got that PyWin32 hasn't?

2008-08-14 Thread Jeff Johnson
s you like. It is not intended to be a web framework. http://dabodev.com/wiki/FrontPage -- Jeff Jeff Johnson [EMAIL PROTECTED] Phoenix Python User Group - [EMAIL PROTECTED] Jaggo wrote: Hello. I haven't much experience with programming. I'd like to point this question to programme

Re: [Tutor] Is anybody out there who could help me with URL Authentication?

2008-08-01 Thread Jeff Younker
or more details check out the project's page at: http://wwwsearch.sourceforge.net/mechanize/ - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] parsing sendmail logs

2008-07-18 Thread Jeff Younker
put. The argument that processes are too expensive might have had some truth back in '92 or '93 when machines had 8M or 16M of memory, had 500M hard drives, and ran at a fraction of the speed they do now, but that was a long time ago. -jeff __

Re: [Tutor] parsing sendmail logs

2008-07-15 Thread Jeff Younker
ions should be up to the job. -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Inheritance help

2008-07-08 Thread Jeff Younker
born of C++, Java, etc. In Python classes are first-class values and constructors are (mostly) normal methods with a funky name, so the LSP applies to them just like any other method in a class. -jeff ___ Tutor maillist - Tutor@python.org http://mail.

Re: [Tutor] Object attributes surviving deletion

2008-06-26 Thread Jeff Younker
They can hang around for a while until a garbage collection is triggered. -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] closing a internet explorer com object

2008-06-24 Thread Jeff Peery
hello, I'm using internet explorer to print out html documents and I'm not sure how to close it once it is created. How do I do this? below is the simple bit of code I use to print documents. thanks! Jeff ie = win32com.client.Dispatch("InternetExplo

Re: [Tutor] Web Stats

2008-06-11 Thread Jeff Younker
ges. If you have pages which are no longer referenced from any root pages then a spider won't find them. These dangling pages are precisely the sort of thing you're trying to remove. Consider other options such as looking through the filesy

Re: [Tutor] when is object relational mapping for Python warranted?

2008-06-11 Thread Jeff Younker
more growing room, and that this is well worth the initial investment. The documentation for SQLAlchemy tends to be better too. (That said I work primarily with SQLObject, and the addition of a revision system will keep me from switching our product to SQLAlchemy for a while longer.) - Jeff Yo

Re: [Tutor] IDE

2008-06-11 Thread Jeff Younker
editing via SQLExplorer plugin - HTML/XML/Javascript development plugins - Run external tools from within the IDE - To do lists - Multi-language development - etc. - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor maillist - Tutor@python.org http://ma

Re: [Tutor] Controlling applications

2008-06-09 Thread Jeff Younker
he details of the conversation. You might give them a try before completely giving up on the command line mechanisms. Alas controlling applications is very hard in Unix land and very easy in the Windows world. -jeff ___ Tutor maillist - Tutor@pytho

Re: [Tutor] String Replacement Question

2008-05-21 Thread Jeff Younker
On May 21, 2008, at 6:42 AM, Kinuthia Muchane wrote: st = "String" print "%s " %st*3 String String String Does this help? Another approach is to use dictionaries for string replacement. >>> subst = {'some': 'thing'} >>> print

Re: [Tutor] Memory Leak?

2008-05-07 Thread Jeff Younker
I followed the advice on this page: http://mail.python.org/pipermail/python-list/2006-December/417208.html and the problem is now gone. There are two pieces of advice on that page. Which did you follow? - Jeff Younker - [EMAIL PROTECTED

Re: [Tutor] seeking help to a problem w/ sockets

2008-04-27 Thread Jeff Younker
completes. Try looking at the SocketServer module. It takes care of a lot of the details for you. - Jeff Younker - [EMAIL PROTECTED] - On Apr 26, 2008, at 5:56 PM, James Duffy wrote: I have a problem w/ a file transfer receiver. They way it works is it binds a port for incoming transfer , whe

Re: [Tutor] 6x6 word square solver too slow

2008-04-25 Thread Jeff Younker
y prefix. As I recall, English words are more similar at the front, so once you have an indexing scheme you'll probably to do even less work if you index and search from the back of the words towards the front. -jeff ___ Tutor maillist - T

Re: [Tutor] HTML Parsing

2008-04-21 Thread Jeff Younker
o and bar foo bar """ dt_elements = ElementTree.XML(document).findall('dt') -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-21 Thread Jeff Younker
into it. The Win32 extensions for Python make talking to office applications via COM nearly effortless. -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Hoping to benefit from someone's experience...

2008-04-16 Thread Jeff Johnson
thout needing to incorporate a bunch of api's or third party applications. Jeff Jeff Johnson [EMAIL PROTECTED] SanDC, Inc. 623-582-0323 Fax 623-869-0675 Kent Johnson wrote: > Marc Tompkins wrote: >> It's funny - years ago I used to use Visual Studio and _enjoy_ it. I&#x

Re: [Tutor] Which Python Script Editor of Choice?

2008-04-04 Thread Jeff Younker
r or so.) I has a feature set that no other python IDE has at this point. (Let me qualify that: I haven't looked at the Iron Python tools on windows, and they might be better, but I don't do much in the windows world so I haven't looked at it yet.) - Jeff Younker - [EMAI

Re: [Tutor] how to get response from os.system()

2008-03-16 Thread Jeff Younker
OMMAND') cmd.expect('# ') # the prompt cmd.sendline('A COMMAND') cmd.expect('# ') # wait for the prompt again output = cmd.before # the stuff before the prompt cmd.sendline('exit') cmd.close() - Jeff Younker - [EMAIL PROTECTED] -

Re: [Tutor] Const on Python

2008-03-07 Thread Jeff Younker
uage and to use those, but developing fluency is much harder, and it takes a much longer time. - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] identifying the calling module/function

2008-03-07 Thread Jeff Younker
get this finished). As I advance more in Python, a design > change might happen :) Telling us your goal might allow us to recommend a better and faster way of accomplishing it. - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python oddity

2008-02-28 Thread Jeff Younker
th certain things like, well, input and output. (On the other hand they do multiple threads of execution very well.) What it comes down to is this: does you program work with an idealized universe, or does it work with the messy innards of a computer? -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Python oddity

2008-02-27 Thread Jeff Younker
1, 2] # new list >>> b = list(a) # make a copy of the list in b >>> a == b # the original and copy are equal True >>> a is b # but they are not the same list False - Jeff Younker - [EMAIL PROTECTED] - ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] SSH with Python

2008-02-27 Thread Jeff Younker
, and it takes far, far less time and effort. -jeff ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] results not quite 100 percent yet

2008-02-21 Thread Jeff Younker
False elif table[room][6] != 0: return False else: return True def random_treasure(): return random.randint(low_treasure_value, high_treasure_value) distribute_treasure(table, treasure_rooms) distribute_monsters(table, monster_rooms) for x in table: print x

  1   2   3   4   >