Il Sat, 10 Jul 2010 16:24:23 +, mattia ha scritto:
> Hi all, I'm using py3k and the urllib package to download web pages. Can
> you suggest me a package that can translate reserved characters in html
> like "è", "ò", "é" in the correspondi
Il Sat, 10 Jul 2010 18:09:12 +0100, MRAB ha scritto:
> mattia wrote:
>> Hi all, I'm using py3k and the urllib package to download web pages.
>> Can you suggest me a package that can translate reserved characters in
>> html like "è", "ò", "é"
Hi all, I'm using py3k and the urllib package to download web pages. Can
you suggest me a package that can translate reserved characters in html
like "è", "ò", "é" in the corresponding correct
encoding?
Thanks,
Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Il Fri, 25 Dec 2009 05:19:46 +1100, Lie Ryan ha scritto:
> import threading
>
> class MyThread(threading.Thread):
> def join(self):
> super(MyThread, self).join()
> return self.result
>
> class Worker(MyThread):
> def run(self):
> total = 0
> for i i
Il Fri, 25 Dec 2009 00:35:55 +1100, Lie Ryan ha scritto:
> On 12/25/2009 12:23 AM, mattia wrote:
>> Hi all, is there a way in python to get back the value of the function
>> passed to a thread once the thread is finished? Something like
>> pthread_join() in C?
>>
&
Hi all, is there a way in python to get back the value of the function
passed to a thread once the thread is finished? Something like
pthread_join() in C?
Thanks, Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Il Tue, 22 Dec 2009 23:09:04 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Is there a function to initialize a dictionary? Right now I'm using:
>> d = {x+1:[] for x in range(50)}
>> Is there any better solution?
>
> There is a dictionary varian
Il Tue, 22 Dec 2009 23:09:04 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Is there a function to initialize a dictionary? Right now I'm using:
>> d = {x+1:[] for x in range(50)}
>> Is there any better solution?
>
> There is a dictionary varian
Is there a function to initialize a dictionary?
Right now I'm using:
d = {x+1:[] for x in range(50)}
Is there any better solution?
--
http://mail.python.org/mailman/listinfo/python-list
Il Sun, 20 Dec 2009 13:53:18 +0100, Irmen de Jong ha scritto:
> On 12/20/2009 1:45 PM, mattia wrote:
>> Hi all, is there a way in the python shell to list the path of a
>> library function (in order to look at the source code?).
>>
>> Thanks, Mattia
>
> some
Il Sun, 20 Dec 2009 13:53:18 +0100, Irmen de Jong ha scritto:
> On 12/20/2009 1:45 PM, mattia wrote:
>> Hi all, is there a way in the python shell to list the path of a
>> library function (in order to look at the source code?).
>>
>> Thanks, Mattia
>
> some
Il Sun, 20 Dec 2009 03:49:35 -0800, Chris Rebert ha scritto:
>> On Dec 19, 12:48 pm, Chris Rebert wrote:
>>> On Sat, Dec 19, 2009 at 2:54 AM, mattia wrote:
>>> > Hi all, I need to create the permutation of two strings but without
>>> > repeat the values,
Hi all, is there a way in the python shell to list the path of a library
function (in order to look at the source code?).
Thanks, Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Il Sat, 19 Dec 2009 10:54:58 +, mattia ha scritto:
> Hi all, I need to create the permutation of two strings but without
> repeat the values, e.g. 'ab' for me is equal to 'ba'. Here is my
> solution, but maybe the python library provides something better:
>
&g
else:
... return mcd(b, a % b)
...
>>> def mcm(a, b):
... return int((a * b) / mcd(a, b))
...
>>> s1 = 'abc'
>>> s2 = 'wt'
>>> m = mcm(len(s1), len(s2))
>>> set(zip(s1*m, s2*m))
{('a', 'w'), ('
Il Sat, 19 Dec 2009 17:30:27 +1100, Lie Ryan ha scritto:
> On 12/19/2009 9:34 AM, mattia wrote:
>> Can you provide me a much pythonic solution (with comments if possible,
>> so I can actually learn something)?
>
> If you only need to get i'th element sometimes,
Il Fri, 18 Dec 2009 18:00:42 -0500, David Robinow ha scritto:
> On Fri, Dec 18, 2009 at 5:34 PM, mattia wrote:
>> Hi all, I have a dictionary that uses dates and a tuples ad key, value
>> pairs. I need to sort the values of the dict and insert everything in a
>> tuple. The
Actually, in order to use duplicate values I need something like:
>>> import copy
>>> d = {1:('a', 1, 12), 5:('r', 21, 10), 2:('u', 9, 8), 3:('u', 9, 8) }
>>> dc = copy.deepcopy(d)
>>> t = [x for x in d.values()]
>>> def third(mls):
... return mls[2]
...
>>> s = sorted(t, key=third)
>>> pres =
in s:
... for k in d.keys():
... if d[k] == x:
... pres.append(k)
... break
...
>>> res = []
>>> for x in pres:
... res.append((x, d[x]))
...
>>> res
[(2, ('u', 9, 8)), (5, ('r', 21, 10)), (1, ('a', 1
Il Mon, 14 Dec 2009 21:53:38 +, Steven D'Aprano ha scritto:
> On Mon, 14 Dec 2009 17:13:24 +, mattia wrote:
>
>> Il Sun, 13 Dec 2009 21:17:28 -0800, knifenomad ha scritto:
>>
>>> On 12월14일, 오후12시42분, Steven D'Aprano
>>> wrote:
>>>
Hi all, I wanto to print just the first 5 characters of a string, why
this doesn't work (py3.1)?
>>> print("{0:5}".format("123456789"))
123456789
I know I could use print("123456789"[:5]), yeah it's a stupid example,
but isn't
Il Sun, 13 Dec 2009 21:17:28 -0800, knifenomad ha scritto:
> On 12월14일, 오후12시42분, Steven D'Aprano
> wrote:
>> On Sun, 13 Dec 2009 17:19:17 -0800, knifenomad wrote:
>> > this makes the set type hashable.
>>
>> > class Set(set):
>> > __hash__ = lambda self: id(self)
>>
>> That's a *seriously* b
Il Sun, 13 Dec 2009 16:37:20 +, mattia ha scritto:
> How can I insert non-duplicate data in a list? I mean, is there a
> particular option in the creation of a list that permit me not to use
> something like:
> def append_unique(l, val):
> if val not in l:
>
How can I insert non-duplicate data in a list? I mean, is there a
particular option in the creation of a list that permit me not to use
something like:
def append_unique(l, val):
if val not in l:
l.append(val)
Thanks,
Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Il Wed, 09 Dec 2009 16:19:24 -0800, Jon Clements ha scritto:
> On Dec 9, 11:53 pm, mattia wrote:
>> Hi all, can you provide me a simple code snippet to interrupt the
>> execution of my program catching the KeyboardInterrupt signal?
>>
>> Thanks,
>> Mattia
>
Il Thu, 10 Dec 2009 23:10:02 +, Matthew Barnett ha scritto:
> mattia wrote:
>> Il Thu, 10 Dec 2009 04:56:33 +, Brad Harms ha scritto:
>>
>>> On Thu, 10 Dec 2009 00:29:45 +, mattia wrote:
>>>
>>>> Il Wed, 09 Dec 2009 16:19:24 -0800, Jon Cl
Il Thu, 10 Dec 2009 04:56:33 +, Brad Harms ha scritto:
> On Thu, 10 Dec 2009 00:29:45 +0000, mattia wrote:
>
>> Il Wed, 09 Dec 2009 16:19:24 -0800, Jon Clements ha scritto:
>>
>>> On Dec 9, 11:53 pm, mattia wrote:
>>>> Hi all, can you provide me
Il Wed, 28 Oct 2009 20:04:45 -0700, ryles ha scritto:
> On Oct 28, 7:02 pm, mattia wrote:
>> Now, I would like to know the activity done (e.g. every two seconds) so
>> I create another thread that checks the queue size (using .qsize()).
>> Have you any suggestion to improv
hi all, I have a simple program that uses multiple threads to carry out
some work. Every threads share the same queue.Queue() (that is
synchronized) in order to get some data and then carry out the work.
Suppose I have something like:
q = queue.Queue()
for x in range(100):
q.put(x)
then I ha
Il Sun, 18 Oct 2009 20:04:11 -0200, Gabriel Genellina ha scritto:
> En Sun, 18 Oct 2009 10:35:34 -0200, mattia escribió:
>
>> Il Sat, 17 Oct 2009 10:02:27 -0400, Dave Angel ha scritto:
>>> mattia wrote:
>>>> Il Fri, 16 Oct 2009 21:04:08 +, mattia ha sc
Il Sat, 17 Oct 2009 10:02:27 -0400, Dave Angel ha scritto:
> mattia wrote:
>> Il Fri, 16 Oct 2009 21:04:08 +0000, mattia ha scritto:
>>
>>
>>> Is there a way to print to an unbuffered output (like stdout)? I've
>>> seen that something like sys.stdout
Il Sat, 17 Oct 2009 10:38:55 -0400, Dave Angel ha scritto:
> mattia wrote:
>> Il Fri, 16 Oct 2009 22:40:34 -0700, Dennis Lee Bieber ha scritto:
>>
>>
>>> On Fri, 16 Oct 2009 23:39:38 -0400, Dave Angel
>>> declaimed the following in gmane.comp.python.gene
Il Fri, 16 Oct 2009 21:04:08 +, mattia ha scritto:
> Is there a way to print to an unbuffered output (like stdout)? I've seen
> that something like sys.stdout.write("hello") works but it also prints
> the number of characters!
Another question (always py3). How ca
Il Sat, 17 Oct 2009 06:48:10 -0400, Dave Angel ha scritto:
> Dave Angel wrote:
>>
>> Jason Tackaberry wrote:
>>> On Fri, 2009-10-16 at 12:01 -0700, gervaz wrote:
>>>
Hi all, is there in python the equivalent of the C function int
putchar (int c)? I need to print putchar(8).
>
Il Fri, 16 Oct 2009 22:40:34 -0700, Dennis Lee Bieber ha scritto:
> On Fri, 16 Oct 2009 23:39:38 -0400, Dave Angel
> declaimed the following in gmane.comp.python.general:
>
>
>> You're presumably testing this in the interpreter, which prints extra
>> stuff. In particular, it prints the result
Is there a way to print to an unbuffered output (like stdout)? I've seen
that something like sys.stdout.write("hello") works but it also prints
the number of characters!
--
http://mail.python.org/mailman/listinfo/python-list
Any particular difference in using for a simple collection of element ()
over [] or vice-versa?
Thanks, Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Hi all, in order to download an image. In order to correctly retrieve the
image I need to set the referer and handle cookies.
opener = urllib.request.build_opener(urllib.request.HTTPRedirectHandler
(), urllib.request.HTTPCookieProcessor())
urllib.request.install_opener(opener)
req = urllib.reques
You were right, the problem was with the print function, using a normal
write everythong works fine.
Il Thu, 10 Sep 2009 18:56:07 +0200, Diez B. Roggisch ha scritto:
> mattia wrote:
>
>> Hi all, in order to download an image. In order to correctly retrieve
>> the image
I would like to click on an image in a web page that I retrieve using
urllib in order to trigger an event.
Here is the piece of code with the image that I want to click:
I don't know how to do it (I'm trying using lxml, but any suggestion can
help).
Thanks,
Mattia
--
http://mail.
Are you aware of any python module that automatically gives you a
screenshot of a web page?
--
http://mail.python.org/mailman/listinfo/python-list
Il Thu, 02 Apr 2009 13:44:38 +, Sion Arrowsmith ha scritto:
> mattia wrote:
>> So, I'm looking for a way to "reset" the next() value every
>>time i complete the scan of a list.
>
> itertools.cycle ?
Perfect, thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Il Sun, 29 Mar 2009 12:00:38 -0400, andrew cooke ha scritto:
> mattia wrote:
>>[i wrote]:
>>> don't you just want to have a new job machine?
>>>
>>> for job_list in job_list_list:
>>> job_machine = dict((x+1, iter(JOBS[x])) for x in range(N
Il Sun, 29 Mar 2009 11:17:50 -0400, andrew cooke ha scritto:
> mattia wrote:
>> Hi all, I a list of jobs and each job has to be processed in a
>> particular order by a list of machines.
>> A simple representation is:
>> # Ordering of machines
>> JOB1 = [3, 1, 2,
chine = empty.copy()
Can you suggest me a more python way?
Ciao,
Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Hi all, which are the usual comments that you put at the beginning of
your code to explain e.g. the author, the usage, the license etc?
I've found useful someting like:
#-
# Name:About.py
# Purpose:
#
# Author:
Il Sun, 22 Mar 2009 16:52:02 +, R. David Murray ha scritto:
> mattia wrote:
>> Can you explain me this behaviour:
>>
>> >>> s = [1,2,3,4,5]
>> >>> g = (x for x in s)
>> >>> next(g)
>> 1
>> >>>
Can you explain me this behaviour:
>>> s = [1,2,3,4,5]
>>> g = (x for x in s)
>>> next(g)
1
>>> s
[1, 2, 3, 4, 5]
>>> del s[0]
>>> s
[2, 3, 4, 5]
>>> next(g)
3
>>>
Why next(g) doesn't give me 2?
--
http://mail.python.org/mailman/listinfo/python-list
Hi all, I need to receive in input a date represented by a string in the
form "/mm/dd" (or reversed), then I need to assure that the date is
>= the current date and then split the dates in variables like year,
month, day. Is there some module to do this quickly?
--
http://mail.python.org/mail
Il Wed, 18 Mar 2009 23:31:09 -0200, Gabriel Genellina ha scritto:
> En Wed, 18 Mar 2009 18:49:19 -0200, mattia escribió:
>> Il Wed, 18 Mar 2009 13:20:14 -0700, Aahz ha scritto:
>>> In article <49c1562a$0$1115$4fafb...@reader1.news.tin.it>, mattia
>>> wrote:
>
Il Wed, 18 Mar 2009 13:20:14 -0700, Aahz ha scritto:
> In article <49c1562a$0$1115$4fafb...@reader1.news.tin.it>, mattia
> wrote:
>>
>>Yeah, and I believe that we can say the same for: 1 - t = [x*2 for x in
>>range(10)]
>>2 - t = list(x*2 for x in range(10)
Il Wed, 18 Mar 2009 09:34:57 -0700, Aahz ha scritto:
> In article , Peter Otten
> <__pete...@web.de> wrote:
>>mattia wrote:
>>>
>>> cpop += [nchromosome1] + [nchromosome2]
>>
>>I'd write that as
>>
>>cpop.append
Il Tue, 17 Mar 2009 15:40:02 +, R. David Murray ha scritto:
> mattia wrote:
>> Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto:
>>
>> > mattia wrote:
>> >> Hi all, can you tell me why the module urllib.request (py3) add
>> >&g
Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto:
> mattia wrote:
>> Hi all, can you tell me why the module urllib.request (py3) add extra
>> characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the
>> following and urllib2 (py2
Il Tue, 17 Mar 2009 10:55:21 +, R. David Murray ha scritto:
> mattia wrote:
>> Hi all, can you tell me why the module urllib.request (py3) add extra
>> characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the
>> following and urllib2 (py2
Il Tue, 17 Mar 2009 08:18:08 +0100, Peter Otten ha scritto:
> Mensanator wrote:
>
>> On Mar 16, 1:40 pm, Peter Otten <__pete...@web.de> wrote:
>>> mattia wrote:
>>> > I have 2 lists, like:
>>> > l1 = [1,2,3]
>>> > l2 = [4,5]
>>
Hi all, can you tell me why the module urllib.request (py3) add extra
characters (b'fef\r\n and \r\n0\r\n\r\n') in a simple example like the
following and urllib2 (py2.6) correctly not?
py2.6
>>> import urllib2
>>> f = urllib2.urlopen("http://www.google.com";).read()
>>> fd = open("google26.html
:
- I wanted to use the zip function, but the new list will not aggregate
(3,4) and (3,5)
- Once I've the new list, I'll apply a map function (e.g. the exp of the
values) to speed up the process
Some help?
Thanks, Mattia
--
http://mail.python.org/mailman/listinfo/python-list
Il Sun, 15 Mar 2009 17:05:16 -0700, Chris Rebert ha scritto:
> On Sun, Mar 15, 2009 at 4:54 PM, gervaz wrote:
>> On Mar 16, 12:38 am, Graham Breed wrote:
>>> mattia wrote:
>>> > I'm using urlopen in order to download some web pages. I've always
>>
I'm using urlopen in order to download some web pages. I've always to
replace some characters that are in the url, so I've come up with:
url.replace("|", "%7C").replace("/", "%2F").replace(" ", "+").replace
(":", "%3A")
There isn't a better way of doing this?
--
http://mail.python.org/mailman/list
How can I determine the common values found in two differents sets and
then assign this values?
E.g.
dayset = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]
monthset = ["Jan", "Feb", "Apr", "May", "Jun", "Jul", "Aug", "Sep",
"Oct", "Nov", "Dec"]
this are the "fixed and standard" sets.
Then I
Hi all, how can I list the modules provided by a package?
--
http://mail.python.org/mailman/listinfo/python-list
Il Sat, 14 Mar 2009 15:30:29 -0500, Tim Chase ha scritto:
>> How can I convert the following string:
>>
>> 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC',
>> EGC','SXF','BZR','BIQ','BLL','BHX','BLQ'
>>
>> into this sequence:
>>
>> ['AAR','ABZ','AGA','AHO','ALC','LEI','AOC',
>> EGC','SXF','BZR','BIQ'
Il Sat, 14 Mar 2009 12:13:31 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Il Sat, 14 Mar 2009 10:35:59 +0100, Peter Otten ha scritto:
>>
>>> mattia wrote:
>>>
>>>> How can I convert the following string:
>>>>
>>>&g
Il Sat, 14 Mar 2009 10:35:59 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> How can I convert the following string:
>>
>> 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC',
>> EGC','
Il Sat, 14 Mar 2009 10:30:43 +0100, Vlastimil Brom ha scritto:
> 2009/3/14 mattia :
>> How can I convert the following string:
>>
>> 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC',
>> EGC','S
Il Sat, 14 Mar 2009 10:24:38 +0100, Ulrich Eckhardt ha scritto:
> mattia wrote:
>> How can I convert the following string:
>>
>> 'AAR','ABZ','AGA','AHO','ALC','LEI','AOC',
>> EGC','SXF
How can I convert the following string:
'AAR','ABZ','AGA','AHO','ALC','LEI','AOC',
EGC','SXF','BZR','BIQ','BLL','BHX','BLQ'
into this sequence:
['
Il Sat, 07 Mar 2009 00:05:53 -0200, Gabriel Genellina ha scritto:
> En Fri, 06 Mar 2009 21:31:01 -0200, mattia escribió:
>
>> Thanks, I've found another solution here:
>> http://www.obitko.com/tutorials/
>> genetic-algorithms/selection.php
>> so here is my i
Il Fri, 06 Mar 2009 14:13:47 -0800, Scott David Daniels ha scritto:
> mattia wrote:
>> Here is my last shot, where I get rid of all the old intermediate
>> functions:
>>
>> def selection(fitness, population):
>> lp = len(population)
>> roulett
Il Fri, 06 Mar 2009 18:46:44 -0300, andrew cooke ha scritto:
> i have not been following this discussion in detail, so someone may have
> already explained this, but it should not be necessary to actually
> construct the roulette wheel to select values from it. what you are
> doing is selecting f
Il Fri, 06 Mar 2009 22:28:00 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Il Fri, 06 Mar 2009 14:06:14 +0100, Peter Otten ha scritto:
>>
>>> mattia wrote:
>>>
>>>> Hi, I'm new to python, and as the title says, can I improve this
>
Il Fri, 06 Mar 2009 14:06:14 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Hi, I'm new to python, and as the title says, can I improve this
>> snippet (readability, speed, tricks):
>>
>> def get_fitness_and_population(fitness, population):
>
Il Fri, 06 Mar 2009 03:43:22 -0800, Chris Rebert ha scritto:
> On Fri, Mar 6, 2009 at 3:07 AM, mattia wrote:
>> Great, the for statement has not to deal with fap anymore, but with
>> another sequence, like this:
>>
>> def get_roulette_wheel(weight_value_p
Il Fri, 06 Mar 2009 10:19:22 +, mattia ha scritto:
> Hi, I'm new to python, and as the title says, can I improve this snippet
> (readability, speed, tricks):
>
> def get_fitness_and_population(fitness, population):
> return [(fitness(x), x) for x in population]
>
Hi, I'm new to python, and as the title says, can I improve this snippet
(readability, speed, tricks):
def get_fitness_and_population(fitness, population):
return [(fitness(x), x) for x in population]
def selection(fitness, population):
'''
Select the parent chromosomes from a popula
Il Thu, 05 Mar 2009 18:07:29 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> The last question: how can I improve readability in this piece of code?
>>
>> def crossover(pop, prob=0.6):
>> """
>> With a crossover probability cross o
> for a, b in zip(*[iter(pop)]*2):
In the python documentation there is a similar example, well, the obscure
thing here is the usage of *[iter(pop)]! Then I believe that I can safely
say that you iterate over the values 0 and 1, 2 and 3 etc. because the
zip automatically updates the index, i
Il Thu, 05 Mar 2009 15:48:01 +, mattia ha scritto:
> Il Wed, 04 Mar 2009 21:30:54 +0100, Peter Otten ha scritto:
>
>> mattia wrote:
>>
>>> Hi everyone, I'm new to python and I want to create some simple code
>>> in order to code the cla
Il Wed, 04 Mar 2009 21:30:54 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Hi everyone, I'm new to python and I want to create some simple code in
>> order to code the classical genetic algorithm example: given a
>> population of chromosomes, encoded using
Il Thu, 05 Mar 2009 12:54:39 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Il Thu, 05 Mar 2009 10:46:58 +0100, Peter Otten ha scritto:
>>
>>> mattia wrote:
>>>
>>>>> Note how get_roulette_wheel() is now completeley independent
Il Thu, 05 Mar 2009 10:46:58 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>>> Note how get_roulette_wheel() is now completeley independent of the
>>> concrete problem you are using it for.
>>
>> Ok, but also a lot more memory consuming ;-)
>
> I
> Note how get_roulette_wheel() is now completeley independent of the
> concrete problem you are using it for.
Ok, but also a lot more memory consuming ;-)
--
http://mail.python.org/mailman/listinfo/python-list
Il Wed, 04 Mar 2009 21:30:54 +0100, Peter Otten ha scritto:
> mattia wrote:
>
>> Hi everyone, I'm new to python and I want to create some simple code in
>> order to code the classical genetic algorithm example: given a
>> population of chromosomes, encoded using
Hi everyone, I'm new to python and I want to create some simple code in
order to code the classical genetic algorithm example: given a population
of chromosomes, encoded using 1 and 0, find the chromosome with the
maximum number of 1s. Now, despite all the code used to implement the
solution, I
Il Thu, 12 Feb 2009 13:47:09 +0100, Diez B. Roggisch ha scritto:
> mattia wrote:
>
>> Hi everybody, I'm looking for an easy way to put data in a form, then
>> click the button and follow the redirect. Also I need to use cookies. I
>> read that using perl this can be
Hi everybody, I'm looking for an easy way to put data in a form, then
click the button and follow the redirect. Also I need to use cookies. I
read that using perl this can be done using the UserAgent lib, that also
provide th browser functionality to let the site believe that you are
getting th
Thorsten Kampe ha scritto:
>> I'm trying to parsing html with re module.
> Just don't. Use an HTML parser like BeautifulSoup
Or HTMLParser/htmllib. of course you can mix those and re, it'll be
easier than re only.
--
|\/|55: Mattia Gentilini e 55 = log2(che_pal
Thorsten Kampe ha scritto:
>> I'm trying to parsing html with re module.
> Just don't. Use an HTML parser like BeautifulSoup
Or HTMLParser/htmllib
--
|\/|55: Mattia Gentilini e 55 = log2(che_palle_sta_storia) (by mezzo)
|/_| ETICS project at CNAF, INFN, Bologna, Italy
|\/|
ain
why it accepts that.
--
|\/|55: Mattia Gentilini e 55 = log2(che_palle_sta_storia) (by mezzo)
|/_| ETICS project at CNAF, INFN, Bologna, Italy
|\/| www.getfirefox.com www.getthunderbird.com
* Using Mac OS X 10.4.9 powered by Cerebros (Core 2 Duo) *
--
http://mail.python.org/mailman/listinfo/python-list
will ha scritto:
> Vista is a 64 bit OS and there is no port of pywin32 for either Vista
> or 64-bit XP
Vista exists in BOTH 32 bit and 64 bit versions.
--
|\/|55: Mattia Gentilini e 55 curve di seguito con gli sci
|/_| ETICS project at CNAF, INFN, Bologna, Italy
|\/| www.getfiref
ight", "credits" or "license" for more information.
>>> import platform
>>> print platform.processor()
i386
>>> print platform.architecture()
('32bit', '')
>>>
--
Mattia Gentilini
Collaborator for ETICS project - http://eu-etics.org/
INFN - CNAF - R&D Division - Bologna, Italy
* Using Mac OS X 10.4.9 powered by Cerebros (Core 2 Duo) *
--
http://mail.python.org/mailman/listinfo/python-list
Hi to all.
I'm intristing in write a plugin for browsers that can execute python
code.
I know the main problem is security. Many thread were opened about this
in the ng.
I would know if fork python rewriting some library could avoid
problems. I.e. one problem is the possibility to access files. If
Thanks a lot, very clear and usefull anser!
Yes, I know PyGTK and wxPython, but I want to develop a plugin for
another application that requires c++. I guess that embedding is the
appropriate way.
Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
Hi to all!
I have a little problem. I want to develop an application in c/c++ that
creates a window with gtk+ accordinly to the information on a xml file.
The funcions that are called for manage the event should be written in
python. I don't know how to do it, can you help me? Is it possible?
Thank
95 matches
Mail list logo