On 2015-05-05 15:36, Alan Gauld wrote:
On 05/05/15 22:30, Jim Mooney Py3.4.3winXP wrote:
Can python detect a keypress?
The following works for my (on my Ubuntu platform) system
although probably won't be of much use on a Redmond OS.
#!/usr/bin/env python3
# file: 'readchar.py'
"""
Provides re
On 06/05/2015 00:47, Jim Mooney Py3.4.3winXP wrote:
On 5 May 2015 at 15:36, Alan Gauld wrote:
Can python detect a keypress?
That sounds simple but is actually quite tricky
since it's terminal dependent.
An ancillary question. I found a readchar that purports to install in py2
and 3 but
On 06/05/2015 05:30, Jim Mooney Py3.4.3winXP wrote:
On 5 May 2015 at 18:32, Steven D'Aprano wrote:
https://code.activestate.com/recipes/577977-get-single-keypress/
That only has a stub for Linux, but I found one that does both. Although,
alas, no IOS version:
http://code.activestate.com/r
On 5 May 2015 at 18:32, Steven D'Aprano wrote:
> https://code.activestate.com/recipes/577977-get-single-keypress/
That only has a stub for Linux, but I found one that does both. Although,
alas, no IOS version:
http://code.activestate.com/recipes/134892-getch-like-unbuffered-character-reading-
On 5 May 2015 at 18:35, Steven D'Aprano wrote:
> Is this under Linux or another Unix? If so, > only redirects stdout, not
> stderr, so you need:
>
> python3 setup.py 2> errors.txt
>
> to capture the errors.
>
> I have no idea if Windows works the same way.
>
Damn, that actually worked in windows
On 05/06/2015 07:18 AM, WolfRage wrote:
I find myself in the same mind set as this individual:
http://stackoverflow.com/a/64453/4285911
It is hard to write a proper test with out me initially outlining
where I am going. Perhaps I need to better understand planning and
drafting a programming pro
On Tue, May 05, 2015 at 04:47:24PM -0700, Jim Mooney Py3.4.3winXP wrote:
> An ancillary question. I found a readchar that purports to install in py2
> and 3 but fails in 3. The errors (something from the encodings module)
> won't copy from the console, so I thought I could redirect them like so:
>
On Tue, May 05, 2015 at 02:30:41PM -0700, Jim Mooney Py3.4.3winXP wrote:
> Can python detect a keypress? I've looked all over and can't find it. I
> don't mean input('blah') and have to press Enter - just detect it directly
> like Javascript does. All I find are references using msvcrt, which is
>
On 5 May 2015 at 16:47, Jim Mooney Py3.4.3winXP
wrote:
> But that didn't work. How can I get a printout of setup errors so I can
> post them?
I remembered how to copy the DOS console. Here is the error. Error wasn't
in setup.py so that wouldn't have worked anyway.
C:\Python34\Lib\site-packages
On 06/05/2015 00:16, WolfRage wrote:
On 05/05/2015 06:49 PM, Alan Gauld wrote:
Not better, just necessary. The two concepts are complementary.
You need both. The developer primarily needs unit testing, the
integrator*(who may of course be the developer in a different
role) needs integration tes
On 5 May 2015 at 15:36, Alan Gauld wrote:
> Can python detect a keypress?
>>
>
> That sounds simple but is actually quite tricky
> since it's terminal dependent.
An ancillary question. I found a readchar that purports to install in py2
and 3 but fails in 3. The errors (something from the encodi
I find myself in the same mind set as this individual:
http://stackoverflow.com/a/64453/4285911
It is hard to write a proper test with out me initially outlining where
I am going. Perhaps I need to better understand planning and drafting a
programming project before I can hope to emulate TDD.
On 05/05/2015 06:49 PM, Alan Gauld wrote:
Not better, just necessary. The two concepts are complementary.
You need both. The developer primarily needs unit testing, the
integrator*(who may of course be the developer in a different
role) needs integration testing and the client/project manager
ne
On 05/05/15 19:22, shweta kaushik wrote:
Thanks Steve for the information.
I searched but was not able to find suitable forum to shoot this question.
So posted here if anyone can help out.
As Steve suggested the main python list is probably your best bet.
--
Alan G
Author of the Learn to Prog
Thanks Steve for the information.
I searched but was not able to find suitable forum to shoot this question.
So posted here if anyone can help out.
Regards,
Shweta
On May 5, 2015 6:21 PM, "Steven D'Aprano" wrote:
> On Tue, May 05, 2015 at 01:38:59PM +0530, shweta kaushik wrote:
> > Hi All,
> >
>
On 05/05/15 22:24, WolfRage wrote:
As I am reading about TDD and unittests and the likes. I am thinking
that testing from a "higher" level is better as compared to the "unit"
level testing.
Not better, just necessary. The two concepts are complementary.
You need both. The developer primarily n
On 05/05/15 22:30, Jim Mooney Py3.4.3winXP wrote:
Can python detect a keypress?
That sounds simple but is actually quite tricky
since it's terminal dependent.
like Javascript does. All I find are references using msvcrt, which is
Msoft specific, or using tkinter - but I don't want a whacking
Can python detect a keypress? I've looked all over and can't find it. I
don't mean input('blah') and have to press Enter - just detect it directly
like Javascript does. All I find are references using msvcrt, which is
Msoft specific, or using tkinter - but I don't want a whacking big GUI,
just keyp
Update: My previous hack, has been changed. I now put:
import os
import sys
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
in the __main__.py file located under the tests/ directory and it is
only needed the one time in that one file. Not sure why I was thinking I
would need to
On 05/04/2015 04:49 PM, Martin A. Brown wrote:
Hi there,
Yes, a bit ugly. Have you tried using nose? I have used a similar
project development tree and use nose to run the tests.
I had thought about it, but decided not too, since it was not part of
the standard library. But then again, it is
On 05/05/2015 10:59 AM, Oscar Benjamin wrote:
My projects are structured like:
Project > develop > Project > Project > __main__.py
tests > __main__.py
I want to be able to execute my Project from a cwd of:
Project/develop/Project
as: Python3 -m Project
That curre
On 05/05/2015 12:29 AM, Brandon D wrote:
Hello tutors,
I'm having trouble understanding, as well as visualizing, how object
references work in the following situation. For demonstration purposes I
will keep it at the most rudimentary level:
x = 10
x = x ** x
If my knowledge serves me correct
-
On Tue, May 5, 2015 8:00 PM CEST Steven D'Aprano wrote:
>On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote:
>> Hello tutors,
>>
>> I'm having trouble understanding, as well as visualizing, how object
>> references work in the following situation. For demons
On Tue, May 05, 2015 at 12:29:59AM -0400, Brandon D wrote:
> Hello tutors,
>
> I'm having trouble understanding, as well as visualizing, how object
> references work in the following situation. For demonstration purposes I
> will keep it at the most rudimentary level:
>
> x = 10
>
> x = x ** x
On 4 May 2015 at 20:04, WolfRage wrote:
> I would like some help integrating TDD into my current projects.
> My chosen TDD framework is unittest from the standard library.
> My system details are: Linux Mint 17.1 64-bit, Python 3.4, bzr(for version
> control).
>
> My projects are structured like:
On Tue, May 05, 2015 at 01:38:59PM +0530, shweta kaushik wrote:
> Hi All,
>
> I am trying to open a new tab in IE10 and selenium 2.45.
This list is for beginners learning the Python language, and
unfortunately selenium is a little too advanced for most of the people
here. I myself have never us
Hi All,
I am trying to open a new tab in IE10 and selenium 2.45. It is able to open
a new tab using pyrobot. But when i am trying to open url in new tab, it is
getting opened in first tab. Focus is not set to second tab and hence it is
not working and also switching of tab is not working. please p
On 05/05/15 08:17, Siya 360 wrote:
Twice i unsubscribed to this mailing list, and i still continue to get them,
why?
I don't know. Are you doing it via the web page?
Please remove with immediate effect
The web page is the only way to unsubscribe. Nobody else
on the list can unsubscribe yo
On 05/05/15 05:29, Brandon D wrote:
Hello tutors,
I'm having trouble understanding, as well as visualizing, how object
references work in the following situation. For demonstration purposes I
will keep it at the most rudimentary level:
x = 10
x = x ** x
Its good to use a simple example but i
Hi,
Twice i unsubscribed to this mailing list, and i still continue to get them,
why?
Please remove with immediate effect as this course has not served me well too
many of my enquires went unanswered so i see no use for it, just flooding my
mailbox
Kind Regards,
Siya
> On 05 May 2015, at 1
Hello tutors,
I'm having trouble understanding, as well as visualizing, how object
references work in the following situation. For demonstration purposes I
will keep it at the most rudimentary level:
x = 10
x = x ** x
If my knowledge serves me correctly, Python destroys the value once
reassign
31 matches
Mail list logo