Re: Sorting a list

2016-04-03 Thread Peter Otten
DFS wrote: > On 4/3/2016 3:31 PM, Peter Otten wrote: > from operator import itemgetter as get > print "\n".join("{1} {0}".format(*p) for p in sorted( >> ... sorted(colCounts, key=get(1)), key=get(0), reverse=True)) > > Kind of clunky looking. Is that why don't you recommend it? That, a

Re: Threading is foobared?

2016-04-03 Thread Mark Sapiro
Mark Sapiro wrote: > Random832 wrote: > >> Any chance that it could fix reference headers to match? >> >> Actually, merely prepending the original Message-ID itself to the >> references header might be enough to change the reply's situation from >> "nephew" ("reply to [missing] sibling") to "gran

ONE CLICK REST API

2016-04-03 Thread David Shi via Python-list
Eclipse has got one click app for creating REST services. What is it equivalent in Python? Regards. David -- https://mail.python.org/mailman/listinfo/python-list

Re: How to make sphinx to recognize functools.partial?

2016-04-03 Thread MRAB
On 2016-04-04 01:26, George Trojan wrote: Yet another sphinx question. I am a beginner here. I can't make sphinx to recognize the following (abbreviated) code: ''' module description :func:`~pipe` and :func:`~spipe` read data passed by LDM's `pqact`. ''' def _pipe(f, *args): '''doc str

How to make sphinx to recognize functools.partial?

2016-04-03 Thread George Trojan
Yet another sphinx question. I am a beginner here. I can't make sphinx to recognize the following (abbreviated) code: ''' module description :func:`~pipe` and :func:`~spipe` read data passed by LDM's `pqact`. ''' def _pipe(f, *args): '''doc string''' pass def _get_msg_spipe(): '

Re: Plot/Graph

2016-04-03 Thread MRAB
On 2016-04-04 01:04, Muhammad Ali wrote: On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > How do I convert/change/modify python script so that my data could be extracted according to python script and at the end it generates ano

Re: Plot/Graph

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:35:58 PM UTC-7, Oscar Benjamin wrote: > On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > > > How do I convert/change/modify python script so that my data could be > extracted according to python script and at the end it generates another > single extracted data file in

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
On 03/04/16 22:49, Loop.IO wrote: You now seem to be on some sort of rampage I offered you some valuable advice. *plonk* E. -- https://mail.python.org/mailman/listinfo/python-list

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 10:27:16 PM UTC+1, Erik wrote: > Loop.IO: > > On 03/04/16 21:25, Loop.IO wrote: > > On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: > >> On 03/04/16 20:54, Loop.IO wrote: > >>> The original post said what did happen, the code runs and hangs on > >>> the create

Re: Failed to update the os.environ with subprocess.Popen.

2016-04-03 Thread Cameron Simpson
On 03Apr2016 11:24, Hongyi Zhao wrote: On Sun, 03 Apr 2016 18:20:31 +1000, Cameron Simpson wrote: In particular, you want the subprocess' output. As written, your code sets "output" to the Popen object. You actually want to set it to the .stdout attribute of that object, which is the output fr

Re: Plot/Graph

2016-04-03 Thread Oscar Benjamin
On 3 Apr 2016 22:21, "Muhammad Ali" wrote: > > How do I convert/change/modify python script so that my data could be extracted according to python script and at the end it generates another single extracted data file instead of displaying/showing some graph? So that, I can manually plot the newly

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
Loop.IO: On 03/04/16 21:25, Loop.IO wrote: On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: On 03/04/16 20:54, Loop.IO wrote: The original post said what did happen, the code runs and hangs on the create file, and once i press Enter it then finishes and creates the file, not sure how

Untrusted code execution

2016-04-03 Thread Jon Ribbens
I'd just like to say up front that this is more of a thought experiment than anything else, I don't have any plans to use this idea on any genuinely untrusted code. Apart from anything else, there's the denial-of-service issue. That said, is there any way that the following Python 3.4 code could r

