I'm with a problem I'm doing a program in python, it sends the
following error message:
File "C:/Documents and Settings/Filipe Vinicius/Desktop/Filipe/Cefet/
LP/Python/trab.sistema.academico/sistemaacademico.2010.5.23.c.py",
line 40, in administrador
lp = pickle.load(f)
Raymond Hettinger wrote:
> [Filipe Fernandes]
>> The reasons for using JoinableQueue I think are obvious. I want to
>> block the main processing using queue.join() until the tasks that have
>> been placed on the queue have been finished by the worker processes.
>>
e work arounds (besides a
home-brewed one) ?
filipe
--
http://mail.python.org/mailman/listinfo/python-list
Hi, I'm really struggling to find the best GUI to make a simple
application.
I'm doing a program to load all the ini files in the current folder,
or the folder that the user chooses and list the specifics entries in
it.
So, the program would be like this:
Som tabs here like:
( Load | Edit | Opti
much quicker results, but of course it's not quite the same as
re.search
Incidentally, if you add the '/' to "row" at the end of the string,
re.search returns instantly with a match object.
@ Peter
I'm not versed enough in regex to tell if this is a bug or not
(although I suspect it is), but why would you say this particular
regex isn't common enough in real code?
filipe
--
http://mail.python.org/mailman/listinfo/python-list
> On Jun 3, 12:34 pm, "Filipe Fernandes" <[EMAIL PROTECTED]> wrote:
>> On Tue, Jun 3, 2008 at 10:41 AM, Paul McGuire <[EMAIL PROTECTED]> wrote:
>> But I do have more questions... when reading the ply.py header (in
>> 2.5) I found the following paragra
ion.
I have a feeling I'm just misunderstanding since it doesn't seem to
hold you back from creating multiple parsers under a single process.
filipe
--
http://mail.python.org/mailman/listinfo/python-list
but not all
that very helpful when it came to comparisons...
http://nedbatchelder.com/text/python-parsers.html
http://www.python.org/community/sigs/retired/parser-sig/towards-standard/
I'm not looking to start a flame war... I'd just like some honest opinions.. ;)
thanks,
filipe
--
http://mail.python.org/mailman/listinfo/python-list
>
> Use ord(q)
>
> py> help(ord)
> Help on built-in function ord in module __builtin__:
>
> ord(...)
> ord(c) -> integer
>
> Return the integer ordinal of a one-character string.
>
> py>
>
> --
> Gabriel Genellina
Thank you Gabriel. It fit's my purpose.
--
http://mail.python.org/mailman
Hi.
I have to open a binary file from an old computer and recover the
information stored (or at least try to). I use:
f=open('file.bin','rb')
a=f.read()
f.close()
a in now a string full of hex representations in the form:
a[6]='\x14'
a[7]='\x20'
I would like to convert these hex representation
Carsten Haese wrote:
> On Wed, 2007-09-05 at 16:40 +0100, Filipe Sousa wrote:
>
> Try setting
>
> conn.text_factory = str
>
> where conn is the name of your sqlite3 connection object. See
> http://docs.python.org/lib/sqlite3-Connection-Objects.html for more
> inform
ome' with
text 'Ana Margarida Fernandes Gonçalves de Sá'
The database was created with another program and all data is in
database is in latin1.
Thanks,
Filipe Sousa
--
http://mail.python.org/mailman/listinfo/python-list
PIL doing
everything, no matter the format of the file read, if possible. Haven't
tried this alternative yet.
[1] http://effbot.python-hosting.com/file/stuff/sandbox/pil/libtiff.py
[2] http://www.haynold.com/software_projects/2004/pytiff/
Any thoughts?
Cheers,
Filipe
--
http://mail.python.org/mailman/listinfo/python-list
Frank Millman wrote:
> Filipe wrote:
> Try out the suggestions and let us know what happened. I for one will
> be very interested.
The last version of ODBTPAPI is 0.1-alpha, last updated 2004-09-25.
Which is a bit scary...
I might try it just the same though.
--
http://mail.python.or
Dennis Lee Bieber wrote:
> If I interpret a short Google search, DB-Library might date back to
> the original Sybase core from which M$ SQL Server was spawned. M$'s site
> recommends /not/ using DB-Library but to use ODBC/OLEDB methods instead
> -- something about ODBC being extensible. Could be c
Dennis Lee Bieber wrote:
> The setting most likely has to be made on the machine running the
> server -- and M$ SQL Server doesn't exist on Linux either
>
> If the conversion was being done by some client library on Windows,
> then again, since that library probably doesn't exist on L
, on linux)?
(but perhaps this is outside the scope of this newsgroup.. )
I got in touch with Andrzej Kukula, the current developer of pymssql,
who has also been very helpful, and knows what we've been discussing
over here.
thanks for all the help,
Filipe
--
http://mail.python.org/mailman/listinfo/python-list
Martin v. Löwis wrote:
> Filipe wrote:
> > term = row[1]
> > print repr(term)
> >
> > output I got in Pyscripter's interpreter window:
> > 'Fran\x87a'
> >
> > output I got in the command line:
> > 'Fran\xd8a'
&
Martin v. Löwis wrote:
> Filipe wrote:
> > output ---
> > u'Fran\xd8a'
> > FranØa
> >
> >
> > What do you think? Might it be Pymssql doing somethin
a commercial license ir really a "must"
right now, and I'd really prefer it being cross-platform, so I think
pymssql might not be a bad choice after all. If I can't make unicode
data work in a reasonable way I'll probably switch to ADODBAPI, or
maybe the odbc m
Martin v. Löwis wrote:
> > What do you mean by "ANSI-to-OEM conversion is enabled"?
>
> See AutoAnsiToOem in
> http://support.microsoft.com/default.aspx?scid=KB;EN-US;199819
>
I checked the registry key
"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\DB-Lib", and
verified AutoAnsiToOem w
Marc 'BlackJack' Rintsch wrote:
> The `unicode()` call doesn't fail here but the ``print`` because printing
> unicode strings means they have to be encoded into a byte string again.
> And whatever encoding the target of the print (your console) uses, it
> does not contain the unicode character u'\x
Frank Millman wrote:
> You did not mention the odbc module from Mark Hammond's win32
> extensions. This is what I use, and it works for me. I believe it is
> not 100% DB-API 2.0 compliant, but I have not had any problems.
>
> I have not tried connecting to the database from a Linux box (or from
> a
Fredrik Lundh wrote:
> works for me, given your example:
> >>> s = "Fran\xd8a"
> >>> unicode(s, "iso-8859-1")
> u'Fran\xd8a'
>
> what does
> print repr(row[1])
>
> print in this case ?
It prints:
'Fran\xd8a'
The error I'm getting is beeing thrown when I print the value to the
console. If I
Hi,
Martin v. Löwis wrote:
> Also, it appears that DB-Library (the API used by pymssql) always
> returns CP_ACP characters (unless ANSI-to-OEM conversion is enabled);
> so the "right" encoding to use is "mbcs".
do you mean using something like the following line?
term = unicode(row[1], "mbcs")
W
strings are not printable to the console?
It's odd, because I can manually write in the console the same string
I'm trying to print.
I also tried other encodings, besides iso-8859-1, but got the same
error.
Do you think this has something to do with the DB-API driver? I don't
even know wh
ble (print term)
"Fran\xd8a" -When I print all the query results (print results)
The values in "Term" column in "TestTable" are stored as unicode (the
column's datatype is nvarchar), yet, the python data type of the values
I'm reading is not unicode.
I
27 matches
Mail list logo