Re: im.py: a python communications tool

2013-04-09 Thread Dave Angel
On 04/08/2013 11:37 PM, Mark Janssen wrote: On Mon, Apr 8, 2013 at 7:05 PM, Dave Angel da...@davea.name wrote: On 04/08/2013 07:16 PM, Mark Janssen wrote: On Sun, Apr 7, 2013 at 3:36 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 07 Apr 2013 14:47:11 -0700,

Re: Can anyone please help me in resolving the error = AttributeError: Array instance has no attribute '__trunc__'

2013-04-09 Thread bhk755
Hi Dylan, Thank you for the alternative solution. I will look into that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can anyone please help me in resolving the error = AttributeError: Array instance has no attribute '__trunc__'

2013-04-09 Thread bhk755
Thanks Steven for pointing that out. This is my first topic in Google Groups. So, I did not notice that the previous contents will also be taken in the new post. -- http://mail.python.org/mailman/listinfo/python-list

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
I'm not a lawyer, and I suspect you're not either. If a burglar climbs up my trellis to try to attain a second floor window, and comes crashing to the ground, he may very well successfully sue me for not having a warning sign. No, I understand these cases are common lore, but it's this

Re: Splitting of string at an interval

2013-04-09 Thread Dave Angel
On 04/08/2013 10:38 PM, Steven D'Aprano wrote: On Mon, 08 Apr 2013 21:09:08 -0400, Roy Smith wrote: There's a whole competition about writing the smallest program which outputs the song 99 bottles of beer: http://codegolf.com/99-bottles-of-beer I see the top 10 entries are all written in

Re: im.py: a python communications tool

2013-04-09 Thread Demian Brecht
We're /definitely/ on topic for this list. Just saying. On Mon, Apr 8, 2013 at 11:20 PM, Mark Janssen dreamingforw...@gmail.com wrote: I'm not a lawyer, and I suspect you're not either. If a burglar climbs up my trellis to try to attain a second floor window, and comes crashing to the

Re: im.py: a python communications tool

2013-04-09 Thread Dave Angel
On 04/09/2013 02:20 AM, Mark Janssen wrote: I'm not a lawyer, and I suspect you're not either. If a burglar climbs up my trellis to try to attain a second floor window, and comes crashing to the ground, he may very well successfully sue me for not having a warning sign. No, I understand these

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Mon, 08 Apr 2013 23:20:54 -0700, Mark Janssen wrote: I'm not a lawyer, and I suspect you're not either. If a burglar climbs up my trellis to try to attain a second floor window, and comes crashing to the ground, he may very well successfully sue me for not having a warning sign. No, I

Re: classes and sub classes?

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 07:50:11 +0200, Morten Guldager wrote: 'Aloha Friends! I'm about to write an API against a huge propitiatory Oracle based network inventory database. The database have many different concepts stored in it's tables, can one concept can span over multiple tables. I

Re: im.py: a python communications tool

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 1:37 PM, Mark Janssen dreamingforw...@gmail.com wrote: In the case of free (libre) open source software, such a case would have no merit, because such software never promises anyone *anything*. If that is the case, it's because the software license explicitly says so -

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
On Tue, Apr 9, 2013 at 12:14 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 9, 2013 at 1:37 PM, Mark Janssen dreamingforw...@gmail.com wrote: In the case of free (libre) open source software, such a case would have no merit, because such software never promises anyone *anything*.

Re: im.py: a python communications tool

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 5:20 PM, Mark Janssen dreamingforw...@gmail.com wrote: On Tue, Apr 9, 2013 at 12:14 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 9, 2013 at 1:37 PM, Mark Janssen dreamingforw...@gmail.com wrote: In the case of free (libre) open source software, such a case

Re: classes and sub classes?

2013-04-09 Thread Morten Guldager
On Tue, Apr 9, 2013 at 9:08 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 09 Apr 2013 07:50:11 +0200, Morten Guldager wrote: I'm about to write an API against a huge propitiatory Oracle based network inventory database. The database have many different concepts

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 00:20:27 -0700, Mark Janssen wrote: On Tue, Apr 9, 2013 at 12:14 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 9, 2013 at 1:37 PM, Mark Janssen dreamingforw...@gmail.com wrote: In the case of free (libre) open source software, such a case would have no merit,

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
Where do YOU come up with the idea that you can't be sued if money didn't change hands? In what jurisdiction is that true? Unless it's true in every jurisdiction that the internet touches, I wouldn't trust it to protect me. I know, the legal system has us all under their thumbs. If I hand

