[Tutor] sqlite: does "?" work in PRAGMA commands?

2007-08-01 Thread Terry Carroll
I'm using sqlite for the first time, so I'm not sure whether I'm trying to do something unsupported. or whether I'm trying to do something that's supported, but doing it wrong. I want to get information about a table in my database. The variable tablename holds the name of the table, and self.d

Re: [Tutor] os.path.exists(path) returns false when the path actually exists!

2007-08-01 Thread Iyer
Is there any chance the file has an extension that Windows is hiding? Can you get True for other files in the folder? So, it was the extensions all the way ! Apparently the file extension was hidden by Windows! It now works. Thank you all for your suggestions and help. -iyer

Re: [Tutor] gendata.py

2007-08-01 Thread Eric Brunson
What is it that you think makes it Unix specific? Que Prime wrote: > > This script appears to be written for Unix systems. Is there a way to > get it to work for PythonWin? > > from random import randint, choice > from string import lowercase > from sys import maxint > from time import ctime >

[Tutor] gendata.py

2007-08-01 Thread Que Prime
This script appears to be written for Unix systems. Is there a way to get it to work for PythonWin? from random import randint, choice from string import lowercase from sys import maxint from time import ctime doms = ( 'com', 'edu', 'net', 'org', 'gov' ) for i in range(randint(5, 10)): dtin

[Tutor] tree-like functions call to find dependencies

2007-08-01 Thread Maxim Loginov
hi all! my problem is: I have (for example) 2 sets of quantity set(A,B,C) or set(A,B,D). I need to calculate another quantity E which is function of A,B,C or A,F. but F in turn is function of (A,B,D). I want to write one function that checks the supplied set if it possible to calculate requested t

[Tutor] operator * of the list and tuple

2007-08-01 Thread Yang
tutor-request: I found this interesting question in a local forum, and want to get a more detail explain of it: >>> a = [[]]*5 >>> a [[], [], [], [], []] >>> a[0].append(3) >>> a [[3], [3], [3], [3], [3]] >>> b = [[] for i in range(5)] >>> b [[], [], [], [], []] >>> b[0].append(3) >>> b [[3], []

Re: [Tutor] Design Pattern + Wxpython

2007-08-01 Thread Kent Johnson
Pradeep Kumar wrote: > I am new to this and wants to do a project for Autoparts industry > (Trading) with backend SQL Server 2000. > > 1. Which Design Pattern is suitable for me. This one clearly applies: http://catb.org/~esr/faqs/smart-questions.html Kent __

[Tutor] Design Pattern + Wxpython

2007-08-01 Thread Pradeep Kumar
I am new to this and wants to do a project for Autoparts industry (Trading) with backend SQL Server 2000. 1. Which Design Pattern is suitable for me. Pradeep~~ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

[Tutor] Filemaker interactions

2007-08-01 Thread Ian Witham
Hello, I'm hoping someone here can put me on the right track with some broad concepts here. I've cross-posted this email to the comp.lang.python, I hope that's acceptable. What I am hoping to achieve is a simple HTML page to be served over our company LAN, into which the users (Real Estate Agents

Re: [Tutor] Which GUI?

2007-08-01 Thread Terry Carroll
On Wed, 1 Aug 2007, Kent Johnson wrote: > I think that is a good plan, Tkinter is pretty easy to learn but harder > to use to create polished, high-function interfaces. wxPython comes with > a lot more in the box. I've heard "Tkinter is easier to learn" before, and I think I would once have ag

Re: [Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Eric Brunson
Kyle Brooks wrote: > Hi. > > Please look up captcha... I did not mean capture. > > Your response is hilarious, frankly, but not appropriate for this list :-) > Seeing that a) this is your second post here and b) you are the one asking the list for help, I don't think it's your place to decide

Re: [Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Kyle Brooks
Hi. I am not a spammer! I just want to demonstrate something :-) Thanks for the resources! You guys are great :-) - Kyle On 8/1/07, Kent Johnson <[EMAIL PROTECTED]> wrote: > Kyle Brooks wrote: > > Hi. > > > > Please look up captcha... I did not mean capture. > > > > Your response is hilarious, f

