Re: local variable 'p' referenced before assignment

2019-09-08 Thread Pankaj Jangid
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

Re: local variable 'p' referenced before assignment

2019-09-08 Thread David
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-

local variable 'p' referenced before assignment

2019-09-08 Thread Pankaj Jangid
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

Re: fs package question - cp -p semantics when copying files?

2019-04-03 Thread Paul Moore
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

Re: fs package question - cp -p semantics when copying files?

2019-04-03 Thread Skip Montanaro
> 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.

Re: fs package question - cp -p semantics when copying files?

2019-04-03 Thread Paul Moore
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

Re: fs package question - cp -p semantics when copying files?

2019-04-03 Thread Skip Montanaro
> > 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

Re: fs package question - cp -p semantics when copying files?

2019-04-02 Thread DL Neil
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 package question - cp -p semantics when copying files?

2019-04-02 Thread Skip Montanaro
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

Re: subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread Henrik Bengtsson
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

Re: subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread INADA Naoki
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

subprocess.Popen(['/sbin/ldconfig', '-p'], stdin=PIPE) itself hangs/deadlocks (Linux)

2018-11-23 Thread Henrik Bengtsson
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

Re: P = (2^N) - Q

2018-09-24 Thread Lutz Horn
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

Re: P = (2^N) - Q

2018-09-24 Thread Musatov
Sometimes the simplest things... I am wondering about congruences/patterns in Q. -- https://mail.python.org/mailman/listinfo/python-list

Re: P = (2^N) - Q

2018-09-23 Thread MRAB
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

P = (2^N) - Q

2018-09-23 Thread Musatov
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

