[issue23926] skipitem() in getargs.c still supports 'w' and 'w#', and shouldn't

2016-04-18 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka versions: -Python 3.4 ___ Python tracker ___

Re: Convert input to upper case on screen as it is typed

2016-04-18 Thread Gregory Ewing
Ben Finney wrote: I am still looking for a solution (a Python-specific one would be fine). The only other way I can think of is to put the tty into raw mode and do your own line editing and echoing. You could wrap it all up in a file-like object for the rest of the code to use. -- Greg --

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > What platform do you get the AttributeError with? Perhaps the function is not > well covered in the test suite. I guess `os.get_terminal_size()` didn't exist on ancient OSes like DOS, OS/2, ancient UNIXes. On all supported platforms (including such exotic

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Gregory Ewing
Ian Kelly wrote: What happens when another programmer reviews the code using a different font and finds that there is only 3.5em worth of space? Do we descend into Calibri / Verdana line-length edit wars? That's easy, we just decree that all Python source code is to be displayed in this font:

[issue23926] skipitem() in getargs.c still supports 'w' and 'w#', and shouldn't

2016-04-18 Thread Joe Jevnik
Joe Jevnik added the comment: bump -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2016-04-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This still depends on StringIO.tell() corresponding to the number of code > points, which is undocumented (we already disable newline translation in the > StringIO). See also Issue 25190. And doesn't work with Python implementation of StringIO. More

Re: error with tkinter, help

2016-04-18 Thread BlueRidiculous
On Sunday, April 17, 2016 at 10:24:32 AM UTC-7, BlueRidiculous wrote: > 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

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Random832
On Mon, Apr 18, 2016, at 23:54, Rustom Mody wrote: > Start no tabs: > if foo# comment that is aligned > do some stuff# across multiple indent levels > > Add tabs as leading indents with second line indented 1 tab more > (showing tabs as |) > |if foo# comment that is aligned > ||do some stuff#

Re: delete from pattern to pattern if it contains match

2016-04-18 Thread harirammanohar
On Monday, April 18, 2016 at 1:19:43 PM UTC+5:30, Joaquin Alzola wrote: > Hi, > > Try to use the xml module. > > import xml.etree.ElementTree as ET > > That might help. > > BR > > Joaquin > > -Original Message- > From: Python-list >

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Rustom Mody
On Tuesday, April 19, 2016 at 9:00:12 AM UTC+5:30, Random832 wrote: > On Mon, Apr 18, 2016, at 23:04, Rustom Mody wrote: > > See elastic tabstops: http://nickgravgaard.com/elastic-tabstops/ > > >From there: > >A column block is a run of uninterrupted vertically adjacent cells. > > How's that

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2016-04-18 Thread Martin Panter
Martin Panter added the comment: According to Issue 12215, the TextIOWrapper.tell() position only includes decoder state, not encoder state. So we may be lucky that tell() is proportional to the file size. If so my concern about max_size isn’t so important. But it still feels like a bad hack.

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Random832
On Mon, Apr 18, 2016, at 23:04, Rustom Mody wrote: > See elastic tabstops: http://nickgravgaard.com/elastic-tabstops/ >From there: >A column block is a run of uninterrupted vertically adjacent cells. How's that going to handle this case: if foo: # comment that is aligned do some

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Rustom Mody
On Tuesday, April 19, 2016 at 6:49:34 AM UTC+5:30, sohcatoa wrote: > On Monday, April 18, 2016 at 2:14:17 PM UTC-7, Pete Forman wrote: > > Why is it that Python continues to use a fixed width font and therefore > > specifies the maximum line width as a character count? > > > > An essential part

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-04-18 Thread Emanuel Barry
Emanuel Barry added the comment: I think Rietveld doesn't like me because I made it a .diff file, and not a .patch file, but who knows. It's a bit of a shot in the dark though, because I can't reproduce an environment where `os.get_terminal_size()` doesn't exist. I'm on Windows and sometimes

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-04-18 Thread Martin Panter
Martin Panter added the comment: The patch looks good to me. The function was originally written to be included in the “os” module, hence the NameError. The patch should probably be fine with Mercurial, but it looks like the Reitveld review system doesn’t like it :) What platform do you get

