Re: tempname.mktemp functionality deprecation

2017-05-01 Thread eryk sun
On Sat, Apr 29, 2017 at 6:45 PM, Tim Chase wrote: > Working on some deduplication code, I want do my my best at > performing an atomic re-hard-linking atop an existing file, akin to > "ln -f source.txt dest.txt" > > However, when I issue > > os.link("source.txt", "dest.txt") > > it fails with an

Re: MCOW package

2017-05-01 Thread Metallicow
On Sunday, April 30, 2017 at 10:47:44 PM UTC-5, Steve D'Aprano wrote: > On Mon, 1 May 2017 01:01 pm, Metallicow wrote: > > > I finally uploaded my wx/lib/mcow package. > > It has many widgets and mixins and probably more to come. > > Congratulations! What does it do? > > > > > -- > Steve > E

EuroPython 2017: Talk voting is open

2017-05-01 Thread M.-A. Lemburg
At EuroPython, we let our attendees have a significant say in the selection of the sessions which are presented at the conference. We call this "talk voting" - attendees can tell us which submitted talks they’d like to see at the conference. To be eligible to vote for talks, you need to be a regi

I have a encountered a new problem.

2017-05-01 Thread SUMIT SUMAN
I have encountered a problem while opening the Python 3.6.1 IDLE The error message is this- [image: Inline image 1] -- https://mail.python.org/mailman/listinfo/python-list

Re: Array column separations for beginners

2017-05-01 Thread katarin . bern
Hi again, I am trying to subtract the minimum value from all numbers (in one array). I am using this: (array[:,1] -= np.min(array[:,1]) but I alsways have syntaxerror:invalid syntax. Do I need some import for this -=? or its something else? THanks! -- https://mail.python.org/mailman/listinf

Re: Array column separations for beginners

2017-05-01 Thread Peter Otten
katarin.b...@gmail.com wrote: > Hi again, > > I am trying to subtract the minimum value from all numbers (in one array). > I am using this: > > > (array[:,1] -= np.min(array[:,1]) but I alsways have syntaxerror:invalid > syntax. Do I need some import for this -=? or its something else? THanks

Re: Array column separations for beginners

2017-05-01 Thread Rob Gaddi
On 05/01/2017 08:14 AM, katarin.b...@gmail.com wrote: Hi again, I am trying to subtract the minimum value from all numbers (in one array). I am using this: (array[:,1] -= np.min(array[:,1]) but I alsways have syntaxerror:invalid syntax. Do I need some import for this -=? or its something e

Re: Array column separations for beginners

2017-05-01 Thread katarin . bern
Thanks very much, it was pretty easy and now it works :) -- https://mail.python.org/mailman/listinfo/python-list

Re: I have a encountered a new problem.

2017-05-01 Thread Joel Goldstick
On Mon, May 1, 2017 at 7:19 AM, SUMIT SUMAN wrote: > I have encountered a problem while opening the Python 3.6.1 IDLE > > > The error message is this- > > [image: Inline image 1] > -- > https://mail.python.org/mailman/listinfo/python-list you need to cut and paste the traceback -- most people

Re: Convert text file data into RDF format through the Python

2017-05-01 Thread Peter Pearson
On Sat, 29 Apr 2017 10:06:12 -0700 (PDT), marsh wrote: > Hi, > > I would like to ask how can I convert text file data into RDF fromat. [snip] What is RDF format? -- To email me, substitute nowhere->runbox, invalid->com. -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert text file data into RDF format through the Python

2017-05-01 Thread Grant Edwards
On 2017-05-01, Peter Pearson wrote: > On Sat, 29 Apr 2017 10:06:12 -0700 (PDT), marsh > wrote: >> Hi, >> >> I would like to ask how can I convert text file data into RDF fromat. > [snip] > > What is RDF format? https://en.wikipedia.org/wiki/Resource_Description_Framework -- Grant Edwards

Re: tempname.mktemp functionality deprecation

2017-05-01 Thread Tim Chase
On 2017-05-01 18:40, Gregory Ewing wrote: > The following function should be immune to race conditions > and doesn't use mktemp. > > def templink(destpath): > """Create a hard link to the given file with a unique name. > Returns the name of the link.""" > pid = os.getpid() > i

Re: Rosetta: Sequence of non-squares

2017-05-01 Thread jladasky
On Monday, May 1, 2017 at 11:27:01 AM UTC-7, Robert L. wrote: [no Python] Do you ever plan to ask any questions about Python? Or are you just using a few lines of code as a fig leaf for the race baiting that you post in your signatures? -- https://mail.python.org/mailman/listinfo/python-list

Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread murdock
I am having a problem that seems to persist. I have written a program that makes a mathematical calculation and uses a uses library that I have written. It had been working but somehow in playing around with it, it stoppedgo figure! But here is the thing, when I run the program it gives me

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Michael Torrie
On 05/01/2017 08:57 PM, murdock wrote: > I am having a problem that seems to persist. I have written a program that > makes a mathematical calculation and uses a uses library that I have written. > It had been working but somehow in playing around with it, it stoppedgo > figure! But here is

Re: Help Please ! Undocumented ERROR message so dont know how to fix the problem

2017-05-01 Thread Gregory Ewing
murdock wrote: BW = float (input ("Enter the Receiver Bandwidth in Hz")) Signal_to_Noise = float (input ("Enter the Signal to Noise in dB")) RX_Sensitivity = float (input ("Enter the RX_Sensitivity in dBm")) # print ("The Receiver Noise Figure = ",Hamath._Noise_Figure," dBm" ) I