Re: Stopping an iterator and continuing later (Posting On Python-List P

2017-11-27 Thread november nihal
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

Re: Stopping an iterator and continuing later (Posting On Python-List P

2017-11-26 Thread november nihal
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

Re: Stopping an iterator and continuing later (Posting On Python-List P

2017-11-26 Thread november nihal
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

Re: INSTRUCTOR SOLUTIONS MANUAL Linear Systems And Signals 2nd ED by B P Lathi

2017-10-02 Thread Steve D'Aprano
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

Re: INSTRUCTOR SOLUTIONS MANUAL Linear Systems And Signals 2nd ED by B P Lathi

2017-10-02 Thread mosama221122
i need instructor of second edition of linear system and signals by lathi -- https://mail.python.org/mailman/listinfo/python-list

Case Solution: Royal FloraHolland The Dutch Floriculture Supply Chain by P. Fraser Johnson, Ken Mark

2017-07-23 Thread Case Solution & Analysis
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

RE: 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?

2017-01-20 Thread Deborah Swanson
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?

2017-01-19 Thread Ho Yeung Lee
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

Re: Usage of P(C)ython Logo for Coffee Mug

2015-08-03 Thread deus ex
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/ > >

Re: Usage of P(C)ython Logo for Coffee Mug

2015-07-29 Thread 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/ > > See Guidelines for Use near the bottom, which as an *ask first* link if in > doubt. Given that your coffee cup would be

Re: Usage of P(C)ython Logo for Coffee Mug

2015-07-29 Thread Terry Reedy
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

Re: Usage of P(C)ython Logo for Coffee Mug

2015-07-29 Thread Laura Creighton
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

Usage of P(C)ython Logo for Coffee Mug

2015-07-28 Thread deus ex
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

Re: Need opinions on P vs NP

2015-04-18 Thread Paddy
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

Re: Need opinions on P vs NP

2015-04-17 Thread Paddy
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

Re: Need opinions on P vs NP

2015-04-17 Thread Ian Kelly
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

Need opinions on P vs NP

2015-04-17 Thread Paddy
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

Re: What does (?P) pattern syntax do?

2014-11-10 Thread Ben Finney
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) pattern syntax do?

2014-11-10 Thread satishmlmlml
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

Automation P-I-D

2013-11-23 Thread Renato Barbosa Pim Pereira
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

Re: Lib to generate XML/JSON[P] output from a DTD/XSD/JSON Schema/etc

2013-02-14 Thread dieter
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.

Lib to generate XML/JSON[P] output from a DTD/XSD/JSON Schema/etc

2013-02-14 Thread Acácio Centeno
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

what does newP = func(code,p) do?

2012-05-16 Thread e-mail mgbg25171
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

Re: what does newP = func(code,p) do?

2012-05-16 Thread Ian Kelly
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

what does newP = func(code,p) do?

2012-05-16 Thread e-mail mgbg25171
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

Re: how to read o/p of telenet (python) ?!

2010-12-11 Thread MRAB
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

Re: how to read o/p of telenet (python) ?!

2010-12-11 Thread Ian Kelly
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

how to read o/p of telenet (python) ?!

2010-12-11 Thread Darshak Bavishi
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

2010-09-16 Thread superman
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

Re: MAKE UPTO $5000 P/M $2000 IN FIRST 30 DAYS! NO INV

2010-09-06 Thread wissem belguidoum
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

2010-09-05 Thread jameser
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

[Germany / München] Munich Python User Grou p Meeting this thursday!

2010-06-22 Thread Stefan Behnel
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

P= /V:P == 2P*V because fist '/V' is actually '/' divided by 'V'comp.language.python.brood of vipers! Look! I got it, Gus! I got it! Look: P= /V:P == 2P*V because fist '/V' is actually '/' div

2010-06-22 Thread sci.math
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 '/'

Black-Jewish History FAQ - Is The Secret Relationshi p between blacks and jews a “hate literature”?

2010-06-17 Thread nanothermite911fbibustards
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

Re: MODULE FOR I, P FRAME

2010-02-24 Thread DANNY
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

Re: MODULE FOR I, P FRAME

2010-02-23 Thread Rhodri James
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

Re: MODULE FOR I, P FRAME

2010-02-23 Thread DANNY
@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

Re: MODULE FOR I, P FRAME

2010-02-22 Thread Tim Roberts
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

Re: MODULE FOR I, P FRAME

2010-02-22 Thread Rhodri James
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

Re: MODULE FOR I, P FRAME

2010-02-22 Thread DANNY
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

Re: MODULE FOR I, P FRAME

2010-02-20 Thread Tim Roberts
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

Re: MODULE FOR I, P FRAME

2010-02-18 Thread Rhodri James
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

Re: MODULE FOR I, P FRAME

2010-02-18 Thread Tim Roberts
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

Re: MODULE FOR I, P FRAME

2010-02-15 Thread DANNY
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

Re: MODULE FOR I, P FRAME

2010-02-15 Thread Rhodri James
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'

Re: MODULE FOR I, P FRAME

2010-02-11 Thread Rhodri James
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

MODULE FOR I, P FRAME

2010-02-11 Thread DANNY
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

ANNOUNCE libmsgque 3.5, ANNOUNCE (P)rogramming (L)anguage (M)icro(K)ernel 1.0

2009-09-25 Thread Andreas Otto
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" "PAKISTANI NEWSPAPERS" "MAGAZINES ON LINE" "URDU LANGUAGE SOFTWARES" "URDU POETRY PAKISTAN" "PAKISTANI WEB SITE DIRECTOR" "PAKISTANI NEWSPAPERS" "PAKISTAN" "PAKISTAN" on www.pak-web-p

2009-08-03 Thread Riaz Ahmad
"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

Re: why o/p is different ???

2009-01-16 Thread Lie
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

Re: why o/p is different ???

2009-01-15 Thread asit
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

Re: why o/p is different ???

2009-01-14 Thread James Mills
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]

Re: why o/p is different ???

2009-01-14 Thread Pierre Bourdon
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 "

Re: why o/p is different ???

2009-01-14 Thread alex23
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

why o/p is different ???

2009-01-14 Thread asit
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("/")

Re: disable ctrl-P in idle?

2008-11-11 Thread timw.google
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: > >

Re: disable ctrl-P in idle?

2008-11-11 Thread timw.google
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

Re: disable ctrl-P in idle?

2008-11-10 Thread [EMAIL PROTECTED]
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

Re: disable ctrl-P in idle?

2008-11-10 Thread Robert Singer
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

Re: disable ctrl-P in idle?

2008-11-10 Thread Jorgen Grahn
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 >> >

Re: disable ctrl-P in idle?

2008-11-10 Thread [EMAIL PROTECTED]
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 &

Re: disable ctrl-P in idle?

2008-11-10 Thread timw.google
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

Re: disable ctrl-P in idle?

2008-11-10 Thread Robert Singer
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

Re: disable ctrl-P in idle?

2008-11-10 Thread Robert Singer
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

disable ctrl-P in idle?

2008-11-10 Thread timw.google
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

2008-07-17 Thread 14789
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

Re: ¡¶python in a nutshell¡·and¡¶programming p ython¡·

2008-06-18 Thread [EMAIL PROTECTED]
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

M'I.5'P ersecution Moles tation du ring Trave l

2007-12-31 Thread efvemimiv
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

Trial of Star-P for Python

2007-10-13 Thread n4somethingcompletelydifferent
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

Re: p & br using ElementTree?

2007-06-26 Thread Gabriel Genellina
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

Re: p & br using ElementTree?

2007-06-26 Thread Jan Danielsson
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

Re: p & br using ElementTree?

2007-06-26 Thread Robert Kern
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

p & br using ElementTree?

2007-06-26 Thread Jan Danielsson
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

Re: P: maticna graficka monitor

2007-03-20 Thread Gigs_
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

P: maticna graficka monitor

2007-03-20 Thread Gigs_
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

Star-P Anyone?

2006-12-19 Thread MohF1
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

Re: OT: p-gal website

2006-08-17 Thread John Bokma
"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

Re: OT: p-gal website

2006-08-17 Thread ajaksu
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

Re: OT: p-gal website

2006-08-14 Thread John Bokma
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

Re: OT: p-gal website

2006-08-14 Thread Gabriel Genellina
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

Re: OT: p-gal website

2006-08-14 Thread John Bokma
"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

OT: p-gal website

2006-08-14 Thread ajaksu
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. >

Re: p-gal: photo gallery generator with templating support

2006-08-14 Thread Paolo Pantaleo
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

Re: p-gal: photo gallery generator with templating support

2006-08-14 Thread ajaksu
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   2   >