[issue17233] http.client header debug output format

2016-04-18 Thread Luiz Poleto
Changes by Luiz Poleto : -- nosy: +luiz.poleto ___ Python tracker ___ ___

[issue26016] io.TextIOWrapper.tell() report 65bit number when mix readline() + tell()

2016-04-18 Thread Martin Panter
Martin Panter added the comment: EcmaXp: Do you think there is anything we can do for this? I think the cases discussed here are working as intended. -- resolution: -> not a bug status: open -> pending ___ Python tracker

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: Confirm that the CC license is valid/acceptable with Van L. first. That's why I pointed at the Apache 2 code, already a known good license. :) On Mon, Apr 18, 2016, 2:51 PM Christian Heimes wrote: > > Christian Heimes added the

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread sohcahtoa82
On Monday, April 18, 2016 at 2:14:17 PM UTC-7, Pete Forman wrote: > Why is it that Python continues to use a fixed width font and therefore > specifies the maximum line width as a character count? > > An essential part of the language is indentation which ought to continue > to mandate that lines

Re: Why are my files in in my list - os module used with sys argv

2016-04-18 Thread MRAB
On 2016-04-19 00:44, Sayth Renshaw wrote: Hi Why would it be that my files are not being found in this script? from pyquery import PyQuery as pq import pandas as pd import os import sys if len(sys.argv) == 2: print("no params") sys.exit(1) dir = sys.argv[1] mask = sys.argv[2]

[issue26802] Avoid copy in call_function_var when no extra stack args are passed

2016-04-18 Thread Joe Jevnik
New submission from Joe Jevnik: When star unpacking positions into a function we can avoid a copy iff there are no extra arguments coming from the stack. Syntactically this looks like: `f(*args)` This reduces the overhead of the call by about 25% (~30ns on my machine) based on some light

Re: Why are my files in in my list - os module used with sys argv

2016-04-18 Thread Steven D'Aprano
On Tue, 19 Apr 2016 09:44 am, Sayth Renshaw wrote: > Hi > > Why would it be that my files are not being found in this script? You are calling the script with: python jqxml.py samples *.xml This does not do what you think it does: under Linux shells, the glob *.xml will be expanded by the

[issue13826] Having a shlex example in the subprocess.Popen docs is confusing

2016-04-18 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 2.7, Python 3.2, Python 3.3 ___ Python tracker

[issue23251] mention in time.sleep() docs that it does not block other Python threads

2016-04-18 Thread Berker Peksag
Changes by Berker Peksag : -- status: open -> closed ___ Python tracker ___ ___

[issue17233] http.client header debug output format

2016-04-18 Thread Berker Peksag
Changes by Berker Peksag : -- keywords: +easy nosy: +berker.peksag stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 3.3, Python 3.4 ___ Python tracker

Why are my files in in my list - os module used with sys argv

2016-04-18 Thread Sayth Renshaw
Hi Why would it be that my files are not being found in this script? from pyquery import PyQuery as pq import pandas as pd import os import sys if len(sys.argv) == 2: print("no params") sys.exit(1) dir = sys.argv[1] mask = sys.argv[2] files = os.listdir(dir) fileResult =

[issue26801] Fix shutil.get_terminal_size() to catch AttributeError

