Re: Python smpplib

2017-05-18 Thread dieter
santosh.yelamar...@gmail.com writes: > I need help in python smpplib, I am trying to send message through smpplib > but I can't. > > Actually, In web I seen one video regarding this > > link : > http://fosshelp.blogspot.in/2014/01/python-howto-send-sms-using-smpp.html > > In this video, he is abl

Re: How to install Python package from source on Windows

2017-05-18 Thread Christian Gollwitzer
Am 19.05.17 um 02:27 schrieb bartc: So I need msbuild. (This is getting more and more like the Tutti Frutti sketch in that Marx Bros film...) Install MSBUILD. Start a new console. Type msbuild; nothing. In fact I can't find any trace of it. Eventually track it down to inside VS directories, b

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Fri, 19 May 2017 10:40 am, Michael Torrie wrote: >> Since you are ultimately compiling the code in C, those ideas of >> undefined behaviour etc do apply. The behaviour of the C compiler doesn't >> suddenly, magically, change just because the code was generated by a >> program in another languag

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Fri, 19 May 2017 07:46 am, bartc wrote: > And why am I being put through the third degree? When you are a lone wolf cowboy coder, and you choose to publicly criticise code written by dozens of people and claim that your code is so much better than theirs, then you should expect to be asked to

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Fri, 19 May 2017 04:17 am, bartc wrote: > The wall of text consists of very long string constants that gcc is > displaying so it can tell you they are very long. (One or two compilers > can't handle them, but gcc can, so a routine that would normally divide > them into smaller ones has been dis

RE: Survey: improving the Python std lib docs

2017-05-18 Thread Deborah Swanson
> -Original Message- > From: Python-list > [mailto:python-list-bounces+python=deborahswanson.net@python.o > rg] On Behalf Of Gregory Ewing > Sent: Thursday, May 18, 2017 5:00 PM > To: python-list@python.org > Subject: Re: Survey: improving the Python std lib docs > > > Deborah Swanson

Re: How to install Python package from source on Windows

2017-05-18 Thread Chris Angelico
On Fri, May 19, 2017 at 10:40 AM, Michael Torrie wrote: >> Since you are ultimately compiling the code in C, those ideas of undefined >> behaviour etc do apply. The behaviour of the C compiler doesn't suddenly, >> magically, change just because the code was generated by a program in >> another lan

Re: How to install Python package from source on Windows

2017-05-18 Thread Michael Torrie
On 05/18/2017 05:15 PM, Steve D'Aprano wrote: > Oh but this is Bart we're talking about. Of course his code generator is > perfect, it is unthinkable that it emits incorrect code. I think we've picked on Bart enough for one day. Fortunately he seems rather good natured, but this is bordering on t

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 18:11, Steve D'Aprano wrote: On Thu, 18 May 2017 11:38 pm, bartc wrote: Seems a bit hypocritical, don't you think? Expecting people to go spelunking into your undocumented mystery language source code to work out how to build it from source, and then turning around and complainin

Re: Survey: improving the Python std lib docs

2017-05-18 Thread Gregory Ewing
Deborah Swanson wrote: somenamedtuple._replace(kwargs) Return a new instance of the named tuple replacing specified fields with new values: (Examples box)---| |>>> | | | |>>> p = Point(x=11, y=22) | |>>> p._replace(x=33

RE: Survey: improving the Python std lib docs

2017-05-18 Thread Deborah Swanson
justin walters wrote, on Thursday, May 18, 2017 8:09 AM > To: python-list@python.org > Subject: Re: Survey: improving the Python std lib docs > > So, args can be treated as a simple (named)? tuple or a > simple dictionary. `*` unpacks a list or tuple and `**` > unpacks a dictionary. I'm sure it'

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread jladasky
On Thursday, May 18, 2017 at 2:44:54 PM UTC-7, qasi...@gmail.com wrote: > Yes, I wrote: "The atoms of the first part/half according to the main COM of > the ligand are C2, C7, C8 and C9. As for the second part they are C3, C4, C5 > and C6 atoms." It was just an example. In fact, I don't know whic

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Fri, 19 May 2017 06:12 am, Chris Angelico wrote: > On Fri, May 19, 2017 at 5:29 AM, bartc wrote: >> On 18/05/2017 19:50, Chris Angelico wrote: >> >>> Now this, however, is more serious. Those warnings scare me, too. (I >>> just tried it.) Instead of being "gcc is noisy", these are "your code >

Re: How to install Python package from source on Windows

2017-05-18 Thread Chris Angelico
On Fri, May 19, 2017 at 7:46 AM, bartc wrote: > On 18/05/2017 21:12, Chris Angelico wrote: >> >> On Fri, May 19, 2017 at 5:29 AM, bartc wrote: > > >> "largely" verified. Can you be absolutely certain that not one of >> these compiler-detected issues is actually a problem? Would you stake >> your

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 21:12, Chris Angelico wrote: On Fri, May 19, 2017 at 5:29 AM, bartc wrote: "largely" verified. Can you be absolutely certain that not one of these compiler-detected issues is actually a problem? Would you stake your life on it - for example, would you compile this code and put i

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread qasimpars
Yes, I wrote: "The atoms of the first part/half according to the main COM of the ligand are C2, C7, C8 and C9. As for the second part they are C3, C4, C5 and C6 atoms." It was just an example. In fact, I don't know which atoms belong to each half. The code should do it of course. That is, I gav

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread jladasky
On Thursday, May 18, 2017 at 1:43:20 PM UTC-7, qasi...@gmail.com wrote: > Dear Gregory Ewing, > > As I said before, I need to divide the molecule into two parts but don't know > how to do it? It seems that I need to choose/determine a plane in 3D space > which cuts the molecule in two parts. As

Re: /g/? (was: What if range did not exist?)

2017-05-18 Thread justin walters
On Thu, May 18, 2017 at 12:48 PM, Skip Montanaro wrote: > > It's the technology board on 4chan. It's pretty useless. Mostly just for > > messing around. > > Thanks. I tried to visit 4chan, but company access policy forbade > it... Something about porn. > > Skip > The place is a cesspool. I don't

Re: How to install Python package from source on Windows

2017-05-18 Thread Ian Kelly
On Thu, May 18, 2017 at 1:29 PM, bartc wrote: > > On 18/05/2017 19:50, Chris Angelico wrote: > >> Now this, however, is more serious. Those warnings scare me, too. (I >> just tried it.) Instead of being "gcc is noisy", these are "your code >> is sloppy". These are exactly why I tell most people NO

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread qasimpars
Dear Gregory Ewing, As I said before, I need to divide the molecule into two parts but don't know how to do it? It seems that I need to choose/determine a plane in 3D space which cuts the molecule in two parts. As John Ladasky suggested, I need to describe the criteria that cut needs to satisfy

Re: How to install Python package from source on Windows

2017-05-18 Thread Irmen de Jong
On 18-5-2017 3:30, Dennis Lee Bieber wrote: > Late-comer... I'm pretty sure 1.4, if not 1.3 was the version > documented in the first books I bought on the language... > > And I bought because AmigaOS was listed as a viable candidate (thanks > Irmen) -- within a week I had written an o

Re: How to install Python package from source on Windows

2017-05-18 Thread Chris Angelico
On Fri, May 19, 2017 at 5:29 AM, bartc wrote: > On 18/05/2017 19:50, Chris Angelico wrote: > >> Now this, however, is more serious. Those warnings scare me, too. (I >> just tried it.) Instead of being "gcc is noisy", these are "your code >> is sloppy". These are exactly why I tell most people NOT

Re: How to install Python package from source on Windows

2017-05-18 Thread Marko Rauhamaa
bartc : > Bear in mind C allows you to do this: > > int *A[10];// array of pointers to int > int (*B)[10]; // pointer to array of int > int i; > > *A[i]; // index then deref to get the int > (*B)[i]; // deref then index to get the int > > That's fine so far: one is an array of p

Re: How to install Python package from source on Windows

2017-05-18 Thread Chris Angelico
On Fri, May 19, 2017 at 4:17 AM, bartc wrote: > I'm sorry, I thought anyone who has used C a couple of times would know how > to compile a Hello, World program. And would know how to download a file > into a local directory. Here are some instructions to get started: > > (1) Click on this link: >

Re: /g/? (was: What if range did not exist?)

2017-05-18 Thread justin walters
On Thu, May 18, 2017 at 11:18 AM, Skip Montanaro wrote: > > I visit /g/ quite often ... > > Is this a channel on Reddit or something else? > > Thx, > > Skip Montanaro > It's the technology board on 4chan. It's pretty useless. Mostly just for messing around. -- https://mail.python.org/mailman/li

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 18:11, Steve D'Aprano wrote: Seems a bit hypocritical, don't you think? Expecting people to go spelunking into your undocumented mystery language source code to work out how to build it from source, and then turning around and complaining that Python's build process: PCbuild\build

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 19:50, Chris Angelico wrote: Now this, however, is more serious. Those warnings scare me, too. (I just tried it.) Instead of being "gcc is noisy", these are "your code is sloppy". These are exactly why I tell most people NOT to write in C. For machine-generated code, this is IMO un

Re: How to install Python package from source on Windows

2017-05-18 Thread Chris Angelico
On Fri, May 19, 2017 at 3:11 AM, Steve D'Aprano wrote: > On Thu, 18 May 2017 11:38 pm, bartc wrote: >> OK, same url but with '32' instead: >> >> https://github.com/bartg/langs/blob/master/qlang/qcc32.c >> https://github.com/bartg/langs/blob/master/qlang/pcc32.c > > https://duckduck

Python program to run commands on cmd.exe from a tkinter GUI input box

2017-05-18 Thread Sanjay Yadav
Can anybody help or share a python code using Tkinter for opening cmd.exe and running command given from input box. For eg. when I run the code it will ask IP in an input box gui and ping response for that IP will be on cmd console -- https://mail.python.org/mailman/listinfo/python-list

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 19:17, bartc wrote: On 18/05/2017 18:11, Steve D'Aprano wrote: unsafe dereferencing of type-punned pointers, missing parentheses, suggested parentheses not missing. And they are suggested because, in C, when people write a

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 18:11, Steve D'Aprano wrote: On Thu, 18 May 2017 11:38 pm, bartc wrote: Speaking of user-hostile experiences, why do you need separate source files for 32- and 64-bit builds? Why isn't it just a build option? I've never heard of people using separate source code for 32- and 64-bi

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread John Ladasky
On Thursday, May 18, 2017 at 3:55:01 AM UTC-7, qasi...@gmail.com wrote: > @jladasky and @Gregory: > > 3) Divide the ligand molecule into two parts (except for ligand heavy atom > closest to the COM of the whole ligand) based on the COM previously > calculated. OK, now I agree with Gregory Ewin

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Thu, 18 May 2017 11:38 pm, bartc wrote: > > Speaking of user-hostile experiences, why do you need separate source > > files for 32- and 64-bit builds? Why isn't it just a build option? > > > > I've never heard of people using separate source code for 32- and 64-bit > > releases. I can understan

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 15:32, Ian Kelly wrote: On Thu, May 18, 2017 at 8:02 AM, bartc wrote: On 18/05/2017 12:37, Rhodri James wrote: but (a) you have no leg to stand on criticising configure scripts with that file, You think so? After the first 50 lines, there are no #includes, no #defines, no #i

Re: Survey: improving the Python std lib docs

2017-05-18 Thread justin walters
On Thu, May 18, 2017 at 8:08 AM, justin walters wrote: > > > On Thu, May 18, 2017 at 12:09 AM, Deborah Swanson < > pyt...@deborahswanson.net> wrote: > >> Michael Torrie wrote, on Wednesday, May 17, 2017 3:11 PM >> > >> > On 05/17/2017 02:31 PM, Ned Batchelder wrote: >> > > Can you give an example

Re: New to python and programming

2017-05-18 Thread Grant Edwards
On 2017-05-17, BT wrote: > I am fairly new to programming. I was just trying to understand how > this group works. Am i allowed to ask any questions that I may have > when i get stuck? Certainly. For best results, post small pieces of code that demonstrate your problem/question (cut and paste f

Re: Survey: improving the Python std lib docs

2017-05-18 Thread justin walters
On Thu, May 18, 2017 at 12:09 AM, Deborah Swanson wrote: > Michael Torrie wrote, on Wednesday, May 17, 2017 3:11 PM > > > > On 05/17/2017 02:31 PM, Ned Batchelder wrote: > > > Can you give an example of such a method? Often, that signature is > > > used because there is no pre-conception of what

Re: How to install Python package from source on Windows

2017-05-18 Thread Grant Edwards
On 2017-05-18, Steve D'Aprano wrote: > On Thu, 18 May 2017 01:37 am, bartc wrote: > >> No, not like that. I mean genuinely simple. Your example: >> >> (1) Doesn't work on Windows >> (2) Usually seems to involve executing 20,000 to to 30,000 lines of >> complete gobbledygook in that configuration

Re: How to install Python package from source on Windows

2017-05-18 Thread Grant Edwards
On 2017-05-17, bartc wrote: > The content of configure is high-level human readable source code. No it isn't. Human-readable, that is. And it isn't intended to be. > But it is meaningless. IOW, it's not human-readable. Expecting to understand the code in configure.sh is like expecting to un

Re: What if range did not exist?

2017-05-18 Thread justin walters
On Thu, May 18, 2017 at 12:34 AM, Steven D'Aprano wrote: > On Wed, 17 May 2017 14:13:18 -0700, breamoreboy wrote: > > > Here it is > > https://aroberge.blogspot.co.uk/2017/05/what-if-range-did-not- > exist.html. > > I found it interesting as it gives background into the Python > > community's de

Re: How to install Python package from source on Windows

2017-05-18 Thread Ian Kelly
On Thu, May 18, 2017 at 8:02 AM, bartc wrote: > > On 18/05/2017 12:37, Rhodri James wrote: >> >> but (a) you have no leg to stand on >> criticising configure scripts with that file, > > You think so? > > After the first 50 lines, there are no #includes, no #defines, no #ifs or #ifdefs, in fact I t

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 12:37, Rhodri James wrote: On 18/05/17 02:12, bartc wrote: So tell us Bart, what do you think are the chances that your Q compiler will *just work* with no modifications at all if somebody tried to build it on an IBM AS/400, or under BeOS? Maybe somebody can try it: https://

Re: How to install Python package from source on Windows

2017-05-18 Thread bartc
On 18/05/2017 07:13, Steven D'Aprano wrote: On Thu, 18 May 2017 02:12:58 +0100, bartc wrote: A portable C application should run anywhere there is a C compiler. Ha, somebody believed the advertising hype that C is a portable, write- once-run-anywhere language. Maybe somebody can try it:

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Thu, 18 May 2017 06:10 pm, Christian Gollwitzer wrote: > Am 18.05.17 um 00:21 schrieb Chris Angelico: >> On Thu, May 18, 2017 at 8:06 AM, Christian Gollwitzer >> wrote: >>> tcc even has a "JIT-mode" of operation (libtcc). For Tcl, there exists >>> an extension which compiles C code to memory a

Re: Python smpplib

2017-05-18 Thread Steve D'Aprano
On Thu, 18 May 2017 05:55 pm, santosh.yelamar...@gmail.com wrote: > Hello Everyone, > > I need help in python smpplib, I am trying to send message through smpplib > but I can't. What have you tried? Are we supposed to guess what code you have written? Without seeing your code, the only thing I

Re: How to install Python package from source on Windows

2017-05-18 Thread Steve D'Aprano
On Thu, 18 May 2017 07:55 pm, breamore...@gmail.com wrote: >> When I first started using Python in version 1.5, among the many Unixes >> supported were: >> >> - VAX; >> - VMS; > > VAX and VMS are Unixes, you learn something new every day ;) *As well as* the many Unixes supported. :-P --

Re: How to install Python package from source on Windows

2017-05-18 Thread Rhodri James
On 18/05/17 02:12, bartc wrote: So tell us Bart, what do you think are the chances that your Q compiler will *just work* with no modifications at all if somebody tried to build it on an IBM AS/400, or under BeOS? Maybe somebody can try it: https://github.com/bartg/langs/blob/master/qlang/q

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread qasimpars
@jladasky and @Gregory: Thanks your replies. The code should do the steps below: 1) Calculate the center of mass (COM) of the whole ligand molecule with the atomic coordinates (x,y,z) 2) Find the ligand heavy atom closest to the COM of the whole ligand molecule 3) Divide the ligand molecule int

