On 01/10/2015 06:32 PM, Steven D'Aprano wrote:
>
> If you treat your readers as idiots, only idiots will read your writing.
Or the morbidly curious, which I presume covers your case (along with a handful
of others ;) .
--
~Ethan~
signature.asc
Description: OpenPGP digital signature
--
https
On Sat, Jan 10, 2015 at 6:32 PM, Steven D'Aprano
wrote:
> At the point you are demonstrating reduce(), if the reader doesn't
> understand or can't guess the meaning of "n = 4", "n+1" or range(), they
> won't understand anything you say.
>
> Teachers need to understand that education is a process o
On Sunday, January 11, 2015 at 8:02:50 AM UTC+5:30, Steven D'Aprano wrote:
> Rick Johnson wrote:
>
>
> >
> > EXAMPLE 1: "Reducing Comprehension"
> > https://docs.python.org/2/howto/doanddont.html#using-the-batteries
> >
On Thu, 08 Jan 2015 09:56:50 -0800, Rustom Mody wrote:
> Given a matrix I want to shift the 1st column 0 (ie leave as is) 2nd by
> one place, 3rd by 2 places etc.
>
> This code works.
> But I wonder if numpy can do it shorter and simpler.
def shiftcols(mat):
iy,ix = np.indices(mat.shape)
On Fri, 09 Jan 2015 09:49:25 -0800, semeon.risom wrote:
> Thank you for the help btw. I think I'm close to a solution, but I'm
> having issue feeding the coordinates from my csv file into the formula.
>
> This is the error I get:
> Traceback (most recent call last):
> File "C:\Users\Owner\Deskt
I am new to python.
I downloaded python 2.7.8 tarball, successfully cross compiled it, to make sure
that the subsystems are correctly built, I tried running the python test
scripts on the MIPS based target board. I hit the below error while I do so,
==
# /opt/Python-2.7.8/bin/python2.7 /opt/Pyt
Abdul Abdul wrote:
> Hello,
>
> I have the following program that employs the dcm2jpg.exe software:
>
> import os
> os.system(“dcm2jpg.exe IM-0004-0004.dcm”)
> exit
>
> When I tried to run it, I got the following error:
>
> SyntaxError: Non-ASCII character '\xe2' in file dicomjpg.py on line 2,
Rick Johnson wrote:
>
> EXAMPLE 1: "Reducing Comprehension"
> https://docs.python.org/2/howto/doanddont.html#using-the-batteries
>
>
>
>
On 01/10/2015 04:36 PM, Abdul Abdul wrote:
Hello,
I have the following program that employs the dcm2jpg.exe software:
import os
os.system(“dcm2jpg.exe IM-0004-0004.dcm”)
exit
When I tried to run it, I got the following error:
SyntaxError: Non-ASCII character '\xe2' in file dicomjpg.py on line
Abdul Abdul wrote:
> Hello,
>
> I have the following program that employs the dcm2jpg.exe software:
>
> import os
> os.system(“dcm2jpg.exe IM-0004-0004.dcm”)
> exit
>
> When I tried to run it, I got the following error:
>
> SyntaxError: Non-ASCII character '\xe2' in file dicomjpg.py on line 2,
On Sat, Jan 10, 2015 at 4:36 PM, Abdul Abdul wrote:
>
> Hello,
>
> I have the following program that employs the dcm2jpg.exe software:
>
> import os
> os.system(“dcm2jpg.exe IM-0004-0004.dcm”)
> exit
>
It may be that your actual code has ascii quote characters, but you
have sent your question as r
Hello,
I have the following program that employs the dcm2jpg.exe software:
import os
os.system(“dcm2jpg.exe IM-0004-0004.dcm”)
exit
When I tried to run it, I got the following error:
SyntaxError: Non-ASCII character '\xe2' in file dicomjpg.py on line 2, but
no en
coding declared; see http://pyt
On 10/01/2015 18:26, Chris Angelico wrote:
On Sun, Jan 11, 2015 at 5:05 AM, Rick Johnson
wrote:
EXAMPLE 1: "Reducing Comprehension"
https://docs.python.org/2/howto/doanddont.html#using-the-batteries
==
Howdy all,
I am pleased to announce the release of version 2.0.1 of the
‘python-daemon’ library.
The current release is always available at
https://pypi.python.org/pypi/python-daemon/>.
The project's forums and VCS are hosted at Alioth
https://alioth.debian.org/projects/python-daemon/>.
Signif
On Sun, Jan 11, 2015 at 5:05 AM, Rick Johnson
wrote:
>
> EXAMPLE 1: "Reducing Comprehension"
> https://docs.python.org/2/howto/doanddont.html#using-the-batteries
>
1) Why are
EXAMPLE 1: "Reducing Comprehension"
https://docs.python.org/2/howto/doanddont.html#using-the-batteries
#
On Sat, Jan 10, 2015 at 10:50 AM, Mark Lawrence
wrote:
> I came across ftfy via this post http://ianozsvald.com/2015/01/
> 10/a-first-approach-to-automatic-text-data-cleaning/ and thought others
> here might be interested in it, so here's the direct link
> http://ftfy.readthedocs.org/en/latest/.
Ganesh Pal wrote:
> Throttling-1# cat test_2.txt
Are you running these scripts as root? That could be a bad idea. If you have
a bug in your code, as often happens when coding, who knows what it might
do. E.g. if you put in the wrong pathname, you could overwrite important
files. You should always
On Fri, 09 Jan 2015 23:41:15 +0200, Marko Rauhamaa wrote:
> Peter Pearson :
>
>> If you've never looked at the set of reals (x,y) satisfying x**y ==
>> y**x, it's worth a visit.
>
> Thanks, it was. The graph's something like this:
[snip]
>
> Where can I read more on the topic?
Sorry, I don't know
I came across ftfy via this post
http://ianozsvald.com/2015/01/10/a-first-approach-to-automatic-text-data-cleaning/
and thought others here might be interested in it, so here's the direct
link http://ftfy.readthedocs.org/en/latest/.
--
My fellow Pythonistas, ask not what our language can do fo
On 01/10/2015 10:14 AM, Ganesh Pal wrote:
Please provide you input on the below questions:
For each new thread, you should specify at a minimum your Python version
and OS. it frequently matters, and it's better to specify than to have
everyone try to guess. I'll assume Python 2.7 and Linux
Thanks I read subprocess module this answered most of my question ,thanks a
lot for the replies
On Thu, Jan 8, 2015 at 9:46 AM, Terry Reedy wrote:
> On 1/7/2015 9:00 PM, Ganesh Pal wrote:
>
>> Hi friends,
>>
>> I'm trying to use threads to achieve the below work flow
>>
>> 1. Start a process ,
Please provide you input on the below questions:
(a) I was expecting the string i.e day of week , example Saturday to be
written in the file. what Iam I missing in the below program ?
Program:
#!/usr/bin/python
import time
f = open ('test_2.txt','w+b')
DAY = time.strftime("%A")
f.write(DAY)
On Sat, Jan 10, 2015 at 3:41 AM, Terry Reedy wrote:
> The post could be replaced by a placeholder "This message deleted'
>
> and the
>>
>> archive regenerated. That changes the counter for every message after
>
>
> A placeholder should avoid that.
I suspect (though don't know for certain) that j
contro opinion wrote:
> When i test an udp.py file on server and client in python34.
>
>
> #!/usr/bin/env python
> import socket, sys
> s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
> MAX = 65535
> PORT = 1060
> if sys.argv[1:] == ['server']:
> s.bind(('127
Howdy all,
I am pleased to announce the release of version 2.0 of the
‘python-daemon’ library.
The current release is always available at
https://pypi.python.org/pypi/python-daemon/>.
The project's forums and VCS are hosted at Alioth
https://alioth.debian.org/projects/python-daemon/>.
Signific
On Fri, 09 Jan 2015 19:57:20 -0800, Devin Jeanpierre wrote:
> On Fri, Jan 9, 2015 at 7:05 PM, Gregory Ewing
> wrote:
>> It's far from clear what *anything* multiplied by itself zero times
>> should be.
>>
>> A better way of thinking about what x**n for integer n means is this:
>> Start with 1, an
On 1/9/2015 7:04 AM, Skip Montanaro wrote:
Posts on this newsgroup/mailing list are archived on the web, but the URLs
seem to change, which leaves dead links if you search for things.
Steven,
It's a known issue, but one which appears to be somewhat unavoidable,
at least in Mailman 2.x. The pro
On 1/9/2015 8:14 AM, Gisle Vanem wrote:
I'm having some trouble understanding why my Python 2.7.9
has the '%PYTHONHOME%\lib\site-packages' listed multiple
times.
I cooked up this .bat file to demonstrate the issue:
@echo off
setlocal
set PYTHONPATH=
python -c "import sys; [sys.stdout
On Sat, Jan 10, 2015 at 2:02 AM, André Roberge wrote:
> On Friday, 9 January 2015 19:09:15 UTC-4, stephen...@gmail.com wrote:
>> One issue is the format returned for the calendar selection. For today, the
>> string returned is "Fri Jan 9 2015". My script needs to convert the date to
>> a dateti
On 01/09/2015 05:53 AM, meiry...@gmail.com wrote:
Hello all
coming from java and c++ now going with python
what setup do i need to run full python stack for web application .
what i need is web framework and back-end .
what usually be in the java world tomcat and servlets or jsp and pure java
ba
When i test an udp.py file on server and client in python34.
#!/usr/bin/env python
import socket, sys
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
MAX = 65535
PORT = 1060
if sys.argv[1:] == ['server']:
s.bind(('127.0.0.1', PORT))
print('Listening at
32 matches
Mail list logo