- Original Message -
> From: "C Smith"
> I read that with 2.7 that I had to initialize class variables to
> immutable types. I think because I was working with the lists before
> they had been altered and were still empty lists. I will mess around
> tomorrow with the classes you suggested
On 05/11/2014 06:40, dieter wrote:
Robin Becker writes:
Is there a way to do pkcs7 / 12 signing with python.
Have you checked whether "OpenSSL" supports this kind of signing?
If it does, then you likely can use this via several Python wrappings
for "OpenSSL".
I checked that the openssl libr
massi_...@msn.com wrote:
> Hi everyone,
>
> I'm not really sure if this is the right place to ask about regular
> expressions, but since I'm usin python I thought I could give a try
:-)
> Here is the problem, I'm trying to write a regex in order to
substitute
> all the occurences in the form $"
Hello everyone,
I'm a Python beginner and just getting familiar with it. (I need it for my
EE B.Sc. project)
For the learning purposes I use IDLE and (Learning Python by written by Mark
Lutz).
Let's say that I have some earlier experience with C language, but still
Python is a different one
Original Message -
> From: "Ivan Evstegneev"
> To: python-list@python.org
> Sent: Wednesday, 5 November, 2014 12:00:16 PM
> Subject: Understanding "help" command description syntax - explanation needed
> So here is the question itself:
>
> If I use the help command to check the “range” c
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?.
Other examples:
"pythonpythonpyth" is python
"DOLORIUMD" is DOLORIUM
"HELLOLHELLO" is HELLOL
"thewordword" is thewordword
I need to know whether the word in the text is repeated and get it. This will
be the key.
--
On 05/11/2014 11:55, Jean-Michel Pichavant wrote:
Original Message -
From: "Ivan Evstegneev"
To: python-list@python.org
Sent: Wednesday, 5 November, 2014 12:00:16 PM
Subject: Understanding "help" command description syntax - explanation needed
So here is the question itself:
If I use
Firtst of all thanks for reply.
>>brackets [] means that the argument is optional.
That's what I'm talking about (asking actually), where do you know it from?
I mean, if there are some resources, which explain all these syntax
abbreviations? The general concept.
Like this one(just for example
On Wed, Nov 5, 2014 at 10:00 PM, Ivan Evstegneev
wrote:
> range(start, stop[, step]) -> range object
>
> For instance, how do I need to understand that (start,stop[,step]) it’s
> just a three numbers?
>
> What do those brackets--> [,] mean?
The docs for range() in Python 3 do need improvement, a
On Wed, Nov 5, 2014 at 7:13 AM, Ivan Evstegneev wrote:
> Firtst of all thanks for reply.
>
>>>brackets [] means that the argument is optional.
>
> That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
--
https://mail.py
On Wed, Nov 5, 2014 at 11:13 PM, Ivan Evstegneev
wrote:
> That's what I'm talking about (asking actually), where do you know it from?
> I mean, if there are some resources, which explain all these syntax
> abbreviations? The general concept.
>
>
> Like this one(just for example):
> class bytearra
On Wed, Nov 5, 2014 at 11:13 PM, Ivan Evstegneev
wrote:
> That's what I'm talking about (asking actually), where do you know it from?
> I mean, if there are some resources, which explain all these syntax
> abbreviations? The general concept.
The best way to find clues about what the conventions
On Wed, Nov 5, 2014 at 10:58 PM, wrote:
> I have line 'pythonpythonpyth'. How do I know which word is the foundation
> line?.
> Other examples:
> "pythonpythonpyth" is python
> "DOLORIUMD" is DOLORIUM
> "HELLOLHELLO" is HELLOL
> "thewordword" is thewordword
>
> I need to know whether the word in
Chris,
You got my point exactly. ^_^ This is not about a "range" command itself, but
those conventions.
Thanks.
Larry,
>> That's what I'm talking about (asking actually), where do you know it from?
>>I know it because I've been a programmer for 39 years.
I didn't intend to offence anyone here
lordvita...@gmail.com wrote:
> I have line 'pythonpythonpyth'. How do I know which word is the foundation
> line?. Other examples:
> "pythonpythonpyth" is python
> "DOLORIUMD" is DOLORIUM
> "HELLOLHELLO" is HELLOL
> "thewordword" is thewordword
>
> I need to know whether the word in the text is r
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
wrote:
>>> That's what I'm talking about (asking actually), where do you know it from?
>
>>>I know it because I've been a programmer for 39 years.
>
> I didn't intend to offence anyone here. Just asked a questions ^_^
Don't worry about offending pe
On 2014-11-05, Dennis Lee Bieber wrote:
> "machine code" typically implies an instruction set specific
> to that machine... ALL computers operate in BINARY logic (a bit only
> holds 0 or 1). How you get those bits into the computer is
> irrelevant.
Just to muddy the water...
_Most_ parts of mo
On Wed, 05 Nov 2014 03:58:33 -0800, lordvital21 wrote:
> I have line 'pythonpythonpyth'. How do I know which word is the
> foundation line?.
> Other examples:
> "pythonpythonpyth" is python "DOLORIUMD" is DOLORIUM "HELLOLHELLO" is
> HELLOL "thewordword" is thewordword
>
> I need to know whether t
On Thu, Nov 6, 2014 at 2:05 AM, Grant Edwards wrote:
> On 2014-11-05, Dennis Lee Bieber wrote:
>
>> "machine code" typically implies an instruction set specific
>> to that machine... ALL computers operate in BINARY logic (a bit only
>> holds 0 or 1). How you get those bits into the computer is
>
On Sun, Nov 2, 2014 at 3:38 PM, Ned Deily wrote:
> In article
> ,
> Cyd Haselton wrote:
>> Just checking: is sincos() the same as sin() and cos()? Nm output for
>> my toolchain's libm does show sin() and cos() just not sincos()
>
> See, this is what you get when you ask for free help: bad info.
On Tue, 04 Nov 2014 21:30:06 -0500, Dennis Lee Bieber wrote:
> If you have an old system with front-panel toggle switches, you
set the
> switches for binary values, and then push the "enter" switch.
You've booted a PDP-8 then ;)
--
Denis McMahon, denismfmcma...@gmail.com
--
https://mail
On Wed, Nov 5, 2014 at 7:41 AM, Chris Angelico wrote:
> On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
> wrote:
That's what I'm talking about (asking actually), where do you know it from?
>>
I know it because I've been a programmer for 39 years.
>>
>> I didn't intend to offence anyone
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell wrote:
>> And I don't think
>> Larry was actually offended; it's just that some questions don't
>> really have easy answers - imagine someone asking a great
>> mathematician "But how do you KNOW that 2 + 2 is 4? Where's it written
>> down?"... all he c
I'm looking for real-world uses of collections.Counter, specifically to see if anyone has been surprised by, or had to
spend extra-time debugging, issues with the in-place operators.
Background:
Most Python data types will cause a TypeError to be raised if unusable types
are passed in:
--> {'
I've been developing a little web server. The request handler
subclasses SimpleHTTPRequestHandler. It has a do_GET method which
figures out what work to actually do, then ends with this:
def do_GET(self):
...
sys.stdout.flush()
sys.stderr.flush()
As it's still being ac
On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro
wrote:
> I figured everything would be flushed to the respective .stdout and
> .stderr files at the end of every request, but that appears not to be
> the case.
I stand corrected. I added
print ">> request finished"
to the end of do_GET (j
On 5-11-2014 17:44, Skip Montanaro wrote:
> As it's still being actively developed, I've been dumping all sorts of
> diagnostic prints to stdout and stderr.
Any reason you're not using the logging module and get it all nicely dumped
into a log
file instead?
(asks he who regularly inserts prints
On 5-11-2014 11:14, Robin Becker wrote:
> On 05/11/2014 06:40, dieter wrote:
>> Robin Becker writes:
>>
>>> Is there a way to do pkcs7 / 12 signing with python.
>>
>> Have you checked whether "OpenSSL" supports this kind of signing?
>> If it does, then you likely can use this via several Python wr
Ethan Furman wrote:
> I'm looking for real-world uses of collections.Counter, specifically to
> see if anyone has been surprised by, or had to spend extra-time debugging,
> issues with the in-place operators.
>
> Background:
>
> Most Python data types will cause a TypeError to be raised if unusa
On 2014-11-05 11:58, lordvita...@gmail.com wrote:
I have line 'pythonpythonpyth'. How do I know which word is the foundation
line?.
Other examples:
"pythonpythonpyth" is python
"DOLORIUMD" is DOLORIUM
"HELLOLHELLO" is HELLOL
"thewordword" is thewordword
I need to know whether the word in the te
On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong wrote:
> Any reason you're not using the logging module and get it all nicely dumped
> into a log
> file instead?
I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
about as old as I am in Python years), print was all we had. (We
On 2014-11-05 02:30, Dennis Lee Bieber wrote:
On Tue, 4 Nov 2014 13:45:32 -0300, françai s
declaimed the following:
I intend to write in lowest level of computer programming as a hobby.
It is true that is impossible write in binary code, the lowest level
of programming that you can write is i
On Thu, Nov 6, 2014 at 4:54 AM, Skip Montanaro wrote:
> I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
> about as old as I am in Python years), print was all we had. (We also
> walked uphill to school in both directions, in the snow.) While I use
> the logging module in othe
I thing this work:
stg='pythonpython'
foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
On 2014-11-05 11:58, lordvita...@gmail.com wrote:
> I have line 'pythonpythonpyth'. How do I know which word is the foundation
> line?.
> Other examples:
> "pythonpythonpyth" is python
> "DOLOR
On 2014-11-05 18:05, C@rlos wrote:
I thing this work:
stg='pythonpython'
foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
It doesn't work for the final example or "barbaz".
--
https://mail.python.org/mailman/listinfo/python-list
On 11/5/2014 7:41 AM, Chris Angelico wrote:
On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
wrote:
That's what I'm talking about (asking actually), where do you know it from?
I know it because I've been a programmer for 39 years.
I didn't intend to offence anyone here. Just asked a questi
On 11/5/2014 7:31 AM, Ivan Evstegneev wrote:
You got my point exactly. ^_^ This is not about a "range" command
itself, but those conventions.
The Language Manual 1. Introduction has a section on the grammar
notation conventions. The Library Manual 1. Introduction does not. I
would agree tha
On Wednesday 05 November 2014 10:56:57 Larry Martell did opine
And Gene did reply:
> On Wed, Nov 5, 2014 at 7:41 AM, Chris Angelico wrote:
> > On Wed, Nov 5, 2014 at 11:31 PM, Ivan Evstegneev
> >
> > wrote:
> That's what I'm talking about (asking actually), where do you know
> it from?
On Tue, Nov 4, 2014 at 9:07 PM, Peter Irbizon wrote:
> Hello,
> please how can I detect mouse pointer type? I would like to print every
> mouse pointer change (arrow, hand, ...) while moving my mouse over screen.
> How can I do this? (for now I need it for windows, but cross-platform
> solution is
On 05Nov2014 15:38, Denis McMahon wrote:
On Tue, 04 Nov 2014 21:30:06 -0500, Dennis Lee Bieber wrote:
If you have an old system with front-panel toggle switches, you
set the
switches for binary values, and then push the "enter" switch.
You've booted a PDP-8 then ;)
Not me, but I hav
On Wed, Nov 5, 2014 at 11:31 PM, Joel Goldstick
wrote:
> On Tue, Nov 4, 2014 at 9:07 PM, Peter Irbizon
> wrote:
> > Hello,
> > please how can I detect mouse pointer type? I would like to print every
> > mouse pointer change (arrow, hand, ...) while moving my mouse over
> screen.
> > How can I do
On Tue, Nov 4, 2014 at 10:39 PM, Cameron Simpson wrote:
> Bah! He asked if there were lower levels than binary. Ergo: chip design!
> (And microcode, the intermediate layer. Or one of the layers, depending
> where you draw the line.) Should we stop before we reach the quantum foam of
> spacetime?
My name is Charles Weitzer. I do recruiting with a focus on quantitative
sciences. One of my clients is a machine learning startup
located in Northern California. The founders include a successful veteran
entrepreneur with a PhD in CS from Stanford, while the
other founder is on the faculty at UC
On 05Nov2014 18:09, Chris Angelico wrote:
On Wed, Nov 5, 2014 at 5:39 PM, Cameron Simpson wrote:
Bah! He asked if there were lower levels than binary. Ergo: chip design!
(And microcode, the intermediate layer. Or one of the layers, depending
where you draw the line.) Should we stop before we r
On 05/11/2014 17:54, Skip Montanaro wrote:
On Wed, Nov 5, 2014 at 11:29 AM, Irmen de Jong wrote:
Any reason you're not using the logging module and get it all nicely dumped
into a log
file instead?
I'm an old fart. What can I say? BITD, (as Irmen is well aware, being
about as old as I am in
françai s Wrote in message:
> I intend to write in lowest level of computer programming as a hobby.
>
> It is true that is impossible write in binary code, the lowest level
> of programming that you can write is in hex code?
>
> What is the lowest level of programming computers that you can writ
Chris Angelico Wrote in message:
> On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell wrote:
>>> And I don't think
>>> Larry was actually offended; it's just that some questions don't
>>> really have easy answers - imagine someone asking a great
>>> mathematician "But how do you KNOW that 2 + 2 is 4?
On 06/11/2014 02:37, Dave Angel wrote:
Chris Angelico Wrote in message:
On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell wrote:
And I don't think
Larry was actually offended; it's just that some questions don't
really have easy answers - imagine someone asking a great
mathematician "But how do y
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
> On 2014-11-05 18:05, C@rlos wrote:
>> I thing this work:
>>
>> stg='pythonpython'
>> foundationline=stg[ 0:( stg [ 1: ].index( stg[ 0 ])+1 ) ]
>>
> It doesn't work for the final example or "barbaz".
I have two algorithms I've implemented.
Still n
On Thu, Nov 6, 2014 at 1:52 PM, Mark Lawrence wrote:
> Against a requirements specification that changes on a daily basis, I want
> it delivered yesterday and no you can't have any more resources to help out,
> so don't ask :)
Or maybe "Look, I'll give you five bucks if you can have the whole
thi
On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
> It doesn't work for the final example or "barbaz".
Oh, and we really need a private "python homework answers" list where we
can discuss the most pythonic solution we can think of for all these
homework / coursework questions without showing the
On Thu, Nov 6, 2014 at 2:36 PM, Denis McMahon wrote:
> On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
>
>> It doesn't work for the final example or "barbaz".
>
> Oh, and we really need a private "python homework answers" list where we
> can discuss the most pythonic solution we can think of for a
On Wednesday 05 November 2014 21:52:42 Mark Lawrence did opine
And Gene did reply:
> On 06/11/2014 02:37, Dave Angel wrote:
> > Chris Angelico Wrote in message:
> >> On Thu, Nov 6, 2014 at 2:56 AM, Larry Martell
wrote:
> And I don't think
> Larry was actually offended; it's just that s
On Thu, 06 Nov 2014 03:36:40 +, Denis McMahon wrote:
> On Wed, 05 Nov 2014 18:49:01 +, MRAB wrote:
>
>> It doesn't work for the final example or "barbaz".
>
> Oh, and we really need a private "python homework answers" list where we
> can discuss the most pythonic solution we can think of
Skip Montanaro Wrote in message:
> On Wed, Nov 5, 2014 at 10:44 AM, Skip Montanaro
> wrote:
>> I figured everything would be flushed to the respective .stdout and
>> .stderr files at the end of every request, but that appears not to be
>> the case.
>
> I stand corrected. I added
>
> pri
On Thu, Nov 6, 2014 at 3:00 PM, Denis McMahon wrote:
> def baseword(s):
> """find shortest sequence which repeats to generate s"""
> return s[0:["".join([s[0:x]for k in range(int(len(s)/x)+1)])[0:len
> (s)]for x in range(1,len(s)+1)].index(s)+1]
That's hardly a PEP-8 compliant line, but I
On Thu, 06 Nov 2014 15:14:05 +1100, Chris Angelico wrote:
> On Thu, Nov 6, 2014 at 3:00 PM, Denis McMahon
> wrote:
>> def baseword(s):
>> """find shortest sequence which repeats to generate s"""
>> return s[0:["".join([s[0:x]for k in range(int(len(s)/x)+1)])[0:len
>> (s)]for x in range(1,
On Wednesday, November 5, 2014 9:57:08 PM UTC+5:30, Ethan Furman wrote:
> In order to avoid unnecessary code churn (the fix itself is quite simple),
> the maintainer of the collections module
> wants to know if anybody has actually been affected by these inconsistencies,
> and if so, whether it
On 11/05/2014 03:00 AM, Ivan Evstegneev wrote:
Hello everyone,
I’m a Python beginner and just getting familiar with it. (I need it for my EE
B.Sc. project)
For the learning purposes I use IDLE and (Learning Python by written by Mark
Lutz).
Let’s say that I have some earlier experience with C l
59 matches
Mail list logo