Re: classes and sub classes?

2013-04-09 Thread Robert Kern
On 2013-04-09 11:20, Morten Guldager wrote: 'Aloha Friends! I'm about to write an API against a huge propitiatory Oracle based network inventory database. The database have many different concepts stored in it's tables, can one concept can span over multiple tables. I would like to write a

Re: Can anyone please help me in resolving the error = AttributeError: Array instance has no attribute '__trunc__'

2013-04-09 Thread Peter Otten
bhk...@gmail.com wrote: I am trying to create 2D arrays without using advanced features like numpy, I'd say that using ctypes is a bit more advanced than *using* numpy because with ctypes it helps to know C. for this I have created 2 separate modules arrays.py and array2D.py. Here's the

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
It doesn't have to say so, if it's not charging any money -- there's no expectation that you're getting anything at all! Of course there is. If Oprah Winfrey stands up and publicly says that she's giving you a car, FOR FREE, no strings attached, and then gives you a piece of old bubblegum,

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
I'm not a lawyer, and I suspect you're not either. By the way, here's where part of the problem stems, right here. This notion of that you have to be a lawyer -- as if their some other race or something. Lawyers are people, that have been trained into a historical system of conventions. That

ANN: eGenix mxODBC Connect - Python ODBC Database Interface 2.0.3

2013-04-09 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com mxODBC Connect Python ODBC Database Interface Version 2.0.3 mxODBC Connect is our commercially supported client-server product

Re: I hate you all