Re: [Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Kent Johnson
Kyle Brooks wrote: > Hi. > > Please look up captcha... I did not mean capture. > > Your response is hilarious, frankly, but not appropriate for this list :-) Oh, all of a sudden we are not allowed to go OT or have fun here? Who died and made you the moderator? ;-) A bit more on track to actual

Re: [Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Kyle Brooks
Hi. Please look up captcha... I did not mean capture. Your response is hilarious, frankly, but not appropriate for this list :-) - Kyle Brooks On 8/1/07, Bob Gailer <[EMAIL PROTECTED]> wrote: > Kyle Brooks wrote: > > Hi. > > > > My name is Kyle Brooks, and I hereby introduce myself with this po

Re: [Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Bob Gailer
Kyle Brooks wrote: > Hi. > > My name is Kyle Brooks, and I hereby introduce myself with this post. > > I have seen a lot of text captchas. > I wonder how a computer program would respond to the previous sentence? Could it simulate the path I took? "captcha"? Did he mean "capture"? Is this one

Re: [Tutor] Which GUI?

2007-08-01 Thread scott
Kent Johnson wrote: > BTW you eliminated PyQt because you want an open source solution but Qt > 4 and PyQt 4 are available under GPL for all supported platforms. I know that most likely everything I develop will be released under the GPL, but, I like the freedom to choose. I don't like how Qt is

Re: [Tutor] Which GUI?

2007-08-01 Thread Kent Johnson
scott wrote: I am thinking about > starting with Tkinter then trying WxPython because WxPython seems to be > the most highly suggested and seems to have the best documentation and > selection of software/RADs. I think that is a good plan, Tkinter is pretty easy to learn but harder to use to cre

Re: [Tutor] gotoxy

2007-08-01 Thread Kent Johnson
Robert William Hanks wrote: > > hi folks, is there in python a gotoxy like in pascal so i can print > stuff in other parts of the screen? curses for the systems that support it http://effbot.org/zone/console-handbook.htm for Windows > what about some thing like it for the gui in windows? Whi

Re: [Tutor] gotoxy

2007-08-01 Thread Carlos Daniel Ruvalcaba Valenzuela
You should have a look at the curses module, basically gotoxy is a borland think, in linux and other unix systems there is the curses library for working with text screens. Module documentation: http://docs.python.org/lib/module-curses.html Some tutorials: http://www.amk.ca/python/howto/curses/ h

Re: [Tutor] Which GUI?

2007-08-01 Thread scott
Terry Carroll wrote: > I think it's rigged. I answered it honestly, and it suggested wxPython, > which is no surprise; I came to the same conclusion myself based on my > needs and preferences. I thought the same, it always came up with WxPython for me. This is what I meant by it being difficul

[Tutor] gotoxy

2007-08-01 Thread Robert William Hanks
hi folks, is there in python a gotoxy like in pascal so i can print stuff in other parts of the screen? what about some thing like it for the gui in windows? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Luke Paireepinart
Kyle Brooks wrote: > Hi. > > My name is Kyle Brooks, and I hereby introduce myself with this post. > > I have seen a lot of text captchas. A text captcha is the logical > opposite of a image captcha. That is, among other qualities: image > captchas are inaccessible, while text captchas are, and ima

Re: [Tutor] C program

2007-08-01 Thread Alondt Yauk
Thanks very much, I will try it out and use your idea. Am sorry I posted the question in this forum, just wanted to get ideas from you guys. Ciao - Original Message - From: "Tiger12506" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 01, 2007 3:20 AM Subject: Re: [Tutor] C program >

[Tutor] Textual Captchas: Would like to show that bots can crack a simple text captcha

2007-08-01 Thread Kyle Brooks
Hi. My name is Kyle Brooks, and I hereby introduce myself with this post. I have seen a lot of text captchas. A text captcha is the logical opposite of a image captcha. That is, among other qualities: image captchas are inaccessible, while text captchas are, and image captchas cannot be easily re