Re: Plot/Graph

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 2:04:45 PM UTC-7, Michael Selik wrote: > Indeed there is. Every example in the gallery shows the code to produce it. > > http://matplotlib.org/gallery.html > > On Sun, Apr 3, 2016, 8:05 PM Muhammad Ali > wrote: > > > > > Hi, > > > > Could anybody tell me that how can

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 9:21:44 PM UTC+1, BartC wrote: > On 03/04/2016 20:36, Loop.IO wrote: > > On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: > > >> The issue is that it hangs, there is no error. its like it pauses until i > >> press enter, ill try what you've posted one momen

Re: Plot/Graph

2016-04-03 Thread Michael Selik
Indeed there is. Every example in the gallery shows the code to produce it. http://matplotlib.org/gallery.html On Sun, Apr 3, 2016, 8:05 PM Muhammad Ali wrote: > > Hi, > > Could anybody tell me that how can I plot graphs by matplotlib and get > expertise in a short time? I have to plot 2D plots

Re: PyQt4

2016-04-03 Thread Vincent Vande Vyvre
Le 03/04/2016 21:36, Muhammad Ali a écrit : On Sunday, April 3, 2016 at 12:15:06 PM UTC-7, Michael Torrie wrote: On 04/03/2016 12:57 PM, Muhammad Ali wrote: Hi, How can we confirm that either PyQt4 is already installed on LInux machine or not? Please suggest commands to confirm the already

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 9:15:22 PM UTC+1, Erik wrote: > On 03/04/16 20:54, Loop.IO wrote: > > The original post said what did happen, the code runs and hangs on > > the create file, and once i press Enter it then finishes and creates > > the file, not sure how you missed that but thanks > > Ye

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 20:36, Loop.IO wrote: On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: The issue is that it hangs, there is no error. its like it pauses until i press enter, ill try what you've posted one momen Ok the Bartc code gives me an error. This is confusing! I know you

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
On 03/04/16 20:54, Loop.IO wrote: The original post said what did happen, the code runs and hangs on the create file, and once i press Enter it then finishes and creates the file, not sure how you missed that but thanks Yes, I read your original post. That was days ago. The comment I was reply

Re: i cant seem to figure out the error

2016-04-03 Thread Erik
Hi Anthony, On 03/04/16 16:06, anthony uwaifo wrote: please i need help with this assignment. I have written a code and i still get an error. please help me debug my code. We see this assignment come up a lot. The "tutor" list is a better place to go, but well done for at least attempting it

Re: Sorting a list