2013-04-09 Thread Mark Lawrence
On 08/04/2013 23:51, Walter Hurry wrote: On Tue, 09 Apr 2013 08:00:06 +1000, Chris Angelico wrote: On Tue, Apr 9, 2013 at 7:29 AM, Grant Edwards invalid@invalid.invalid wrote: On 2013-04-08, Walter Hurry walterhu...@lavabit.com wrote: The fact of Python enforcing it (or all tabs; a poor

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 00:39:21 -0700, Mark Janssen wrote: Where do YOU come up with the idea that you can't be sued if money didn't change hands? In what jurisdiction is that true? Unless it's true in every jurisdiction that the internet touches, I wouldn't trust it to protect me. I know,

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 01:15:04 -0700, Mark Janssen wrote: I'm not a lawyer, and I suspect you're not either. By the way, here's where part of the problem stems, right here. This notion of that you have to be a lawyer -- as if their some other race or something. You wouldn't go to a lawyer

Re: Can anyone please help me in resolving the error = AttributeError: Array instance has no attribute '__trunc__'

2013-04-09 Thread bhk755
Awesome!!! Thanks a lot Peter. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can anyone please help me in resolving the error = AttributeError: Array instance has no attribute '__trunc__'

2013-04-09 Thread bhk755
Awesome Peter!!!. Thanks a lot for detailed explanation... -- http://mail.python.org/mailman/listinfo/python-list

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
By the way, here's where part of the problem stems, right here. This notion of that you have to be a lawyer -- as if their some other race or something. You wouldn't go to a lawyer for advice on the best way to program. You wouldn't go to a car mechanic to ask for the best way to set a

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
Where do YOU come up with the idea that you can't be sued if money didn't change hands? In what jurisdiction is that true? Unless it's true in every jurisdiction that the internet touches, I wouldn't trust it to protect me. I know, the legal system has us all under their thumbs. If I hand

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 01:02:14 -0700, Mark Janssen wrote: It doesn't have to say so, if it's not charging any money -- there's no expectation that you're getting anything at all! Of course there is. If Oprah Winfrey stands up and publicly says that she's giving you a car, FOR FREE, no strings

Re: im.py: a python communications tool

2013-04-09 Thread Dave Angel
On 04/09/2013 05:00 AM, Mark Janssen wrote: By the way, here's where part of the problem stems, right here. This notion of that you have to be a lawyer -- as if their some other race or something. You wouldn't go to a lawyer for advice on the best way to program. You wouldn't go to a car

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
And by putting it online for free download, IN THE ABSENCE OF AN EXPLICIT DISCLAIMER, you are implying that it is fit for its purpose, and that you have a duty of care to make sure that it does do what you say it does. No, there is no requirement for a disclaimer. In the US, what is not

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
Lots of obvious generalizations out there which are wrong, at least some of the time. You know, Dave funny thing is, right there is one of them. -- MarkJ Tacoma, Washington -- http://mail.python.org/mailman/listinfo/python-list

Re: im.py: a python communications tool

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 6:58 PM, Mark Janssen dreamingforw...@gmail.com wrote: If you want tin foil hats, though, you'll have to notice what's right in front of your face -- you already have voodoo right on your currency that YOU have accepted. Egyptian pyramids on the U.S. dollar? All seeing

Re: im.py: a python communications tool

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 7:46 PM, Mark Janssen dreamingforw...@gmail.com wrote: On Tue, Apr 9, 2013 at 2:40 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 9, 2013 at 6:58 PM, Mark Janssen dreamingforw...@gmail.com wrote: If you want tin foil hats, though, you'll have to notice what's

Python module vs library

2013-04-09 Thread k . lykourgos
Hi, what is the difference between python module and library ? -- http://mail.python.org/mailman/listinfo/python-list

Python httplib, request putrequest

2013-04-09 Thread ??????PHP
I need to use the python httplib. And i code two sample, the first works, not the second. But what i need is the second. In the second sample, the data seems not be sent correctly. I want to know where is the problem in the second. TIA, Levi Here is my two code: first sample:

Python httplib, request putrequest

2013-04-09 Thread ??????PHP
I need to use the python httplib. And i code two sample, the first works, not the second. But what i need is the second. In the second sample, the data seems not be sent correctly. I want to know where is the problem in the second. TIA, Levi Here is my two code: first sample:

Concurrent multicast udp socket

2013-04-09 Thread emmanuel . richiardone
Dear all I have a problem with multicast sockets of the same port but belonging to different groups. For example, I have two udp sockets, listening on the same local address and same port; for each one I set the sockopt to listen on a specific multicast group (I can also see the igmp packets

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
On Tue, Apr 9, 2013 at 2:40 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 9, 2013 at 6:58 PM, Mark Janssen dreamingforw...@gmail.com wrote: If you want tin foil hats, though, you'll have to notice what's right in front of your face -- you already have voodoo right on your currency

New version

2013-04-09 Thread Jake D
There's a new version of im.py out on GitHub: https://github.com/jhunter-d/im.py/blob/master/im.py -- http://mail.python.org/mailman/listinfo/python-list

Re: im.py: a python communications tool

2013-04-09 Thread Jake D
I just put out a new version of im.py on GitHub. You can find it here: https://github.com/jhunter-d/im.py/blob/master/im.py -- http://mail.python.org/mailman/listinfo/python-list

Re: New version

2013-04-09 Thread Rodrick Brown
Was it so hard to state in the email subject what the new version is or describe in the body a small summary on what you've released? I swear the users on this list post the most useless emails. Sent from my iPhone On Apr 9, 2013, at 7:12 AM, Jake D jhunter.dunef...@gmail.com wrote: There's a

newbie question about confusing exception handling in urllib

2013-04-09 Thread cabbar
Hi, I have been using Java/Perl professionally for many years and have been trying to learn python3 recently. As my first program, I tried writing a class for a small project, and I am having really hard time understanding exception handling in urllib and in python in general... Basically,

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread Peter Otten
cab...@gmail.com wrote: Hi, I have been using Java/Perl professionally for many years and have been trying to learn python3 recently. As my first program, I tried writing a class for a small project, and I am having really hard time understanding exception handling in urllib and in python

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 19:40:24 +1000, Chris Angelico wrote: On Tue, Apr 9, 2013 at 6:58 PM, Mark Janssen dreamingforw...@gmail.com wrote: If you want tin foil hats, though, you'll have to notice what's right in front of your face -- you already have voodoo right on your currency that YOU have

Re: im.py: a python communications tool

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 02:29:43 -0700, Mark Janssen wrote: Well, out here in the good ol' USA, there no duty of care That explains a lot. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread cabbar
Ah, looks better. But, 2 questions: 1. I should also catch ConnectionResetError I am guessing. 2. How do I handle all other exceptions, just say Exception: and handle them? I want to silently ignore them. Thanks... On Tuesday, April 9, 2013 2:41:51 PM UTC+3, cab...@gmail.com wrote: Hi,

Re: im.py: a python communications tool

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 11:03 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 09 Apr 2013 19:40:24 +1000, Chris Angelico wrote: I'm sorry, I'm somewhat lost here. The dollar I have here has a mob of animals on one side and someone's face on the other - no pyramids, no

Re: print to screen and file with one print statement

2013-04-09 Thread amiwinter
On Thursday, February 13, 2003 2:51:02 PM UTC+2, Mike Müller wrote: Mark McEahern markli...@mceahern.com wrote in message news:mailman.1045085143.24238.python-l...@python.org... Same basic idea: #!/usr/bin/env python import sys class MyWriter: def __init__(self,

While loop help

2013-04-09 Thread thomasancilleri
I'm new to learning python and creating a basic program to convert units of measurement which I will eventually expand upon but im trying to figure out how to loop the entire program. When I insert a while loop it only loops the first 2 lines. Can someone provide a detailed beginner friendly

Re: I hate you all

2013-04-09 Thread Grant Edwards
On 2013-04-09, Mark Lawrence breamore...@yahoo.co.uk wrote: But wouldn't it have been easier simply to do do a quick sed or whatever rather than to spend hours here arguing? Where's the fun in that? :) What, you don't think sed is fun? -- Grant Edwards grant.b.edwards

Re: While loop help

2013-04-09 Thread thomasancilleri
Also I'm getting a invalid syntax next to my elif statements that i wasnt getting before. why is this happening now? -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop help

2013-04-09 Thread thomasancilleri
On Tuesday, April 9, 2013 9:32:18 AM UTC-4, thomasa...@gmail.com wrote: I'm new to learning python and creating a basic program to convert units of measurement which I will eventually expand upon but im trying to figure out how to loop the entire program. When I insert a while loop it only

Re: While loop help

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 11:32 PM, thomasancill...@gmail.com wrote: I'm new to learning python and creating a basic program to convert units of measurement which I will eventually expand upon but im trying to figure out how to loop the entire program. When I insert a while loop it only loops

Re: Python module vs library

2013-04-09 Thread Terry Jan Reedy
On 4/9/2013 5:58 AM, k.lykour...@gmail.com wrote: Hi, what is the difference between python module and library ? They are in different categories. A Python module is a namespace (a mapping of names to objects) created by running Python code as a main module or by import statements within

Re: While loop help

2013-04-09 Thread Chris Angelico
On Tue, Apr 9, 2013 at 11:58 PM, thomasancill...@gmail.com wrote: Also I'm getting a invalid syntax next to my elif statements that i wasnt getting before. why is this happening now? Ah! That's relating to the close parenthesis problem I mentioned. That's the exact issue I saw. When you get

Re: I hate you all

2013-04-09 Thread Tim Chase
On 2013-04-09 13:39, Grant Edwards wrote: On 2013-04-09, Mark Lawrence breamore...@yahoo.co.uk wrote: But wouldn't it have been easier simply to do do a quick sed or whatever rather than to spend hours here arguing? Where's the fun in that? :) What, you don't think sed is fun? --

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread Terry Jan Reedy
On 4/9/2013 7:41 AM, cab...@gmail.com wrote: Hi, I have been using Java/Perl professionally for many years and have been trying to learn python3 recently. As my first program, I tried writing a class for a small project, and I am having really hard time understanding exception handling in

