Re: Python Magazine

2013-05-24 Thread zoom
But why would anyone want to use IPv6? On 05/25/2013 05:48 AM, Chris Angelico wrote: On Sat, May 25, 2013 at 1:35 PM, Roy Smith wrote: "Python 3 vs. IPv6: who will win the race for early adoption?" I think Py3 is winning that one so far. But really, both need to get moving. Neither of my ISP

weird behavior. bug perhaps?

2013-06-18 Thread zoom
Hi, I have a strange problem here. Perhaps someone would care to help me. In the file test.py I have the following code: from scipy import matrix, tile, mean, shape import unittest class TestSequenceFunctions(unittest.TestCase): def setUp(self): self.m = [[1,2],[3,4],[3,4],[3,4]]

Re: weird behavior. bug perhaps?

2013-06-18 Thread zoom
On 06/18/2013 04:27 PM, rusi wrote: On Jun 18, 7:23 pm, zoom wrote: Hi, I have a strange problem here. Perhaps someone would care to help me. In the file test.py I have the following code: from scipy import matrix, tile, mean, shape import unittest class TestSequenceFunctions

Re: weird behavior. bug perhaps?

2013-06-18 Thread zoom
On 06/18/2013 05:25 PM, Robert Kern wrote: On 2013-06-18 15:23, zoom wrote: Hi, I have a strange problem here. Perhaps someone would care to help me. In the file test.py I have the following code: from scipy import matrix, tile, mean, shape import unittest class TestSequenceFunctions

Re: Illegal suggestions on python list

2013-07-04 Thread zoom
On 07/05/2013 12:30 AM, Chris Angelico wrote: On Fri, Jul 5, 2013 at 3:10 AM, Rustom Mody wrote: On Thu, Jul 4, 2013 at 9:16 PM, Steven D'Aprano wrote: Which crime is that? Presumably you mean an actual criminal felony, not a mere civil offence. Under which jurisdiction? If piracy is a cri

Imaging library

2012-11-29 Thread zoom
C'mon guys, don't be so picky. The point is that that he cannot find python library that can easily create HDR image or process RAW images (or some other image format). Also, AFAIK there is no built in support for standard imaging filters, color space conversion, etc (as Alasdair also mentioned)

Python modules

2013-01-14 Thread zoom
Is there any "rules" regarding importing python modules within your own module? I mean, how does this affects the performance of the program? For example, I have my own module named "sound". At the top of the file sound.py I have: import scipy In the code I have: import scipy, sound, etc Now I

Re: Python modules

2013-01-14 Thread zoom
On 01/14/2013 04:01 PM, Dan Sommers wrote: On Mon, 14 Jan 2013 15:54:27 +0100, zoom wrote: Is there any "rules" regarding importing python modules within your own module? I mean, how does this affects the performance of the program? "Even the initializers are optimized!&qu

Save to a file, but avoid overwriting an existing file

2014-03-12 Thread zoom
Hi! I would like to assure that when writing to a file I do not overwrite an existing file, but I'm unsure which is the best way to approach to this problem. As I can see, there are at least two possibilities: 1. I could use fd = os.open("x", os.O_WRONLY | os.O_CREAT | os.O_EXCL) which will f