On Mar 14, 3:01 am, Gabriel Genellina gagsl-...@yahoo.com.ar
wrote:
En Fri, 13 Mar 2009 19:07:46 -0200, aiwarrior zube...@yahoo.com.br
escribió:
I recently am meddling with threads and wanted to make a threaded
class that instead of processing anything just retrieves data from a
file
Hi
I recently am meddling with threads and wanted to make a threaded
class that instead of processing anything just retrieves data from a
file and returns that data to a main thread that takes all the
gathered data and concatenates it sequentially.
An example is if we want to get various ranges
On Mar 13, 9:31 pm, Albert Hopkins mar...@letterboxes.org wrote:
On Fri, 2009-03-13 at 21:04 +, tinn...@isbd.co.uk wrote:
What's the neatest way to do the following in case insensitive fashion:-
if stringA in stringB:
bla bla bla
I know I can just do:-
if
Thanks a lot for your input i really needed because i realized these
are minor flaws but even so define whether its good or bad code and i
really need to improve that. I already implemented the changes you
suggested and this one,
cookie = dict(x.split(=) for x in cookie)
for me is just very
Thanks a lot for your input i really needed because i realized these
are minor flaws but even so define whether its good or bad code and i
really need to improve that. I already implemented the changes you
suggested and this one,
cookie = dict(x.split(=) for x in cookie)
for me is just very
I've made this script and would like to have some input and share it
with the community.
I also have a page with some code i produce on my spare time. http://pneves.net
Thanks
# -*- coding: utf-8 -*-
## I Paulo Neves am the owner of this script and i do not allow the
copy or distribution
## of
Ok regarding Gerhard's comment of the try, except, pass, i came to
understand that it's really bad code. And i should have referred that
i put that there be cause i was getting:
Traceback (most recent call last):
File C:\Python25\Projects\cp.py, line 48, in module
db = db()
File
Ok regarding Gerhard's comment of the try, except, pass, i came to
understand that it's really bad code. And i should have referred that
i put that there be cause i was getting:
Traceback (most recent call last):
File C:\Python25\Projects\cp.py, line 48, in module
db = db()
File
class db:
def __init__(self): #constructor
conn = sqlite3.connect('./db.db')
conn.isolation_level = None
self.cursor = conn.cursor()
try:
self.cursor.execute(CREATE TABLE database
(album,filepath) )
except:
pass
def
On Mar 29, 6:41 pm, Gerhard Häring [EMAIL PROTECTED] wrote:
Ok, I'll review your code.
aiwarrior wrote:
class db:
def __init__(self): #constructor
conn = sqlite3.connect('./db.db')
conn.isolation_level = None
Autocommit mode is mostly for newbies who forget to call
Hi i'm having a IO error saying a file does not exist even though i
perform a isFile() check. Can you help me out figuring what is wrong?
Thanks in advance
from mutagen.easyid3 import EasyID3
from mutagen.mp3 import MP3
for root, dirs, files in os.walk('''C:\\Documents and Settings\\pneves\
class db:
def __init__(self): #constructor
conn = sqlite3.connect(:memory:)
conn.isolation_level = None
self.cursor = conn.cursor()
self.cursor.execute(CREATE TABLE database (album,filepath))
def add_entry(self, eone , etwo): #Add entry to database
Thanks a lot.
In the Python documentation, the sqlite module documentation doesn't
mention that special rule. I really thought that every variable to be
included in a query had to use that special method.
Again thanks a lot
--
http://mail.python.org/mailman/listinfo/python-list
On May 21, 7:05 am, Asun Friere [EMAIL PROTECTED] wrote:
On May 20, 10:49 pm, Michael Bentley [EMAIL PROTECTED]
wrote:
On May 20, 2007, at 7:41 AM, Michael Bentley wrote:
(upload.strip())
Oops: (upload.strip(),) or upload.strip()
Superfluous though the braces around your original
Hi
Im writing a personal wrapper to the perl script offered by
rapidshare, so that im able to use multiple files and glob pathnames,
but im using a file so i can track and resume any uploading data. The
problem is the lines come with a \n character that im not bein able to
take out,
files
If file.WriteLines( seq ) accepts a list and it says it writes lines,
why does it write the whole list in a single line. Be cause of that
the reverse of file.writelines(seq) is not file.readlines().
Are the assumptions i made correct? If yes why is this so?
I find a function called writelines not
On May 19, 2:46 pm, Gre7g Luterman [EMAIL PROTECTED] wrote:
aiwarrior [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
If file.WriteLines( seq ) accepts a list and it says it writes lines,
why does it write the whole list in a single line. Be cause of that
the reverse
17 matches
Mail list logo