Re: Question about Source Control

2014-03-18 Thread Tim Chase
On 2014-03-18 21:38, Terry Reedy wrote: At least with hg, one should best test the code in the working directory *before* committing to the local repository. I don't know if this is a hg-vs-git way of thinking, but I tend to frequently commit things on a private development branch regardless

Re: Question about Source Control

2014-03-18 Thread Chris Angelico
On Wed, Mar 19, 2014 at 1:12 PM, Tim Chase python.l...@tim.thechases.com wrote: On 2014-03-18 21:38, Terry Reedy wrote: At least with hg, one should best test the code in the working directory *before* committing to the local repository. I don't know if this is a hg-vs-git way of thinking,

Re: Question about Source Control

2014-03-17 Thread Andriy Kornatskyy
Frank, I would suggest start with an account on https://bitbucket.org. It supports private repositories so you should be good there. From other hand you can setup own infrastructure for SCM, read more here: http://mindref.blogspot.com/2013/10/how-to-manage-git-or-mercurial.html Thanks.

Re: Question about Source Control

2014-03-17 Thread Chris Angelico
On Tue, Mar 18, 2014 at 12:06 AM, Frank Millman fr...@chagford.com wrote: All my source code resides on an old Linux server, which I switch on in the morning and switch off at night, but otherwise hardly ever look at. It uses 'samba' to allow sharing with Windows, and 'nfs' to allow sharing

Re: Question about Source Control

2014-03-17 Thread Frank Millman
Chris Angelico ros...@gmail.com wrote in message news:CAPTjJmqPca5cnNWu8T5BZhpH665X0=mrf7bjalqvrqvmjzw...@mail.gmail.com... On Tue, Mar 18, 2014 at 12:06 AM, Frank Millman fr...@chagford.com wrote: [...] So where should I install the SCM, and how should I set it up so that I can access

Re: Question on using FP numbers in python 2

2014-02-15 Thread Steven D'Aprano
On Sat, 15 Feb 2014 00:07:49 -0500, Gene Heskett wrote: Can you extract the float calculations and show us, together with some sample data, expected result, and actual result? Not extract, but let you get look at the code, its the top entry on this page:

Re: Question on using FP numbers in python 2

2014-02-15 Thread Gene Heskett
On Saturday 15 February 2014 12:13:42 Steven D'Aprano did opine: On Sat, 15 Feb 2014 00:07:49 -0500, Gene Heskett wrote: Can you extract the float calculations and show us, together with some sample data, expected result, and actual result? Not extract, but let you get look at the

Re: Question on using FP numbers in python 2

2014-02-14 Thread Chris Angelico
On Sat, Feb 15, 2014 at 2:25 PM, Gene Heskett ghesk...@wdtv.com wrote: Is there something I can search for and fix in some python code that is giving me bogus answers that get good only when there is a valid digit to the left of the decimal point? Interesting. I'd look for anything that mixes

Re: Question on using FP numbers in python 2

2014-02-14 Thread Steven D'Aprano
On Fri, 14 Feb 2014 22:25:59 -0500, Gene Heskett wrote: Greetings; Is there something I can search for and fix in some python code that is giving me bogus answers that get good only when there is a valid digit to the left of the decimal point? Er, yes? Anything which involves floating

Re: Question on using FP numbers in python 2

2014-02-14 Thread Grant Edwards
On 2014-02-15, Gene Heskett ghesk...@wdtv.com wrote: Is there something I can search for and fix in some python code that is giving me bogus answers that get good only when there is a valid digit to the left of the decimal point? Yes. Search for incorrectly written code and fix it. I'd

Re: Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
On Friday 14 February 2014 23:37:53 Chris Angelico did opine: On Sat, Feb 15, 2014 at 2:25 PM, Gene Heskett ghesk...@wdtv.com wrote: Is there something I can search for and fix in some python code that is giving me bogus answers that get good only when there is a valid digit to the left of

