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=':
>
>
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
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 = "
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
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
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.
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
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
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
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
*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
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
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
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.
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
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
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
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
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
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
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()
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
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
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(
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(
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
> 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
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
> 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 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
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
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
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
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:
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
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
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.
---
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
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
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
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
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
--
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
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
> 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
please ask.
Thank you very much in advance.
Jose Carlos.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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 <
[
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
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
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
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
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
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.
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
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
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
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
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
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
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
Hi
I changed for python24 and the only thing missed is metakit for python24.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi
Do you know where I can find the Mk4py.dll for Python24 ?.
Thanks
--
http://mail.python.org/mailman/listinfo/python-list
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
68 matches
Mail list logo