Re: scipy install error,need help its important

2016-04-17 Thread Christian Gollwitzer
Am 18.04.16 um 06:38 schrieb Xristos Xristoou: i fllow you with anaconda route and i install scipy without error but in the idle i write import scipy and show me erroe msg no module name scipy,why ? Maybe you run IDLE with the python that you had installed before? Try looking for IDLE withi

Re: [OT] Java generics

2016-04-17 Thread Kushal Kumaran
Chris Angelico writes: > On Mon, Apr 18, 2016 at 8:02 AM, Tim Delaney > wrote: >> I also wouldn't describe Java as a >> "perfectly good language" - it is at best a compromise language that just >> happened to be heavily promoted and accepted at the right time. >> >> Python is *much* closer to my

Re: HTTPServer and SSL

2016-04-17 Thread Terry Reedy
On 4/18/2016 1:39 AM, Terry Reedy wrote: My apologies for the tired, twitchy finger junk post that I noticed 1/2 second after clicking the wrong button and I wish I oould delete. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

Re: HTTPServer and SSL

2016-04-17 Thread Terry Reedy
On 4/17/2016 10:56 AM, Radek Holý wrote: Hello, some people recommend following implementation of a simple HTTP server that supports SSL: asdfghjkki Handler = http.server.BaseHTTPRequestHandlerhttpd = http.server.HTTPServer(("", 4443), Handler) httpd.socket = ssl.wrap_socket(httpd.socket, serve

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Marko Rauhamaa
Steven D'Aprano : > On Mon, 18 Apr 2016 10:27 am, Random832 wrote: > >> As an alternative, when you send them through can you put a note on >> the bottom saying they're not subscribed, to remind people to CC them >> in responses? > > That doesn't work so well from Usenet. I can reply via news (whi

Re: How much sanity checking is required for function inputs?

2016-04-17 Thread Ethan Furman
On 04/17/2016 12:34 PM, Christopher Reimer wrote: How much sanity checking is too much in Python? What happens if your extensive sanity checks turn up a bug? In Python the usual answer is you raise an error: raise ValueError('blahblah not a valid color') What happens if you don't sanity

Re: How much sanity checking is required for function inputs?

2016-04-17 Thread Christopher Reimer
On 4/17/2016 3:18 PM, Michael Selik wrote: I'd rather turn the question around: how much sanity checking is necessary or useful? You'll find the answer is "surprisingly little" compared to your experience in Java. I'm looking for a pythonic approach to sanity checking. From what I read elsewh

Re: What iterable method should I use for Lists of Lists

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 2:09 PM, Sayth Renshaw wrote: >> > > > > > id="187674" idnumber="" regnumber="" blinkers="0" trainernumber="736" >> > > trainersurname="Martin" trainerfirstname="Tim" trainertrack="Rosehill" >> > > rsbtrainername="Tim Martin" jockeynumber="46930" jockeysurname="Anglan

Re: scipy install error,need help its important

2016-04-17 Thread Xristos Xristoou
Τη Δευτέρα, 18 Απριλίου 2016 - 6:53:30 π.μ. UTC+3, ο χρήστης Xristos Xristoou έγραψε: > guys i have big proplem i want to install scipy > but all time show me error > i have python 2.7 and windows 10 > i try to use pip install scipy and i take that error > > raise NotFoundError('no lapack/blas re

Re: scipy install error,need help its important

2016-04-17 Thread Xristos Xristoou
Τη Δευτέρα, 18 Απριλίου 2016 - 6:53:30 π.μ. UTC+3, ο χρήστης Xristos Xristoou έγραψε: after google search to many post propose install lapack and atla bt=ut i dont know > guys i have big proplem i want to install scipy > but all time show me error > i have python 2.7 and windows 10 > i try to u

Re: scipy install error,need help its important

2016-04-17 Thread Sayth Renshaw
On Monday, 18 April 2016 13:53:30 UTC+10, Xristos Xristoou wrote: > guys i have big proplem i want to install scipy > but all time show me error > i have python 2.7 and windows 10 > i try to use pip install scipy and i take that error > > raise NotFoundError('no lapack/blas resources found') >

Re: scipy install error,need help its important

2016-04-17 Thread Sayth Renshaw
On Monday, 18 April 2016 13:53:30 UTC+10, Xristos Xristoou wrote: > guys i have big proplem i want to install scipy > but all time show me error > i have python 2.7 and windows 10 > i try to use pip install scipy and i take that error > > raise NotFoundError('no lapack/blas resources found') >

Re: What iterable method should I use for Lists of Lists

2016-04-17 Thread Sayth Renshaw
On Monday, 18 April 2016 13:13:21 UTC+10, Sayth Renshaw wrote: > On Monday, 18 April 2016 12:12:59 UTC+10, Sayth Renshaw wrote: > > On Monday, 18 April 2016 12:05:39 UTC+10, Sayth Renshaw wrote: > > > Hi > > > > > > I have an XML and using pyquery to obtain the elements within it and then > >

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Rustom Mody
On Sunday, April 17, 2016 at 3:34:56 PM UTC+5:30, BartC wrote: > On 17/04/2016 04:44, Rustom Mody wrote: > > On Saturday, April 16, 2016 at 10:22:10 PM UTC+5:30, Marko Rauhamaa wrote: > > >> It comes with the maxim that one function must be visible at once on the > >> screen. > > > > Thats a stran

Re: Creating a hot vector (numpy)

2016-04-17 Thread Reto Brunner
Hi, It is called broadcasting an array, have a look here: http://docs.scipy.org/doc/numpy-1.10.1/user/basics.broadcasting.html Greetings, Reto On Mon, Apr 18, 2016, 02:54 Paulo da Silva wrote: > Hi all. > > I have seen this "trick" to create a hot vector. > > In [45]: x > Out[45]: array([0, 1])

scipy install error,need help its important

2016-04-17 Thread Xristos Xristoou
guys i have big proplem i want to install scipy but all time show me error i have python 2.7 and windows 10 i try to use pip install scipy and i take that error raise NotFoundError('no lapack/blas resources found') numpy.distutils.system_info.NotFoundError: no lapack/blas resources found Com

Re: QWERTY was not designed to intentionally slow typists down

2016-04-17 Thread Michael Torrie
On 04/17/2016 07:39 PM, Steven D'Aprano wrote: > Even though QWERTY wasn't designed with touch-typing in mind, it's > interesting to look at some of the weaknesses of the system. It is almost > as if it had been designed to make touch-typing as inefficient as > possible :-) Just consider the home k

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Rustom Mody
On Monday, April 18, 2016 at 8:49:33 AM UTC+5:30, Steven D'Aprano wrote: > On Mon, 18 Apr 2016 11:39 am, Rustom Mody wrote: > > > yes we can agree on this -- arbitrary line lengths are almost certainly > > unreadable. > > The problem then becomes so what is optimal? > > I really don't think it is

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Steven D'Aprano
On Mon, 18 Apr 2016 11:39 am, Rustom Mody wrote: > yes we can agree on this -- arbitrary line lengths are almost certainly > unreadable. > The problem then becomes so what is optimal? I really don't think it is a problem. We have about 400 years of experience with printed text, and that experienc

Re: What iterable method should I use for Lists of Lists

2016-04-17 Thread Sayth Renshaw
On Monday, 18 April 2016 12:12:59 UTC+10, Sayth Renshaw wrote: > On Monday, 18 April 2016 12:05:39 UTC+10, Sayth Renshaw wrote: > > Hi > > > > I have an XML and using pyquery to obtain the elements within it and then > > write it to csv. > > > > What is the best most reliable way to take dicti

Re: What iterable method should I use for Lists of Lists

2016-04-17 Thread Sayth Renshaw
On Monday, 18 April 2016 12:05:39 UTC+10, Sayth Renshaw wrote: > Hi > > I have an XML and using pyquery to obtain the elements within it and then > write it to csv. > > What is the best most reliable way to take dictionaries of each element, and > print them(csv write later) based on each posi

What iterable method should I use for Lists of Lists

2016-04-17 Thread Sayth Renshaw
Hi I have an XML and using pyquery to obtain the elements within it and then write it to csv. What is the best most reliable way to take dictionaries of each element, and print them(csv write later) based on each position so get item 0 of each list and then it 1 and so on. Any other code I po

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 11:39 AM, Steven D'Aprano wrote: > With QWERTY, the eight home keys only cover a fraction over a quarter of > all key presses: ASDF JKL; have frequencies of > > 8.12% 6.28% 4.32% 2.30% 0.10% 0.69% 3.98% and effectively 0% > > making a total of 25.79%. If you also include G

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-17 Thread Random832
On Sun, Apr 17, 2016, at 21:39, Steven D'Aprano wrote: > Oh no, it's the thread that wouldn't die! *wink* > > Actually, yes it is. At least, according to this website: > > http://www.mit.edu/~jcb/Dvorak/history.html I'd really rather see an instance of the claim not associated with Dvorak marketi

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Steven D'Aprano
On Mon, 18 Apr 2016 10:27 am, Random832 wrote: > As an alternative, when you send them through can you put a note on the > bottom saying they're not subscribed, to remind people to CC them in > responses? That doesn't work so well from Usenet. I can reply via news (which definitely works), or I c

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Steven D'Aprano
On Sun, 17 Apr 2016 09:01 pm, Marko Rauhamaa wrote: > In fact, if you find yourself introducing coding "paragraphs" with > comments: > > def f(...): > # I'll start by doing this > ... > # segueing into the middle portion > ... > # and finish it off as follows > ... > > you had better break those

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Rustom Mody
On Sunday, April 17, 2016 at 9:19:48 AM UTC+5:30, Chris Angelico wrote: > On Sun, Apr 17, 2016 at 1:44 PM, Rustom Mody wrote: > > Thats a strange self-contradiction. I wrote this: > > http://blog.languager.org/2012/10/layout-imperative-in-functional.html > > to make the case against PEP8 style li

Re: QWERTY was not designed to intentionally slow typists down (was: Unicode normalisation [was Re: [beginner] What's wrong?])

2016-04-17 Thread Steven D'Aprano
Oh no, it's the thread that wouldn't die! *wink* On Sun, 10 Apr 2016 01:53 am, Random832 wrote: > On Fri, Apr 8, 2016, at 23:28, Steven D'Aprano wrote: >> This is the power of the "slowing typists down is a myth" meme: same >> Wikipedia contributor takes an article which *clearly and obviously*

Re: [OT] Java generics (was: Guido sees the light: PEP 8 updated)

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 11:03 AM, Steven D'Aprano wrote: > On Mon, 18 Apr 2016 09:30 am, Chris Angelico wrote: > >> "Java" was originally four related, but separate, concepts: a source >> language, a bytecode, a sandboxing system, and one other that I can't >> now remember. > > The virtual machine

Re: [OT] Java generics (was: Guido sees the light: PEP 8 updated)

2016-04-17 Thread Steven D'Aprano
On Mon, 18 Apr 2016 09:30 am, Chris Angelico wrote: > "Java" was originally four related, but separate, concepts: a source > language, a bytecode, a sandboxing system, and one other that I can't > now remember. The virtual machine? Or is that what you mean by bytecode? The Java Virtual Machine

Re: Introducing the secrets module

2016-04-17 Thread Steven D'Aprano
On Sun, 17 Apr 2016 10:40 pm, Irmen de Jong wrote: > On 17-4-2016 4:36, Steven D'Aprano wrote: > >> And the documentation: >> >> https://docs.python.org/3.6/library/secrets.html >> >> >> Comments requested. > > I've read about the "How many bytes should tokens use?" consideration. It > sugges

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Ben Finney
Random832 writes: > As an alternative, when you send them through can you put a note on > the bottom saying they're not subscribed, to remind people to CC them > in responses? That still relies on every participant manually changing from the correct behaviour (reply to the mailing list only, by

Creating a hot vector (numpy)

2016-04-17 Thread Paulo da Silva
Hi all. I have seen this "trick" to create a hot vector. In [45]: x Out[45]: array([0, 1]) In [46]: y Out[46]: array([1, 1, 1, 0, 0, 1, 0, 0], dtype=uint8) In [47]: y[:,None] Out[47]: array([[1], [1], [1], [0], [0], [1], [0], [0]], dtype=uint8)

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Ben Finney
Ethan Furman writes: > On 04/17/2016 03:08 PM, Matt Ruffalo wrote: > > > That seems like a reasonable approach, though I think there *really* > > needs to be an option along the lines of "subscribed to the list for > > the purposes of moderation, but not receiving list messages via > > email". >

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 10:27 AM, Random832 wrote: > As an alternative, when you send them through can you put a note on the > bottom saying they're not subscribed, to remind people to CC them in > responses? I think that's why we never get any followup on "newbie > problem" questions (especially

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Random832
On Sun, Apr 17, 2016, at 19:56, Gregory Ewing wrote: > And then legacy command-line exes will be supported by running > cmd.exe under WINE in the Linux subsystem. Running the command directly under WINE, more like. Because cmd.exe is pretty terrible as a scripting language and command interpreter

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Random832
On Sun, Apr 17, 2016, at 18:08, Matt Ruffalo wrote: > Hi- > > That seems like a reasonable approach, though I think there *really* > needs to be an option along the lines of "subscribed to the list for the > purposes of moderation, but not receiving list messages via email". There is. I'm on seve

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Gregory Ewing
Michael Torrie wrote: On 04/17/2016 10:13 AM, Dennis Lee Bieber wrote: On Sat, 16 Apr 2016 21:59:01 -0400, Random832 declaimed the following: I heard Windows 10 is going to finally fix this, anyway. Probably by removing the old CLI window completely and making everyone learn Power

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 8:08 AM, Matt Ruffalo wrote: > Hi- > > That seems like a reasonable approach, though I think there *really* > needs to be an option along the lines of "subscribed to the list for the > purposes of moderation, but not receiving list messages via email". I > think I did this

Re: [OT] Java generics (was: Guido sees the light: PEP 8 updated)

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 8:02 AM, Tim Delaney wrote: > I also wouldn't describe Java as a > "perfectly good language" - it is at best a compromise language that just > happened to be heavily promoted and accepted at the right time. > > Python is *much* closer to my idea of a perfectly good language

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Ethan Furman
On 04/17/2016 03:08 PM, Matt Ruffalo wrote: That seems like a reasonable approach, though I think there *really* needs to be an option along the lines of "subscribed to the list for the purposes of moderation, but not receiving list messages via email". I don't understand what you are saying.

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Matt Ruffalo
Hi- That seems like a reasonable approach, though I think there *really* needs to be an option along the lines of "subscribed to the list for the purposes of moderation, but not receiving list messages via email". I think I did this with the Git mailing list in the past, and it was quite useful. I

Re: How much sanity checking is required for function inputs?

2016-04-17 Thread Michael Selik
On Sun, Apr 17, 2016, 4:35 PM Christopher Reimer < christopher_rei...@icloud.com> wrote: > Greetings, > > I'm currently building a chess engine to learn the finer details of > Python. When I learned all flavors of Java in community college a decade > ago, we had to sanity check the hell out of the

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Ben Finney
Marko Rauhamaa writes: > Chris Angelico : > > > What more often happens is that, once the function exceeds the > > stipulated maximum, it gets split somewhat arbitrarily into a > > "master" function and several "part" functions, with each part > > having exactly one call site in the driver and ex

[OT] Java generics (was: Guido sees the light: PEP 8 updated)

2016-04-17 Thread Tim Delaney
On 17 April 2016 at 23:38, Ian Kelly wrote: > > Java generics ruined a perfectly good language. I mean: > > The diamond operator in JDK 7 makes this a lot more tolerable, IMO: > > Map> customersOfAccountManager = > new HashMap<>(); > To some extent - you can't use the diamond operat

Re: Dynamic inputs

2016-04-17 Thread Michael Selik
On Sun, Apr 17, 2016, 7:01 AM durgadevi1 < srirajarajeswaridevikr...@gmail.com> wrote: > On Saturday, April 16, 2016 at 5:31:39 PM UTC+8, Michael Selik wrote: > > On Sat, Apr 16, 2016, 9:41 AM durgadevi1 < > > srirajarajeswaridevikr...@gmail.com> wrote: > > > > > what does dynamic inputs mean and

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Michael Torrie
On 04/17/2016 10:13 AM, Dennis Lee Bieber wrote: > On Sat, 16 Apr 2016 21:59:01 -0400, Random832 > declaimed the following: > >> >> I heard Windows 10 is going to finally fix this, anyway. > > Probably by removing the old CLI window completely and making everyone > learn PowerShell ISE Or

How much sanity checking is required for function inputs?

2016-04-17 Thread Christopher Reimer
Greetings, I'm currently building a chess engine to learn the finer details of Python. When I learned all flavors of Java in community college a decade ago, we had to sanity check the hell out of the input values for every function and wrote a lot of redundant code in addition to the getters/

Re: read datas from sensors and plotting

2016-04-17 Thread ranran
Check out plotly https://plot.ly/python/ nice! but it's no completely free...for example I should plot 4 chart of temperatures in the same time. I think I can plot only 1 chart. Anyway I need to be connected to internet instead sometimes I want to show it only in my webserver. -- https://m

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread eryk sun
On Sun, Apr 17, 2016 at 11:13 AM, Dennis Lee Bieber wrote: > On Sat, 16 Apr 2016 21:59:01 -0400, Random832 > declaimed the following: >> >>I heard Windows 10 is going to finally fix this, anyway. > > Probably by removing the old CLI window completely and making everyone > learn PowerShell ISE Po

Re:

2016-04-17 Thread eryk sun
On Sun, Apr 17, 2016 at 2:27 AM, B N wrote: > I found that when the “black” screen comes on, I am unable to read/see > any characters even if I turn up the brightness of the screen. Do you mean the console, i.e. the window used by the command prompt (cmd.exe)? For a novice, you'll probably be bet

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Tim Golden
On 17/04/2016 18:21, Wildman via Python-list wrote: On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote: [... snip my explanation of new moderation for non-subscribers ...] How will this change affect posts to comp.lang.python? Not at all, in the sense that the moderation doesn't apply to

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-17 Thread Chris Angelico
On Sun, Apr 17, 2016 at 6:21 AM, Ben Finney wrote: > Chris Angelico writes: > >> Maybe we need a blog post "Falsehoods Programmers Believe About PEP >> 8", along the lines of the ones about time and names. > > Great suggestion. (Do you have a blog on which you could post an article > like this?)

Re: error with tkinter, help

2016-04-17 Thread Chris Angelico
On Mon, Apr 18, 2016 at 3:17 AM, BlueRidiculous wrote: >> How did you install Python? The Windows PSF installer from python.org >> will create this directory unless you uncheck the box to include tcl/tk. >> >> -- >> Terry Jan Reedy > > What is a PSF installer? Anyway, I installed the "Windows x86

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Tim Chase
On 2016-04-17 16:35, Coos Haak wrote: > Op Sat, 16 Apr 2016 20:30:52 -0500 schreef Tim Chase: > >> Try `mode con cols=120 lines=30`. > > > > Yeah, that will do it, as will going into the settings and > > changing it. But basically every other program on Windows, and > > every console on Linux/BSD/

RE: read datas from sensors and plotting

2016-04-17 Thread Albert-Jan Roskam
> From: ran...@nospam.it > Subject: read datas from sensors and plotting > Date: Sun, 17 Apr 2016 18:46:25 +0200 > To: python-list@python.org > > I'm reading in python some values from some sensors and I write them in > a csv file. > My problem now is to use this datas to plot a realtime graph

Re: Moderation and slight change of (de facto) policy

2016-04-17 Thread Wildman via Python-list
On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote: > There's been a bit of chatter lately about the moderation on the Python > List (and, indirectly, comp.lang.python). The list moderators have > suspended a couple of posters for a while and we've been discussing a > little our policy toward

Re: error with tkinter, help

2016-04-17 Thread BlueRidiculous
On Sunday, April 17, 2016 at 10:18:09 AM UTC-7, BlueRidiculous wrote: > On Saturday, April 16, 2016 at 9:30:39 PM UTC-7, Terry Reedy wrote: > > On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: > > > So I was reading https://wiki.python.org/moin/TkInter for help. > > > I got to step 3 under "C

Re: error with tkinter, help

2016-04-17 Thread BlueRidiculous
On Saturday, April 16, 2016 at 9:30:39 PM UTC-7, Terry Reedy wrote: > On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: > > So I was reading https://wiki.python.org/moin/TkInter for help. > > I got to step 3 under "Checking your Tkinter support." > > Nothing happens when I do steps 1 or 2, an

Re: how to setup for localhost:8000

2016-04-17 Thread Pierre Quentel
> > 127.0.0.1 - - [15/Apr/2016 20:57:32] "GET / HTTP/1.1" 200 - > Hi Pierre, > > When I type http://localhost:8000, I did not see anything in the console > after the line "Serving HTTP on 0.0.0.0 port 8000 ... I believe the way I ran > was not correct as shown below: > > python -m http.server

Re: read datas from sensors and plotting

2016-04-17 Thread Joel Goldstick
On Sun, Apr 17, 2016 at 1:00 PM, Larry Martell wrote: > On Sunday, April 17, 2016, ranran wrote: > >> I'm reading in python some values from some sensors and I write them in a >> csv file. >> My problem now is to use this datas to plot a realtime graph for a example >> in a web server. >> Is it p

Re: read datas from sensors and plotting

2016-04-17 Thread Larry Martell
On Sunday, April 17, 2016, ranran wrote: > I'm reading in python some values from some sensors and I write them in a > csv file. > My problem now is to use this datas to plot a realtime graph for a example > in a web server. > Is it possible to read in the same time the values, writing in the fil

Moderation and slight change of (de facto) policy

2016-04-17 Thread Tim Golden
There's been a bit of chatter lately about the moderation on the Python List (and, indirectly, comp.lang.python). The list moderators have suspended a couple of posters for a while and we've been discussing a little our policy towards non-subscribed posts. First, a quick summary of the current

read datas from sensors and plotting

2016-04-17 Thread ranran
I'm reading in python some values from some sensors and I write them in a csv file. My problem now is to use this datas to plot a realtime graph for a example in a web server. Is it possible to read in the same time the values, writing in the file and plot them in a webpage with python? -- http

HTTPServer and SSL

2016-04-17 Thread Radek Holý
Hello, some people recommend following implementation of a simple HTTP server that supports SSL: Handler = http.server.BaseHTTPRequestHandlerhttpd = http.server.HTTPServer(("", 4443), Handler) httpd.socket = ssl.wrap_socket(httpd.socket, server_side=True) httpd.serve_forever() I wonder whether

Re: how to setup for localhost:8000

2016-04-17 Thread Monte Milanuk
On 2016-04-16 15:35, wrh8...@gmail.com wrote: When you type http://localhost:8000, do you see something in the console after the line "Serving HTTP on 0.0.0.0 port 8000 ..." ? If the server actually serves requests on port 8000 you should see a log message such as 127.0.0.1 - - [15/Apr/2016 2

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Coos Haak
Op Sat, 16 Apr 2016 20:30:52 -0500 schreef Tim Chase: > On 2016-04-16 19:39, eryk sun wrote: >> On Sat, Apr 16, 2016 at 4:50 PM, Tim Chase wrote: >>> I also do some editing/diffing within a cmd.exe window on Windows >>> which is limited to 80 characters unless you do some hijinks in >>> the settin

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Ian Kelly
On Sat, Apr 16, 2016 at 4:30 PM, Marko Rauhamaa wrote: > > Java generics ruined a perfectly good language. I mean: > > Map> customersOfAccountManager = > new HashMap>(); > > where classic Java would have: > > Map customersOfAccountManager = new HashMap(); The diamond operator in J

Re: Fraud

2016-04-17 Thread Gene Heskett
On Sunday 17 April 2016 09:12:05 Karim wrote: > On 17/04/2016 03:27, Steven D'Aprano wrote: > > On Sun, 17 Apr 2016 03:12 am, Mel Drosis wrote: > >> My phone my accounts my home network have all been affected because > >> of someone using coding from Python and Linux and GitHub and json. > >> I do

Re: Fraud

2016-04-17 Thread Karim
On 17/04/2016 03:27, Steven D'Aprano wrote: On Sun, 17 Apr 2016 03:12 am, Mel Drosis wrote: My phone my accounts my home network have all been affected because of someone using coding from Python and Linux and GitHub and json. I don't even know what this stuff is but how do I get rid of it al

Re: Introducing the secrets module

2016-04-17 Thread Irmen de Jong
On 17-4-2016 4:36, Steven D'Aprano wrote: > And the documentation: > > https://docs.python.org/3.6/library/secrets.html > > > Comments requested. I've read about the "How many bytes should tokens use?" consideration. It suggests that to be secure, tokens need to have sufficient randomness. Th

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Marko Rauhamaa
Chris Angelico : > On Sun, Apr 17, 2016 at 9:01 PM, Marko Rauhamaa wrote: >> In fact, if you find yourself introducing coding "paragraphs" with >> comments: >> >> def f(...): >> # I'll start by doing this >> ... >> # segueing into the middle portion >> ... >>

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread BartC
On 17/04/2016 12:14, Chris Angelico wrote: On Sun, Apr 17, 2016 at 9:01 PM, Marko Rauhamaa wrote: In fact, if you find yourself introducing coding "paragraphs" with comments: def f(...): # I'll start by doing this ... # segueing into the middle portion

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Chris Angelico
On Sun, Apr 17, 2016 at 9:01 PM, Marko Rauhamaa wrote: > In fact, if you find yourself introducing coding "paragraphs" with > comments: > > def f(...): > # I'll start by doing this > ... > # segueing into the middle portion > ... > # and finish it off as

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread Marko Rauhamaa
Rustom Mody : > On Saturday, April 16, 2016 at 10:22:10 PM UTC+5:30, Marko Rauhamaa wrote: >> A max line length of 79 characters is among the *only* rigorous >> principles I judge coding style on. >> >> It comes with the maxim that one function must be visible at once on the >> screen. > > Thats

Re: ReST: link bookmark

2016-04-17 Thread Sergio Spina
Il giorno domenica 17 aprile 2016 12:04:38 UTC+2, Sergio Spina ha scritto: > I would know what is the way to implement in ReST a link bookmark like in > this example: > > > > > > > > > This text stand for an example of text containing > > a bookmarked target bookmark. > > > > So let's go all to

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread BartC
On 17/04/2016 04:44, Rustom Mody wrote: On Saturday, April 16, 2016 at 10:22:10 PM UTC+5:30, Marko Rauhamaa wrote: It comes with the maxim that one function must be visible at once on the screen. Thats a strange self-contradiction. I wrote this: http://blog.languager.org/2012/10/layout-im

ReST: link bookmark

2016-04-17 Thread Sergio Spina
I would know what is the way to implement in ReST a link bookmark like in this example: > > > > This text stand for an example of text containing > a bookmarked target bookmark. > > So let's go all together to visit the bookmarked target > clicking on this link. > > > The string that is the

[no subject]

2016-04-17 Thread B N
Foor ages, I have been trying to summon up courage learn how to program. I chose o start with Python. I found that when the “black” screen comes on, I am unable to read/see any characters even if I turn up the brightness of the screen. So, I give up. I tried version 3.5.1. I shall be grateful fo

Re: Guido sees the light: PEP 8 updated

2016-04-17 Thread eryk sun
On Sun, Apr 17, 2016 at 12:10 AM, Random832 wrote: > > On Sun, Apr 17, 2016, at 01:01, eryk sun wrote: >> It doesn't support fonts that mix half-width and full-width glyphs. > > This is the most baffling bit to me. I mean, it _has_ to, for Chinese, > Japanese, and Korean users. This support obviou

Re: Dynamic inputs

2016-04-17 Thread durgadevi1
On Saturday, April 16, 2016 at 5:31:39 PM UTC+8, Michael Selik wrote: > On Sat, Apr 16, 2016, 9:41 AM durgadevi1 < > srirajarajeswaridevikr...@gmail.com> wrote: > > > what does dynamic inputs mean and how is it implemented in python > > programming? > > > > In what context did you hear or read th