Re: Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
On Friday 14 February 2014 23:47:26 Steven D'Aprano did opine: On Fri, 14 Feb 2014 22:25:59 -0500, Gene Heskett wrote: Greetings; Is there something I can search for and fix in some python code that is giving me bogus answers that get good only when there is a valid digit to the left

Re: Question on using FP numbers in python 2

2014-02-14 Thread Chris Angelico
On Sat, Feb 15, 2014 at 4:07 PM, Gene Heskett ghesk...@wdtv.com wrote: Not extract, but let you get look at the code, its the top entry on this page: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_LinuxCNC_G- Code_Generators#Counterbore_Software Interesting. At the top of the file, it says

Re: Question on using FP numbers in python 2

2014-02-14 Thread Gene Heskett
On Saturday 15 February 2014 00:43:53 Chris Angelico did opine: On Sat, Feb 15, 2014 at 4:07 PM, Gene Heskett ghesk...@wdtv.com wrote: Not extract, but let you get look at the code, its the top entry on this page: http://wiki.linuxcnc.org/cgi-bin/wiki.pl?Simple_LinuxCNC_G-

Re: Question on using FP numbers in python 2

2014-02-14 Thread Chris Angelico
On Sat, Feb 15, 2014 at 4:50 PM, Gene Heskett ghesk...@wdtv.com wrote: I'm afraid I can't really help more, as I don't speak CNC. Actually, the output is RS-274-D, originally from NIST. But it has developed some pretty distinct accents in the 20 some years its been in the wild. The NIST

Re: Question about `list.insert`

2014-02-07 Thread Peter Otten
cool-RR wrote: I'm curious. If I append an item to a list from the left using `list.insert`, will Python always move the entire list one item to the right (which can be super-slow) or will it check first to see whether it can just allocate more memory to the left of the list and put the item

Re: Question about `list.insert`

2014-02-06 Thread Terry Reedy
On 2/6/2014 6:59 PM, cool-RR wrote: Hi, I'm curious. If I append an item to a list from the left using `list.insert`, will Python always move the entire list one item to the right (which can be super-slow) or will it check first to see whether it can just allocate more memory to the left of the

Re: Question about `list.insert`

2014-02-06 Thread MRAB
On 2014-02-06 23:59, cool-RR wrote: Hi, I'm curious. If I append an item to a list from the left using `list.insert`, will Python always move the entire list one item to the right (which can be super-slow) or will it check first to see whether it can just allocate more memory to the left of the

Re: Question about `list.insert`

2014-02-06 Thread Asaf Las
On Friday, February 7, 2014 5:00:56 AM UTC+2, Roy Smith wrote: In article mai@python.org, Dave Angel wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better than O(1) behavior for any operations. Perhaps

Re: Question about `list.insert`

2014-02-06 Thread Rustom Mody
On Friday, February 7, 2014 8:44:43 AM UTC+5:30, Chris Angelico wrote: On Fri, Feb 7, 2014 at 2:00 PM, Roy Smith wrote: Dave Angel wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better than O(1) behavior

Re: Question about `list.insert`

2014-02-06 Thread Rustom Mody
On Friday, February 7, 2014 8:30:56 AM UTC+5:30, Roy Smith wrote: Dave Angel wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better than O(1) behavior for any operations. Perhaps there is O(j), where you

Re: Question about `list.insert`

2014-02-06 Thread Chris Angelico
On Fri, Feb 7, 2014 at 2:00 PM, Roy Smith r...@panix.com wrote: In article mailman.6471.1391741496.18130.python-l...@python.org, Dave Angel da...@davea.name wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises

Re: Question about `list.insert`

2014-02-06 Thread Chris Angelico
On Fri, Feb 7, 2014 at 2:29 PM, Rustom Mody rustompm...@gmail.com wrote: On Friday, February 7, 2014 8:44:43 AM UTC+5:30, Chris Angelico wrote: On Fri, Feb 7, 2014 at 2:00 PM, Roy Smith wrote: Dave Angel wrote: list does not promise better than O(1) behavior I'm not aware of any list

