On Tuesday, September 27, 2016 at 2:14:05 PM UTC+8, Cai Gengyang wrote:
> We're trying to help, but we need to know more about the
> environment you're using to enter your code.
>
> What operating system are you using? --- OSX Yosemite Version 10.10.2
>
> How are you running the interactive int
We're trying to help, but we need to know more about the
environment you're using to enter your code.
What operating system are you using? --- OSX Yosemite Version 10.10.2
How are you running the interactive interpreter? Are you
using IDLE, or are you running Python in a command window? --- ID
Cai Gengyang wrote:
I'll still be asking for help here. Please help out a newbie.
We're trying to help, but we need to know more about the
environment you're using to enter your code.
What operating system are you using?
How are you running the interactive interpreter? Are you
using IDLE, or
how does Python switch execution and maintain context i.e function stack
etc,.. for co-routines and why is it less costly than switching threads
which almost do the same, and both are handled by Python Interpreter
itself(event loop for co-routines and GIL scheduling for threading), so
where does th
On Tue, Sep 27, 2016 at 1:48 AM, wrote:
> This function is in a DLL. It's small but may run for days before complete. I
> want it
> takes 100% core usage. Threading seems not a good idea for it shares the core
> with others. Will the multiprocessing module do it?
The threads of a process do not
This function is in a DLL. It's small but may run for days before complete. I
want it takes 100% core usage. Threading seems not a good idea for it shares
the core with others. Will the multiprocessing module do it? Any suggestion?
Thanks ahead.
--Jach
--
https://mail.python.org/mailman/listi
On Monday, September 26, 2016 at 8:30:34 PM UTC-5, Nathan Ernst wrote:
> There's a bug at line 362:
>
> sup_sheet.write=(s_count,"VM", cell_format);
> ---^
>
> Like I suggested, you've an errant assignment to sup_sheet.write.
>
> Also, a couple of notes on style: the terminating semi
There's a bug at line 362:
sup_sheet.write=(s_count,"VM", cell_format);
---^
Like I suggested, you've an errant assignment to sup_sheet.write.
Also, a couple of notes on style: the terminating semicolons in your code
is unnecessary. It's only needed for multiple statements on a singl
On Monday, September 26, 2016 at 8:08:13 PM UTC-5, MRAB wrote:
> On 2016-09-27 01:34, Mohan Mohta wrote:
> > On Monday, September 26, 2016 at 6:56:20 PM UTC-5, Nathan Ernst wrote:
> >> On Mon, Sep 26, 2016 at 6:00 PM, MRAB wrote:
> >>
> >> > On 2016-09-26 23:03, M2 wrote:
> >> >
> >> >> Hello
> >>
On 2016-09-27 01:34, Mohan Mohta wrote:
On Monday, September 26, 2016 at 6:56:20 PM UTC-5, Nathan Ernst wrote:
On Mon, Sep 26, 2016 at 6:00 PM, MRAB wrote:
> On 2016-09-26 23:03, M2 wrote:
>
>> Hello
>> The program is designed to collect different statistics from servers
>> across the network
On Monday, September 26, 2016 at 6:56:20 PM UTC-5, Nathan Ernst wrote:
> On Mon, Sep 26, 2016 at 6:00 PM, MRAB wrote:
>
> > On 2016-09-26 23:03, M2 wrote:
> >
> >> Hello
> >> The program is designed to collect different statistics from servers
> >> across the network and populate in excel sheet.
On Monday, September 26, 2016 at 9:57:52 PM UTC+1, Cai Gengyang wrote:
> Ok it works now:
>
> >>>for row in range(10):
> for column in range(10):
>print("*",end="")
>
>
>
>
>
On Mon, Sep 26, 2016 at 6:00 PM, MRAB wrote:
> On 2016-09-26 23:03, M2 wrote:
>
>> Hello
>> The program is designed to collect different statistics from servers
>> across the network and populate in excel sheet.
>> Library : xlsxwriter.0.9.3
>>
>> Below is the Snip of code being used
>> #! /usr/b
use
> client:
> server_address='192.168.2.2'
server:
> server_name='127.0.0.1'
--
https://mail.python.org/mailman/listinfo/python-list
On 2016-09-26 23:03, M2 wrote:
Hello
The program is designed to collect different statistics from servers across the
network and populate in excel sheet.
Library : xlsxwriter.0.9.3
Below is the Snip of code being used
#! /usr/bin/python
import xlsxwriter
import os;
import subprocess;
import sy
Sure, I just sent in a subscription request to it ... but I'll still be asking
for help here. Please help out a newbie. When I master this language I can help
other new users too (This is good for the world and for everyone involved).
Ideally, Information and education should be free and not loc
Hello
The program is designed to collect different statistics from servers across the
network and populate in excel sheet.
Library : xlsxwriter.0.9.3
Below is the Snip of code being used
#! /usr/bin/python
import xlsxwriter
import os;
import subprocess;
import sys;
import os.path;
workbook=xls
Cai Gengyang :
> What is a tab and what is a space in python and what's the difference
> ?
>
> Which piece of code is indented with tabs and which one is indented
> with spaces ?
Key questions that Python gurus are having a hard time answering!
Equally confusing, you might run into this phantom p
Ok it works now:
>>>for row in range(10):
for column in range(10):
print("*",end="")
but how is it different from ---
>>> for row in range(10):
for column in range(10)
On 9/26/2016 12:54 PM, Cai Gengyang wrote:
Which piece of code is indented with tabs and which one is indented with spaces
?
I told you in my initial answer, where I said, referring to the two
indented lines in one 'piece of code', "These indents are 4 spaces and 1
tabs." It is the mixture
On 09/26/2016 08:25 AM, Cai Gengyang wrote:
I just wanted to note that sometimes the code works, sometimes it doesn't.
(even though both are exactly the same code) ... Weird , dum dum dum
It is NOT weird. Python is being consistent, YOU are not.
These examples are NOT "exactly the same code
Cai Gengyang writes:
> What is a tab and what is a space in python and what's the difference
> ?
Try print('x\tx') in Python to see a tab character between the two x's.
For me it looks the same as seven spaces, for you it will also look like
some amount of whitespace but it might be a different a
On 09/26/2016 06:54 PM, Cai Gengyang wrote:
What is a tab and what is a space in python and what's the difference ?
Which piece of code is indented with tabs and which one is indented with spaces
?
Please do not top-post in this list. Put your text after the message you
quote.
Tabs and sp
On Tue, 27 Sep 2016 01:25 am, Cai Gengyang wrote:
> I just wanted to note that sometimes the code works, sometimes it doesn't.
> (even though both are exactly the same code) ... Weird , dum dum dum
They are not the same code. One of them mixes tabs and spaces for the same
indent level, the other
What is a tab and what is a space in python and what's the difference ?
Which piece of code is indented with tabs and which one is indented with spaces
?
On Tuesday, September 27, 2016 at 12:40:16 AM UTC+8, MRAB wrote:
> On 2016-09-26 16:25, Cai Gengyang wrote:
> > I just wanted to note that
On 2016-09-26 16:25, Cai Gengyang wrote:
I just wanted to note that sometimes the code works, sometimes it doesn't.
(even though both are exactly the same code) ... Weird , dum dum dum
for row in range(10):
for column in range(10):
print("*",end="")
SyntaxError: inco
On 09/26/2016 05:25 PM, Cai Gengyang wrote:
I just wanted to note that sometimes the code works, sometimes it doesn't.
(even though both are exactly the same code) ... Weird , dum dum dum
for row in range(10):
for column in range(10):
print("*",end="")
SyntaxError:
I just wanted to note that sometimes the code works, sometimes it doesn't.
(even though both are exactly the same code) ... Weird , dum dum dum
>>> for row in range(10):
for column in range(10):
print("*",end="")
SyntaxError: inconsistent use of tabs and spaces in inde
On 09/25/2016 03:20 AM, chitt...@uah.edu wrote:
On Sunday, September 11, 2016 at 3:56:36 PM UTC-5, chit...@uah.edu wrote:
(about being frustrated with sphinx)
I _remain_ frustrated - even as I finally figured out how to use it (thanks to
a complete example from a friend)
sphinx is very picky a
Looks cool. Why does it want to install pypiwin32 on my 64bit Linux box?
I installed all the requirements separately, but it still wants to install
pypiwin32.
(pypiwin32 appears to not support Python3)
# pip3.5 install asciimatics
Collecting asciimatics
Using cached asciimatics-1.7.0-py2.py3
On Monday 26 September 2016 18:32, Cai Gengyang wrote:
> These are my attempts ---
That's nice. Do you have a question?
> SyntaxError: inconsistent use of tabs and spaces in indentation
When you indent, press TAB or SPACE but not both.
This error can only happen if you are use spaces for some
Cai Gengyang writes:
> These are my attempts ---
>
for row in range(10):
> for column in range(10):
> print("*",end=" ")
>
> SyntaxError: inconsistent use of tabs and spaces in indentation
What do you type yourself? Could it be that your software starts the
second line with
Steven D'Aprano writes:
> P.S. Hey Jussi, is the backspace key on your keyboard broken? Every
> time somebody bottom-posts without trimming, a pixie dies...
I was annoyed by the top-posted one-liner in response to the last line
of Terry's response. I responded in kind and then it was too late. I'
These are my attempts ---
>>> for row in range(10):
for column in range(10):
print("*",end=" ")
SyntaxError: inconsistent use of tabs and spaces in indentation
>>> for row in range(10):
for column in range(10):
print("*",end=" ")
SyntaxError: expected an indented
On Monday 26 September 2016 17:21, Jussi Piitulainen wrote:
> Cai Gengyang writes:
[snip 80 or so lines]
> Reindent your lines.
In case Cai doesn't know what "reindent" means:
It depends on your text editor. At worst, you have to delete all the indents,
and re-enter them, using ONLY spaces, o
Cai Gengyang writes:
> So what do i need to do to correct the error ?
>
> Regards
>
>
> On Monday, September 26, 2016 at 2:48:16 PM UTC+8, Terry Reedy wrote:
>> On 9/26/2016 1:59 AM, Cai Gengyang wrote:
>> > Why is it that you need a print() at the end to create the table for
>> > example 1:
>>
I want to check the references of an object. Any way to get the references
of an object with Python C API? Like: gc.get_referrs(), is there similar
API in C lib?
--
https://mail.python.org/mailman/listinfo/python-list
So what do i need to do to correct the error ?
Regards
On Monday, September 26, 2016 at 2:48:16 PM UTC+8, Terry Reedy wrote:
> On 9/26/2016 1:59 AM, Cai Gengyang wrote:
> > Why is it that you need a print() at the end to create the table for
> > example 1:
> >
> > Example 1 ---
> >
> for r
38 matches
Mail list logo