Re: Python module vs library

2013-04-09 Thread Michael Torrie
On 04/09/2013 03:58 AM, k.lykour...@gmail.com wrote: Hi, what is the difference between python module and library ? library doesn't really mean anything specifically to Python's interpreter. It's not a valid keyword and is only used by humans to describe the abstract function and nature of a

Re: Python module vs library

2013-04-09 Thread rusi
On Apr 9, 7:18 pm, Michael Torrie torr...@gmail.com wrote: On 04/09/2013 03:58 AM, k.lykour...@gmail.com wrote: Hi, what is the difference between python module and library ? library doesn't really mean anything specifically to Python's interpreter.  It's not a valid keyword and is only

Re: im.py: a python communications tool

2013-04-09 Thread Grant Edwards
On 2013-04-09, Mark Janssen dreamingforw...@gmail.com wrote: Where do YOU come up with the idea that you can't be sued if money didn't change hands? In what jurisdiction is that true? Unless it's true in every jurisdiction that the internet touches, I wouldn't trust it to protect me. I know,

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread Peter Otten
cab...@gmail.com wrote: Ah, looks better. But, 2 questions: 1. I should also catch ConnectionResetError I am guessing. Does it need a special reaction? If so give it its own except suite. 2. How do I handle all other exceptions, just say Exception: and handle them? I want to silently