Re: Question about `list.insert`

2014-02-06 Thread Gregory Ewing
Roy Smith wrote: O(-1). In Soviet Russia, operation performs you! It's rumoured that the PSU is developing a time machine module that can achieve O(-n), but -- https://mail.python.org/mailman/listinfo/python-list

Re: Question about `list.insert`

2014-02-06 Thread Chris Angelico
On Fri, Feb 7, 2014 at 2:11 PM, Tim Chase python.l...@tim.thechases.com wrote: On 2014-02-06 22:00, Roy Smith wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better than O(1) behavior for any operations.

Re: Question about `list.insert`

2014-02-06 Thread Roy Smith
In article mailman.6472.1391742656.18130.python-l...@python.org, Tim Chase python.l...@tim.thechases.com wrote: On 2014-02-06 22:00, Roy Smith wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better

Re: Question about `list.insert`

2014-02-06 Thread Roy Smith
In article mailman.6471.1391741496.18130.python-l...@python.org, Dave Angel da...@davea.name wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better than O(1) behavior for any operations. Perhaps there is O(j),

Re: Question about `list.insert`

2014-02-06 Thread Dan Stromberg
On Thu, Feb 6, 2014 at 3:59 PM, cool-RR ram.rac...@gmail.com wrote: Hi, I'm curious. If I append an item to a list from the left using `list.insert`, will Python always move the entire list one item to the right (which can be super-slow) or will it check first to see whether it can just

Re: Question about `list.insert`

2014-02-06 Thread Terry Reedy
On 2/6/2014 7:42 PM, MRAB wrote: On 2014-02-06 23:59, cool-RR wrote: Hi, I'm curious. If I append an item to a list from the left using `list.insert`, will Python always move the entire list one item to the right (which can be super-slow) or will it check first to see whether it can just

Re: Question about `list.insert`

2014-02-06 Thread Tim Chase
On 2014-02-06 22:00, Roy Smith wrote: list does not promise better than O(1) behavior I'm not aware of any list implementations, in any language, that promises better than O(1) behavior for any operations. Perhaps there is O(j), where you just imagine the operation was performed?

Re: Question about `list.insert`

2014-02-06 Thread Asaf Las
On Friday, February 7, 2014 6:52:24 AM UTC+2, Dan Stromberg wrote: On Thu, Feb 6, 2014 at 3:59 PM, cool-RR ra...@gmail.com wrote: I'm pretty sure it'll slide all the existing elements right one position, and add at the leftmost position just opened up - assuming you're inserting at position

Re: question about input() and/or raw_input()

2014-01-19 Thread Rustom Mody
On Sunday, January 19, 2014 10:29:58 AM UTC+5:30, Chris Angelico wrote: On Sun, Jan 19, 2014 at 3:43 PM, Rustom Mody wrote: Because these two pieces of code def foo(x): print x+1 def bar(x): return x+1 look identical (to a beginner at least) foo(3) 4 bar(3) 4 As do these pieces

Re: question about input() and/or raw_input()

2014-01-19 Thread Chris Angelico
On Sun, Jan 19, 2014 at 7:26 PM, Rustom Mody rustompm...@gmail.com wrote: If you want to give an irrelevant example at least give a correct one :D the difference between str and hex is an arcane difference (Ive never used hex) the difference between functions and procedures is absolutely

Re: question about input() and/or raw_input()