Python, Unicode, utf-16, utf-32.

2017-05-18 Thread breamoreboy
For those of you who share my extremely dry sense of humour you might like to take a look at this https://groups.google.com/forum/#!topic/comp.lang.python/-58lTkBBZU4. I've not shared directly as it's the latest from the RUE. Apparantly Python 3 is the buggiest ever, despite the huge build in

Re: How to install Python package from source on Windows

2017-05-18 Thread breamoreboy
On Thursday, May 18, 2017 at 1:19:48 AM UTC+1, Steve D'Aprano wrote: > On Thu, 18 May 2017 07:47 am, Ian Kelly wrote: > > > Because, as has already been stated, there's no way to make such a simple > > process cross-platform. > > Please understand that Bart's understanding of cross-platform and t

Re: How to install Python package from source on Windows

2017-05-18 Thread breamoreboy
On Wednesday, May 17, 2017 at 9:27:58 PM UTC+1, bartc wrote: > On 17/05/2017 21:05, Mark Lawrence wrote: > > On Wednesday, May 17, 2017 at 8:32:40 PM UTC+1, bartc wrote: > >> On 17/05/2017 17:23, Chris Angelico wrote: > >>> On Thu, May 18, 2017 at 1:37 AM, bartc wrote: > On 17/05/2017 15:13,