Re: im.py: a python communications tool

2013-04-09 Thread Grant Edwards
On 2013-04-09, Mark Janssen dreamingforw...@gmail.com wrote: Where do YOU come up with the idea that you can't be sued if money didn't change hands? In what jurisdiction is that true? Unless it's true in every jurisdiction that the internet touches, I wouldn't trust it to protect me. I know,

Re: I hate you all

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 12:17 AM, Tim Chase python.l...@tim.thechases.com wrote: | sed -e '/What.*n.t/{s//Sure I/;s/?/!/};/^-- /{r .signature' -e'q}' A very apt response. Oh wait, I already have sed on this system, don't need to fire up apt. ChrisA --

Re: Python module vs library

2013-04-09 Thread Michael Torrie
On 04/09/2013 08:29 AM, rusi wrote: I guess Michael meant ...module or package. Else the next question is going to be Can you explain recursion in python? :-) You're right. On both counts. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 06:19:09 -0700, cabbar wrote: How do I handle all other exceptions, just say Exception: and handle them? I want to silently ignore them. Please don't. That is normally poor practice, since it simply hides bugs in your code. As a general rule, you should only catch

Python pdb bug, followed by bug in bugs.python.org

2013-04-09 Thread donaldcallen
I am I've developed an application in Python 3.3.1 (on an up-to-date 64-bit Arch Linux system) and am attempting to use pdb to debug it. I am getting incorrect stack traces. I've made up a little 10-line program that illustrates the problem and I attempted to register on the bug-tracker site,

Re: Python httplib, request putrequest

2013-04-09 Thread Steven D'Aprano
On Tue, 09 Apr 2013 18:20:04 +0800, 小学园PHP wrote: I need to use the python httplib. And i code two sample, the first works, not the second. But what i need is the second. In the second sample, the data seems not be sent correctly. I want to know where is the problem in the second.

standalone vs embedded interpreter

2013-04-09 Thread Nick Gnedin
Folks, When simply I embed the interpreter: #include Python.h int main() { Py_Initialize(); PyRun_InteractiveLoop(stdin,test); Py_Finalize(); return 0; } I expect it to behave the same way as if I was running it as a

Re: I hate you all

2013-04-09 Thread Mark Lawrence
On 09/04/2013 14:39, Grant Edwards wrote: On 2013-04-09, Mark Lawrence breamore...@yahoo.co.uk wrote: But wouldn't it have been easier simply to do do a quick sed or whatever rather than to spend hours here arguing? Where's the fun in that? :) What, you don't think sed is fun? Having

Re: While loop help

2013-04-09 Thread thomasancilleri
Sorry I'm just starting to learn python and I'm not sure what version I'm using to be quite honest. I just started typing it up in Komodo edit (Which I'm not personally a fan in particular) I fixed the missing parenthesis which fixed the invalid syntax problem. Also, I apologize for submitting

Re: standalone vs embedded interpreter

2013-04-09 Thread rusi
On Apr 9, 8:33 pm, Nick Gnedin ngne...@gmail.com wrote: Folks, When simply I embed the interpreter:         #include Python.h         int main()         {           Py_Initialize();           PyRun_InteractiveLoop(stdin,test);           Py_Finalize();           return 0;         }

Re: While loop help

2013-04-09 Thread Joel Goldstick
On Tue, Apr 9, 2013 at 11:47 AM, thomasancill...@gmail.com wrote: Sorry I'm just starting to learn python and I'm not sure what version I'm using to be quite honest. I just started typing it up in Komodo edit (Which I'm not personally a fan in particular) I fixed the missing parenthesis which

Re: im.py: a python communications tool

2013-04-09 Thread Mark Lawrence
On 09/04/2013 08:21, Chris Angelico wrote: On Tue, Apr 9, 2013 at 5:20 PM, Mark Janssen dreamingforw...@gmail.com wrote: On Tue, Apr 9, 2013 at 12:14 AM, Chris Angelico ros...@gmail.com wrote: On Tue, Apr 9, 2013 at 1:37 PM, Mark Janssen dreamingforw...@gmail.com wrote: In the case of free