2014-01-19 Thread Grant Edwards
On 2014-01-18, Terry Reedy tjre...@udel.edu wrote: On 1/18/2014 1:30 PM, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Homework problems (and 'toy' programs, such

Re: question about input() and/or raw_input()

2014-01-19 Thread Ethan Furman
On 01/19/2014 12:26 AM, Rustom Mody wrote: On Sunday, January 19, 2014 10:29:58 AM UTC+5:30, Chris Angelico wrote: On Sun, Jan 19, 2014 at 3:43 PM, Rustom Mody wrote: As do these pieces of code: -- def quux1(x): return str(x+1) -- def quux2(x): return hex(x+1)[2:] They do? -- quux1(2.3)

Re: question about input() and/or raw_input()

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 3:14 AM, Ethan Furman et...@stoneleaf.us wrote: -- def quux1(x): return str(x+1) -- quux1(2.3) '3.3' (Will be) fixed in 3.5 [1] :) [1] Which is to say, both will raise an exception. Why would that raise? ChrisA --

Re: question about input() and/or raw_input()

2014-01-19 Thread Grant Edwards
On 2014-01-19, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 19 Jan 2014 16:14:48 + (UTC), Grant Edwards invalid@invalid.invalid declaimed the following: On 2014-01-18, Terry Reedy tjre...@udel.edu wrote: On 1/18/2014 1:30 PM, Roy Smith wrote: Pardon me for being cynical, but in

Re: question about input() and/or raw_input()

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 4:42 AM, Grant Edwards invalid@invalid.invalid wrote: 2) I didn't claim that sys.stdin.readline() was as simple as using input. I didn't claim it was preferable. I merely presented it as a refutation to the argument that if you don't use input/raw_input then

Re: question about input() and/or raw_input()

2014-01-19 Thread Mark Lawrence
On 18/01/2014 18:41, Mark Lawrence wrote: On 18/01/2014 18:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Not me personally. I guess raw_input must have been

Re: question about input() and/or raw_input()

2014-01-19 Thread Grant Edwards
On 2014-01-19, Mark Lawrence breamore...@yahoo.co.uk wrote: On 18/01/2014 18:41, Mark Lawrence wrote: On 18/01/2014 18:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework

Re: question about input() and/or raw_input()

2014-01-19 Thread Ethan Furman
On 01/19/2014 08:38 AM, Chris Angelico wrote: On Mon, Jan 20, 2014 at 3:14 AM, Ethan Furman et...@stoneleaf.us wrote: -- def quux1(x): return str(x+1) -- quux1(2.3) '3.3' (Will be) fixed in 3.5 [1] :) [1] Which is to say, both will raise an exception. Why would that raise? Sorry, should

Re: question about input() and/or raw_input()

2014-01-19 Thread Roy Smith
In article lbh4oc$nqv$1...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: I can still remember the point in my first trip to the UK when I accidentally stumbled across darts on TV. Given the endless variety (and quantity) of pointless crap that people watch here in the US, I

Re: question about input() and/or raw_input()

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 4:50 AM, Ethan Furman et...@stoneleaf.us wrote: The difference I was thinking of is: %h % 3.14 # this works vs. hex(3.14) # this raises In 3.5 both will raise. Now you have me *thoroughly* intrigued. It's not %h (incomplete format - h is a modifier), nor %H

Re: question about input() and/or raw_input()

2014-01-19 Thread Chris Angelico
On Mon, Jan 20, 2014 at 5:37 AM, Roy Smith r...@panix.com wrote: What's so complicated? points = 501 for dart in throws(): if points - dart == 0 and dart.is_double(): raise YouWin if points - dart 0: continue points -= dart beer.drink() assert victory raise beer

Re: question about input() and/or raw_input()

2014-01-19 Thread Grant Edwards
On 2014-01-19, Roy Smith r...@panix.com wrote: In article lbh4oc$nqv$1...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: I can still remember the point in my first trip to the UK when I accidentally stumbled across darts on TV. Given the endless variety (and quantity) of

Re: question about input() and/or raw_input()

2014-01-19 Thread Mark Lawrence
On 19/01/2014 18:15, Grant Edwards wrote: On 2014-01-19, Mark Lawrence breamore...@yahoo.co.uk wrote: On 18/01/2014 18:41, Mark Lawrence wrote: On 18/01/2014 18:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used

