David writes:
>
https://docs.python.org/3/faq/programming.html#what-are-the-rules-for-local-and-global-variables-in-python
>
> " If a variable is assigned a value anywhere within the function’s body,
> it’s assumed to be a local unless explicitly declared as global."
>
Coming with a baggage of
On Sun, 8 Sep 2019 at 19:55, Pankaj Jangid wrote:
>
> Why this code is giving local variable access error when I am accessing
> a global variable?
> p = 0
> def visit():
>m = 1
> if m > p:
>p = m
https://docs.python.org/3/faq/programming.html#what-
Why this code is giving local variable access error when I am accessing
a global variable?
p = 0
def visit():
m = 1
if m > p:
p = m
visit()
print(p)
If I change the variable assignment inside the function to q = m then it
works fine. Like this
p = 0
def visit():
m
On Wed, 3 Apr 2019 at 16:06, Skip Montanaro wrote:
>
> > From a brief look at the docs, there's an on_copy callback to copy_fs.
> > Maybe you could use the getinfo/setinfo methods to copy over the
> > timestamps and any other file metadata that you want in that callback?
>
> Yes, I had gotten to t
> From a brief look at the docs, there's an on_copy callback to copy_fs.
> Maybe you could use the getinfo/setinfo methods to copy over the
> timestamps and any other file metadata that you want in that callback?
Yes, I had gotten to that point when I first posted to the
PyFilesystem Google Group.
On Wed, 3 Apr 2019 at 14:55, Skip Montanaro wrote:
> It's part of a larger application which needs to copy files from a number
> of locations, not all of which are filesystems on local or remote hosts
> (think zip archives, s3 buckets, tar files, etc). In that application, I am
> using the fs pack
>
> Is there an (unstated) reason why you're using Python and not a system
> tool such as rsync?
>
It's part of a larger application which needs to copy files from a number
of locations, not all of which are filesystems on local or remote hosts
(think zip archives, s3 buckets, tar files, etc). In
ce to another. I see no
(easy) way to tell fs.copy.copy_fs to preserve file permissions when
copying files (the equivalent of the cp(1)'s -p flag). So, accessed,
created, modified times, as well as permissions. It seems I need to
craft a dictionary with only marginally documented structure, which
fs to preserve file permissions when
copying files (the equivalent of the cp(1)'s -p flag). So, accessed,
created, modified times, as well as permissions. It seems I need to
craft a dictionary with only marginally documented structure, which I
can then pass to the destination filesystem's
Ok, thanks. I've just created https://bugs.python.org/issue35305. /Henrik
On Fri, Nov 23, 2018 at 6:47 PM INADA Naoki wrote:
>
> Thank you for a very informative report.
>
> > PS. This is my first post to this list - please let me know if I
> > should send to another forum instead.
>
> Would you s
Thank you for a very informative report.
> PS. This is my first post to this list - please let me know if I
> should send to another forum instead.
Would you send this report to the issue tracker?
https://bugs.python.org/
--
INADA Naoki
--
https://mail.python.org/mailman/listinfo/python-list
I ran into an interesting problem where calling
`subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE)` hangs and
never returns.
$ python
Python 2.7.9 (default, Apr 23 2015, 22:07:47)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2
Type "help", "copyrigh
Hi,
> If P is the set of primes, how do I write a program ...
1. Do you plan to write this in Python?
2. What have you tried so far?
3. Does it work?
Lutz
--
https://mail.python.org/mailman/listinfo/python-list
Sometimes the simplest things...
I am wondering about congruences/patterns in Q.
--
https://mail.python.org/mailman/listinfo/python-list
On 2018-09-23 19:59, Musatov wrote:
If P is the set of primes, how do I write a program outputting the values of Q
as an integer sequence with 1 integer of Q for each N?
Let the first prime be P1
P1=2
so if
N=0, Q=-1
as
2=(2^0) - (-1)
Let the second prime be P2
P2=3
so if
N=1, Q=-1
as
3=(2
If P is the set of primes, how do I write a program outputting the values of Q
as an integer sequence with 1 integer of Q for each N?
Let the first prime be P1
P1=2
so if
N=0, Q=-1
as
2=(2^0) - (-1)
Let the second prime be P2
P2=3
so if
N=1, Q=-1
as
3=(2^1) - (-1)
Let the third prime be P3
On Saturday, 25 November 2017 20:59:02 UTC, Lawrence Dâ ÖOliveiro wrote:
> On Sunday, November 26, 2017 at 6:43:05 AM UTC+13, novembe...@gmail.com
wrote:
> > I worked out how to use iterators to generate values one at a time
> > then ran into a second problem which is time. Is it possible to
> > s
On Saturday, 25 November 2017 20:59:02 UTC, Lawrence Dâ ÖOliveiro wrote:
> On Sunday, November 26, 2017 at 6:43:05 AM UTC+13, novembe...@gmail.com
wrote:
> > I worked out how to use iterators to generate values one at a time
> > then ran into a second problem which is time. Is it possible to
> > s
On Saturday, 25 November 2017 20:59:02 UTC, Lawrence Dâ ÖOliveiro wrote:
> On Sunday, November 26, 2017 at 6:43:05 AM UTC+13, novembe...@gmail.com
wrote:
> > I worked out how to use iterators to generate values one at a time
> > then ran into a second problem which is time. Is it possible to
> > s
On Tue, 3 Oct 2017 12:54 pm, mosama221...@gmail.com wrote:
> i need instructor of second edition of linear system and signals by lathi
Don't reply to spammers and don't reply to them. They are the scum of the earth.
They are literally criminals, they use computer viruses and malware to hijack
pe
i need instructor of second edition of linear system and signals by lathi
--
https://mail.python.org/mailman/listinfo/python-list
Case Solution and Analysis of Royal FloraHolland: The Dutch Floriculture Supply
Chain by P. Fraser Johnson, Ken Mark is available at a lowest price, send email
to casesolutionscentre(at)gmail(dot)com if you want to order the Case Solution.
Case Study ID: 9B16D015 / W16377
Get Case Study
Ho Yeung Lee wrote, on January 19, 2017 12:05 AM
>
> Must target be only one bit one such as 0001,0010,0100,1000
> In supervised neural learning f(w*p+b) with perceptron rule w
> = w + e for linear case?
>
> with neural network design
>
> does it means that can no
Must target be only one bit one such as 0001,0010,0100,1000 In supervised
neural learning f(w*p+b) with perceptron rule w = w + e for linear case?
with neural network design
does it means that can not use two or more one as target such as
0011,0110,1100,1010, 0111,1110,1101, etc when training
Ok great thanks for help, so for non-commercial use it looks ok!
Dex
2015-07-29 21:36 GMT+02:00 Zachary Ware :
> On Wed, Jul 29, 2015 at 2:01 PM, Terry Reedy wrote:
> > On 7/29/2015 11:55 AM, Laura Creighton wrote:
> >> We have SVG versions here:
> >> https://www.python.org/community/logos/
> >
On Wed, Jul 29, 2015 at 2:01 PM, Terry Reedy wrote:
> On 7/29/2015 11:55 AM, Laura Creighton wrote:
>> We have SVG versions here:
>> https://www.python.org/community/logos/
>
> See Guidelines for Use near the bottom, which as an *ask first* link if in
> doubt. Given that your coffee cup would be
On 7/29/2015 11:55 AM, Laura Creighton wrote:
In a message of Mon, 27 Jul 2015 23:16:26 +0200, deus ex writes:
Dear sirs or madam,
I would like to let produce a p(c)ython coffee mug for myself for
non-commerical use. Am I allowed to use your designed logo like:
https://www.python.org/static
In a message of Mon, 27 Jul 2015 23:16:26 +0200, deus ex writes:
>Dear sirs or madam,
>
>I would like to let produce a p(c)ython coffee mug for myself for
>non-commerical use. Am I allowed to use your designed logo like:
>
>https://www.python.org/static/community_logos/pytho
Dear sirs or madam,
I would like to let produce a p(c)ython coffee mug for myself for
non-commerical use. Am I allowed to use your designed logo like:
https://www.python.org/static/community_logos/python-logo-generic.svg
https://upload.wikimedia.org/wikipedia/de/thumb/c/ce/Cython-logo.svg/640px
On Saturday, 18 April 2015 08:09:06 UTC+1, wxjm...@gmail.com wrote:
> Le samedi 18 avril 2015 03:19:40 UTC+2, Paddy a écrit :
> > Having just seen Raymond's talk on Beyond PEP-8 here:
> > https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own
> > recent post where I am soliciting
On Saturday, 18 April 2015 03:34:57 UTC+1, Ian wrote:
> On Fri, Apr 17, 2015 at 7:19 PM, Paddy wrote:
> > Having just seen Raymond's talk on Beyond PEP-8 here:
> > https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own
> > recent post where I am soliciting opinions from non-newbi
On Fri, Apr 17, 2015 at 7:19 PM, Paddy wrote:
> Having just seen Raymond's talk on Beyond PEP-8 here:
> https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own recent
> post where I am soliciting opinions from non-newbies on the relative
> Pythonicity of different versions of a ro
Having just seen Raymond's talk on Beyond PEP-8 here:
https://www.youtube.com/watch?v=wf-BqAjZb8M, it reminded me of my own recent
post where I am soliciting opinions from non-newbies on the relative
Pythonicity of different versions of a routine that has non-simple array
manipulations.
The bl
satishmlm...@gmail.com writes:
> What does ?P and match in the following piece of code?
Learn about Python's regular expression features from the documentation
https://docs.python.org/3/library/re.html>.
Experiment with regular expressions using online tools such as
https:/
What does ?P and match in the following piece of code?
re.search('(?P\w*)/(?P\w*)', '...aaa/bbb/ccc]').groups()
--
https://mail.python.org/mailman/listinfo/python-list
I mentioned some time ago about a program to calculate PID constants for
tuning controllers, follow the link to its online version algorithm for
anyone interested http://pastebin.com/wAqZmVnR
I thank you for the help I received from many here on the list. ;D
--
https://mail.python.org/mailman/list
Acácio Centeno writes:
> Hi, I've searched both this group and the web but was unable to find an
> answer, sorry if it has already been answered, it seems such a common problem
> that I am sure someone has asked before.
>
> We have a WebServices platform that must reply in XML, JSON, or JSONP.
Hi, I've searched both this group and the web but was unable to find an answer,
sorry if it has already been answered, it seems such a common problem that I’m
sure someone has asked before.
We have a WebServices platform that must reply in XML, JSON, or JSONP. Having
to convert between these fo
It's been a long time since I did any Python and I've never done that
In C I'm used to storing function ptrs and then having to use some other
constructs to call them.
To be able to store func and then use func to call itself like that threw
me...it's very elegant.
Thank you very much for your very
On Wed, May 16, 2012 at 8:08 AM, e-mail mgbg25171
wrote:
> def execute (code) :
> p = 0
> while p < len(code) :
> func = code[p]
> p += 1
> newP = func(code,p)
> if newP != None :
> p = newP
>
> I'm trying t
def execute (code) :
p = 0
while p < len(code) :
func = code[p]
p += 1
newP = func(code,p)
if newP != None :
p = newP
I'm trying to work out what this does
code is a list of function addresses and numbers
What on earth is func
On 11/12/2010 17:44, Ian Kelly wrote:
On 12/11/2010 4:20 AM, Darshak Bavishi wrote:
i have code to telnet remote machine (unix)
i am using port 5400 to telnet but o/p is not in visible format when i
run random commands or run
What is "o/p"?
[snip]
"o/p" is an abbreviati
On 12/11/2010 4:20 AM, Darshak Bavishi wrote:
i have code to telnet remote machine (unix)
i am using port 5400 to telnet but o/p is not in visible format when i
run random commands or run
What is "o/p"?
when i give as read_some() it displays some lines but in case of
read_all() it
hi experts ,
i have code to telnet remote machine (unix)
i am using port 5400 to telnet but o/p is not in visible format when i run
random commands or run
when i give as read_some() it displays some lines but in case of read_all()
it gets hang !!
In actual i want to get some string from o/p and
MAKE UPTO $5000 P/M $2000 IN FIRST 30 DAYS! NO INVESTMENT
Generate $50 to $100 whenever you
have a couple of hours free time to spare.
You could make $50 or more in the next 2 hours.
Starting right Now!Today!
http://snipurl.com/11i6lw
GET PAID TO:
Take online surveys and make from $5 to $75, or
On 6 sep, 06:26, jameser wrote:
> MAKE UPTO $5000 P/M $2000 IN FIRST 30 DAYS! NO INV
>
> Generate $50 to $100 whenever you
> have a couple of hours free time to spare.
> You could make $50 or more in the next 2 hours.
> Starting right Now!Today!
>
> GET PAID TO:
> T
MAKE UPTO $5000 P/M $2000 IN FIRST 30 DAYS! NO INV
Generate $50 to $100 whenever you
have a couple of hours free time to spare.
You could make $50 or more in the next 2 hours.
Starting right Now!Today!
GET PAID TO:
Take online surveys and make from $5 to $75, or more
Participate in focus groups
Hi,
sorry for choosing this forum for a regional announcement - just hoping to
attract some local users who don't read the local mailing list.
After a while of silence, there will be a meeting of the µPy (Münchner
Python User Group) this thursday (June 24th).
See here for further informatio
I got it, Gus! I got it! Look: P= /V:P == 2P*V because fist '/V' is
actually '/' divided by 'V' P= /V:P == 2P*V because fist '/V' is
actually '/' divided by 'V' P= /V:P == 2P*V because fist '/V' is
actually '/'
http://www.blacksandjews.com/JewsBlackHolocaust.html
Blacks and Jews have been involved in a re-evaluation of their current
and historical relationship. Events of the past several years have
raised both tensions and the level of rhetoric coming from all sides.
The Secret Relationship Between Black
On Feb 24, 3:11 am, "Rhodri James"
wrote:
> On Tue, 23 Feb 2010 10:39:21 -, DANNY wrote:
> > @James I am thinkinhg about effect of errors that are within the
> > sequence of P frames. Where the P frames have only the information
> > about the changes in prev
On Tue, 23 Feb 2010 10:39:21 -, DANNY wrote:
@James I am thinkinhg about effect of errors that are within the
sequence of P frames. Where the P frames have only the information
about the changes in previous frames, so that errors are present until
the next I frame. So I would like to see
@James I am thinkinhg about effect of errors that are within the
sequence of P frames. Where the P frames have only the information
about the changes in previous frames, so that errors are present until
the next I frame. So I would like to see how is this seen in different
GoP sized clips.
@Tim
ifferent GoP sizes. I would manipuleta the received clip just
>in the way that (if there are too many errors) I would
>stop displaying untill the next I frame.I cant find a way to do
>thatis there a way?
Sure. You can do a partial decode yourself, scan for the start of frame
ma
On Mon, 22 Feb 2010 10:48:55 -, DANNY wrote:
On Feb 21, 1:54 am, Tim Roberts wrote:
DANNY wrote:
>If I want to have a MPEG-4/10 coded video and stream it through the
>network and than have the same video on the client side, what should I
>use and of course I don't want to have raw MPEG
On Feb 21, 1:54 am, Tim Roberts wrote:
> DANNY wrote:
>
> >If I want to have a MPEG-4/10 coded video and stream it through the
> >network and than have the same video on the client side, what should I
> >use and of course I don't want to have raw MPEG data, because than I
> >couldn't extract the
DANNY wrote:
>
>If I want to have a MPEG-4/10 coded video and stream it through the
>network and than have the same video on the client side, what should I
>use and of course I don't want to have raw MPEG data, because than I
>couldn't extract the frames to manipulate them.
If you want to manipul
On Thu, 18 Feb 2010 09:50:14 -, DANNY wrote:
If I want to have a MPEG-4/10 coded video and stream it through the
network and than have the same video on the client side, what should I
use and of course I don't want to have raw MPEG data, because than I
couldn't extract the frames to manipul
pyffmpeg
>http://code.google.com/p/pyffmpeg/ and just manipulate frames in that
>clip-I think that could be possibleam I right?
After you have passed the video through a decoder, it's no longer in MPEG
format at all. It's just a series of bitmaps, so pyffmpeg wouldn't apply.
I
py on this machine to check), but that will take
> up ludicrous amounts of disc space and you'd still have to write a byte
> reader for it. If you do do that, you have lost any chance of knowing
> whether a frame was an I or P frame in the original format, not that it
> matters
reader for it. If you do do that, you have lost any chance of knowing
whether a frame was an I or P frame in the original format, not that it
matters anyway by that point.
MPEG-4/10 is hard to write efficient decoders for, and I have to admit I
wouldn't do it in Python. You'
On Thu, 11 Feb 2010 19:31:52 -, DANNY wrote:
Hello!
I am currently developing a simple video player in python, and my
problem is that i can't find a module which has a function that can
determine if frame(image) is I or P coded (MPEG coding). I have been
using PIL but I couldnt
Hello!
I am currently developing a simple video player in python, and my
problem is that i can't find a module which has a function that can
determine if frame(image) is I or P coded (MPEG coding). I have been
using PIL but I couldnt find anything that could help me with that
problem.
Thank
Dear Users;
this is the ANNOUNCEMENT of:
libmsgque 3.5
and the *first* public ANNOUNCEMENT of the:
(P)rogramming (L)anguage (M)icro(K)ernel 1.0
libmsgque 3.5
=
LibMsgque is an OS independent, programming language independent,
and hardware
"PAKISTAN NEWS"
www.pak-web-pages.blogspot.com
"PAKISTANI NEWSPAPERS"
www.pak-web-pages.blogspot.com
"MAGAZINES ON LINE"
www.pak-web-pages.blogspot.com
"URDU LANGUAGE SOFTWARES"
www.pak-web-pages.blogspot.com
"URDU POETRY PAKISTAN"
www.pak-web-pages.blogspot.com
"PAKISTANI WEB
On Jan 15, 1:34 pm, asit wrote:
> I recently faced a peculiar o/p.
>
> My objective is to remove the command name(my script name) from
> sys.argv[0].
> I coded like this
>
> import urllib
> import sys
>
> print "\n\n\t\tlipun4u[at]gmail[dot]com"
> print
On Jan 15, 11:47 am, "James Mills"
wrote:
> On Thu, Jan 15, 2009 at 4:34 PM, asit wrote:
> > I recently faced a peculiar o/p.
>
> > My objective is to remove the command name(my script name) from
> > sys.argv[0].
> > I coded like this
>
> If you
On Thu, Jan 15, 2009 at 4:34 PM, asit wrote:
> I recently faced a peculiar o/p.
>
> My objective is to remove the command name(my script name) from
> sys.argv[0].
> I coded like this
If you _really_ want to remove your script_name from
sys.argv, then do this:
del sys.argv[0]
4 AM, asit wrote:
> I recently faced a peculiar o/p.
>
> My objective is to remove the command name(my script name) from
> sys.argv[0].
> I coded like this
>
> import urllib
> import sys
>
>
> print "\n\n\t\tlipun4u[at]gmail[dot]com"
> print "
On Jan 15, 4:34 pm, asit wrote:
> apppath = sys.argv[0].split("/")
> appname = apppath[len(apppath)-1]
I'd replace these two lines with the following:
import os.path # at the top of the file, of course
appname = os.path.basename(sys.argv[0])
Also note that you can use negative indices in li
I recently faced a peculiar o/p.
My objective is to remove the command name(my script name) from
sys.argv[0].
I coded like this
import urllib
import sys
print "\n\n\t\tlipun4u[at]gmail[dot]com"
print "\t\t"
apppath = sys.argv[0].split("/")
On Nov 10, 10:35 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> On Nov 10, 4:49 pm, RichardT <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
>
> > <[EMAIL PROTECTED]> wrote:
> >
v 2008 20:56:46 +0100, Robert Singer <[EMAIL PROTECTED]>
> > > wrote:
>
> > > >On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
> > > ><[EMAIL PROTECTED]> wrote:
>
> > > >>Is there a way to disable ctrl-P (print window) in I
On Nov 10, 4:49 pm, RichardT <[EMAIL PROTECTED]> wrote:
> On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
>
> <[EMAIL PROTECTED]> wrote:
> >Is there a way to disable ctrl-P (print window) in IDLE? I'm editing
> >some python code in IDLE and
On Mon, 10 Nov 2008 12:27:22 -0800 (PST), "timw.google"
<[EMAIL PROTECTED]> wrote:
>
>Thanks. I on a XP box now, and it's a pain to get things installed
>here. That's why I'm not using emacs. When I'm on Linux, I use emacs.
>It's not worth the trouble to install something else for just this.
Actu
On Mon, 10 Nov 2008 13:53:40 -0800 (PST), [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:
> On Nov 10, 3:27 pm, "timw.google" <[EMAIL PROTECTED]> wrote:
>> On Nov 10, 2:57 pm, Robert Singer <[EMAIL PROTECTED]> wrote:
...
>> > Or, you can just continue using emacs. I'm using vim, and can't think
>> >
on, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
> > ><[EMAIL PROTECTED]> wrote:
>
> > >>Is there a way to disable ctrl-P (print window) in IDLE? I'm editing
> > >>some python code in IDLE and I keep hitting this by mistake from my
&
On Nov 10, 2:57 pm, Robert Singer <[EMAIL PROTECTED]> wrote:
> On Mon, 10 Nov 2008 20:56:46 +0100, Robert Singer <[EMAIL PROTECTED]>
> wrote:
>
> >On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
> ><[EMAIL PROTECTED]> wrote:
>
> &g
On Mon, 10 Nov 2008 20:56:46 +0100, Robert Singer <[EMAIL PROTECTED]>
wrote:
>On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
><[EMAIL PROTECTED]> wrote:
>
>>Is there a way to disable ctrl-P (print window) in IDLE? I'm editing
>>some python
On Mon, 10 Nov 2008 10:40:28 -0800 (PST), "timw.google"
<[EMAIL PROTECTED]> wrote:
>Is there a way to disable ctrl-P (print window) in IDLE? I'm editing
>some python code in IDLE and I keep hitting this by mistake from my
>years of emacs editing.
>
>Thanks in
Is there a way to disable ctrl-P (print window) in IDLE? I'm editing
some python code in IDLE and I keep hitting this by mistake from my
years of emacs editing.
Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
wholesale p u m a sneaker(paypal accept)(www goodsaler
com)paypal
wholesale p u m a sneaker(paypal accept)(www goodsaler
com)paypal
wholesale p u m a sneaker(paypal accept)(www goodsaler
com)paypal
wholesale p u m a sneaker(paypal accept)(www goodsaler
com)paypal
wholesale p u m a sneaker(paypal
Learning Python may be another good choice. But really, for just
starting out, nothing beats online documentation.
http://docs.python.org/tut/tut.html
http://diveintopython.org/
On Jun 18, 9:02Â pm, "yps" <[EMAIL PROTECTED]> wrote:
> as a new learner of python,which book in and
> is more suitab
MI5 Persecution:. Molestation during Travel
MI5s persecution of me varies in intensity. Since 1990 it has. been steady
for perhaps 80% of the time; there was. a notable quiet period in 1993, and
another quiet period in Jan-Feb 1995, as. well as a hiatus in the first two
months of 1999. It puzzles
In browsing their website, I noticed that Interactive Supercomputing
has made available a free evaluation copy of Star-P for Python (http://
www.interactivesupercomputing.com/products/starpandpython.php). I
know its a fairly new product, but has anyone on here been able to try
it out yet, and if
xt blocks,
> as far as I can tell?
No, the date string goes into br's tail:
py> import xml.etree.ElementTree as ET
py> p=ET.fromstring
py> p=ET.fromstring("Current date:2000-01-01")
py> p
py> p.text
'Current date:'
py> p.tail
py> p[0]
py&g
Robert Kern wrote:
[---]
>> Current date:2000-01-01
[---]
> Use the .tail attribute on the br element:
>
> In [1]: from xml.etree import ElementTree as ET
>
> In [4]: p = ET.Element('p')
>
> In [5]: p.text = 'Current date:'
>
> In [6]: br
e .tail attribute on the br element:
In [1]: from xml.etree import ElementTree as ET
In [4]: p = ET.Element('p')
In [5]: p.text = 'Current date:'
In [6]: br = ET.SubElement(p, 'br')
In [7]: br.tail = '2000-01-01'
In [8]: ET.dump(p)
Current date:2000-01-0
Hello all,
This is probably a mind numbingly brain dead question.. But how do I
generate the following:
Current date:2000-01-01
..using ElementTree? The element kind of needs two text blocks,
as far as I can tell?
--
Kind regards,
Jan Danielsson
--
http://mail.python.org/mailman/listin
Gigs_ wrote:
> prodajem:
>
> maticnu sapphire am2rd580adv, pola god stara, pod garancijom -> 700kn
>
> graficku sapphire x1650 pro 256 mb pola god start pod garancijom -> 600kn
>
> monitor philips 190p6es brilliance (kostao 4.100), star 1.5 godinu
> garancija vrijedi jos 1.5 godinu -> 2000kn
prodajem:
maticnu sapphire am2rd580adv, pola god stara, pod garancijom -> 700kn
graficku sapphire x1650 pro 256 mb pola god start pod garancijom -> 600kn
monitor philips 190p6es brilliance (kostao 4.100), star 1.5 godinu
garancija vrijedi jos 1.5 godinu -> 2000kn
--
http://mail.python.org/mail
computers. The problem is,
it takes forever to parallelize code and as such many people are
uninterested in running their simulations, models, etc. on a parallel
platform. If one were to use the Star-P platform they could be using
their desktop client (MATLAB, Maple, R, Python, etc.) and the Star-P
"ajaksu" <[EMAIL PROTECTED]> wrote:
> And to answer your question, I recommend to follow standards because
> that's how I call the mixed bag of Recommendations, some of which are
> also Specifications, allowing for the inclusion of both significant
> Standards and standards. I guess I must've been
John Bokma wrote:
> "ajaksu" <[EMAIL PROTECTED]> wrote:
>
> > Don't :)
> > Even Firefox developers will tell you to avoid this. Develop for
> > standards compliant browsers (including Firefox) by testing against
> > the standards. Neither your HTML or CSS pass validation, both due to
> > minor, eas
Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Monday 14/8/2006 18:45, John Bokma wrote:
>
>> > Even Firefox developers will tell you to avoid this. Develop for
>> > standards compliant browsers (including Firefox) by testing against
>> > the standards. Neither your HTML or CSS pass validation
At Monday 14/8/2006 18:45, John Bokma wrote:
> Even Firefox developers will tell you to avoid this. Develop for
> standards compliant browsers (including Firefox) by testing against
> the standards. Neither your HTML or CSS pass validation, both due to
> minor, easy-to-fix issues.
If you actual
"ajaksu" <[EMAIL PROTECTED]> wrote:
> Don't :)
> Even Firefox developers will tell you to avoid this. Develop for
> standards compliant browsers (including Firefox) by testing against
> the standards. Neither your HTML or CSS pass validation, both due to
> minor, easy-to-fix issues.
If you actual
Sorry for the OT post...
Paolo Pantaleo wrote:
> 14 Aug 2006 10:16:37 -0700, ajaksu <[EMAIL PROTECTED]>:
> > The homepage (http://paolopan.freehostia.com/p-gal/ ) looks weird in my
> > SeaMonkey 1.0.4, contents appear below GoogleAds instead of at the
> > right.
>
14 Aug 2006 10:16:37 -0700, ajaksu <[EMAIL PROTECTED]>:
> Paolo Pantaleo wrote:
> > www.sf.net/projects/ppgal
>
> Ciao Paolo!
>
> The homepage (http://paolopan.freehostia.com/p-gal/ ) looks weird in my
> SeaMonkey 1.0.4, contents appear below GoogleAds instead
Paolo Pantaleo wrote:
> www.sf.net/projects/ppgal
Ciao Paolo!
The homepage (http://paolopan.freehostia.com/p-gal/ ) looks weird in my
SeaMonkey 1.0.4, contents appear below GoogleAds instead of at the
right.
Some feedback and a couple of questions at http://tinyurl.com/qgbth
(points to
h
1 - 100 of 179 matches
Mail list logo