2016-04-18 Thread Emanuel Barry
New submission from Emanuel Barry: `shutil.get_terminal_size()` will sometimes propagate `AttributeError: module has not attribute 'get_terminal_size'` to the caller. The call checks for NameError, which makes no sense, so I guess it must be an oversight. Attached patch fixes it. (diff was

[issue18591] threading.Thread.run returning a result

2016-04-18 Thread Berker Peksag
Berker Peksag added the comment: What is your use case? I think this can easily be implemented by subclassing the threading.Thread class: class MyThread(threading.Thread): def run(self): # skip try...finally to make the example shorter result = None

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Ben Finney
Pete Forman writes: > Why is it that Python continues to use a fixed width font I think you know this isn't true. > and therefore specifies the maximum line width as a character count? and that this “therefore” is not justified by that. You've seen elsewhere the

[issue11416] netrc module does not handle multiple entries for a single host

2016-04-18 Thread Frew Schmidt
Frew Schmidt added the comment: This issue is causing a problem in OfflineIMAP. I wrote a patch that I think is a little simpler than the existing one, including tests and docs, though honestly I don't care one way or another. See attached. Note that the patch is for Python 2.7 but it

[issue26730] SpooledTemporaryFile doesn't correctly preserve data for text (non-binary) SpooledTemporaryFile objects when Unicode characters are written

2016-04-18 Thread Martin Panter
Martin Panter added the comment: I noticed another possible problem with using TextIOWrapper. We call tell() to see if a rollover is needed. But I think TextIOWrapper streams can return complicated values from tell(), encoding stuff like codec state and buffered data in an integer. At the

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Pete Forman
Ian Kelly writes: > On Mon, Apr 18, 2016 at 3:14 PM, Pete Forman wrote: >> Why is it that Python continues to use a fixed width font and >> therefore specifies the maximum line width as a character count? >> >> An essential part of the language is

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: No, admin privileges should not be needed to run Command Prompt. Ditto for python if you did not already need same to run IDLE. -- ___ Python tracker

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Christian Heimes
Christian Heimes added the comment: BLAKE2 is under CC0 1.0 Universal, https://github.com/BLAKE2/libb2 OpenSSL 1.1.0 has no API to set salt, personal, digest length and key length (for keyed BLAKE2). I have asked Richard Salz and MJC if they'd accept a patch. Or I could ask Dmitry Chestnykh

Re: How to track files processed

2016-04-18 Thread Sayth Renshaw
Thank you Martin and Peter To clarify Peter at the moment only writing to csv but am wanting to set up an item pipeline to SQL db next. I will have a go at your examples Martin and see how i go. Thank you both for taking time to help. Sayth --

[issue26754] PyUnicode_FSDecoder() accepts arbitrary iterable

2016-04-18 Thread Philip Jenvey
Philip Jenvey added the comment: See issue26800 for reasoning to go with #4 -- nosy: +pjenvey ___ Python tracker ___

Re: I have been dealing with Python for a few weeks...

2016-04-18 Thread Fillmore
On 04/14/2016 10:12 PM, justin walters wrote: On Thu, Apr 14, 2016 at 1:50 PM, Fillmore wrote: ...and I'm loving it. Sooo much more elegant than Perl...and so much less going back to the manual to lookup the syntax of simple data structures and operations...

[issue26800] Don't accept bytearray as filenames part 2

2016-04-18 Thread Philip Jenvey
New submission from Philip Jenvey: Basically a reopen of the older issue8485 with the same name. It was decided there to drop support for bytearray filenames -- partly because of the complexity of handling buffers but it was also deemed to just not make much sense. This regressed or crept

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Ian Kelly
On Mon, Apr 18, 2016 at 3:14 PM, Pete Forman wrote: > Why is it that Python continues to use a fixed width font and therefore > specifies the maximum line width as a character count? > > An essential part of the language is indentation which ought to continue > to mandate

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Gregory P. Smith
Gregory P. Smith added the comment: CPython should not attempt make a judgement about the safety of a particular function. We can only document if something has known issues. We should only include things in the stdlib which are either (a) standard or (b) widely used regardless of being

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Pete Forman
Why is it that Python continues to use a fixed width font and therefore specifies the maximum line width as a character count? An essential part of the language is indentation which ought to continue to mandate that lines start with a multiple of 4 em worth of space (or some other size or encode

[issue26797] Segafault in _PyObject_Alloc

2016-04-18 Thread STINNER Victor
STINNER Victor added the comment: Usually a "bug in the memory allocator" means a buffer overflow in your code. Did you check your code using a debug build, PYTHONDEBUG=debug (if CPython is compiled in release mode), or PYTHONMALLOC=malloc + valgrind? (The env var requires CPython 3.6)

[issue26799] gdb support fails with "Invalid cast."

2016-04-18 Thread Thomas
New submission from Thomas: Trying to use any kind of python gdb integration results in the following error: (gdb) py-bt Traceback (most recent call first): Python Exception Invalid cast.: Error occurred in Python command: Invalid cast. I have tracked it down to the _type_... globals, and I

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-04-18 Thread MICHAEL JACOBSON
MICHAEL JACOBSON added the comment: Is the command prompt itself admin? I don't have access to the admin command prompt. -- ___ Python tracker ___

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

2016-04-18 Thread Hrvoje Abraham
Hrvoje Abraham added the comment: IEEE & C/C++ standards allow and explicitly mention it, some people and projects are using it, many compilers preserve it... I believe it's reasonable to support it despite the fact it does not have standardized semantic meaning. Maybe one day... --

Re: [Python-ideas] Changing the meaning of bool.__invert__

2016-04-18 Thread Ian Kelly
On Sun, Apr 17, 2016 at 12:24 PM, Pavol Lisy wrote: > 2016-04-09 17:43 GMT+02:00, Steven D'Aprano : >> flag ^ flag is useful since we don't have a boolean-xor operator and >> bitwise-xor does the right thing for bools. And I suppose some people >> might

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Christian Heimes
Christian Heimes added the comment: I have SHA-3, SHAKE and BLAKE2s / BLAKE2b on my radar. PEP 247 and the current API definition of the hashlib module is too limited for the new hashing algorithms. It lacks variable output for SHAKE as well as salt and personalization for BLAKE. I started to

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

2016-04-18 Thread Mark Dickinson
Mark Dickinson added the comment: This StackOverflow answer from one of the IEEE 754 committee members is highly relevant here: http://stackoverflow.com/a/21350299/270986 -- ___ Python tracker

Re: Convert input to upper case on screen as it is typed

2016-04-18 Thread Ben Finney
Ben Finney writes: > Ben Finney writes: > > > Okay, ‘termios.tcgetattr’ will let me preserve the attributes, and > > with Dan Sommers's suggestion of which attribute to use, I may have > > a shot at setting the terminal attributes. > >

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-04-18 Thread Guido van Rossum
Guido van Rossum added the comment: LGTM! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-04-18 Thread Hans Lawrenz
Hans Lawrenz added the comment: New patch attached. Includes comments and a note in the documentation. The documentation note is inside a versionchanged:: 3.5 block. Should this be more specific about the version it changed in? It could be confusing for someone using a version of 3.5 that

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-04-18 Thread Sriram Rajagopalan
Changes by Sriram Rajagopalan : Removed file: http://bugs.python.org/file42486/bdbfix.patch ___ Python tracker ___

[issue26779] pdb continue followed by an exception in the same frame shows incorrect frame linenumber

2016-04-18 Thread Sriram Rajagopalan
Changes by Sriram Rajagopalan : Added file: http://bugs.python.org/file42508/bdbfix.patch ___ Python tracker ___

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Ned Deily
Changes by Ned Deily : -- nosy: +christian.heimes, gregory.p.smith ___ Python tracker ___

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Donald Stufft
Donald Stufft added the comment: > Right now all the hashlib algorithms are backed by OpenSSL. As far as I know, hashlib ships it's own implementations of anything that is a guaranteed algorithms (currently md5, sha1, and sha2, presumably sha3 too once that gets added). So I guess one

[issue26797] Segafault in _PyObject_Alloc

2016-04-18 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ronaldoussoren ___ Python tracker ___ ___ Python-bugs-list

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Alex Gaynor
Alex Gaynor added the comment: Right now all the hashlib algorithms are backed by OpenSSL. OpenSSL 1.1.0 will have blake2, so perhaps the right move is just to wait for that to drop in a few weeks? Sadly many users with old OpenSSL's still won't have blake2, but pretty quickly Windows and OS

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Zooko Wilcox-O'Hearn
Zooko Wilcox-O'Hearn added the comment: Oh, just to be clear, I didn't mean to imply that BLAKE2 is _less_ safe than SHA-3. My best estimate is that BLAKE2 and SHA-3 are equivalently safe, and that either of them is safer than SHA-2, SHA-1, or MD5. --

[issue26755] Update version{added,changed} docs in devguide

2016-04-18 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue26755] Update version{added,changed} docs in devguide

2016-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6ef3d77b3c27 by Berker Peksag in branch 'default': Issue #26755: Clarify when version{added,changed} directives should be used in docs https://hg.python.org/devguide/rev/6ef3d77b3c27 -- nosy: +python-dev

[issue26798] add BLAKE2 to hashlib

2016-04-18 Thread Zooko Wilcox-O'Hearn
New submission from Zooko Wilcox-O'Hearn: (Disclosure: I'm one of the authors of BLAKE2.) Please include BLAKE2 in hashlib. It well-suited for hashing long inputs (e.g. files), because it is substantially faster than SHA-3, SHA-2, SHA-1, or MD5 while also being safer than SHA-2, SHA-1, or