Re: question about input() and/or raw_input()

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 19/01/2014 18:15, Grant Edwards wrote: On 2014-01-19, Mark Lawrence breamore...@yahoo.co.uk wrote: Actually, to go off at a tangent, I'm just getting into GUIs via wxPython. I've discovered there are distinct

Re: question about input() and/or raw_input()

2014-01-19 Thread Mark Lawrence
On 19/01/2014 19:24, Larry Martell wrote: On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 19/01/2014 18:15, Grant Edwards wrote: On 2014-01-19, Mark Lawrence breamore...@yahoo.co.uk wrote: Actually, to go off at a tangent, I'm just getting into GUIs via

Re: question about input() and/or raw_input()

2014-01-19 Thread Ethan Furman
On 01/19/2014 10:41 AM, Chris Angelico wrote: On Mon, Jan 20, 2014 at 4:50 AM, Ethan Furman et...@stoneleaf.us wrote: The difference I was thinking of is: %h % 3.14 # this works vs. hex(3.14) # this raises In 3.5 both will raise. Now you have me *thoroughly* intrigued. It's not %h

Re: question about input() and/or raw_input()

2014-01-19 Thread Gene Heskett
On Sunday 19 January 2014 15:11:52 Larry Martell did opine: On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 19/01/2014 18:15, Grant Edwards wrote: On 2014-01-19, Mark Lawrence breamore...@yahoo.co.uk wrote: Actually, to go off at a tangent, I'm just

Re: question about input() and/or raw_input()

