[issue26793] uuid causing thread issues when forking using os.fork py3.4+

2016-04-17 Thread Steven Adams
Steven Adams added the comment: Shouldn't that mean it also breaks on py3.3? As a workaround i just import uuid later within the thread method. -- ___ Python tracker

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

[issue26793] uuid causing thread issues when forking using os.fork py3.4+

2016-04-17 Thread Xiang Zhang
Xiang Zhang added the comment: It seems a matter of lib uuid. The comments in uuid.py tells that the module is not thread-safe. I try to comment out the code using ctypes and rerun your sample, it works well. In uuid's documentation it does not mention the non-thread-safe characteristic.

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,

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

[issue25987] collections.abc.Reversible

2016-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7d9f7d7a21ae by Georg Brandl in branch 'default': #25987: add versionadded to Reversible. https://hg.python.org/cpython/rev/7d9f7d7a21ae -- ___ Python tracker

[issue26793] uuid causing thread issues when forking using os.fork py3.4+

2016-04-17 Thread Xiang Zhang
Changes by Xiang Zhang : -- nosy: +pitrou, xiang.zhang ___ Python tracker ___ ___

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

[issue26733] staticmethod and classmethod are ignored when disassemble class

2016-04-17 Thread Nick Coghlan
Nick Coghlan added the comment: Looking at the history of the dis module, I'd now class this as a bug fix for 3.5+ - it looks like dis.dis gained the ability to disassemble static and class methods as a side-effect of the removal of bound methods in Python 3 (see

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

[issue26793] uuid causing thread issues when forking using os.fork py3.4+

2016-04-17 Thread Steven Adams
Steven Adams added the comment: I forgot to mention if i remove import uuid all works as expected. -- ___ Python tracker ___

[issue26793] uuid causing thread issues when forking using os.fork py3.4+

2016-04-17 Thread Steven Adams
New submission from Steven Adams: I've ran into a strange issue after trying to port a project to support py 3.x The app uses a double os.fork to run in the background. On py 3.4+ it seems that when you have an import uuid statement it causes threading.threads to always return false on

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"

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: 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

[issue25243] decouple string-to-boolean logic from ConfigParser.getboolean and offer as separate function

