Τη Παρασκευή, 1 Απριλίου 2016 - 1:56:52 μ.μ. UTC+3, ο χρήστης Xristos Xristoou
έγραψε:
> hello,
>
> i have windows 10 and python 3.5 and i want to use
> open cv but i think so opencv work only on python 2.7 ?
> and i install this http://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv
> but not work ag
On 4/1/2016 5:01 PM, Jianling Fan wrote:
Thanks, but the problem is that I am not allowed to install any
software in my office PC, even free software.
Normally, I use zip files but this time I need to extract a rar file.
I don't like to go to IT guys because it takes time.
That's why I am looking
On Sat, Apr 2, 2016 at 3:27 PM, Random832 wrote:
> On Fri, Apr 1, 2016, at 19:29, Michael Selik wrote:
>> Humans have always had trouble with this, in many contexts. I remember
>> being annoyed at folks saying the year 2000 was the first year of the new
>> millennium, rather than 2001. They'd forg
Le 01/04/2016 23:20, accessnew...@gmail.com a écrit :
I have a directory (and sub-directories) full of images that I want to cycle
through and grab certain metadata values and save those values to a single row
in a cvs file. I would like to tack on the full path name to the row as a
separate v
On Sat, 2 Apr 2016 07:14 am, Marko Rauhamaa wrote:
> There's a bit of a cognitive dissonance between iterables and iterators.
> On the one hand, they behave identically in many contexts. On the other
> hand, the distinction is crucial in some special cases.
Iterable just means "something which ca
Vito De Tullio wrote:
> Michael Selik wrote:
>
>>> > I need to scan a list of strings. If one of the elements matches the
>>> > beginning of a search keyword, that element needs to snap to the front
>>> > of the list.
>>>
>>> I know this post regards the function passing, but, on you specific
>>>
Steven D'Aprano :
> On Sat, 2 Apr 2016 07:14 am, Marko Rauhamaa wrote:
>> (Somehow, the difference between iterables and iterators is analogous
>> with the difference between C's arrays and pointers.)
>
> I don't understand this analogy. Can you explain please?
In numerous contexts,
T a[N]
a
On 02/04/2016 06:51, Michael Selik wrote:
On Sat, Apr 2, 2016, 1:46 AM Vito De Tullio wrote:
Fillmore wrote:
I need to scan a list of strings. If one of the elements matches the
beginning of a search keyword, that element needs to snap to the front
of the list.
I know this post regards the
On Sat, Apr 2, 2016 at 6:32 AM Peter Otten <__pete...@web.de> wrote:
> Vito De Tullio wrote:
>
> > Michael Selik wrote:
> >
> >>> > I need to scan a list of strings. If one of the elements matches the
> >>> > beginning of a search keyword, that element needs to snap to the
> front
> >>> > of the l
On Sat, Apr 2, 2016 at 4:16 AM Chris Angelico wrote:
> On Sat, Apr 2, 2016 at 3:27 PM, Random832 wrote:
> > On Fri, Apr 1, 2016, at 19:29, Michael Selik wrote:
> >> Humans have always had trouble with this, in many contexts. I remember
> >> being annoyed at folks saying the year 2000 was the fir
On Sun, Apr 3, 2016 at 1:48 AM, Michael Selik wrote:
> If they'd only used Unicode, they could have said "þou" in prayer and
> "ðousand" for the year.
>
> BTW, I finally know why there are all those "Ye Olde ...".
> https://en.wikipedia.org/wiki/Thorn_(letter)
Yep! And the letters (thorn and eth)
Chris Angelico :
> Yep! And the letters (thorn and eth) survive in a very few languages
> (Icelandic, notably). Fortunately, Python 3 lets you use it in
> identifiers.
While it is fine for Python to support Unicode to its fullest, I don't
think it's a good idea for a programmer to use non-English
A typical call to create an Entry field would be:-
e = Entry(master, validate='all', ...)
Once this call has been made is it possible to change the validation
mode at runtime? Background, I'm knocking up an app so I can play with
the various modes so that I can see how they work, as I'm just
On Sun, Apr 3, 2016 at 2:07 AM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> Yep! And the letters (thorn and eth) survive in a very few languages
>> (Icelandic, notably). Fortunately, Python 3 lets you use it in
>> identifiers.
>
> While it is fine for Python to support Unicode to its fullest, I
On Sun, 3 Apr 2016 02:07 am, Marko Rauhamaa wrote:
> I don't think it's a good idea for a programmer to use non-English
> identifiers.
So you're saying that learning to be a fluent speaker of English is a
pre-requisite of being a programmer?
I'd rather read:
for oppilas in luokka:
Steven D'Aprano :
> I'd rather read:
>
> for oppilas in luokka:
> if oppilas.hylätty():
> oppilas.ilmoita(oppilas.koetulokset)
>
> [...]
>
> Google translate suggests Marko's code means:
>
> for pupil in class:
> if pupil.abandoned():
> pupil.please(
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 learning Latin is a prerequisite of being a doctor.
Full ACK. Probably starting with the Industrial Revolution enabled by t
A. ElKader wrote:
> I posted this question, no reply :
>
> Any advice :
>
> http://unix.stackexchange.com/questions/273573/write-to-terminal-in-tkinter-gui
I do not think that this newsgroup/mailing list is meant as an advertisement
board to get your questions answered on Q&A forums on the Web
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 learning Latin is a prere
On Sat, 02 Apr 2016 16:11:19 +0100, Mark Lawrence wrote:
> A typical call to create an Entry field would be:-
>
> e = Entry(master, validate='all', ...)
>
> Once this call has been made is it possible to change the validation
> mode at runtime? Background, I'm knocking up an app so I can play
Rustom Mody :
> When python went to full unicode identifers it should have also added
> pragmas for which blocks the programmer intended to use -- something
> like a charset declaration of html.
You are being silly.
Marko
--
https://mail.python.org/mailman/listinfo/python-list
On 4/2/2016 11:11 AM, Mark Lawrence via Python-list wrote:
A typical call to create an Entry field would be:-
e = Entry(master, validate='all', ...)
Once this call has been made is it possible to change the validation
mode at runtime?
AFAIK, every keyword-only configuration option can be chan
On 4/2/2016 11:07 AM, Marko Rauhamaa wrote:
While it is fine for Python to support Unicode to its fullest, I don't
think it's a good idea for a programmer to use non-English identifiers.
Non-English identifiers can written, at least in romanized versions, in
ascii.
The (few) keywords are i
On 4/2/2016 12:44 PM, Marko Rauhamaa wrote:
Nowadays software companies and communities are international.
Grade school classrooms, especially pre-high school, are not.
> You never know who needs to maintain your code.
For one-off school assignments, nobody other than the author.
> At work,
Hello,
I am new to Python and programming in general. However, I have gained some
skills in Python. I have been working with it in order to gain some real world
problem solving skills for my job.
I have written a program in Python track the number of visits customers make to
our business bas
On Friday, April 1, 2016 at 4:27:30 PM UTC-4, Fillmore wrote:
> notorious pass by reference vs pass by value biting me in the backside
> here. Proceeding in order.
As others have pointed out, this is false dichotomy. There are other
possibilities than pass by reference and pass by value. Python
On Saturday, April 2, 2016 at 1:20:52 PM UTC-4, Thomas 'PointedEars' Lahn wrote:
> A. ElKader wrote:
>
> > I posted this question, no reply :
> >
> > Any advice :
> >
> > http://unix.stackexchange.com/questions/273573/write-to-terminal-in-tkinter-gui
>
> I do not think that this newsgroup/maili
Terry Reedy :
> On 4/2/2016 12:44 PM, Marko Rauhamaa wrote:
>
>> Nowadays software companies and communities are international.
>
> Grade school classrooms, especially pre-high school, are not.
Parenthetically, English teachers in Finland have been happy with how
teenage boys' English grades have
On Friday, April 1, 2016 at 10:34:50 AM UTC-4, Marko Rauhamaa wrote:
> Chris Angelico :
>
> > *A range object is not an iterator.*
>
> We now have learned as much.
>
> However, doesn't that extra level of indirection seem like an odd
> choice?
I agree that it is surprising (and confusing) at fi
On Sat, Apr 2, 2016, at 15:28, Ned Batchelder wrote:
> On Friday, April 1, 2016 at 4:27:30 PM UTC-4, Fillmore wrote:
> > notorious pass by reference vs pass by value biting me in the backside
> > here. Proceeding in order.
>
> As others have pointed out, this is false dichotomy. There are other
Ned Batchelder :
> This analogy illuminates an important point: a single iterable can have
> a number of active iterators working over it at once, just as a book can
> have a number of bookmarks in it at once.
>
> nums = [1, 2, 3]
> for i in nums:
> for j in nums:
> pri
On Sun, Apr 3, 2016 at 5:14 AM, Pythonnoob via Python-list
wrote:
> I have written a program in Python track the number of visits customers make
> to our business based upon their account numbers. Right now we are doing this
> via paper. We have 7 computers. Each with a different user. We do hav
On Sun, Apr 3, 2016 at 6:44 AM, Marko Rauhamaa wrote:
> I don't have a problem with a list being a "reiterable." I only was
> surprised about range(), which I had thought to be a plain,
> down-to-earth iterator. There's barely any other practical use for a
> range, I believe.
That's Blub's Parado
On Sat, Apr 2, 2016, 3:40 PM Marko Rauhamaa wrote:
> Terry Reedy :
>
> > On 4/2/2016 12:44 PM, Marko Rauhamaa wrote:
> >
> >> Nowadays software companies and communities are international.
> >
> > Grade school classrooms, especially pre-high school, are not.
>
> Parenthetically, English teachers
Chris Angelico :
> On Sun, Apr 3, 2016 at 6:44 AM, Marko Rauhamaa wrote:
>> I don't have a problem with a list being a "reiterable." I only was
>> surprised about range(), which I had thought to be a plain,
>> down-to-earth iterator. There's barely any other practical use for a
>> range, I believ
On Saturday, April 2, 2016 at 5:40:35 PM UTC-4, Marko Rauhamaa wrote:
> Chris Angelico :
>
> > On Sun, Apr 3, 2016 at 6:44 AM, Marko Rauhamaa wrote:
> >> I don't have a problem with a list being a "reiterable." I only was
> >> surprised about range(), which I had thought to be a plain,
> >> down-
Hey
So I built a keylogger using python as a test, got the code from the tutorial
online, I want to improve on it to make it more automated, but the issue I'm
having is it won't create the file until I press return, any clues where I'm
going wrong?
If I press return it makes the batch file, ot
Hey
So I built a keylogger using python as a test, got the code from the tutorial
online, I want to improve on it to make it more automated, but the issue I'm
having is it won't create the file until I press return, any clues where I'm
going wrong?
If I press return it makes the batch file,
On Sun, Apr 3, 2016 at 7:55 AM, Loop.IO wrote:
> So I built a keylogger using python as a test, got the code from the tutorial
> online, I want to improve on it to make it more automated, but the issue I'm
> having is it won't create the file until I press return, any clues where I'm
> going wr
On 02/04/2016 22:59, Loop.IO wrote:
Hey
So I built a keylogger using python as a test, got the code from the tutorial
online, I want to improve on it to make it more automated, but the issue I'm
having is it won't create the file until I press return, any clues where I'm
going wrong?
If I pr
On Saturday, April 2, 2016 at 6:09:13 PM UTC-4, 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 the
> > tutorial online, I want to improve on it to make it more automated, but the
> > issue I'm having is it won't
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 the
> > tutorial online, I want to improve on it to make it more automated, but the
> > issue I'm having is it won't
On 02/04/2016 23:16, Ned Batchelder wrote:
On Saturday, April 2, 2016 at 6:09:13 PM UTC-4, 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 the tutorial
online, I want to improve on it to make it more automated, but the issu
On Saturday, April 2, 2016 at 11:27:49 PM UTC+1, BartC wrote:
> On 02/04/2016 23:16, Ned Batchelder wrote:
> > On Saturday, April 2, 2016 at 6:09:13 PM UTC-4, 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
I might be overlooking something, but raw_input (Python 2) and input
(Python 3) won't return the input from sys.stdin until you type ENTER. Or
did I misunderstand the question?
On Sat, Apr 2, 2016 at 6:30 PM BartC wrote:
> On 02/04/2016 23:16, Ned Batchelder wrote:
> > On Saturday, April 2, 2016
On 04/02/2016 12:54 PM, Random832 wrote:
On Sat, Apr 2, 2016, at 15:28, Ned Batchelder wrote:
On Friday, April 1, 2016 at 4:27:30 PM UTC-4, Fillmore wrote:
notorious pass by reference vs pass by value biting me in the backside
here. Proceeding in order.
As others have pointed out, this is fal
On Sat, Apr 2, 2016, at 19:15, Ethan Furman wrote:
> Also, if "pass-by-value" is being used, even mutation of the passed
> object will not show up in the caller.
I disagree. I don't think the definition of pass-by-value implies this.
--
https://mail.python.org/mailman/listinfo/python-list
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 programmer?
>>
>> No more than learning Latin is a prerequisite of being a doctor.
>
On 02/04/2016 17:31, Dennis Lee Bieber wrote:
On Sat, 2 Apr 2016 19:15:36 +1100, Chris Angelico
declaimed the following:
On Sat, Apr 2, 2016 at 3:27 PM, Random832 wrote:
On Fri, Apr 1, 2016, at 19:29, Michael Selik wrote:
Humans have always had trouble with this, in many contexts. I remembe
Hi Adam, from my mail client sent to python-list directly -- actually
attempting to reply to the OP in the past has generated some weirdness and
bounced messages (probably Gmail attempting to stop me from replying-all
with the OP in the TO line rather than the list. But the behavior you
mentioned
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 the tutorial
online, I want to improve on it to make it more automated, but the issue I'm
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?
If you don't want the user to enter anything, then I explained how
be
On 02/04/2016 23:37, Michael Selik wrote:
I might be overlooking something, but raw_input (Python 2) and input
(Python 3) won't return the input from sys.stdin until you type ENTER. Or
did I misunderstand the question?
On Sat, Apr 2, 2016 at 6:30 PM BartC wrote:
On 02/04/2016 23:16, Ned Batch
On 03/04/2016 00:49, 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 programmer?
No more than learning Latin is a prer
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
the chosen name Launch2.bat without the prompt?
If you don't want the user to enter a
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 reaction time, or do only people with fast reaction times
become top gamers?
Personally, in my experience gaming hurts rea
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 reaction time, or do only people with fast reaction times
become top gamers?
Pe
On Sun, 3 Apr 2016 05:54 am, Random832 wrote:
> On Sat, Apr 2, 2016, at 15:28, Ned Batchelder wrote:
>> On Friday, April 1, 2016 at 4:27:30 PM UTC-4, Fillmore wrote:
>> > notorious pass by reference vs pass by value biting me in the backside
>> > here. Proceeding in order.
>>
>> As others have po
Hi all,
I use the following code to update the os.environ with subprocess.Popen:
-
from subprocess import Popen
output = Popen("""
/bin/bash <
os.environ.update(line.partition('=')[::2] for line in output.split
('\0'))
AttributeError: 'Popen' object has no attribute 'split'
-
Hi all,
I use the following code to update the os.environ with subprocess.Popen:
-
from subprocess import Popen
output = Popen("""
/bin/bash <
os.environ.update(line.partition('=')[::2] for line in output.split
('\0'))
AttributeError: 'Popen' object has no attribute 'split'
-
Hi all,
I use the following code to update the os.environ with subprocess.Popen:
-
from subprocess import Popen
output = Popen("""
/bin/bash <
os.environ.update(line.partition('=')[::2] for line in output.split
('\0'))
AttributeError: 'Popen' object has no attribute 'split'
-
Hongyi Zhao writes:
> I use the following code to update the os.environ with
> subprocess.Popen
Again, it is quite misleading to describe what you are doing as “update
the os.environ with subprocess.Popen”.
The ‘subprocess.Popen’ call *cannot* upsdate the Python process's
‘os.environ’.
What yo
On Sun, 03 Apr 2016 13:37:24 +1000, Ben Finney wrote:
>> But, I meet the following errors:
>>
>>
>> Traceback (most recent call last):
>> File "/home/werner/software/hpc/dft-to-study/jasp/jasp.git/jasp/bin/
>> runjasp.py", line 125, in
>> os.environ.update(line.partition('=')[:
On Sun, 3 Apr 2016 01:29 pm, Hongyi Zhao wrote:
> Hi all,
>
> 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 updating os.environ.
Proof: chan
Chris Angelico wrote:
Yep! And the letters (thorn and eth) survive in a very few languages
(Icelandic, notably). Fortunately, Python 3 lets you use it in
identifiers.
This suggests an elegant solution to the problem of whether
"python" should refer to Python 2 or Python 3. The Python 3
link sho
On Sun, 3 Apr 2016 06:44 am, Marko Rauhamaa wrote:
> I don't have a problem with a list being a "reiterable." I only was
> surprised about range(), which I had thought to be a plain,
> down-to-earth iterator. There's barely any other practical use for a
> range, I believe.
I can understand that y
Thomas 'PointedEars' Lahn wrote:
even though the French often still disagree,
preferring words like « ordinateur » and « octet » over “computer” and
“byte”, respectively
To be fair, "octet" is a slightly more precise term than
"byte", meaning exactly 8 bits (whereas "byte" could
theoretically
On Sun, Apr 3, 2016, at 00:43, Steven D'Aprano wrote:
> If you personally don't see any advantage in this, so be it, but you
> might
> not be aware of the history of (x)range:
>
> Guido in 2001: "Nobody uses this extra functionality, and its buggy,
> let's
> get rid of it."
>
> https://www.python
On Sun, 3 Apr 2016 02:43 pm, Steven D'Aprano wrote:
> If you personally don't see any advantage in this, so be it, but you might
> not be aware of the history of (x)range:
>
> Guido in 2001: "..."
Correction: these are not direct quotes, but paraphrases. My apologies for
any confusion.
--
Ste
On Sun, 3 Apr 2016 02:57 pm, Gregory Ewing wrote:
> Thomas 'PointedEars' Lahn wrote:
>> even though the French often still disagree,
>> preferring words like « ordinateur » and « octet » over “computer” and
>> “byte”, respectively
>
> To be fair, "octet" is a slightly more precise term than
> "by
Mark, your messages are showing up to the list as being from "python,"
at least on my email. Any reason for this?
--
https://mail.python.org/mailman/listinfo/python-list
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 Python. That a use exists in the
72 matches
Mail list logo