[issue26797] Segafault in _PyObject_Alloc

2016-04-18 Thread Yury Selivanov
New submission from Yury Selivanov: I'm working on an implementation of asyncio event loop on top of libuv [1]. One of my tests crashes on Mac OS X with a segfault [2]. The problem is that it's not consistent -- looks like it depends on size of uvloop so binary, or/and amount of objects

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

2016-04-18 Thread Mark Dickinson
Changes by Mark Dickinson : -- type: behavior -> enhancement ___ Python tracker ___ ___

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

2016-04-18 Thread Mark Dickinson
Mark Dickinson added the comment: > Looks like the sign bit is off (0) in 2.7. Yep, that looks like issue 22590. It's "fixed" in Python 3, and I don't think it's worth changing in Python 2. About this issue (sign in repr of NaN): sorry, but I'm unconvinced. :-) >From the standpoint of IEEE

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-04-18 Thread Terry J. Reedy
Terry J. Reedy added the comment: 0. OK, 2.7.5 came out in 2013 May, after the 2.7 backport. Kristján, you did the backport. Do you have any idea about this? 1. Open a Command Prompt window, the command line console. For Win 7, it can be found find it on the Start menu under Admin or

[issue26615] Missing entry in WRAPPER_ASSIGNMENTS in update_wrapper's doc

