Le vendredi 8 mai 2015 15:11:56 UTC+2, Peter Otten a écrit :
> > So, this works perfectly fine and fast. But it scares me that it's
> > deprecated and Python 4 will not support it anymore.
>
> Hm, this doesn't even work with Python 3:
My mistake. I should have tested better.
> >>> data = array.a
> Can you expand a bit on how array("u") helps here? Are the matches in the
> gigabyte range?
I have a string of unicode characters, e.g.:
data = array.array('u', u'x' * 10)
Then I need to change some data in the middle of this string, for instance:
data[50] = 'y'
Then I want to u
Le vendredi 8 mai 2015 12:29:15 UTC+2, Steven D'Aprano a écrit :
> On Fri, 8 May 2015 07:14 pm, jonathan.slenders wrote:
>
> > Why is array.array('u') deprecated?
> >
> > Will we get an alternative for a character array or mutable unicode
> > string?
>
>
> Good question.
>
> Of the three main
Why is array.array('u') deprecated?
Will we get an alternative for a character array or mutable unicode string?
Thanks!
Jonathan
--
https://mail.python.org/mailman/listinfo/python-list
Le mercredi 8 octobre 2014 01:40:11 UTC+2, MRAB a écrit :
> If you're not interested in generating an actual regex, but only in
>
> matching the prefix, then it sounds like you want "partial matching".
>
>
>
> The regex module supports that:
>
>
>
> https://pypi.python.org/pypi/regex
Wow, t
> > Logically, I'd think it should be possible by running the input string
> > against the state machine that the given regex describes, and if at some
> > point all the input characters are consumed, it's a match. (We don't have
> > to run the regex until the end.) But I cannot find any librar
Hi everyone,
Probably I'm turning the use of regular expressions upside down with this
question. I don't want to write a regex that matches prefixes of other strings,
I know how to do that. I want to generate a regex -- given another regex --,
that matches all possible strings that are a prefi
Le mardi 25 juin 2013 06:38:44 UTC+2, Chris Rebert a écrit :
> Er, Salt is likewise written in Python.
You're right. Salt is also Python, excuse me, and it's very powerful as well.
--
http://mail.python.org/mailman/listinfo/python-list
Thanks everyone, I'll think about it.
The main reason is that I'm working on the documentation, and this a a good
opportunity to think about the naming. python-deploy-framework or
python-deployer could be too boring.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
Any suggestions for a good name, for a framework that does automatic server
deployments?
It's like Fabric, but more powerful.
It has some similarities with Puppet, Chef and Saltstack, but is written in
Python.
Key points are that it uses Python, but is still very declarative and suppor
10 matches
Mail list logo