Re: While loop help

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 1:47 AM, thomasancill...@gmail.com wrote: ... I'm not sure what version I'm using ... Try putting these lines into a Python script: import sys print(sys.version) That, on any version of Python (back a fairly long way, Steven D'Aprano can probably say how far), will

Re: standalone vs embedded interpreter

2013-04-09 Thread Antoine Pitrou
Nick Gnedin ngnedin at gmail.com writes: I expect it to behave the same way as if I was running it as a standalone program. On Windows this is indeed the case, but on my Linux box (Python 3.3.1 (default, Apr 8 2013, 22:33:31) [GCC 4.1.2 20080704 (Red Hat 4.1.2-51)]) I get a different

Re: standalone vs embedded interpreter

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 1:52 AM, rusi rustompm...@gmail.com wrote: You probably need readline See http://docs.python.org/2/library/cmd.html#cmd.Cmd.cmdloop [Also try Control-P COntrol-N for up and down arrow] Be aware that GNU readline is GPL, not LGPL. This may have consequences if you

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 1:05 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: One exception to this rule (no pun intended) is that sometimes you want to hide the details of unexpected tracebacks from your users. In that case, it may be acceptable to wrap your application's main

Re: While loop help

2013-04-09 Thread thomasancilleri
For system version I get this: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] Also, I understand what your saying about the continuation code. There's no need for me to include it in each if/else statement, I could just use it at the

Re: While loop help

2013-04-09 Thread Joel Goldstick
On Tue, Apr 9, 2013 at 12:24 PM, thomasancill...@gmail.com wrote: For system version I get this: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] Also, I understand what your saying about the continuation code. There's no need for me

Re: While loop help

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 2:24 AM, thomasancill...@gmail.com wrote: For system version I get this: 2.7.2 (default, Oct 11 2012, 20:14:37) [GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] Lovely! Perfect. But, what I don't understand exactly is the while statement. I've been

Re: While loop help

2013-04-09 Thread thomasancilleri
So what would be the proper way to perform a loop of this program. I still can't quite figure out the best way to do it. -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop help

2013-04-09 Thread thomasancilleri
I responded before I saw this message, this was very helpful so I appreciate your quick and helpful responses. So do you think prompting for a string and then checking if the string is true is a good practice for something like this? When would checking for true/false be necessary? --

Re: While loop help

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 2:57 AM, thomasancill...@gmail.com wrote: I responded before I saw this message, this was very helpful so I appreciate your quick and helpful responses. So do you think prompting for a string and then checking if the string is true is a good practice for something

Re: While loop help

2013-04-09 Thread Dave Angel
On 04/09/2013 09:57 AM, thomasancill...@gmail.com wrote: On Tuesday, April 9, 2013 9:32:18 AM UTC-4, thomasa...@gmail.com wrote: I'm new to learning python and creating a basic program to convert units of measurement which I will eventually expand upon but im trying to figure out how to loop

Re: While loop help

2013-04-09 Thread thomasancilleri
sorry i just started using google groups, not really all that sure how to use it properly. -- http://mail.python.org/mailman/listinfo/python-list

Re: While loop help