Re: New to python and programming

2017-05-18 Thread breamoreboy
On Wednesday, May 17, 2017 at 9:00:08 PM UTC+1, BT wrote: > Hi guys, > I am fairly new to programming. I was just trying to understand how this > group works. Am i allowed to ask any questions that I may have when i get > stuck? I mean is this group for new programmers as well..? > Thanks You ca

What if range did not exist?

2017-05-18 Thread breamoreboy
Here it is https://aroberge.blogspot.co.uk/2017/05/what-if-range-did-not-exist.html. I found it interesting as it gives background into the Python community's development philosophy. I read it from start to finish but some of you may simply wish to jump to the punch line. Kindest regards. M

Re: How to install Python package from source on Windows

2017-05-18 Thread breamoreboy
On Wednesday, May 17, 2017 at 8:32:40 PM UTC+1, bartc wrote: > On 17/05/2017 17:23, Chris Angelico wrote: > > On Thu, May 18, 2017 at 1:37 AM, bartc wrote: > >> On 17/05/2017 15:13, Chris Angelico wrote: > > > [1] Does work on Windows. Install bash for Windows, or (on a > > recent-enough Windows)

Re: How to install Python package from source on Windows

2017-05-18 Thread Christian Gollwitzer
Am 18.05.17 um 00:21 schrieb Chris Angelico: On Thu, May 18, 2017 at 8:06 AM, Christian Gollwitzer wrote: tcc even has a "JIT-mode" of operation (libtcc). For Tcl, there exists an extension which compiles C code to memory and executes directly from there. The same thing could be done for Python