2016-04-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure I see the point in moving this out to a separate method (i.e. I wouldn't want to see people importing configparser just to use this particular group of boolean word aliases). In general, users would be better served by a simple dictionary

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

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. > >

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

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

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

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

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

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

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%.

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

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

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

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

[issue26792] docstrings of runpy.run_{module,path} are rather sparse

2016-04-17 Thread Antony Lee
New submission from Antony Lee: $ pydoc runpy run_module(mod_name, init_globals=None, run_name=None, alter_sys=False) Execute a module's code without importing it Returns the resulting top level namespace dictionary run_path(path_name, init_globals=None,

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

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. >

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 >

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

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

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 >

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

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

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

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

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.

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Hrvoje Abraham
Hrvoje Abraham added the comment: Sage: http://doc.sagemath.org/html/en/reference/rings_numerical/sage/rings/complex_number.html >>> log(ComplexNumber(NaN,1)) NaN - NaN*I -- ___ Python tracker

[issue25987] collections.abc.Reversible

2016-04-17 Thread Guido van Rossum
Guido van Rossum added the comment: Because it's a change to collections.abc, it goes in 3.6 only. -- ___ Python tracker ___

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Hrvoje Abraham
Hrvoje Abraham added the comment: Regarding NaN sign bit, IEEE-754 states: "Note, however, that operations on bit strings—copy, negate, abs, copySign—specify the sign bit of a NaN result, sometimes based upon the sign bit of a NaN operand. The logical predicate totalOrder is also affected by

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

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

[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

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2016-04-17 Thread Josh Snider
Josh Snider added the comment: Here's a patch that raises an exception when _put[w]ch and _get[w]ch[e] are run without a console. Like Eryk Sun says, the get's work fine if you do unget before hand. -- keywords: +patch nosy: +Josh Snider Added file:

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

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Hrvoje Abraham
Hrvoje Abraham added the comment: Python 2.7.11 (v2.7.11:6d1b6a68f775, Dec 5 2015, 20:40:30) [MSC v.1500 64 bit (AMD64)] on win32: >>> import struct >>> x=float("-nan") >>> struct.pack('

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: Gah, sorry. I misdiagnosed the Python 2.7 issue (I was looking at the code for the wrong branch). See issue 22590 for the correct diagnosis. -- ___ Python tracker

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: About the Python 2.7 behaviour: >>> from math import copysign >>> x = float("-nan") >>> copysign(1.0, x) 1.0 I'd be interested to know what `struct.pack('

[issue26765] Factor out common bytes and bytearray implementation

2016-04-17 Thread Meador Inge
Meador Inge added the comment: If I follow this correctly, then it seems like there are two main pieces to this patch: 1. Consolidating the following methods into `bytes_methods.c`: a. {bytes, bytearray}_find_internal b. {bytes, bytearray}_find c. {bytes, bytearray}_count

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: > it is actually used in real-life situations Do you have any examples available? -- ___ Python tracker ___

[issue26785] repr of -nan value should contain the sign

2016-04-17 Thread Mark Dickinson
Mark Dickinson added the comment: The current behaviour is deliberate, so any change would be an enhancement rather than a bugfix. I'm modifying the versions accordingly. Unlike the sign of a zero, the sign of a NaN has no useful meaning: IEEE 754 explicitly says "this standard does not

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 >

[issue26733] staticmethod and classmethod are ignored when disassemble class

2016-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Nick, do you consider this as a new feature, or as a fix? -- ___ Python tracker ___

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

[issue26642] Replace stdout and stderr with simple standard printers at Python exit

2016-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant that C files stderr and stdout can be closed. Or it's file descriptors can be closed. I think in these cases fileno() or PyFile_NewStdPrinter() will fail. I'm trying to consider all possible cases. Standard streams can be: * Left original. * Set to

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. --

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

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2016-04-17 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I will investigate this issue to understand what is happening there and submit a fix. Thank you for pointing out the exact OS and toolchain used. -- ___ Python tracker

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,

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

[issue26787] test_distutils fails when configured --with-lto

2016-04-17 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: I will investigate this and submit a fix. At a first glance, it seems the test is failing because it does not have the knowledge of the LTO flags. -- ___ Python tracker

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

[issue26720] memoryview from BufferedWriter becomes garbage

2016-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Python implementation passes bytearray to underlying write and delete it's content just after that. Thus saving written data was never worked, and making it working don't worth efforts. I agree with you, we should add a warning against saving. This might be

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

[issue26627] IDLE incorrectly labeling error as internal

2016-04-17 Thread ppperry
ppperry added the comment: Duplicate issue24252, although the consequences are slightly different. -- nosy: +ppperry ___ Python tracker ___

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

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2016-04-17 Thread Matthias Bussonnier
Matthias Bussonnier added the comment: > @mbussonn - I don't see an updated non-tty-checking patch from you? Sorry for the delay, trying to get back on this. Please find attached a new patch that does not check whether is is a tty. Still struggling a bit with HG (looking fwd to migration to

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

[issue26745] Redundant code in _PyObject_GenericSetAttrWithDict

2016-04-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue26767 looks too complex and resolving it needs much more rewriting. -- resolution: remind -> fixed status: open -> closed ___ Python tracker

[issue26745] Redundant code in _PyObject_GenericSetAttrWithDict

2016-04-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset e5149789e4ea by Serhiy Storchaka in branch 'default': Issue #26745: Removed redundant code in _PyObject_GenericSetAttrWithDict. https://hg.python.org/cpython/rev/e5149789e4ea -- nosy: +python-dev ___

[issue26773] Shelve works inconsistently when carried over to child processes

2016-04-17 Thread Paul Ellenbogen
Paul Ellenbogen added the comment: I think this behavior is due to the underlying behavior of the dbm. The same code using dbm, rather than shelve, also throws KeyErrors: from multiprocessing import Process import dbm db = dbm.open("example.dbm", "c") for i in range(100): db[str(i)] =

[issue26767] Inconsistant error messages for failed attribute modification

2016-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- priority: normal -> low ___ Python tracker ___ ___

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

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

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,

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

[issue26789] Please do not log during shutdown

2016-04-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +vinay.sajip ___ Python tracker ___ ___

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,

[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2016-04-17 Thread Renato Alves
Renato Alves added the comment: Also related to http://bugs.python.org/issue212317 -- ___ Python tracker ___

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

[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2016-04-17 Thread Renato Alves
Changes by Renato Alves : -- versions: +Python 2.7, Python 3.5 ___ Python tracker ___

[issue26791] shutil.move fails to move symlink (Invalid cross-device link)

2016-04-17 Thread Renato Alves
New submission from Renato Alves: Hi everyone, I'm not really sure if this is a new issue but digging through the bug reports from the past I couldn't find an answer. There's http://bugs.python.org/issue1438480 but this seems to be a different issue. I also found

[issue26790] bdist_msi package duplicates everything to a bogus location when run with /passive or /q

2016-04-17 Thread SilentGhost
Changes by SilentGhost : -- versions: -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___

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? --

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

[issue26790] bdist_msi package duplicates everything to a bogus location when run with /passive or /q

2016-04-17 Thread Ivan Pozdeev
New submission from Ivan Pozdeev: First, the background information so you understand what I am talking about. bdist_msi-produced packages work in the following way: The files to install are presented as at least 3 equivalent sets (implemented as Features): "Python" (for Python from

  1   2   >