On Saturday, 24 November 2018 14:33:29 UTC+8, jasmin amrutia wrote:
> hello all,
> please hepl me in the above program. python to implement Railway Reservation
> System using file handling technique.
>
> System should perform below operations.
> a. Reserve a ticket for a passenger.
> b. List in
visit for more information
http://2earnfromblog.blogspot.com
http://trinityedusystems.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Maybe you already fixed the issue, but for the record, I've got the same
problem and finally it turned out that I was calling PyEval_InitThreads twice
and also after fixing that, I also had to move the call to
PyEval_ReleaseLock(); at the end of the entire initialization (not just after
PyE
Just clarify there's no problem about calling twice to PyEval_InitThreads ()
as indicated by Python's doc.
> Hi,
>
>
>
> Maybe you already fixed the issue, but for the record, I've got the same
>
> problem and finally it turned out that I was calling PyEval_InitThreads twice
>
> and also afte
I have a prototype data assimilation code ( an ionospheric nowcast/forecast
model driven by GPS data ) that is written in IDL (interactive data language)
which is a horrible language choice for scaling the application up to large
datasets as IDL is serial and slow (interpreted).
I am embarking
Hello everyone,
I'm currently trying to port some embedded code from python 2.7 to python 3.2.
The current code replicate the basic behavior of the python interpreter in
anMFC application. When a command is entered in our embedded interpreter, we
write it to a FILE* then transform this FILE* int
Hi,
How do I make a downloaded file layerfx.py executable in Gimp? using
the Python console.
the layerfx.py is in the download folder
thanks
Francis
On 3/8/11, python-list-requ...@python.org
wrote:
> Send Python-list mailing list submissions to
> python-list@python.org
>
>
3.9 appeared with my old errors. I uninstalled 3.10 as 3.9 did
not appear in control panel.
Dell Inspiron 3793 Win 10
Thanks
Dave Francis
--
https://mail.python.org/mailman/listinfo/python-list
I'm fairly new to Python (2-3 months) and I'm trying to figure out a simple
way to implement Bezier curves... So far I've tried the following:
http://runten.tripod.com/NURBS/
...which won't work because the only compiled binaries are for Windows 2000,
python 2.1. I'm on Windows XP (for now), u
MAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Mon, 21 Nov 2005, Tom Anderson wrote:
>
>> On Sun, 20 Nov 2005, Warren Francis wrote:
>>
>>> Basically, I'd like to specify a curved path of an object through space.
>>> 3D space would be w
> If you go right to the foot of my code, you'll find a simple test routine,
> which shows you the skeleton of how to drive the code.
Oops... my request just got that much more pitiful. :-) Thanks for the
help.
Warren
--
http://mail.python.org/mailman/listinfo/python-list
cal memory addresses, which of
course can't be the same. And that is why your test fails.
Consider defining the __cmp__ method (see 2.3.3 Comparisons of the library
reference). Sess also the operator module.
Francis Girard
LANNILIS
Breizh
FRANCE
Le jeudi 20 Janvier 2005 19:23, Martin Häcker
Wow !
Now, this is serious. I tried all sort of things but can't solve the problem.
I'm mystified too and forget my last reply.
I'm curious to see the answers.
Francis Girard
Le jeudi 20 Janvier 2005 19:59, Kent Johnson a écrit :
> > Martin Häcker wrote:
> >> Hi th
are lazy ? Where can I find a comprehensive list of all the
lazy constructions built in Python ? (I think that to easily distinguish lazy
from strict constructs is an absolute programmer need -- otherwise you always
end up wondering when is it that code is actually executed like in Haskell).
Th
nstructed __before__ any other piece of code have a
chance to execute. The type of consecutive_sets is simply a list, not a
generator.
I'm just trying to understand and obviously I'm missing the point.
Thank you
Francis Girard
FRANCE
--
http://mail.python.org/mailman/listinfo/python-list
our intentions and let the system manage the
execution path.
> http://gnosis.cx/publish/programming/metaclass_1.html
> http://gnosis.cx/publish/programming/metaclass_2.html
Thank you, I'll read that.
Francis Girard
FRANCE
Le vendredi 21 Janvier 2005 16:42, Craig Ringer a Ãcri
Thank you,
I immediately download version 2.4, switching from version 2.3.
Francis Girard
FRANCE
Le vendredi 21 Janvier 2005 17:34, Craig Ringer a ÃcritÂ:
> On Fri, 2005-01-21 at 16:54 +0100, Francis Girard wrote:
> > First, I think that you mean :
> >
> > consecutive_set
Le samedi 22 Janvier 2005 10:10, Alex Martelli a ÃcritÂ:
> Francis Girard <[EMAIL PROTECTED]> wrote:
>...
>
> > But besides the fact that generators are either produced with the new
> > "yield" reserved word or by defining the __new__ method in a class
&g
I should not have this kind of behaviour, even using recursion, since
I'm only using lazy constructs all the time. At least, I would expect the
program to produce much more results before surrending.
What's going on ?
Thank you
Francis Girard
FRANCE
--
http://mail.python.org/mailman/listinfo/python-list
gorithms ; and the best way to implement them should be
established.
For this family of algorithms, itertools.tee is the way to go.
I think that the semi-tutorial in "test_generators.py" should be updated to
use "tee". Or, at least, a severe warning comment should be written.
curGen = fibGenerators[0]
curAheadGen = fibGenerators[1]
curAheadGen.next()
while True:
yield curGen.next() + curAheadGen.next()
fibGenerators = tee(_fib(), 3)
return fibGenerators[2]
for n in fib():
print n,
sys.stdout.flush()
*** END SNAP
Francis Girard
FRANCE
Le lundi 24
Ok I'll submit the patch with the prose pretty soon.
Thank you
Francis Girard
FRANCE
Le mardi 25 Janvier 2005 04:29, Tim Peters a écrit :
> [Francis Girard]
>
> > For all the algorithms that run after their tail in an FP way, like the
> > Hamming problem, or the Fibonacc
wsers everywhere from
my worst sex web sites !
I'm not really sure why the original poster want to use Python, I think it's
to make the glue between C++ and the scripting engine. Nor am I really sure
why java runs inside my browser ...
Francis Girard
FRANCE
Le mardi 25 Janvier 2005 18:08,
he
nightmare derscribed in that discussion thread. When I think that comapnies
pay big money for these kind of monsters after having seen a few ppt slides
about it, it makes me shiver.
Regards,
Francis Girard
FRANCE
--
http://mail.python.org/mailman/listinfo/python-list
s what you meant anyway.
>
> Cheers
>
Cheers too,
Francis Girard
FRANCE
> --
> PA
> http://alt.textdrive.com/
--
http://mail.python.org/mailman/listinfo/python-list
Le mercredi 26 Janvier 2005 21:44, PA a écrit :
> On Jan 26, 2005, at 21:35, Francis Girard wrote:
> >> Project fails for many reasons but seldomly because one language is
> >> "better" or "worst" than another one.
> >
> > I think you'
Le mardi 25 Janvier 2005 09:01, Michael Spencer a ÃcritÂ:
> Francis Girard wrote:
> > The following implementation is even more speaking as it makes
> > self-evident and almost mechanical how to translate algorithms that run
> > after their tail from recursion to "tee&qu
be great to have a
notation for this in Python, i.e. binding a function argument to yield a new
function).
The merge function to use with hamming() is imerge_inf_nodup.
Regards,
Francis Girard
FRANCE
> Nick Craig-Wood wrote:
> > Steven Bethard <[EMAIL PROTECTED]> wrote:
> >
Le jeudi 27 Janvier 2005 10:30, Nick Craig-Wood a ÃcritÂ:
> Francis Girard <[EMAIL PROTECTED]> wrote:
> > Thank you Nick and Steven for the idea of a more generic imerge.
>
> You are welcome :-) [It came to me while walking the children to school!]
>
Sometimes fresh ai
Le jeudi 27 Janvier 2005 20:16, Steven Bethard a écrit :
> flamesrock wrote:
> > The statement (1 > None) is false (or any other value above 0). Why is
> > this?
>
> What code are you executing? I don't get this behavior at all:
>
> py> 100 > None
> True
> py> 1 > None
> True
> py> 0 > None
> True
Le jeudi 27 Janvier 2005 21:29, Steven Bethard a écrit :
> Francis Girard wrote:
> > Le jeudi 27 Janvier 2005 20:16, Steven Bethard a écrit :
> >>flamesrock wrote:
> >>>The statement (1 > None) is false (or any other value above 0). Why is
> >>>this?
&
Oops, I misunderstood what you said. I understood that it was now the case
that objects of different types are not comparable by default whereas you
meant it as a planned feature for version 3.
I really hope that it will indeed be the case for version 3.
Francis Girard
Le jeudi 27 Janvier
Le vendredi 28 Janvier 2005 07:49, jfj a écrit :
> Francis Girard wrote:
> > Wow ! What is it that are compared ? I think it's the references (i.e.
> > the adresses) that are compared. The "None" reference may map to the
> > physical 0x0 adress whereas 100 is
Le jeudi 27 Janvier 2005 22:07, Steven Bethard a écrit :
> Francis Girard wrote:
> > Le jeudi 27 Janvier 2005 21:29, Steven Bethard a écrit :
> >>So None being smaller than anything (except itself) is hard-coded into
> >>Python's compare routine. My suspicion
Very complete explanation.
Thank you
Francis Girard
Le jeudi 27 Janvier 2005 22:15, Steven Bethard a écrit :
> Francis Girard wrote:
> > I see. There is some rule stating that all the strings are greater than
> > ints and smaller than lists, etc.
>
> Yes, that rule being
Le vendredi 28 Janvier 2005 08:27, Paul Rubin a écrit :
> Francis Girard <[EMAIL PROTECTED]> writes:
> > Thank you Nick and Steven for the idea of a more generic imerge.
>
> If you want to get fancy, the merge should use a priority queue (like
> in the heapsort algorithm)
Le vendredi 28 Janvier 2005 22:54, jfj a écrit :
> Francis Girard wrote:
> > What was the goal behind this rule ?
>
> If you have a list which contains integers, strings, tuples, lists and
> dicts and you sort it and print it, it will be easier to detect what
> you're l
way, strong typing as defined above would change the Python language in
some of its fundamental design. It would certainly be valuable to attempt the
experience, and rename the new language (mangoose would be a pretty name).
Francis Girard
FRANCE
Le mardi 1 Février 2005 16:49, Diez B. Roggisch a
Hi,
Do you have some more pointers to the StarKiller project ? According to the
paper some implementation of this very interesting project exists.
Thank you
Francis Girard
Le mardi 1 Février 2005 11:21, Sylvain Thenault a écrit :
> On Tue, 01 Feb 2005 05:18:12 +0100, Philippe Fremy wr
ing Python into the "smooth blend" Pyrex. I am
not sure what it exactly means and how they plan to face the problems we
foresee.
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
ore evaluation. Such
expression have _no_ value: they are simply regarded as illegal."
But Skip, I am sure that you can easily find an example by yourself. For
example, replace "+" by a function that does different things depending on
its argument type.
Francis Girard
Le mercredi 2 F
to do this in python,
other than rolling your sleeves and code your own data structure in Python,
which would be slowlier than the provided dict or set C implementation.
I think this a hole into the Pythin libs.
Regards
Francis Girard
Le jeudi 3 Février 2005 21:39, Steven Bethard a écrit :
&
I think it is evil to do something "at your own risk" ; I will certainly not
embark some roller coaster at my own risk.
I also think it is evil to scan the whole list (as "max" ought to do) when
only scanning the first few elements would suffice most of the time.
Regards
rn lst and reduce(lambda v,e: v[-1]!=e and v+[e] or v, lst[1:],
[lst[0]]) or []
print straightforward_collapse(a_lst)
print straightforward_collapse_secu([])
--END SNAP
Regards
Francis Girard
Le vendredi 4 Février 2005 20:08, Steven Bethard a écrit :
> Mike C. Fletcher wrote:
> >
Yes, I also this that comprehension is the clearer way to handle this. You
might also consider the good old "filter" function :
ips = filter(lambda ip: '255' not in ip, ips)
Francis Girard
Le vendredi 4 Février 2005 20:38, rbt a écrit :
> Thanks guys... list comprehensi
I think that Led Zeppelin, Pink Floyd and the Beatles (this time with John
Lennon back from the cemetry) also made a come back. Addison-Wesley decided
to preprint a photo of the messiah (just for us!)
Yippee!
Francis Girard
Le samedi 5 FÃvrier 2005 13:39, Laura Creighton a ÃcritÂ:
> "M
function in Python and we don't know why we bother you offering it."
Francis Girard
Le lundi 7 Février 2005 08:24, Peter Otten a écrit :
> Francis Girard wrote:
> > This is a prefect use case for the good old "reduce" function:
> >
> > --BEGIN SNAP
&g
functions that apply another function to each and every elements of a
list are bad (like "reduce", "map", "filter") ?
Francis Girard
Le lundi 7 Février 2005 19:25, Steven Bethard a écrit :
> Francis Girard wrote:
> > I'm very sorry that there is no go
Le lundi 7 FÃvrier 2005 19:51, John Lenton a ÃcritÂ:
> On Mon, Feb 07, 2005 at 07:07:10PM +0100, Francis Girard wrote:
> > Zut !
> >
> > I'm very sorry that there is no good use case for the "reduce" function
> > in Python, like Peter Otten pretends. Th
Le lundi 7 Février 2005 20:30, Steven Bethard a écrit :
> Francis Girard wrote:
> > Is there someone on this list using this tool and happy with it ? Or is
> > my mind too much targeted on FP paradigm and most of you really think
> > that all the functions that apply another
Le lundi 7 Février 2005 21:21, Steven Bethard a écrit :
> Francis Girard wrote:
> > Le lundi 7 Février 2005 20:30, Steven Bethard a écrit :
> >>especially since I avoid lambda usage, and would have to write these as:
> >
> > Why avoid "lambda" usage ? You fi
Le lundi 7 Février 2005 22:53, Steven Bethard a écrit :
> Francis Girard wrote:
> > I see. I personnaly use them frequently to bind an argument of a function
> > with some fixed value. Modifying one of the example in
> > http://mail.python.org/pipermail/python-list/2004-Decem
tDesigner in about 5 minutes, and it's layout is just how I want
> it!
Exactly the same for me. Qt is just a pure marvel. I hope this will not kill
wx though. We need diversity. It might very well be that wx gpl on windows
was one of the factor that made Troll decide to do the same with Qt
any knowledge of these issues. I
was just wondering if it did happen. Did some law court, over the past
decade, had to make a decision about GPL on some real issue ?
Thank you
Francis Girard
Le mardi 8 Février 2005 05:17, Robert Kern a écrit :
> Grant Edwards wrote:
> > Sorry if
re really wanted :
>>> map(list, zip(*[(1,4),(2,5),(3,6)]))
[[1, 2, 3], [4, 5, 6]]
Anyway, I find Diez solution brillant ! I'm always amazed to see how skilled a
programmer can get when comes the time to find a short and sweet solution.
One can admire that zip(*zip(*a_list_of_tupl
apparently
find their origin in is mind, probably comes from the desire to introduce
computers to children.
Francis Girard
Le mercredi 9 FÃvrier 2005 20:29, Grant Edwards a ÃcritÂ:
> On 2005-02-09, James <[EMAIL PROTECTED]> wrote:
> > Surely
> >
> > "Perl is anoth
Le jeudi 10 Février 2005 04:37, Arthur a écrit :
> On Wed, 9 Feb 2005 21:23:06 +0100, Francis Girard
>
> <[EMAIL PROTECTED]> wrote:
> >I love him.
>
> I don't.
>
> >It's also interesting to see GUIs with windows, mouse (etc.), which
> > apparent
Thank you.
Francis Girard
Le jeudi 10 FÃvrier 2005 02:48, Scott David Daniels a ÃcritÂ:
> Francis Girard wrote:
> > ...
> > It's also interesting to see GUIs with windows, mouse (etc.), which
> > apparently find their origin in is mind, probably comes from the desire
Le jeudi 10 Février 2005 19:47, PA a écrit :
> On Feb 10, 2005, at 19:43, Francis Girard wrote:
> > I think he's a bit nostalgic.
>
> Steve Wart about "why Smalltalk never caught on":
>
> http://hoho.dyndns.org/~holger/smalltalk.html
>
> C
Erik Johnson wrote:
I am wanting to generate dynamic graphs for our website and ...
>I am aware of ChartDirector (http://www.advsofteng.com/ ) which
I have used ChartDirector extensively as an activeX (not from
python though). We found the API to be well-though and clean.
The tool is definitely wor
Le vendredi 11 Février 2005 18:00, den a écrit :
> import msvcrt
> msvcrt.getch()
I frequently had the problem to have something similar but *portable*.
Something as short and simple.
Someone have an idea ?
Thank you
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
Le vendredi 11 FÃvrier 2005 21:45, Curt a ÃcritÂ:
> On 2005-02-10, Francis Girard <[EMAIL PROTECTED]> wrote:
> > I think I've been enthouasistic too fast. While reading the article I
> > grew more and more uncomfortable with sayings like :
>
>
>
> Yes, yo
this way, and has suggested that in Python
> 3.0, objects of unequal types will not have a default comparison.
>
> Probably this means ripping the end off of default_3way_compare and
> raising an exception. As Fredrik Lundh pointed out, they could, if they
> wanted to, also rip out the code that special-cases None too.
>
> Steve
Regards
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
r feelings about it ?
Regards
Francis Girard
BEGINNING OF EXAMPLES
from itertools import tee, imap, izip, islice
import sys
import traceback
sEx1Doc = \
"""
=
Le dimanche 13 Février 2005 19:05, Arthur a écrit :
> On Sun, 13 Feb 2005 18:48:03 +0100, Francis Girard >
>
> >My deepest apologies,
> >
> >Francis Girard
>
> Sorry if I helped get you into this, Francis.
>
No, no, don't worry. I really expressed my own
s to
slightly modify the way iteration is done. But I think I'm getting a bit too
severe here as I think that the compomise choice made by Python is very
acceptable.
Regards,
PS : I am carefully reading Micheal Spencer very interesting reply.
Thank you,
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
Mmm. This very much look like a homework from school. Right ?
Francis Girard
Le lundi 14 Février 2005 04:03, Chad Everett a écrit :
> Hey guys,
>
> Hope you can help me again with another problem. I am trying to learn
> Python on my own and need some help with the following.
>
&
or similar ones. I am particularly interested to hear
> > about any limitations or problems you ran into with whatever package you
> > are using.
> >
> > Thanks for taking the time to read my post! :)
>
> It's worth checking out matplotlib as well although it ma
earn a lot more trying to find your bugs that way. It
sometimes help to suffer a little. But, of course, I think you will always
find an helping hand if needed.
Regards
Francis Girard
Le lundi 14 FÃvrier 2005 21:58, Chad Everett a ÃcritÂ:
> Nope, I am trying to learn it on my own. I am using t
Le mardi 15 FÃvrier 2005 02:26, Terry Reedy a ÃcritÂ:
> "Francis Girard" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>
> (Note for oldtimer nitpickers: except where relevant, I intentionally
> ignore the old and now mostly obsolete pseudo-__getit
h well.
"""
for oMatch in reLn.finditer(sStr):
print oMatch.group()
=== END SNAP
Regards,
Francis Girard
Le vendredi 25 Février 2005 16:55, Jeremy Sanders a écrit :
> I have a large string containing lines of text separated by '\n'. I'm
> currently using text
? Can I return the sub-iterator itself and let the final
upper loop do the job ? But no, I absolutely have to 'yield'. What then ?"
Therefore, the suggestion you make, or something similar, would have actually
ease my learning, at least for me.
Regards,
Francis Girard
Le mar
snap
Furthermore, using list comprehension generator (2.4 only I think) and file
iterator, you can scan files as big as you want with very little memory
usage.
Regards,
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
sMatch(open("rewords.py"), "re", "return"):
sys.stdout.write(line)
=== End SNAP
Regards,
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
d be detected.
Hi,
A lexer producing a DFA like the one in pyggy (see
http://www.lava.net/~newsham/pyggy/) might be what you're looking for.
Regards,
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
This might even be faster since using re.search, we don't need to parse the
whole line.
Regards,
Francis Girard
=== BEGIN SNAP
## rewords.py
import re
import sys
def iWordsMatch(lines, word, word2):
reWordOneTwo = re.compile(r"((%s.*%s)|(%s.*%s))" %
Hi,
Le mardi 1 Mars 2005 22:15, [EMAIL PROTECTED] a écrit :
> Now I don't know this stuff very well but I dont think the code
>
> > [line for line in document if (line.find('word') != -1 \
> > and line.find('wordtwo') != -1)]
>
> would do this as it answers the question in how you thought
Hi,
No, this won't do. What is needed is a way to yield the results of a generator
from inside another generator with having to do a for-yield-loop inside the
outter generator.
Regards,
Francis Girard
Le mardi 1 Mars 2005 22:35, Adam Przybyla a ÃcritÂ:
> ... mayby that way:
Oops. I meant "without having" instead of "with having" which is a syntax
error.
Regards
Le mardi 1 Mars 2005 22:53, Francis Girard a ÃcritÂ:
> No, this won't do. What is needed is a way to yield the results of a
> generator from inside another generator wit
Le mercredi 2 Mars 2005 21:32, Skip Montanaro a écrit :
> def f():
> yield from (x for x in gen1(arg))
>
> Skip
This suggestion had been made in a previous posting and it has my preference :
def f():
yield from gen1(arg)
Regards
Francis
--
http://mail.python.org/mail
thout my
help, only specifying the encoding ?
Thank you
Francis Girard
Python tells me to use an encoding declaration at the top of my files (the
message is referring to http://www.python.org/peps/pep-0263.html).
I expected to see there a list of acceptable
--
http://mail.python.org/mai
UTF-32 ?
> > BOM_LE : UTF-8 only or UTF-8 and UTF-32 ?
>
> UTF-16
>
Ok.
> > Why should I need these constants if codecs decoder can handle them
> > without my help, only specifying the encoding ?
>
> Well, because the codecs don't. It might be useful to add a
> "utf-8-signature" codec some day, which generates the signature on
> encoding, and removes it on decoding.
>
Ok.
My sincere thanks,
Francis Girard
> Regards,
> Martin
--
http://mail.python.org/mailman/listinfo/python-list
g Python) to internally represent unicode strings as fixed 2 or 4
bytes per characters (UCS).
Thank you
Francis Girard
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
Thank you for your answer. That confirms what Martin v. LÃwis says. You can
choose between UCS-2 or UCS-4 for internal unicode representation.
Francis Girard
Le mardi 8 Mars 2005 00:44, Jeff Epler a ÃcritÂ:
> On Mon, Mar 07, 2005 at 11:56:57PM +0100, Francis Girard wrote:
> >
Do we need a special account or something to use the newsgroup instead
of the mailling list?
--
http://mail.python.org/mailman/listinfo/python-list
Egor Bolonev wrote:
On Sun, 12 Dec 2004 14:57:50 -0500, Francis Lavoie <[EMAIL PROTECTED]>
wrote:
Do we need a special account or something to use the newsgroup
instead of the mailling list?
why we use newsgroup instead of mailing list?
1. to keep my mail separated from the python disc
For other
> uses, plain Python code suffices in terms of speed, clarity, and avoiding
> unnecessary instantiation of empty containers:
>
> if key not in d:
> d.key = {subkey:value}
> else:
> d[key][subkey] = value
Much better than adding special cases on a
o spoken text must
first translate the text into phonems. Right ? Do you know if there some way
that I can re-use some sub-modules from these projects that will translate
text into phonems ?
Regards,
Francis Girard
Le dimanche 20 Mars 2005 04:40, Charles Hartman a écrit :
> Does anyone know
This is about poetry. I think the next reply should be done privately unless
someone else is interested in it.
Hi,
Le dimanche 20 Mars 2005 23:04, Paul Rubin a écrit :
> Francis Girard <[EMAIL PROTECTED]> writes:
> > 4- Propose a synonym that will fit in a verse, i.e. with t
Thankyou Francis Funari
Sent from Mail<http://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10
--
https://mail.python.org/mailman/listinfo/python-list
Hello,
My application is using gettext module to do the translation
stuff. Translated messages are unicode on both python 2 and
3 (with python2.7 I had to explicitely asked for unicode).
A problem arises when formatting those messages before logging
them. For example:
log.debug("%s: %s" % (hea
Hi,
On 11/20/2014 11:47 AM, Chris Angelico wrote:
> On Thu, Nov 20, 2014 at 8:40 PM, Francis Moreau
> wrote:
>> My question is: how should this be fixed properly ?
>>
>> A simple solution would be to force all strings passed to the
>> logger to be unico
On 11/20/2014 04:15 PM, Chris Angelico wrote:
> On Fri, Nov 21, 2014 at 1:14 AM, Francis Moreau
> wrote:
>> Hi,
>>
>> Thanks for the "from __future__ import unicode_literals" trick, it makes
>> that switch much less intrusive.
>>
>> However it
Hi,
In my understanding (I'm relatively new to python), I need to decode any
bytes data provided, in my case, by a shell command (such as findmnt)
started by the subprocess module. The goal of my application is to parse
the command outputs.
My application runs only on linux BTW and should run fin
On 03/04/2014 05:05 PM, Peter Otten wrote:
> Francis Moreau wrote:
>
>> Hi,
>>
>> In my understanding (I'm relatively new to python), I need to decode any
>> bytes data provided, in my case, by a shell command (such as findmnt)
>> started by the subprocess
Hello Patrick:
--- "Patrick M. Nielsen" <[EMAIL PROTECTED]> wrote:
> I had a similar problem, and Radix's threadless
> Twisted snippet proved to be
> a very viable solution
>
> Have a look at:
>
>http://twistedmatrix.com/trac/browser/sandbox/radix/threadless.py?rev=17407
Thanks for the advice.
I am looking for Stephan Eilert who was an exchange student from Germany
to the U.S. (Northern California) in the 1980's. Could you possibly be
one in the same?
Monica Erwin-Francis
--
http://mail.python.org/mailman/listinfo/python-list
Scheme is arguably the programming language with the most support for
recursion, including the most complete support for tail-call
optimization, constructs like "letrec" to define collections of
multiply-recursive functions (which get used very frequently -- by no
means is it an uncommon situation,
Hi,
I have an ISO-8859-1 file containing things like
"Hello\u000d\u000aWorld", i.e. the character '\', followed by the
character 'u' and then '0', etc.
What is the easiest way to automatically translate these codes into
unicode characters ?
Thank you
Thank you very much ! I didn't know about this 'unicode-escape'. That's
great!
Francis
2008/6/18 Duncan Booth <[EMAIL PROTECTED]>:
> "Francis Girard" <[EMAIL PROTECTED]> wrote:
>
> > I have an ISO-8859-1 file containing things like
> >
1 - 100 of 664 matches
Mail list logo