2016-04-18 Thread Berker Peksag
Berker Peksag added the comment: __qualname__ was added to WRAPPER_ASSIGNMENTS in 963e98f5ad31 (issue 13544). Thanks for the patch! -- nosy: +berker.peksag resolution: -> fixed stage: -> resolved status: open -> closed type: -> behavior versions: +Python 3.5

[issue26615] Missing entry in WRAPPER_ASSIGNMENTS in update_wrapper's doc

2016-04-18 Thread Roundup Robot
Roundup Robot added the comment: New changeset 11d8f5d1968d by Berker Peksag in branch '3.5': Issue #26615: Add missing __qualname__ entry to functools.update_wrapper() docs https://hg.python.org/cpython/rev/11d8f5d1968d New changeset ee9921b29fd8 by Berker Peksag in branch 'default': Issue

Re: How to track files processed

2016-04-18 Thread Martin A. Brown
Greetings, >If you are parsing files in a directory what is the best way to >record which files were actioned? > >So that if i re-parse the directory i only parse the new files in >the directory? How will you know that the files are new? If a file has exactly the same content as another

[issue22873] Re: SSLsocket.getpeercert - return ALL the fields of the certificate.

2016-04-18 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> ssl.getpeercert() should include extensions ___ Python tracker

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

2016-04-18 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: This patch is for CPython 3, and if it looks good I will post also the CPython 2 version. -- ___ Python tracker

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-04-18 Thread Guido van Rossum
Guido van Rossum added the comment: There should at least be a comment at the definition of _MAX_WORKERS that it's only used on Python 3.4 and before. Maybe a note in the docs about the default executor would also be useful. Otherwise this is exactly what I had in mind -- thanks! PS. Could

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-04-18 Thread Hans Lawrenz
Hans Lawrenz added the comment: Thanks, that makes sense. I've attached a patch with a version check. -- Added file: http://bugs.python.org/file42507/run_in_executor_max_workers_vcheck.patch ___ Python tracker

