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
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
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
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
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():
'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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),
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
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
> >>
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,
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
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
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
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
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)
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
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
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
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
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
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) ,
(
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
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 >
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,
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
> 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
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
>
>- 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
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
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
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
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.]
>
>>
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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?
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
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
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
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
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
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
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
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
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
72 matches
Mail list logo