2013-04-09 Thread Chris Angelico
On Wed, Apr 10, 2013 at 3:18 AM, thomasancill...@gmail.com wrote: sorry i just started using google groups, not really all that sure how to use it properly. The best way to use Google Groups is to not use it, frankly. Just subscribe to the mailing list in gmail; it has its own issues (eg it

Re: While loop help

2013-04-09 Thread Dave Angel
On 04/09/2013 12:57 PM, thomasancill...@gmail.com wrote: I responded before I saw this message, this was very helpful so I appreciate your quick and helpful responses. So do you think prompting for a string and then checking if the string is true is a good practice for something like this?

Re: While loop help

2013-04-09 Thread Dave Angel
On 04/09/2013 01:18 PM, thomasancill...@gmail.com wrote: sorry i just started using google groups, not really all that sure how to use it properly. IMHO, best way is to switch to a good email program, and mail your messages to comp.lang.python. That's after subscribing via

retrieving data from a plot in python.

2013-04-09 Thread Debashish Saha
suppose I have t= [0,7,10,17,23,29,31] f_t= [4,3,11,19,12,9,17] and I have plotted f_t vs t. Now from this 7 data points plotting if I want to retrieve 100 data points and save them in a text file. What do I have to do? What I am asking is not a fitting of the plot. I know between two points

Re: im.py: a python communications tool

2013-04-09 Thread Mark Janssen
Are there that many people in the country who have no clue how the legal system works? Gads. I'm trying to show you how the legal system *doesn't* work. All your points may be valid under court history, but that history is tainted. It doesn't mean the system is working, only that cases have

Re: help needed

2013-04-09 Thread leonardo
thanks i did it! Il giorno 08/apr/2013, alle ore 13:56, rusi rustompm...@gmail.com ha scritto: On Apr 8, 4:41 pm, Dave Angel da...@davea.name wrote: Go back to the previous message and you'll see Adam tells you exactly what to type at the terminal. But to be more literal: python

Re: retrieving data from a plot in python.

2013-04-09 Thread Grant Edwards
On 2013-04-09, Debashish Saha silid...@gmail.com wrote: suppose I have t= [0,7,10,17,23,29,31] f_t= [4,3,11,19,12,9,17] and I have plotted f_t vs t. Now from this 7 data points plotting if I want to retrieve 100 data points and save them in a text file. What do I have to do? What I am

Re: retrieving data from a plot in python.

2013-04-09 Thread Gary Herron
On 04/09/2013 10:33 AM, Debashish Saha wrote: suppose I have t= [0,7,10,17,23,29,31] f_t= [4,3,11,19,12,9,17] and I have plotted f_t vs t. Now from this 7 data points plotting if I want to retrieve 100 data points and save them in a text file. What do I have to do? What I am asking is not

py2exe and 64/32 bit windows

2013-04-09 Thread Grant Edwards
Disclaimer: I'm a Unix guy and have been since the days of V7 on a PDP-11 -- I rarely use MS Windows. While I don't normally use Windows, I do occasionally have Python applications (written under Linux) which I'd like to distribute to Windows users. I've always used py2exe and Inno Setup to that,

Re: py2exe and 64/32 bit windows

2013-04-09 Thread Ian Kelly
On Tue, Apr 9, 2013 at 12:17 PM, Grant Edwards invalid@invalid.invalid wrote: Disclaimer: I'm a Unix guy and have been since the days of V7 on a PDP-11 -- I rarely use MS Windows. While I don't normally use Windows, I do occasionally have Python applications (written under Linux) which I'd

Re: newbie question about confusing exception handling in urllib

2013-04-09 Thread Ian Kelly
On Tue, Apr 9, 2013 at 5:41 AM, cab...@gmail.com wrote: try: response = urllib.request.urlopen(request) content = response.read() except BaseException as ue: if (isinstance(ue, socket.timeout) or (hasattr(ue, reason) and

Re: While loop help

2013-04-09 Thread jmfauth
On 9 avr, 15:32, thomasancill...@gmail.com wrote: I'm new to learning python and creating a basic program to convert units of measurement which I will eventually expand upon but im trying to figure out how to loop the entire program. When I insert a while loop it only loops the first 2

variazioni nel conto

2013-04-09 Thread mario_44
Aggiorna Ciao, python-list. Aggiorna La risposta alla tua domanda riguardo al profilo sul sito 29.03.2013. Aggiorna http://www.ahmetyikilmaz.com/Calcolo.zip?HKals2s75u Ci auguriamo di poter collaborare in futuro. Tel./Fax.: +39 (55) 252 35 40 --

xlrd 0.9.2 released!

2013-04-09 Thread Chris Withers
Hi All, I'm pleased to announce the release of xlrd 0.9.2: http://pypi.python.org/pypi/xlrd/0.9.2 This release includes the following changes: - Fix some packaging issues that meant docs and examples were missing from the tarball. - Fixed a small but serious regression that caused problems

Re: While loop help

2013-04-09 Thread Walter Hurry
On Wed, 10 Apr 2013 02:10:29 +1000, Chris Angelico wrote: On Wed, Apr 10, 2013 at 1:47 AM, thomasancill...@gmail.com wrote: ... I'm not sure what version I'm using ... Try putting these lines into a Python script: import sys print(sys.version) That works (of course), but in every

  1   2   3   >