Re: Creating a hot vector (numpy)

2016-04-18 Thread Paulo da Silva
Às 05:05 de 18-04-2016, Reto Brunner escreveu: > Hi, > It is called broadcasting an array, have a look here: > http://docs.scipy.org/doc/numpy-1.10.1/user/basics.broadcasting.html > So, there are two broadcasts here. OK. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-04-18 Thread Guido van Rossum
Guido van Rossum added the comment: I like this idea for 3.5 and later. I know this is a pain, but I would like the code to have a version check so that the identical code can still be used in Python 3.3 and 3.4. We go through great lengths to keep the asyncio package compatible with those

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

2016-04-18 Thread Grant Edwards
On 2016-04-18, Barry Warsaw wrote: > On Apr 17, 2016, at 06: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

[issue26796] BaseEventLoop.run_in_executor shouldn't specify max_workers for default Executor

2016-04-18 Thread Hans Lawrenz
New submission from Hans Lawrenz: In issue 21527 the concurrent.futures.ThreadPoolExecutor was changed to have a default value for max_workers. When asyncio.base_events.BaseEventLoop.run_in_executor creates a default ThreadPoolExecutor it specifies a value

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

2016-04-18 Thread Barry Warsaw
On Apr 17, 2016, at 06: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". We can do this effectively in

[issue26795] Fix PEP 344 Python version

2016-04-18 Thread SilentGhost
SilentGhost added the comment: I think the note at the top makes it perfectly clear that PEP 344 is superseded by PEP 3134 which has correct Python version. -- nosy: +SilentGhost resolution: -> not a bug stage: -> resolved status: open -> closed

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

2016-04-18 Thread Alecsandru Patrascu
Alecsandru Patrascu added the comment: Hello, You can find a patch for this issue attached. Basically, since LTO needs LD flags when used, I modified the makefile template file and the test to push the flags up to the sysconfig module. -- keywords: +patch Added file:

[issue26795] Fix PEP 344 Python version

2016-04-18 Thread Marat Sharafutdinov
New submission from Marat Sharafutdinov: Should be 3.0 instead of 2.5 -- assignee: docs@python components: Documentation files: pep-0344-version.patch keywords: patch messages: 263667 nosy: decaz, docs@python priority: normal severity: normal status: open title: Fix PEP 344 Python

[issue26720] memoryview from BufferedWriter becomes garbage

2016-04-18 Thread Martin Panter
Martin Panter added the comment: Closing this as a duplicate of Issue 15994, where I have proposed a patch to add a note for RawIOBase.write(), and call memoryview.release() when the method returns. -- resolution: -> duplicate status: open -> closed superseder: -> memoryview to

[issue15994] memoryview to freed memory can cause segfault

2016-04-18 Thread Martin Panter
Martin Panter added the comment: I think idea 2 (error if memoryview not released) would not work. It would rely on garbage collection, which is not always immediate. E.g. if the memoryview were kept alive by a reference cycle, it may not immediately be released. I don’t think idea 3 is

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Sivan Greenberg
On Sat, Apr 16, 2016 at 8:25 PM, Terry Reedy wrote: > On 4/16/2016 12:58 PM, Larry Martell wrote: > >> On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa >> wrote: >> >>> Larry Martell : >>> >>> I have worked for many companies where

Wing IDE 5.1.11 released

2016-04-18 Thread Wingware
Hi, Wingware has released version 5.1.11 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE features a professional code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips, context-sensitive

ANN: Wing IDE 5.1.11 released

2016-04-18 Thread Wingware
Hi, Wingware has released version 5.1.11 of Wing IDE, our cross-platform integrated development environment for the Python programming language. Wing IDE features a professional code editor with vi, emacs, visual studio, and other key bindings, auto-completion, call tips, context-sensitive

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2016-04-18 Thread Erik Bray
Erik Bray added the comment: I'm also inclined to agree that the buggy code (and it *is* buggy even if it was meant to fix something originally) should be removed outright. Nobody can point to a real world issue that it fixes anymore, yet we can point to real world consequences caused by

