Re: Regular Expression bug?

2023-03-02 Thread jose isaias cabrera
On Thu, Mar 2, 2023 at 9:56 PM Alan Bawden wrote: > > jose isaias cabrera writes: > >On Thu, Mar 2, 2023 at 2:38 PM Mats Wichmann wrote: > >This re is a bit different than the one I am used. So, I am trying to match >everything after 'pn=': > >

Re: Regular Expression bug?

2023-03-02 Thread jose isaias cabrera
On Thu, Mar 2, 2023 at 8:35 PM wrote: > > It is a well-known fact, Jose, that GIGO. > > The letters "n" and "m" are not interchangeable. Your pattern fails because > you have "pn" in one place and "pm" in the other. It is not GIGO. pm=pro

Re: Regular Expression bug?

2023-03-02 Thread jose isaias cabrera
On Thu, Mar 2, 2023 at 8:30 PM Cameron Simpson wrote: > > On 02Mar2023 20:06, jose isaias cabrera wrote: > >This re is a bit different than the one I am used. So, I am trying to > >match > >everything after 'pn=': > > > >import re > >s = "

Re: Regular Expression bug?

2023-03-02 Thread jose isaias cabrera
On Thu, Mar 2, 2023 at 2:38 PM Mats Wichmann wrote: > > On 3/2/23 12:28, Chris Angelico wrote: > > On Fri, 3 Mar 2023 at 06:24, jose isaias cabrera wrote: > >> > >> Greetings. > >> > >> For the RegExp Gurus, consider the following python3 code: &g

Re: Regular Expression bug?

2023-03-02 Thread jose isaias cabrera
On Thu, Mar 2, 2023 at 2:32 PM <2qdxy4rzwzuui...@potatochowder.com> wrote: > > On 2023-03-02 at 14:22:41 -0500, > jose isaias cabrera wrote: > > > For the RegExp Gurus, consider the following python3 code: > > > > import re > > s = "pn=alig

Regular Expression bug?

2023-03-02 Thread jose isaias cabrera
Greetings. For the RegExp Gurus, consider the following python3 code: import re s = "pn=align upgrade sd=2023-02-" ro = re.compile(r"pn=(.+) ") r0=ro.match(s) >>> print(r0.group(1)) align upgrade This is wrong. It should be 'align' because the group only goes up-to the space. Thoughts? Thanks.

Re: Changing the original SQLite version to the latest

2023-02-15 Thread jose isaias cabrera
On Tue, Feb 14, 2023 at 8:55 PM Thomas Passin wrote: > > On 2/14/2023 3:30 PM, jose isaias cabrera wrote: > > Greetings. > > > > I have tried both Cygwin and SQLite support, and I have received very > > little ideas from them, so I am trying this to see if anyone has

Re: Changing the original SQLite version to the latest

2023-02-14 Thread jose isaias cabrera
On Tue, Feb 14, 2023 at 8:55 PM Thomas Passin wrote: > > As a point of reference, the Python installation I've got on my Windows > box (not a cygwin install) is > > Python 3.10.9 (tags/v3.10.9:1dd9be6, Dec 6 2022, 20:01:21) [MSC v.1934 > 64 bit (AMD64)] on win32 > > and the sqlite_version is 3.39

Changing the original SQLite version to the latest