2016-04-03 Thread DFS
On 4/3/2016 3:31 PM, Peter Otten wrote: DFS wrote: cntText = 60 cntBool = 20 cntNbrs = 30 cntDate = 20 cntBins = 20 strText = " text: " strBool = " boolean: " strNbrs = " numeric: " strDate = " date-time:" strBins = " binary: " colCounts = [(cntText,strText) , (cntBool,strBool),

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 8:49:28 PM UTC+1, Erik wrote: > Hi Loop.IO, > > On 03/04/16 15:41, Loop.IO wrote: > >> If you don't want the user to enter anything, then I explained how > >> before, just use: > >> > >>name='C:\\Documents\\PythonCoding\\launch2.bat' > >> > >> if that's the file

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:38:48 AM UTC+1, Mark Lawrence wrote: > On 03/04/2016 01:12, BartC wrote: > > On 02/04/2016 23:31, Loop.IO wrote: > > > >> Oh i see, so the code prompts for a name.. so i'm more lost than i > >> thought, what do I need to change to make it just create the file with > >>

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Michael Selik
How do you know when you're done typing the name of the file? It's hard to get tone right on the internet, so I'll clarify: this is not a rhetorical question and I mean you, LoopIO, not a generic person. On Sun, Apr 3, 2016, 8:40 PM Loop.IO wrote: > On Sunday, April 3, 2016 at 8:32:06 PM UTC+1,

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Erik
Hi Loop.IO, On 03/04/16 15:41, Loop.IO wrote: If you don't want the user to enter anything, then I explained how before, just use: name='C:\\Documents\\PythonCoding\\launch2.bat' if that's the file name you need. -- Bartc Hi Bartc, i tried that, didn't work FYI, for the future. Te

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 8:32:06 PM UTC+1, Loop.IO wrote: > On Sunday, April 3, 2016 at 4:11:49 PM UTC+1, BartC wrote: > > On 03/04/2016 15:41, Loop.IO wrote: > > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > > >> On 02/04/2016 23:31, Loop.IO wrote: > > >> > > >>> Oh i see, so t

Re: PyQt4

2016-04-03 Thread Muhammad Ali
On Sunday, April 3, 2016 at 12:15:06 PM UTC-7, Michael Torrie wrote: > On 04/03/2016 12:57 PM, Muhammad Ali wrote: > > > > Hi, > > > > How can we confirm that either PyQt4 is already installed on LInux machine > > or not? > > > > Please suggest commands to confirm the already existence of PyQ

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 4:11:49 PM UTC+1, BartC wrote: > On 03/04/2016 15:41, Loop.IO wrote: > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > >> On 02/04/2016 23:31, Loop.IO wrote: > >> > >>> Oh i see, so the code prompts for a name.. so i'm more lost than i > >>> thought, what

Re: Sorting a list

2016-04-03 Thread Peter Otten
DFS wrote: > cntText = 60 > cntBool = 20 > cntNbrs = 30 > cntDate = 20 > cntBins = 20 > > strText = " text: " > strBool = " boolean: " > strNbrs = " numeric: " > strDate = " date-time:" > strBins = " binary: " > > colCounts = [(cntText,strText) , (cntBool,strBool), (cntNbrs,strNbrs)

Re: PyQt4

2016-04-03 Thread Michael Torrie
On 04/03/2016 12:57 PM, Muhammad Ali wrote: > > Hi, > > How can we confirm that either PyQt4 is already installed on LInux machine > or not? > > Please suggest commands to confirm the already existence of PyQt4 in the > machine. Ideally you make a distribution-specific package of the binary

Plot/Graph

2016-04-03 Thread Muhammad Ali
Hi, Could anybody tell me that how can I plot graphs by matplotlib and get expertise in a short time? I have to plot 2D plots just like origin software. Secondly, how could we draw some horizontal reference line at zero when the vertical scale is from -3 to 3? Looking for your posts, please

PyQt4

2016-04-03 Thread Muhammad Ali
Hi, How can we confirm that either PyQt4 is already installed on LInux machine or not? Please suggest commands to confirm the already existence of PyQt4 in the machine. Thank you. -- https://mail.python.org/mailman/listinfo/python-list

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 09:49:03 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 9:41:11 PM UTC+5:30, Dan Sommers wrote: >> On Sun, 03 Apr 2016 08:46:59 -0700, Rustom Mody wrote: >> >> > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> >> Yes, it's marginally annoying, a

Sorting a list

2016-04-03 Thread DFS
cntText = 60 cntBool = 20 cntNbrs = 30 cntDate = 20 cntBins = 20 strText = " text: " strBool = " boolean: " strNbrs = " numeric: " strDate = " date-time:" strBins = " binary: " colCounts = [(cntText,strText) , (cntBool,strBool), (cntNbrs,strNbrs) , (cntDate,strDate) , (cntBins,strB

Re: Sorting a list

2016-04-03 Thread DFS
On 4/3/2016 2:30 PM, DFS wrote: cntText = 60 cntBool = 20 cntNbrs = 30 cntDate = 20 cntBins = 20 strText = " text: " strBool = " boolean: " strNbrs = " numeric: " strDate = " date-time:" strBins = " binary: " colCounts = [(cntText,strText) , (cntBool,strBool), (cntNbrs,strNbrs) , (

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 10:18:45 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 9:56:24 PM UTC+5:30, Dan Sommers wrote: >> On Sun, 03 Apr 2016 08:39:02 -0700, Rustom Mody wrote: >> >> > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> >> On Sun, 03 Apr 2016 07:30:47 -07

Re: i cant seem to figure out the error

2016-04-03 Thread MRAB
On 2016-04-03 18:34, Jason Friedman wrote: - Create a method called `withdraw` that takes in cash withdrawal amount and updates the balance accordingly. if amount is greater than balance return `"invalid transaction"` def withdraw(self, amount): self.amount=amount if(amount >

Re: i cant seem to figure out the error

2016-04-03 Thread Peter Pearson
On Sun, 3 Apr 2016 16:06:58 +0100, anthony uwaifo wrote: [snip] > > class BankAccount(object): > def __init__(self, balance): > self.balance = balance > > > def deposit(self, amount): > self.amount=amount > self.balance += amount > return self.balance > > > def withdraw(self,

Re: i cant seem to figure out the error

2016-04-03 Thread MRAB
On 2016-04-03 16:06, anthony uwaifo wrote: hi everyone, please i need help with this assignment. I have written a code and i still get an error. please help me debug my code. instructions: - Create a constructor that takes in an integer and assigns this to a `balance` property. - C

Re: i cant seem to figure out the error

2016-04-03 Thread Jason Friedman
> def deposit(self, amount): > self.amount=amount > self.balance += amount > return self.balance > > > def withdraw(self, amount): > self.amount=amount > if(amount > self.balance): > return ("Amount greater than available balance.") > else: > self.balance -= amou

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 3:18 AM, Rustom Mody wrote: > While I personally dont know enough about security to be able to demonstrate a > full sequence of events, here's a little fun I had with Chris: > > https://mail.python.org/pipermail/python-list/2014-May/672413.html > > Do you not think this coul

Re: i cant seem to figure out the error

2016-04-03 Thread Jason Friedman
> >- Create a method called `withdraw` that takes in cash withdrawal amount >and updates the balance accordingly. if amount is greater than balance >return `"invalid transaction"` > > def withdraw(self, amount): > self.amount=amount > if(amount > self.balance): > return

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 9:56:24 PM UTC+5:30, Dan Sommers wrote: > On Sun, 03 Apr 2016 08:39:02 -0700, Rustom Mody wrote: > > > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: > >> On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: > >> > >> > So here are some examples

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 9:30:40 PM UTC+5:30, Chris Angelico wrote: > Exactly why did you have root ssh access with a password? Umm... Dont exactly remember. Probably it was not strictly necessary. Combination of carelessness, stupidity, hurry Brings me to... On Sunday, April 3, 2016 at 9

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 2:22 AM, Dan Sommers wrote: > What about the A vs a case, which comes up even with ASCII-only > characters? If those are the same, then I, as a reader of Python code, > have to understand all the rules about ß (which I think have changed > over time), and potentially þ and

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 08:39:02 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: >> >> > So here are some examples to illustrate what I am saying: >> >> [A vs a, A vs A, flag vs flag, etc.] > >>

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 2:24 AM, Michael Okuntsov wrote: > As an OP, can I participate in the discussion? Here in Russia we have a > monstrous bookkeeping system called 1C-Predpriyatiye that is used by almost > all firms and organizations, from kiosks to huge factories. This system has > a Basic-li

Re: Strange range

2016-04-03 Thread Ethan Furman
On 04/02/2016 11:58 PM, Marko Rauhamaa wrote: Stephen Hansen : On Sat, Apr 2, 2016, at 02:40 PM, Marko Rauhamaa wrote: That's why I was looking for counterexamples in the standard library This entire bent of an argument seems flawed to me. The standard library has never been a beacon for be

Re: [beginner] What's wrong?

2016-04-03 Thread Michael Okuntsov
03.04.2016 20:52, Rustom Mody пишет: To really localize python one would have to 1. Localize the keywords 2. Localize all module names 3. Localize all the help strings 4. Localize the entire stuff up at https://docs.python.org/3/ 5. ... That is probably one or two orders of magnitude more work

i cant seem to figure out the error

2016-04-03 Thread anthony uwaifo
hi everyone, please i need help with this assignment. I have written a code and i still get an error. please help me debug my code. instructions: - Create a constructor that takes in an integer and assigns this to a `balance` property. - Create a method called `deposit` that takes in ca

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 08:46:59 -0700, Rustom Mody wrote: > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> Yes, it's marginally annoying, and a security hole waiting to happen, >> that A and A often look very much alike. > > "A security hole waiting to happen" = "Marginally a

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 16:25, Rustom Mody wrote: On Sunday, April 3, 2016 at 8:41:49 PM UTC+5:30, BartC wrote: You can create the path manually outside of Python. Or look up the docs to find out how to do that. A quick google suggested using os.makedirs (to create multiple nested paths at the same time

Re: [beginner] What's wrong?

2016-04-03 Thread Chris Angelico
On Mon, Apr 4, 2016 at 1:46 AM, Rustom Mody wrote: > On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: >> Yes, it's marginally annoying, and a security hole waiting to happen, >> that A and A often look very much alike. > > > "A security hole waiting to happen" = "Marginally anno

Re: [beginner] What's wrong?

2016-04-03 Thread Larry Martell
On Sun, Apr 3, 2016 at 11:46 AM, Rustom Mody wrote: > Personal note: I once was idiot enough to have root with password root123 I changed my password to "incorrect," so whenever I forget it the computer will say, "Your password is incorrect." -- https://mail.python.org/mailman/listinfo/python-li

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: > Yes, it's marginally annoying, and a security hole waiting to happen, > that A and A often look very much alike. "A security hole waiting to happen" = "Marginally annoying" Frankly I find this juxtaposition alarming Personal

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:58:59 PM UTC+5:30, Dan Sommers wrote: > On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: > > > So here are some examples to illustrate what I am saying: > > [A vs a, A vs A, flag vs flag, etc.] > I understand that in some use cases, flag and flag represent the s

Re: [beginner] What's wrong?

2016-04-03 Thread Dan Sommers
On Sun, 03 Apr 2016 07:30:47 -0700, Rustom Mody wrote: > So here are some examples to illustrate what I am saying: [A vs a, A vs A, flag vs flag, etc.] Are identifiers text or bytes? or something else entirely that takes natural language rules and the appearance of the glyphs into account? I, fo

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 8:41:49 PM UTC+5:30, BartC wrote: > On 03/04/2016 15:41, Loop.IO wrote: > > On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > >> On 02/04/2016 23:31, Loop.IO wrote: > >> > >>> Oh i see, so the code prompts for a name.. so i'm more lost than i > >>> thought, w

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread BartC
On 03/04/2016 15:41, Loop.IO wrote: On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: On 02/04/2016 23:31, Loop.IO wrote: Oh i see, so the code prompts for a name.. so i'm more lost than i thought, what do I need to change to make it just create the file with the chosen name Launch2

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 5:19:33 AM UTC+5:30, Steven D'Aprano wrote: > On Sun, 3 Apr 2016 03:12 am, Thomas 'PointedEars' Lahn wrote: > > > Marko Rauhamaa wrote: > > > >> Steven D'Aprano : > >>> So you're saying that learning to be a fluent speaker of English is a > >>> pre-requisite of being a

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:08:59 AM UTC+1, Mark Lawrence wrote: > On 02/04/2016 23:23, Loop.IO wrote: > > On Saturday, April 2, 2016 at 11:09:13 PM UTC+1, BartC wrote: > >> On 02/04/2016 22:59, Loop.IO wrote: > >>> Hey > >>> > >>> So I built a keylogger using python as a test, got the code from

Re: [Beginner] - Hanging in the code, can't figure out what's wrong

2016-04-03 Thread Loop.IO
On Sunday, April 3, 2016 at 1:12:23 AM UTC+1, BartC wrote: > On 02/04/2016 23:31, Loop.IO wrote: > > > Oh i see, so the code prompts for a name.. so i'm more lost than i thought, > > what do I need to change to make it just create the file with the chosen > > name Launch2.bat without the prompt?

Re: [beginner] What's wrong?

2016-04-03 Thread Rustom Mody
On Sunday, April 3, 2016 at 5:17:36 PM UTC+5:30, Thomas 'PointedEars' Lahn wrote: > Rustom Mody wrote: > > > On Saturday, April 2, 2016 at 10:42:27 PM UTC+5:30, Thomas 'PointedEars' > > Lahn wrote: > >> Marko Rauhamaa wrote: > >> > Steven D'Aprano : > >> >> So you're saying that learning to be a

Re: [beginner] What's wrong?

2016-04-03 Thread alister
On Sun, 03 Apr 2016 02:04:05 +0100, Mark Lawrence wrote: > On 03/04/2016 01:48, Steven D'Aprano wrote: >> On Sun, 3 Apr 2016 07:42 am, Michael Selik wrote: >> >>> Gaming also helps your reaction time. Normally 0.3 ms, but 0.1 ms for >>> top gamers. And fighter pilots. >> >> Does gaming help reacti

Re: [beginner] What's wrong?

2016-04-03 Thread Thomas 'PointedEars' Lahn
Rustom Mody wrote: > On Saturday, April 2, 2016 at 10:42:27 PM UTC+5:30, Thomas 'PointedEars' > Lahn wrote: >> Marko Rauhamaa wrote: >> > Steven D'Aprano : >> >> So you're saying that learning to be a fluent speaker of English is a >> >> pre-requisite of being a programmer? >> > >> > No more than

Re: Failed to update the os.environ with subprocess.Popen.

2016-04-03 Thread Hongyi Zhao
On Sun, 03 Apr 2016 18:20:31 +1000, Cameron Simpson wrote: > In particular, you want the subprocess' output. As written, your code > sets "output" to the Popen object. You actually want to set it to the > .stdout attribute of that object, which is the output from the > subcommand. Based on your a

Re: Failed to update the os.environ with subprocess.Popen.

2016-04-03 Thread Cameron Simpson
On 03Apr2016 14:24, Steven D'Aprano wrote: On Sun, 3 Apr 2016 01:29 pm, Hongyi Zhao wrote: I use the following code to update the os.environ with subprocess.Popen: I don't understand what you are trying to do here. But regardless of your intention, the problem you have is nothing to do with u

Re: [beginner] What's wrong?

2016-04-03 Thread Thomas 'PointedEars' Lahn
Michael Torrie wrote: > Mark, your messages are showing up to the list as being from "python," > at least on my email. Any reason for this? Depends on which Mark you are addressing and how you are reading e-mail. The messages of Mark Lawrence, for example, appear to me as technically correct a

Re: Strange range

2016-04-03 Thread Chris Angelico
On Sun, Apr 3, 2016 at 4:58 PM, Marko Rauhamaa wrote: >> That a use exists in the standard library, or that one does not, >> doesn't really tell you anything meaningful about Python itself or >> good practices with the language. The standard library is under >> uniquely conservative constraints th

Re: Strange range

2016-04-03 Thread Chris Angelico
On Sun, Apr 3, 2016 at 4:43 PM, Stephen Hansen wrote: > The stdlib exists as a bastion of stability above all else. Its > standards aren't a reason to make a change (or, not to make a change, > either). That doesn't mean its not useful to look at the standard > library, but you should not enshrine

Re: Strange range

2016-04-03 Thread Marko Rauhamaa
Stephen Hansen : > On Sat, Apr 2, 2016, at 02:40 PM, Marko Rauhamaa wrote: >> That's why I was looking for counterexamples in the standard library > > This entire bent of an argument seems flawed to me. > > The standard library has never been a beacon for best practices or > idiomatic uses of Pyth