[issue8027] distutils fail to determine c++ linker with unixcompiler if using ccache

2016-04-18 Thread Erik Bray
Changes by Erik Bray : -- nosy: +erik.bray ___ Python tracker ___ ___ Python-bugs-list

Re: How to track files processed

2016-04-18 Thread Peter Otten
Sayth Renshaw wrote: > If you are parsing files in a directory what is the best way to record > which files were actioned? What do you do with the result of the parsing process? If you write it to another file you can just look if that file already exists. If you write it to a database there

[issue26739] idle: Errno 10035 a non-blocking socket operation could not be completed immediately

2016-04-18 Thread MICHAEL JACOBSON
MICHAEL JACOBSON added the comment: 0. I have Python 2.7.5 1. I don't know what you mean. 2. It fails right when I run it. IDLE stands for Python's Integrated DeveLopment Environment I am running IDLE / Python on a Windows Vista, Service pack 2 --

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread David Palao
2016-04-18 5:19 GMT+02:00 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.

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

2016-04-18 Thread Tim Delaney
On 18 April 2016 at 09:30, Chris Angelico wrote: > 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

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Rustom Mody
On Monday, April 18, 2016 at 2:34:10 PM UTC+5:30, Gregory Ewing wrote: > Rustom Mody wrote: > > Come to think of it take an SQL DBMS browser. > > Should we say: Horizontal scrolls are BAD; just reformat the table after > > reaching 80 columns? > > I would say, yes, horizontal scrolling *is* bad

How to track files processed

2016-04-18 Thread Sayth Renshaw
Hi If you are parsing files in a directory what is the best way to record which files were actioned? So that if i re-parse the directory i only parse the new files in the directory? Thanks Sayth -- https://mail.python.org/mailman/listinfo/python-list

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

2016-04-18 Thread Peter Otten
Sayth Renshaw wrote: > Think I have a solution of sorts, although my numpy array failed, zip > worked. > > from pyquery import PyQuery as pq > import numpy as np > > d = pq(filename='20160319RHIL0_edit.xml') > res = d('nomination') > # myAt = pq.each(res.attr('bbid')) > # print(repr(res)) > #

[issue26657] Directory traversal with http.server and SimpleHTTPServer on windows

2016-04-18 Thread Martin Panter
Martin Panter added the comment: Thanks for the report and the patch. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

Re: Python2.7 win64 --- cannot install the package of scipy

2016-04-18 Thread Oscar Benjamin
On 16 April 2016 at 22:53, wrote: > I failed to install the package of scipy on Python2.7(win64). > > 1. I tried the direct way that use cmd--pip install scripy. The result shows > that it failed with error code 1 in > c:\tyk\appdata\local\temp\pip-build-an9fye\scipy\.

Re: QWERTY was not designed to intentionally slow typists down

2016-04-18 Thread Gregory Ewing
Steven D'Aprano wrote: Even on a modern keyboard, out of the ten most common digraphs: th he in er an re nd at on nt only er/re use consecutive keys, Also keep in mind that E and R being adjacent on the keyboard does *not* mean they're adjacent in the type basket -- they're actually

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

2016-04-18 Thread Steven Adams
Steven Adams added the comment: Ok but the question still remains, why does it only happen on py3.4+?? -- ___ Python tracker ___

Re: scipy install error,need help its important

2016-04-18 Thread Oscar Benjamin
On 18 April 2016 at 08:38, Xristos Xristoou wrote: > Τη Δευτέρα, 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

Re: Guido sees the light: PEP 8 updated

2016-04-18 Thread Marko Rauhamaa
Gregory Ewing : > Marko Rauhamaa wrote: >> Steven D'Aprano : >> >>>def Do_The_Thing(): >>>def internal_subpart_start(): ... >>>def internal_subpart_middle(): ... >>>def internal_subpart_end(): ... >>>... >> >> That really should be

  1   2   >