Hi,
Do you have any recommendations regarding a good OCR library (preferably
Py3)?
Thanks
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor
Hi,
in the following snippet, why is it I don't need to create an Exception
object and I can use the class directly in raise my custom exception?
iframe src=http://pastebin.com/embed_iframe.php?i=7ANcvLHR;
style=border:none;width:100%/iframe
Thanks
___
Hi,
Why is it i can use mu custom class exception without creating an exception
object first?
Thanks
1. class ShortInputException(Exception): def __init__(self, length,
atleast):
2. Exception.__init__(self)
3. self.length = length
4. self.atleast =
Hi,
Why doesn't this work? And is there way to have an
object immediately return a value or object once it is instantiated with
using a method call?
1. class k:
2. def __init__(self,n):
3. return n*n
4.
5.
6. khalid=k(3)
7. Traceback (most recent
Hi,
Do you know of a python module for converting text files to PDF format?
thanks
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hi,
I have a dictionary with keys as employee badges and values as their names.
Both key and value are strings.
I want to read the badges from a sql select and use that to look up the
names in the dictionary. But since the result is a tuple, it doesnt' work.
how can i overcome this?
1.
Thanks everyone.
On Wednesday, February 27, 2013, Femi Banjo wrote:
coursera, udacity edx all have decent Python courses for beginners and
very good support on forums etc and they're all free
Date: Wed, 27 Feb 2013 01:10:07 -0800
From: fo...@yahoo.com javascript:_e({}, 'cvml',
Hi All,
I'm not a programmer by profession, but I want to learn python. I've got
lots of Ideas that want to realize, but I always run into these
stupid hiccups where I follow the tutorials and something stupid
(known/unkown) is causing things not to work ... frustration ensues...
After more than
:
On 26/02/2013 13:54, Mark Lawrence wrote:
On 26/02/2013 13:02, Khalid Al-Ghamdi wrote:
Hi All,
I'm not a programmer by profession, but I want to learn python. I've got
lots of Ideas that want to realize, but I always run into these
stupid hiccups where I follow the tutorials and something
Hi All,
The SQL statement below doesn't return anything.. and I don't know why...
I've used the parans but still no luck. Any Suggestions?
cur.execute(select badge, name, stage, tc, major, package, subject,
course, sb_as from records where
sb_as = 0 and (subject like
Hi, I found one typo in 'Workshop' which should be 'Workshop%' but it
still gives results containing majors with 'Customer%' and 'Warehouse%' in
them...
On Sun, Nov 18, 2012 at 2:21 PM, Khalid Al-Ghamdi emailkg...@gmail.comwrote:
Hi All,
The SQL statement below doesn't return anything
Hi all,
How would you go about adding items from a cursor to a dictionary?
i tried this but to no avail:
cur.execute('select * from schedule limit 10')
sqlite3.Cursor object at 0x0112CE60
for i in range(len(cur.fetchall())):
d[i]=cur.fetchall()[i]
Traceback (most recent call last):
File
Hi,
Why is it that the following even though I call the below function? And how
do I write a function that makes connection that I can use to query my DB?
Traceback (most recent call last):
File C:/Python33/My Stuff/schedule_machine/schedule_machine01.py, line
19, in module
Hi All,
I am a teacher at an industrial training center. We have to conduct
hands-on exams (fixing pumps, etc). I review all the test schedules for all
the students (made by other teachers) to make sure there are no clashes due
to lack of ample supply of equipment or tools. Meaning no two
Thanks for your input Walter. Are there any techniques to achieve this via
code or sql you share. Because I was thinking along the same you mentioned
but didnt knwo how to go about it.
بتاريخ الاثنين، ٣٠ يوليو، ٢٠١٢، جاء من Walter Prins wpr...@gmail.com:
On 30 July 2012 14:57, Khalid Al-Ghamdi
Damn! So its so serious they have a name for it! No wonder I was stumped
...
Any way thanks you guys have been super helpful.
بتاريخ الاثنين، ٣٠ يوليو، ٢٠١٢، جاء من Peter Otten
__pete...@web.dejavascript:_e({}, 'cvml', 'pete...@web.de');
:
Khalid Al-Ghamdi wrote:
I am a teacher
Hi All,
hi Joel,
Regarding sqlite3 practice code below:
1. import sqlite3
2. conn=sqlite3.connect(mydb2.db)
3. c=conn.cursor()
4. c.execute('create table family (Id integer primary key, name text,
age integer)')
5. c.execute(insert into family values (1,'elham',32))
6.
hi all,
I'm using Python 3 and have read that you need sqlite to be installed to
use the sqlite3 module, but when it is imported it seems to work ok. so, do
you need to install it? also, when you create the database where is it
saved?
thanks
___
Tutor
hi all,
I'm trying to create an app that schedules 3000 to 5000 trainees'
practical exams.
All the trainees basic info (name, badge, major, etc.) is in excel and i've
managed to convert it into a *HUGE *list via a csv.reader object.
My question is: is this the right way to go or should i use
hi everyone,
I'm usting python 3.2 on windows, and I'm doing these GUI exercises using
tkinter.
I've created this simple window with two widgets (a label and a button) the
button is supposed to exit the root window, but the problem is it doesn't
seem to, for some reason. It looks like it is
Thanks a lot. You've been, as usual, very helpful.
On Sat, Apr 14, 2012 at 8:32 PM, Alan Gauld alan.ga...@btinternet.comwrote:
On 14/04/12 17:41, Khalid Al-Ghamdi wrote:
1- In line (15), what are these variables tcpCliSock,addr supposed to
hold and do?
The socket object and the IP
Hi All,
(python 3.2 on windows)
I have a couple of questions regarding the below code:
1- In line (15), what are these variables tcpCliSock, addr supposed to hold
and do?
2- Why do I have to specify the buffer size and what does it mean?
3- When I try to run the below code and its corresponding
Hi All,
I'm using python 3.2 on a windows xp.
I wrote the below script and ran it with the hope of returning a list of
proctors (list_proc), but when it runs it doesn't call the function
convert_proctors() as intended. On the other hand, when i import the module
from the IDLE prompt and call
got it thanks a lot
On Wed, Apr 11, 2012 at 4:59 PM, Jerry Hill malaclyp...@gmail.com wrote:
On Wed, Apr 11, 2012 at 9:50 AM, Khalid Al-Ghamdi emailkg...@gmail.com
wrote:
Hi All,
I'm using python 3.2 on a windows xp.
I wrote the below script and ran it with the hope of returning
hi all,
I'm reading this book that says when creating a socket you have to use the
socket.socket() *function *as in :
ss=socket.socket()
but whey i check they type it says it's a class which makes sense cause
you're creating a socket object.
type(ss)
class 'socket.socket'
so, which is it? or
hi,
i'm trying to implement a server that adds a time stamp to incoming text
form a client.
the server's code is (but doesn't seem to have the problem as demoed by the
error below:
from socket import *
from time import ctime
HOST = ''
PORT = 21567
BUFSIZ = 1024
ADDR =(HOST, PORT)
tcpSerSock =
yah i did the search, and tried the solution, but it didn't work nice
of you to have tried, though...
anyhow, i found where the problem is... on the client side it should be
connect() instead of bind() in :
tcpCliSock.bind(ADDR)
thanks
On Fri, Apr 6, 2012 at 4:59 PM, Evert Rol
actually, you are right... in addition to that problem, there was the
encodeing/decoding issue you mentioned on both the client and server.
thanks
On Fri, Apr 6, 2012 at 5:08 PM, Khalid Al-Ghamdi emailkg...@gmail.comwrote:
yah i did the search, and tried the solution, but it didn't work
Hi,
The following code tries to generate some dummy data for regex exercises.
My question is in reference the line before last:
dom=.join(choice(lc) for j in range (dlen))
how does the interpreter know what j is supposed to refer to when it was
not mentioned prior?
from random import
Hi All,
I work in in academic testing environment and we employ expensive machines
to scan answer sheets (the ones where you blacken the letter of the correct
multiple choice answer). Anyway, I was thinking if there was a way we could
use regular old scanners to scan the sheets than analyze the
Hi All,
why is this so?
type('love')
class 'str'
love is str
False
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
Hi everyone,
can anyone point me to a good tutorial on using the csv module?
also, is there a module that can help me check data in a excel file other
than the csv module?
thanks a lot
khaild
___
Tutor maillist - Tutor@python.org
To unsubscribe or
Hi all,
I'm studying this
tutorialhttp://www.pythonware.com/library/tkinter/introduction/hello-again.htmabout
tkinter, but it that it's code in a 2.X.
I'm using the following code in python 3, but when i hit quite in the
resulting widget it hangs. I've tried modifying the things I know about to
Hi everyone!
Do you have recommendations regrading good free books or websites to learn
django? I'm a beginner and know the basics of python.
thanks
___
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
Hi,
I wan't to buy some books about python 3. Do you have any recommendations?
I started with no previous programming experience, and I've finished a few
tutorials and I guess I can be considered a beginner.
My problem, though, is I still find it difficult to write meaningful code or
use the
Hi everyone!
I'm using python 3.1 and I want to to know why is it when I enter the
following in a dictionary comprehension:
dc={y:x for y in list(khalid) for x in range(6)}
I get the following:
{'a': 5, 'd': 5, 'i': 5, 'h': 5, 'k': 5, 'l': 5}
instead of the expected:
{'a': 0, 'd': 1, 'i': 2,
Hi everybody,
I'm running python 2.6.1 on vista and I'm trying to use the csv module to
write to a csv file and get the average of some numbers, but I keep getting
the following error:
Traceback (most recent call last):
File C:\Python31\MyCSVProjectFinal.py, line 83, in module
Hi,
for some reason I haven't been able to get python 3 to work from the the
command line. I've added it to the the path in the the system variables but
still no luck. when I try to run python 2.6 it works flawlessly, though,
bearing in mind that it wasn't added to the system variables!
i'm
hi all,
I realize my question was previous question was phrased, well, vaguely, as I
learn from your responses so here's version 2 of my question:
i'm running windows vista and have python 30 ,31 and 26 installed.!
when I try to run python form the command line by printing *python *to
whichever
hi,
can anyone tell me why on python 2.6 i can enter *os.environ* and then get
all the items that that pertain to the os while on python 3 you just get the
following:
os._Environ object at 0x01B18D90
with no items?
thanks
___
Tutor maillist -
Hi everybody,
So I'm new to python and have questions about the following code:
class Robot:
'''Represents a Robot with a name.
Deletes and makes Robots for testing perpuses'''
#a var for counting the number of Robots
population = 0
def __init__(self, name):
'''initializes
41 matches
Mail list logo