Python smpplib

2017-05-18 Thread santosh . yelamarthi
Hello Everyone, I need help in python smpplib, I am trying to send message through smpplib but I can't. Actually, In web I seen one video regarding this link : http://fosshelp.blogspot.in/2014/01/python-howto-send-sms-using-smpp.html In this video, he is able to send sms through the same code.

Re: What if range did not exist?

2017-05-18 Thread Steven D'Aprano
On Wed, 17 May 2017 14:13:18 -0700, breamoreboy wrote: > Here it is > https://aroberge.blogspot.co.uk/2017/05/what-if-range-did-not- exist.html. > I found it interesting as it gives background into the Python > community's development philosophy. I read it from start to finish but > some of you

Re: getting the center of mass of each part of a molecule

2017-05-18 Thread Gregory Ewing
jlada...@itu.edu wrote: I took the OP at their word. S/he wants the center of mass of the whole molecule, with the atomic coordinates as shown. Then s/he wants the center of mass of two subsets of those atoms. Unless I misunderstood, this isn't a particularly difficult task. He said he wante

RE: Survey: improving the Python std lib docs

2017-05-18 Thread Deborah Swanson
Michael Torrie wrote, on Wednesday, May 17, 2017 3:11 PM > > On 05/17/2017 02:31 PM, Ned Batchelder wrote: > > Can you give an example of such a method? Often, that signature is > > used because there is no pre-conception of what the arguments might > > be. > > I'm not sure if this afflicts the