2014-01-19 Thread Gene Heskett
On Sunday 19 January 2014 15:08:31 Roy Smith did opine: In article lbh4oc$nqv$1...@reader1.panix.com, Grant Edwards invalid@invalid.invalid wrote: I can still remember the point in my first trip to the UK when I accidentally stumbled across darts on TV. Given the endless variety (and

Re: question about input() and/or raw_input()

2014-01-19 Thread Larry Martell
On Sun, Jan 19, 2014 at 1:12 PM, Gene Heskett ghesk...@wdtv.com wrote: On Sunday 19 January 2014 15:11:52 Larry Martell did opine: On Sun, Jan 19, 2014 at 12:17 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 19/01/2014 18:15, Grant Edwards wrote: On 2014-01-19, Mark Lawrence

Re: question about input() and/or raw_input()

2014-01-18 Thread Mark Lawrence
On 18/01/2014 18:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Not me personally. I guess raw_input must have been used somewhere at some time for something,

Re: question about input() and/or raw_input()

2014-01-18 Thread Emile van Sebille
On 01/18/2014 10:30 AM, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Yes - routinely. Emile -- https://mail.python.org/mailman/listinfo/python-list

Re: question about input() and/or raw_input()

2014-01-18 Thread Peter Otten
Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? I use it for pointless throwaway tools, sometimes via the cmd module, sometimes directly. I like that you can add

Re: question about input() and/or raw_input()

2014-01-18 Thread Terry Reedy
On 1/18/2014 1:30 PM, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Homework problems (and 'toy' programs, such as hangman), whether in a programming class or

Re: question about input() and/or raw_input()

2014-01-18 Thread Chris Angelico
On Sun, Jan 19, 2014 at 8:33 AM, Terry Reedy tjre...@udel.edu wrote: On 1/18/2014 1:30 PM, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Homework problems (and

Re: question about input() and/or raw_input()

2014-01-18 Thread Rustom Mody
On Sunday, January 19, 2014 12:00:20 AM UTC+5:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Similar 'cynicism' regarding print would be salutary for producing

Re: question about input() and/or raw_input()

2014-01-18 Thread Chris Angelico
On Sun, Jan 19, 2014 at 3:15 PM, Rustom Mody rustompm...@gmail.com wrote: On Sunday, January 19, 2014 12:00:20 AM UTC+5:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework

Re: question about input() and/or raw_input()

2014-01-18 Thread Rustom Mody
On Sunday, January 19, 2014 9:51:36 AM UTC+5:30, Chris Angelico wrote: On Sun, Jan 19, 2014 at 3:15 PM, Rustom Mody wrote: On Sunday, January 19, 2014 12:00:20 AM UTC+5:30, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used

Re: question about input() and/or raw_input()

2014-01-18 Thread Chris Angelico
On Sun, Jan 19, 2014 at 3:43 PM, Rustom Mody rustompm...@gmail.com wrote: Because these two pieces of code def foo(x): print x+1 def bar(x): return x+1 look identical (to a beginner at least) foo(3) 4 bar(3) 4 As do these pieces of code: def quux(x): return str(x+1) def quux(x):

Re: question about input() and/or raw_input()

2014-01-18 Thread Steven D'Aprano
On Sat, 18 Jan 2014 13:30:20 -0500, Roy Smith wrote: Pardon me for being cynical, but in the entire history of the universe, has anybody ever used input()/raw_input() for anything other than a homework problem? Yes. They are excellent for interactive command line tools. -- Steven --

Re: Question about object lifetime and access

2014-01-15 Thread Ned Batchelder
On 1/15/14 7:13 AM, Asaf Las wrote: Hi community i am beginner in Python and have possibly silly questions i could not figure out answers for. Below is the test application working with uwsgi to test json-rpc. from

Re: Question about object lifetime and access

2014-01-15 Thread Chris Angelico
On Wed, Jan 15, 2014 at 11:13 PM, Asaf Las roeg...@gmail.com wrote: Questions are: - what is the lifetime for global object (p in this example). - will the p always have value it got during module loading - if new thread will be created will p be accessible to it - if p is accessible to new

Re: Question about object lifetime and access

2014-01-15 Thread Asaf Las
Thanks a lot for detailed answer! i plan to assign object to name only when module loads, that means outside of function or class method. Then object will be accessed from functions only for read purpose. I have read somewhere that global objects are referenced from module namespace will

Re: Question about object lifetime and access

2014-01-15 Thread Asaf Las
Thanks! On Wednesday, January 15, 2014 3:05:43 PM UTC+2, Chris Angelico wrote: Questions are: - what is the lifetime for global object (p in this example). - will the p always have value it got during module loading - if new thread will be created will p be accessible to it -

Re: Question about object lifetime and access

2014-01-15 Thread Steven D'Aprano
On Wed, 15 Jan 2014 05:14:59 -0800, Asaf Las wrote: I have read somewhere that global objects are referenced from module namespace will never have reference count down to 0 even if they are not referenced from functions or class methods. Is this true? Correct. The global name is a reference,

Re: Question about object lifetime and access

2014-01-15 Thread Asaf Las
First of all many thanks to all for their detailed answers on subject. I really appreciate it! Correct. The global name is a reference, so the reference count will be at least 1. In fact, referencing the name from a function or method doesn't increase the ref count: -- Steven i have

RE: Question RE urllib

2013-12-17 Thread Jeff James
So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are down when, in fact, they are actually up. These sites do not require a logon in order for the home page to come up. Could this be due to some port being blocked internally ?

Re: Question RE urllib

2013-12-17 Thread Larry Martell
On Tue, Dec 17, 2013 at 10:26 AM, Jeff James j...@jeffljames.com wrot So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are down when, in fact, they are actually up. These sites do not require a logon in order for the home

Re: Question RE urllib

2013-12-17 Thread Tobiah
On 12/17/2013 08:10 AM, Larry Martell wrote: On Tue, Dec 17, 2013 at 10:26 AM, Jeff James j...@jeffljames.com mailto:j...@jeffljames.com wrot So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are down when, in fact,

Re: Question RE urllib

2013-12-16 Thread Larry Martell
On Mon, Dec 16, 2013 at 6:40 AM, Jeff James j...@jeffljames.com wrote: So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are down when, in fact, they are actually up. These sites do not require a logon in order for the home

Re: Question RE urllib

2013-12-16 Thread Tim Chase
On 2013-12-16 04:40, Jeff James wrote: These sites do not require a logon in order for the home page to come up. Could this be due to some port being blocked internally ? Only one of the sites reporting as down is https but all are internal sites. Is there some other component I should be

Re: Question Re urllib (Jeff James)

2013-12-16 Thread Jeff James
://#.main..com/psso/pssignsso.asp?dbname=FSPRD90 * is down* http://sharepoint..com/regions/west/PHX_NSC/default.aspx * is down* Cc: python-list@python.org Date: Mon, 16 Dec 2013 06:54:48 -0500 Subject: Re: Question RE urllib On Mon, Dec 16, 2013 at 6:40 AM, Jeff James j...@jeffljames.com

Re: Question Re urllib (Jeff James)

2013-12-16 Thread Larry Martell
2013 06:54:48 -0500 Subject: Re: Question RE urllib On Mon, Dec 16, 2013 at 6:40 AM, Jeff James j...@jeffljames.comjavascript:_e({}, 'cvml', 'j...@jeffljames.com'); wrote: So I'm using the following script to check our sites to make sure they are all up and some of them are reporting

RE: Question RE urllib

2013-12-16 Thread Jeff James
Sorry to be a pain here, guys, as I'm also a newbie at this as well. Where, exactly in the script would I place the print str(e) ? Thanks Original message : I'm not really receiving an exception other than those three sites, out of the 30 or so I have listed, are the only sites which show

Re: Question RE urllib

2013-12-16 Thread Larry Martell
On Mon, Dec 16, 2013 at 2:55 PM, Jeff James j...@jeffljames.com wrote: Sorry to be a pain here, guys, as I'm also a newbie at this as well. Where, exactly in the script would I place the print str(e) ? The line after the print site + is down line. Thanks Original message : I'm not

Re: Question Re urllib (Resolved)

2013-12-16 Thread Jeff James
This worked perfectly. Thank You Where, exactly in the script would I place the print str(e) ? The line after the print site + is down line. Original Post : I'm not really receiving an exception other than those three sites, out of the 30 or so I have listed, are the only sites

Re: Question RE urllib

2013-12-16 Thread John Gordon
In mailman.4234.1387223734.18130.python-l...@python.org Jeff James j...@jeffljames.com writes: --f46d04479f936227ee04edac31bd Content-Type: text/plain; charset=ISO-8859-1 Sorry to be a pain here, guys, as I'm also a newbie at this as well. Where, exactly in the script would I place the

Re: Question RE urllib

2013-12-16 Thread William Ray Wing
On Dec 16, 2013, at 6:40 AM, Jeff James j...@jeffljames.com wrote: So I'm using the following script to check our sites to make sure they are all up and some of them are reporting they are down when, in fact, they are actually up. These sites do not require a logon in order for the home

Re: Question about import hooks

2013-11-23 Thread Mark Lawrence
On 23/11/2013 12:23, Ed Schofield wrote: Hi all, I am the author of the ``future`` package for Python 2/3 compatibility (http://python-future.org). A bug report has recently been posted about its use of import hooks that I don't yet have an answer for, and I am looking for some guidance on

Re: Question regarding 2 modules installed via 'pip'

2013-11-17 Thread Nikos
Στις 16/11/2013 6:48 μμ, ο/η YBM έγραψε: I doubt it, find ... | rm ... does absolutely nothing as you'd have figured out by yourself if you had a brain. Βut 'find / -name python34 | xargs rm -rf' does what i want. -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Antoon Pardon
Op 16-11-13 09:52, Ferrous Cranus schreef: but when is: http://superhost.gr i get the error you will like 'pymysql' and 'pymysql' are missing Since they are install how can they be missing? root@secure [~]# which python /usr/bin/python root@secure [~]# which python3 /usr/bin/python3

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows: /usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg/pymysql /usr/lib/python2.6/site-packages/pymysql /var/tmp/pip-build-root/pymysql /var/tmp/pip-build-root/pymysql/pymysql

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
What the difference between locate and find? and seen find show me some results, what now? 'rm -rf' those files or i will break something? and then how i'am gonna install those 2 modules for python 3.3.2? -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Joel Goldstick
not related to python On Sat, Nov 16, 2013 at 8:10 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows: /usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg/pymysql

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 8:45:51 AM UTC-5, Ferrous Cranus wrote: What the difference between locate and find? and seen find show me some results, what now? 'rm -rf' those files or i will break something? and then how i'am gonna install those 2 modules for python 3.3.2? For locate

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Νίκος
HELP ME Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: not related to python On Sat, Nov 16, 2013 at 8:10 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: Perhaps by doing: locate pymysql locate pygeoip or perhaps by using find as follows:

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Roy Smith
In article cfd71610-1e34-4fec-82b0-fac2d4e91...@googlegroups.com, Ned Batchelder n...@nedbatchelder.com wrote: Just as you use which python to figure out what python was executing, which pip will help you figure out what pip is running. And along those lines, if you're unsure where you're

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Robert Kern
On 2013-11-16 13:59, Νίκος wrote: HELP ME The kind people at http://serverfault.com/ can help you with your system administration problems. I'm afraid that we cannot. -- Robert Kern I have come to believe that the whole world is an enigma, a harmless enigma that is made terrible

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ned Batchelder
On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote: HELP ME Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: not related to python Nikos, stop this. You are sending repeated emails with no new information, and no evidence that you have tried anything, about

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:04:41 μ.μ. UTC+2, ο χρήστης Ned Batchelder έγραψε: On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote: HELP ME Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε: not related to python Nikos, stop this. You are

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert Kern έγραψε: On 2013-11-16 13:59, Νίκος wrote: HELP ME The kind people at http://serverfault.com/ can help you with your system administration problems. I'm afraid that we cannot. -- Robert Kern

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Chris Angelico
On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: If you know and wont tell me but instead you devote time to make ironic comments against me i will re-post the exact same question each time. Then you will quickly get killfiled by more and more people, and in the

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Also there are leftovers form python3.4a Iam thinking fo deleting those as: 'locate pythοn3.4 | rm -rf' will this help or do any accidental damage? -- https://mail.python.org/mailman/listinfo/python-list

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Mark Lawrence
On 16/11/2013 13:45, Ferrous Cranus wrote: What the difference between locate and find? I neither know nor care as it's not Python related. and seen find show me some results, what now? 'rm -rf' those files or i will break something? Ditto. and then how i'am gonna install those 2

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:19:21 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus nikos.gr...@gmail.com wrote: If you know and wont tell me but instead you devote time to make ironic comments against me i will re-post the exact same

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε: On 16/11/2013 13:45, Ferrous Cranus wrote: What the difference between locate and find? I neither know nor care as it's not Python related. and seen find show me some results, what now?

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Andreas Perstinger
On 16.11.2013 16:13, Ferrous Cranus wrote: Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert Kern έγραψε: The kind people at http://serverfault.com/ can help you with your system administration problems. I'm afraid that we cannot. Robert i have followed your advise and akse

Re: Question regarding 2 modules installed via 'pip'

2013-11-16 Thread Ferrous Cranus
Just as you use which python to figure out what python was executing, which pip will help you figure out what pip is running. root@secure [~]# which python3 /usr/bin/python3 root@secure [~]# cd /usr/bin/python3 -bash: cd: /usr/bin/python3: Not a directory root@secure [~]# which pip

<    4   5   6   7   8   9   10   11   12   13   >