2023-02-14 Thread jose isaias cabrera
Greetings. I have tried both Cygwin and SQLite support, and I have received very little ideas from them, so I am trying this to see if anyone has dealt with such a problem before. If I use Cygwin setup tool and install python39 and thus, $ python Python 3.9.10 (main, Jan 20 2022, 21:37:52) [GCC

[Python-announce] Benchmark Smil vs Scikit-image (morphological features)

2021-12-21 Thread Jose-Marcio Martins da Cruz
smil-vs-skimage Comments are welcome, Best regards José-Marcio -- --- Jose Marcio MARTINS DA CRUZ, Ph.D. Ecole des Mines de Paris Centre de Morphologie Mathématique https://orci

Fwd: Inconveniente

2021-02-09 Thread Juan Jose Reyna Figuera
*Buenas tardes, le escribo breve y puntualmente para reportar este el siguiente error al cual no le pude dar solución.* *Instalé Python 3.9.1 (64 bits), todo había funcionado bien hasta que necesité usar la librería seaborn. Al ejecutar mi algoritmo obtenía el siguiente error: * (...\Python\Pytho

Fw: Python installation problem

2020-04-01 Thread HERNANDEZ AGUIRRE JOSE GABRIEL DE LA DOLOROSA
En Mar, 31 Marzo, 2020 en 18:48, yo escribió:   Para: python-list@python.org I  installed  the Python software , but I could not find the python.exe file with the Unscramble software What do you advise ? Regards -- https://mail.python.org/mailman/listinfo/python-list

ANN: Smil 0.9.1

2019-01-27 Thread Jose Marcio Martins da Cruz
th GPL license. You can find Smil - binaries and documentation - at our web site : http://smil.cmm.mines-paristech.fr or the source code at : https://github.com/ensmp-cmm/smil Thanks -- --- Jose Marcio MARTINS DA CR

Storing dataset from Condtional FreqDist

2015-01-19 Thread Jose
Hello i have trying to store information in arff file but i has been really. Any ideas of how can i do that? with open('fileids3.txt', 'r') as f: genres=[word.strip() for word in f.next().split(',')] with open('adjectifs2.txt', 'r') as g: adj = [word.strip() for word in g.

PIL or something to open EXIF Metadata with Python

2013-01-09 Thread Jose Trevino
I am trying to load the PIL module to manage exif metadata with Python but have had no success. I do some work relate with applescript, but for large files time increases exponentially. So I changed to Python with the intention of using PIL or something similar. I see that the last update of PIL

Re: How to generate account number?

2012-11-02 Thread Jose Figueroa
Hello Andriy Thanks for your work! I will try it! Jose On Fri, Nov 2, 2012 at 3:13 PM, Andriy Kornatskyy < andriy.kornats...@live.com> wrote: > > Requirements for `account number` generator: > > 1. Issue pseudo random consistent number (must be unique for dozen > mil

Re: lazy evaluation of a variable

2012-06-17 Thread Jose H. Martinez
Another option would be to refactor your function so that it is a generator expression using the yield keyword. On Sun, Jun 17, 2012 at 7:40 PM, Peter Otten <__pete...@web.de> wrote: > Gelonida N wrote: > > > I'm having a module, which should lazily evaluate one of it's variables. > > Meaning th

Re: string to list

2012-06-13 Thread Jose H. Martinez
string.split(',') will give you an array. Example: 'AAA,",,",EEE,FFF,GGG '.split(',') ['AAA', '"', '', '"', 'EEE', 'FFF', 'GGG'] On Wed, Jun 13, 2012 at 10:53 PM, Chris Rebert wrote: > n Wed, Jun 13, 2012 at 7:29 PM, bruce g wrote: > > What is the best way to parse a

Re: using identifiers before they are defined

2012-06-12 Thread Jose H. Martinez
Seems like what you need is from othermodule import bb def aa(): bb() On Tue, Jun 12, 2012 at 2:51 PM, Ethan Furman wrote: > Julio Sergio wrote: > >> Jose H. Martinez gmail.com> writes: >> >> >>> You should define the function first and then c

Re: using identifiers before they are defined

2012-06-12 Thread Jose H. Martinez
You should define the function first and then call it. def something(i): return i a = something(5) If you want a reference to the function somewhere else you can do this: global alias = something print alias(i) On Tue, Jun 12, 2012 at 1:53 PM, Julio Sergio wrote: > I'm puzzled with

Help with movie module

2010-07-06 Thread Jose Ángel Quintanar Morales
Hi, I'm sorry by my bad english. I have a little problem with pygame.movie module when I try work whit him show this problem [josean...@qumax reproductor]$ python packbox.py packbox.py:64: RuntimeWarning: use mixer: No module named mixer (ImportError: No module named mixer) pygame.mixer.quit()

Re: PyGame migrating to JavaScript

2010-04-02 Thread Jose Manuel
On Apr 2, 3:19 am, Gary Herron wrote: > Xavier Ho wrote: > >  Javascript in recent years has been getting better and better, and > > >      now is a way better language than python. So to keep up with the > >      times pygame has been rewritten for javascript. > > > *shudders* > > > Can someone c

Python is cool!!

2010-03-23 Thread Jose Manuel
I have been learning Python, and it is amazing I am using the tutorial that comes with the official distribution. At the end my goal is to develop applied mathematic in engineering applications to be published on the Web, specially on app. oriented to simulations and control systems, I was ab

Read header and data from a binary file [LONG]

2009-09-23 Thread Jose Rafael Pacheco
Hello, I want to read from a binary file called myaudio.dat Then I've tried the next code: import struct name = "myaudio.dat" f = open(name,'rb') f.seek(0) chain = "< 4s 4s I 4s I 20s I I i 4s I 67s s 4s I" s = f.read(4*1+4*1+4*1+4*1+4*1+20*1+4*1+4*1+4*1+4*1+4*1+67*1+1+4*1+4*1) a = struct.unpack(

Read header and data from a binary file

2009-09-22 Thread Jose Rafael Pacheco
Hello, I want to read from a binary file called myaudio.dat Then I've tried the next code: import struct name = "myaudio.dat" f = open(name,'rb') f.seek(0) chain = "< 4s 4s I 4s I 20s I I i 4s I 67s s 4s I" s = f.read(4*1+4*1+4*1+4*1+4*1+20*1+4*1+4*1+4*1+4*1+4*1+67*1+1+4*1+4*1) a = struct.unpack(

Problem with two instances of PySerial

2009-07-09 Thread Shine Jose
as because Serial.Connect() in the worker thread did not throw any exception & isOpen() method returns true. I request you to help me in figuring out the problem. -- Regards, Shine Jose -- http://mail.python.org/mailman/listinfo/python-list

Re: How to Delete a Cookie?

2009-01-08 Thread Jose C
> To kill the cookie, simply set a cookie with the same name (and path) Actually you may not even need to specify the path. Just the name and expires param should do the trick. Haven't played with cookies in a while so try with and without the path. -- http://mail.python.org/mailman/listinfo/pyt

Re: How to Delete a Cookie?

2009-01-08 Thread Jose C
On Jan 8, 10:33 am, tryg.ol...@gmail.com wrote: > On Jan 8, 1:16 pm, Jose C wrote: > > > > > > c["mycook"]["expires"] = 0 > > > Set ["expires"] using the following format to any time less than > > current (which causes the brow

Re: How to Delete a Cookie?

2009-01-08 Thread Jose C
> c["mycook"]["expires"] = 0 Set ["expires"] using the following format to any time less than current (which causes the browser to delete the cookie). Here's a function I use to return a cookie expiry timestamp, negative values passed in result in cookie being deleted. def cookie_expiry_date(numd

duck typing at will

2008-12-30 Thread Jose Mora
Duck typing is called that way because "If it looks like a duck and quacks like a duck, it must be a duck." I think it would be good to have also "If the programmer wants to deal with it like a duck, it must be a duck" I mean, some tasks are rather boring in python when compared with php, for exam

Re: Module Conflicts

2008-04-10 Thread Jose
On Apr 9, 10:36 pm, Benjamin <[EMAIL PROTECTED]> wrote: > On Apr 9, 5:33 pm, Jose <[EMAIL PROTECTED]> wrote: > > > I have a module named math.py in a package with some class > > definitions. I am trying to import the standard python math module > > inside of

Module Conflicts

2008-04-09 Thread Jose
I have a module named math.py in a package with some class definitions. I am trying to import the standard python math module inside of math.py but It seems to be importing itself. Is there any way around this problem without renaming my math.py file? -- http://mail.python.org/mailman/listinfo/p

Manually installing PIL

2008-01-02 Thread Jose Ignacio Gisbert
Hello All, Does somebody install PIL manually??, I mean, copy directories manually without executing setup.py. I saw an identical message from Guirai, but I didn't see any response. Thanks in advance! Best Regards, Naxo -- http://mail.python.org/mailman/listinfo/python-list

RE: *SPAM*: 04.0/4.0 - Re: how to maximize a Tkinter Window in python TK???

2007-12-12 Thread Jose Ignacio Gisbert
If you want to start with your main window maximized, you can do: root = Tk() root.state("zoomed") Regards, Naxo -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Matimus Enviado el: jueves, 13 de diciembre de 2007 2:18 Para: python-list@python.org Asunto:

RE: xmlrpclib.binary to a file doubt

2007-12-12 Thread Jose Ignacio Gisbert
Regards, Naxo _ De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] En nombre de Jose Ignacio Gisbert Enviado el: miércoles, 12 de diciembre de 2007 9:12 Para: python-list@python.org Asunto: xmlrpclib.binary to a file doubt Hi all, I have a problem in my application which us

xmlrpclib.binary to a file doubt

2007-12-12 Thread Jose Ignacio Gisbert
Hi all, I have a problem in my application which uses xml-rpc methods. From one hand I can send a file to a server doing f=open(Myfile,'rb') g=f.read() name=(f.name).split("/") name=name[len(name)-1] calltosendmethod(xmlrpclib.Binary(g),name) And it works fine. But on the other han

RV: Receiving messages blocks all :-(

2007-12-04 Thread Jose Ignacio Gisbert
First, sorry for sending this mail to this list, I know this is off-topic, but xmpppy-devel mailing list is out of work :-( If someone uses xmpppy, please try to answer me, or at least give me a more adequate mailing list, please. Thank you. ---

Send file in base64

2007-12-04 Thread Jose Ignacio Gisbert
Hi all, I need to send a file to a server using xmlrpc api. The receiver must get file data in base64 type, and what I do is: openfilename=tkFileDialog.askopenfilename(filetypes=[("all files", "*")]) f=open(tlocald.get(),'r') functionsend(xmlrpclib.Binary(f), f.name) And what I get i

Variables and their domain

2007-11-29 Thread Jose Ignacio Gisbert
Hi all, I have one doubt, in my applciation I have a method (Method1) which has other method (Method2) inside of it. Ok, in my first method I define a variable "lista" which is an array, an other one, "lb", which is a listbox with some elements inserted from lista. Then, when I do a double clic

Re: display messages in python shell

2007-11-20 Thread jose Barcelona
Hi Kou, I use this in http://cern.ch/test-volunteers... to redirect error messages... \etc hope it helps #!/usr/bin/python import os import cgi import safeeval import sys import string import time import re import urllib class PitonEsFacilException(Exception): "Base class for all Excep

Re: Python iPod challenge

2007-11-12 Thread jose Barcelona
Gabriel, Now it works fine with FIREFOX , SAFARI and MSIE. (MSIE didnt like the the way prototype.js deals with CR LF) > BTW, why do you require JS? The python interpreter comunicates back and forth via a widget just like gmail XD. Sorry for that. Anyway we stil need volunteers... ht

how to select between two file libraries with same name?

2007-08-23 Thread Jose Borreguero
Imagine my file one.py contains the statement import two If there's a two.py in same directory as one.py, then this file will be loaded. However, I want to load a different file named also two.py, say file ~username/mypythonlib/two.py How can I select between the two two.py files ? -jose --

Re: Problem with sockets and python 2.5

2007-03-21 Thread Jose Alberto Reguero
El Lunes, 19 de Marzo de 2007, Jose Alberto Reguero escribió: > I had two programs, server.py and client.py(attached) > > 1: > server.py at i386 python 2.4 > client.py at x86_64 python 2.5 > Work > > 2: > server.py at x86_64 python 2.5 > client

Problem with sockets and python 2.5

2007-03-19 Thread Jose Alberto Reguero
I had two programs, server.py and client.py(attached) 1: server.py at i386 python 2.4 client.py at x86_64 python 2.5 Work 2: server.py at x86_64 python 2.5 client.py at i386 python 2.4 Don't work Any ideas? Thanks. Jose Alberto clinet.py Descri

Re: Web Hosting

2006-10-16 Thread Jose C
> With web hosting, does the ISP you chose have to support the framework > you work with as well? > > Im looking at making a site in Python, however, Im lost as to what ISPs > actually support. Some ISPs say they support Python so does that mean > if I wanted to use TurboGears It would just work an

Another SimpleXMLRPCServer question.

2006-04-18 Thread Jose Carlos Balderas Alberico
please ask.   Thank you very much in advance. Jose Carlos. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't connect to SimpleXMLRPCServer. Help needed.

2006-04-12 Thread Jose Carlos Balderas Alberico
Okay, I changed this:   server = SimpleXMLRPCServer.SimpleXMLRPCServer(("localhost", 8000), ) for this:   server = SimpleXMLRPCServer.SimpleXMLRPCServer(('', 8000), )   Replacing "localhost" with two simple quotes ' makes it work. Anyone knows the reaso

Re: Can't connect to SimpleXMLRPCServer. Help needed.

2006-04-12 Thread Jose Carlos Balderas Alberico
at a loss here. Thank you very much for your attention.   Jose Carlos.       2006/4/12, John Abel <[EMAIL PROTECTED]>: Your server is only listening on 127.0.0.1.Jose Carlos Balderas Alberico wrote: > Up till now I've been setting up my server and client in the same> machine, usin

Can't connect to SimpleXMLRPCServer. Help needed.

2006-04-12 Thread Jose Carlos Balderas Alberico
7;ve also pinged the server from the client and viceversa and I get an answer. So they can see each other.   I've tried looking in google but couldn't find a solution to this problem. Anyone can give me a hand on this? Thank you very much.   Jose Carlos. -- http://mail.python.org/mailman/listinfo/python-list

Beginner question. Exceptions

2006-04-12 Thread Jose Carlos Balderas Alberico
try" block, so I can catch it with an "except" block? If I don't do that, a stack trace will be printed onto the screen... Is that the way it's usually done?   Please, help me out, for I'm kind of new to exceptions and I want to know if I get them right.   Thanks

Re: Converting Integer to String

2006-04-06 Thread Jose Carlos Balderas Alberico
That works just fine.Problem solved :)   Thank you so much for your help Wesley   Jose Carlos.  2006/4/6, Wesley Brooks <[EMAIL PROTECTED]>: ...or'%i' %546gives:'546'  Wesley Brooks. On 06/04/06, Wesley Brooks <[EMAIL PROTECTED] > wrote: Jose Carlos,str(234) gi

Re: Converting Integer to String

2006-04-06 Thread Jose Carlos Balderas Alberico
7;t know, but I don't get the \n when I execute str or repr in the python command shell.   It's weird...        2006/4/6, Wesley Brooks <[EMAIL PROTECTED]>: Jose Carlos,str(234) gives '234'Is that what your after?Wesley. On 06/04/06, Jose Carlos Balderas Alberico < [

Converting Integer to String

2006-04-06 Thread Jose Carlos Balderas Alberico
stringed data into a sql query.   I get "SELECT * FROM blah WHERE(code = 23\n)"   I need to get rid of that "\n". Is there any other function I can use to turn an integer into a string without the \n at the end?   Thanks for your attention.   Jose Carlos. -- http://mail.python.org/mailman/listinfo/python-list

Handling IP addresses with SimpleXMLRPCServer.

2006-04-06 Thread Jose Carlos Balderas Alberico
IP inside a method in the server?   Thank you very much in advance for your help.   Jose Carlos. -- http://mail.python.org/mailman/listinfo/python-list

Problem connecting Python with PostgreSQL

2006-04-05 Thread Jose Carlos Balderas Alberico
tions. Maybe the source of the error lays in a different place. I really need help on this. Has anyone ever gotten the same error message before, or is familiar with it?   If you need more information about the error, I'll be glad to share it with you. Thank you very much for your attention.   Jose Carlos. -- http://mail.python.org/mailman/listinfo/python-list

Sending a file to a remote server.

2006-04-02 Thread Jose Carlos Balderas Alberico
Hi. I posted a message in the list a couple of days ago about sending a file to a remote SimpleXMLRPCServer. Well. my doubt still remains, so I come to you again in search of a clearer answer.The thing is I want to send a ZIP file to a server, and what I basically do is enclose the file data into a

Re: Working with files in a SimpleXMLRPCServer

2006-03-31 Thread Jose Carlos Balderas Alberico
Oops, I'm afraid I replied to Brian only instead of to the whole distribution list. I copy the message I sent to him so that everyone can read it:I'm afraid I cannot use the zlib library provided by Python, since the ZIP files I'm supposed to send must be password-protected, and I haven't been able

Working with files in a SimpleXMLRPCServver

2006-03-31 Thread Jose Carlos Balderas Alberico
I'm setting up a server accepting XML-RPC calls using the SimpleXMLRPCServer class. Basically, what I have to do is send a zip-compressed file to the server, have the server unzip it and process it, after processing it the server is supposed to zip the file again, and send it back to the client.  

quick script to read digital terrain elevation data?

2006-02-22 Thread Jose Reckoner
I'm running python 2.3 on Windows XP. Anyone have a quick small script to convert .DT1 and .DEM data to ASCII or some other format? I don't need a viewer. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: Java Integer.ParseInt translation to python

2005-02-08 Thread jose isaias cabrera
Ok, so this, buffer[0] = (byte)Integer.parseInt(string,16); in java is, partly, this buffer[0] = int(string, 16) in python. But here is my problem. When I call this java subroutine, byte[] decodeKey(String inString) { if (inString == null) return null; System.out.println("Strin

Re: Java Integer.ParseInt translation to python

2005-01-31 Thread jose isaias cabrera
thanks everyone...! - Original Message - From: "ech0" <[EMAIL PROTECTED]> Newsgroups: comp.lang.python To: Sent: Monday, January 31, 2005 7:27 PM Subject: Re: Java Integer.ParseInt translation to python buffer[0] = int(string,16) & 0xff that should work -- http://mail.python.org/mailman

Re: Java Integer.ParseInt translation to python

2005-01-31 Thread jose isaias cabrera
Yes, that's my problem. I don't want to go through the java stuff. :-) Thanks. - Original Message - From: "Bill Mill" <[EMAIL PROTECTED]> To: "jose isaias cabrera" <[EMAIL PROTECTED]> Cc: Sent: Monday, January 31, 2005 7:28 PM Subject: Re: J

Java Integer.ParseInt translation to python

2005-01-31 Thread jose isaias cabrera
Greetings! I've looked through the internet (not long, though) but I have not been able to find a python translation to buffer[0] = (byte)Integer.parseInt(string,16); Has anyone ported any java programs to python and has translated this? any help would be greatly appreciated. thanks. josé -- ht

Sorry for the multiple posts !!

2005-01-26 Thread Jose Rivera
My broswser stoped working when I posted, and I tought it didn't work, so I tried a more times until did not report an error. Bye -- http://mail.python.org/mailman/listinfo/python-list

Where can I find Mk4py.dll for python24 ?

2005-01-25 Thread Jose Rivera
I installed the new release and I have not been able to make work metakit. Please give me some help to enjoy metakit and python 24. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Where can I find Mk4py.dll for Python24?

2005-01-25 Thread Jose Rivera
Hi I changed for python24 and the only thing missed is metakit for python24. Thanks -- http://mail.python.org/mailman/listinfo/python-list

Is thera a Metakit for Python 2.4 release ??

2005-01-25 Thread Jose Rivera
Hi Do you know where I can find the Mk4py.dll for Python24 ?. Thanks -- http://mail.python.org/mailman/listinfo/python-list

PDF count pages

2004-12-06 Thread Jose Benito Gonzalez Lopez
Hi there, Does anyone know how I could do in order to get/count the number of pages of a PDF file? (from python of course ;) ) Thanks beforehand. Cheers, Jose -- Jose Benito Gonzalez Lopez CERN Document Server ** <http://cds.cern.ch/> ** InDiCo Project ** <http://indic