Robert Snoeberger writes:
> I would like to use pdb in an application where it isn't possible to use
> sys.stdin for input. I've read in the documentation for pdb.Pdb that a file
> object can be used instead of sys.stdin. Unfortunately, I'm not clear about
> my options for the file object.
L
On 11/24/2016 06:53 AM, Peter Otten wrote:
Thomas Grops via Python-list wrote:
[snip...]
Instead of repeating your code with copy-and-past make a helper function
like the randx() posted by Larry Hudson.
By the way, randint(min, max) may return max so there are 9 possible
outcomes while you han
On Thu, 24 Nov 2016 10:18:21 +0100,
Peter Otten <__pete...@web.de> wrote:
> Is win_files huge? Then it might help to avoid going over the entire
> list for every interval. Instead you can sort the list and then add to
> the current list while you are below nextw.
> My pandas doesn't seem to have
when printing these 'escaped-number-texts' within Linux/Spyder3 ide
console, i get funny symbols like a "phone-symbol", triangles or symbols
for male or female.
>>> print("\7") # gives a phone
>>> print("\5")
>>> print("\1")
>>> print("\21")
>>> print("\30")
>>> print("\31")
>>> print("\32")
de
This is what I got :
CaiGengYangs-MacBook-Pro:~ CaiGengYang$ /usr/local/bin/python3
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 5 2015, 21:12:44)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (
As alister said, please do not just hit reply and type your message at
the top. Instead, place your reply below the quoted text you are
replying too. This is not hard. I realize there's a language barrier,
but please patiently read what alister said and understand what he's
saying. I know you're
On Thu, 24 Nov 2016 07:25:37 -0800, Cai Gengyang wrote:
> I mean whats the solution to import pygame ? How to import pygame ?
>
>
> On Thursday, November 24, 2016 at 11:22:07 PM UTC+8, alister wrote:
>> On Thu, 24 Nov 2016 07:09:22 -0800, Cai Gengyang wrote:
>>
>> > Hmm, so whats the solution ?
I would like to use pdb in an application where it isn't possible to use
sys.stdin for input. I've read in the documentation for pdb.Pdb that a file
object can be used instead of sys.stdin. Unfortunately, I'm not clear about my
options for the file object.
I've looked at rpdb on PyPI, which re
Wow thankyou that code is really good, I had no programming knowledge until 2
months ago, I enjoy your descriptions it is really helpful for me. I like to
understand what the code does before using it myself or a variant of it.
Will tweak bits tonight the project is in tomorrow. This code is jus
CaiGengYangs-MacBook-Pro:~ CaiGengYang$ pip install pygame
Collecting pygame
Could not find a version that satisfies the requirement pygame (from
versions: )
No matching distribution found for pygame
You are using pip version 7.1.2, however version 9.0.1 is available.
You should consider upgradi
I mean whats the solution to import pygame ? How to import pygame ?
On Thursday, November 24, 2016 at 11:22:07 PM UTC+8, alister wrote:
> On Thu, 24 Nov 2016 07:09:22 -0800, Cai Gengyang wrote:
>
> > Hmm, so whats the solution ?
> >
> >
> The solution is to bottom post or interleave post as pre
On Thu, 24 Nov 2016 07:09:22 -0800, Cai Gengyang wrote:
> Hmm, so whats the solution ?
>
>
The solution is to bottom post or interleave post as previously stated
>
> On Thursday, November 24, 2016 at 11:07:05 PM UTC+8, alister wrote:
>> On Thu, 24 Nov 2016 06:00:20 -0800, Cai Gengyang wrote:
>
On Thu, 24 Nov 2016 06:00:20 -0800, Cai Gengyang wrote:
> CaiGengYangs-MacBook-Pro:~ CaiGengYang$ import pygame -bash: import:
> command not found
>
>
>
please do not top post as it makes the threads difficult to follow
the preferred style is interleave posing
(posting a reply after the text yo
CaiGengYangs-MacBook-Pro:~ CaiGengYang$ python
Python 2.7.10 (v2.7.10:15c95b7d81dc, May 23 2015, 09:33:12)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import pygame
Traceback (most recent call last):
File "", li
Hmm, so whats the solution ?
On Thursday, November 24, 2016 at 11:07:05 PM UTC+8, alister wrote:
> On Thu, 24 Nov 2016 06:00:20 -0800, Cai Gengyang wrote:
>
> > CaiGengYangs-MacBook-Pro:~ CaiGengYang$ import pygame -bash: import:
> > command not found
> >
> >
> >
> please do not top post as
On 11/24/2016 09:00 AM, Cai Gengyang wrote:
CaiGengYangs-MacBook-Pro:~ CaiGengYang$ import pygame
-bash: import: command not found
That indicates you're running "import pygame" at the bash interpreter
prompt. You should first start "python" (type the word python without
quotes and press enter
Thomas Grops via Python-list wrote:
> Hi I have created some code, which moves a rectangle around and when it
> hits the edge it picks a random new direction. It does this by the count
> function within my class. I am wanting to create a button to randomly
> change count but I my class seems to be
CaiGengYangs-MacBook-Pro:~ CaiGengYang$ import pygame
-bash: import: command not found
On Thursday, November 24, 2016 at 1:22:56 PM UTC+8, Nathan Ernst wrote:
> I don't see anything in that output resembling an error, just a few
> warnings that some features may no be available.
>
> Have you tr
Chris Angelico :
> On Thu, Nov 24, 2016 at 10:14 PM, Marko Rauhamaa wrote:
>> When you use threads, you call read(2) in the blocking mode. Then the
>> read(2) operation will block "for ever." There's no clean way to
>> cancel the system call.
>
> Signals will usually interrupt system calls, causi
Hi I have created some code, which moves a rectangle around and when it hits
the edge it picks a random new direction. It does this by the count function
within my class. I am wanting to create a button to randomly change count but I
my class seems to be getting errors.
I also wanted to create
On Thu, Nov 24, 2016 at 10:14 PM, Marko Rauhamaa wrote:
> When you use threads, you call read(2) in the blocking mode. Then the
> read(2) operation will block "for ever." There's no clean way to cancel
> the system call.
Signals will usually interrupt system calls, causing them to return
EINTR. T
Chris Angelico :
> On Thu, Nov 24, 2016 at 9:59 PM, Marko Rauhamaa wrote:
>> Chris Angelico :
>>> A coroutine can be abandoned at an await point, but the
>>> currently-executed call is still going to complete (usually);
>>
>> I don't quite understand. Say you are awaiting on receiving bytes from
On Thu, Nov 24, 2016 at 9:59 PM, Marko Rauhamaa wrote:
> Chris Angelico :
>
>> On Thu, Nov 24, 2016 at 7:39 PM, Marko Rauhamaa wrote:
>>> * Coroutines can be killed, threads cannot.
>>
>> Not strictly true. A coroutine can be abandoned at an await point, but
>> the currently-executed call is sti
Chris Angelico :
> On Thu, Nov 24, 2016 at 7:39 PM, Marko Rauhamaa wrote:
>> * Coroutines can be killed, threads cannot.
>
> Not strictly true. A coroutine can be abandoned at an await point, but
> the currently-executed call is still going to complete (usually);
I don't quite understand. Say y
On Thu, Nov 24, 2016 at 7:39 PM, Marko Rauhamaa wrote:
> * Coroutines can be killed, threads cannot.
>
Not strictly true. A coroutine can be abandoned at an await point, but
the currently-executed call is still going to complete (usually); a
thread can be killed, but certain non-interruptible op
Seb wrote:
> Hello,
>
> Given a list of files:
>
> In [81]: ec_files[0:10]
> Out[81]:
>
> [u'EC_20160604002000.csv',
> u'EC_2016060401.csv',
> u'EC_20160604012000.csv',
> u'EC_20160604014000.csv',
> u'EC_2016060402.csv']
>
> where the numbers are are a timestamp with format %Y%m%d%
"Frank Millman" :
> "Steven D'Aprano" wrote in message
> news:58368358$0$1513$c3e8da3$54964...@news.astraweb.com...
>> I'm a newbie to asyncio, but if I were doing this using threads, [...]
>
> To me, the beauty of asyncio (or I suppose async in general) is that I
> don't have to worry about any
27 matches
Mail list logo