[issue20699] Document that binary IO classes work with bytes-likes objects

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Oh, I forgot to say my LGTM on your last patch. It LGTM. But I'm feeling the documentation epic about bytes-like objects is far from the end. -- ___ Python tracker

[issue27115] IDLE/tkinter: in simpledialog, != [OK] click

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not Tkinter issue, but IDLE issue. Other similar cases: Open search dialog and find something. The status bar is not updated. It is updated only if you close the search dialog. Select a text and delete it by a mouse. The status bar is not updated.

[issue27233] Missing documentation for PyOS_FSPath

2016-06-10 Thread Berker Peksag
Changes by Berker Peksag : -- stage: patch review -> resolved ___ Python tracker ___

[issue20699] Document that binary IO classes work with bytes-likes objects

2016-06-10 Thread Martin Panter
Martin Panter added the comment: Thanks for you help figuring this out Serhiy, especially for the Python 2 case. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27243] __aiter__ should return async iterator instead of awaitable

2016-06-10 Thread Martin Panter
Martin Panter added the comment: I didn’t realize, sorry for the noise -- status: open -> closed ___ Python tracker ___

[issue24136] document PEP 448: unpacking generalization

2016-06-10 Thread Martin Panter
Martin Panter added the comment: Here is a new patch that also updates the documentation for list etc displays as well as function calls. Let me know what you think. The 3.5 What’s New notes were written separately; Neil’s patch was never applied. But I have rescued his update for

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had some trouble committing and pushing these patches. After deleting TEntry and committed the 2.7 and 3.5 patches and tried to do the usual 3.5 to default forward merge in TortoiseHG. I got % hg merge --tool :merge --verbose 101861 resolving manifests

Re: how to solve memory

2016-06-10 Thread meInvent bbird
i use a version having better indentation, and then remove redundant which if sum column == 54 , do not add this column into initlist and add deep > 0 before recursive call and print number of initlist is 118,XXX but it is still running, where it run , and why run a very long time def DFS(b,

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is Windows specific issue, I can't help with this, sorry. Zach should be more experienced in this. -- ___ Python tracker

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Python does not set TCL_LIBRARY. _tkinter finds tcl/tk installed with Python at its known location for the platform. tkinter and IDLE work fine for months. Then user installs another program. That other software (not user, and unbeknownst to the user) sets

[issue5124] IDLE - pasting text doesn't delete selection

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be better to exclude TEntry from the list. This is a hack, and as every hack it can be not fully compatible with future Tk versions. -- ___ Python tracker

Re: how to solve memory

2016-06-10 Thread meInvent bbird
this time i remove redundant which not add full column sum already has beeb 27*2 but it always has syntax error, indentation error, where is wrong? def DFS(b, deep, maxx, sourceoperators, path): initlist = [] if deep > 0: print("deep=", deep) for aa,bb in

[issue27051] Create PIP gui

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: sys.executable has the path to the current executable. But you don't even need that. When you import pip, it gets that itself to find site-packages. You are making this way too complicated and are trying to do what pip can do. I don't see that we need to

[issue27173] Modern Unix key bindings for IDLE

2016-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +IDLE: Fix deletion of custom themes and key bindings ___ Python tracker ___

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread Matt Wheeler
First of all welcome :) The other suggestions you've received so far are good so I won't repeat them... (note that in particular I've reused the names you've chosen in your program where I've given code examples, but that's purely for clarity and I agree with the others who've said you should use

[issue25733] Code and IDLE should catch all compile errors.

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: SystemError is serious bug. Please open separate issue for this. > Why does compile not support null bytes in the first place? Due to implementation detail of CPython tokenizer. I uses NUL-terminated C strings. Yet one possible exception: MemoryError. I

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the problem? That user sets incorrect TCL_LIBRARY? I don't know how _tkinter can distinguish correct TCL_LIBRARY from the incorrect one. -- ___ Python tracker

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread Larry Hudson via Python-list
On 06/10/2016 03:52 PM, mad scientist jr wrote: Is this group appropriate for that kind of thing? (If not sorry for posting this here.) So I wanted to start learning Python, and there is s much information online, which is a little overwhelming. I really learn best from doing, especially

[issue27051] Create PIP gui

2016-06-10 Thread Upendra Kumar
Upendra Kumar added the comment: I, actually want to make a 'configuration object' before running the 'pip' GUI. Therefore one of the parameters of the configuration object will be to detect the path to installed 'python.exe' in Windows. In order to get executable paths I need to read the

[issue27051] Create PIP gui

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I don't know what you mean by 'print with winreg'. I presume you need admin privilege to alter the registry. But why are you involved with it? I just want you to use the pip interface, and let pip worry about such low level stuff. --

[issue27291] two heap corruption issue

2016-06-10 Thread Park Alex
New submission from Park Alex: Hello, I would like to report two heap corruption issue. Test environment: python ersion: python 2.7.11+ hg id: d858eadf2602 (2.7) compile: clang with ASAN OS: ubuntu x86_64 One is heap-buffer-overflow, the other is heap-user-after-free. All of samples are

[issue27051] Create PIP gui

2016-06-10 Thread Upendra Kumar
Upendra Kumar added the comment: I am unable to print anything using winreg module. Does it require administrative privileges? I am using this code sample : import os import errno import winreg proc_arch = os.environ['PROCESSOR_ARCHITECTURE'].lower() try: proc_arch64 =

Re: fast dictionary initialization

2016-06-10 Thread Tim Chase
On 2016-06-10 14:07, maurice wrote: > example: > valuesList = [1,2,3] > keysList = ['1','2','3'] > > So the dictionary can basically convert string to int: > > dictionary = {'1':1, '2':2, '3':3} A couple similar options: The most straightforward translation of your description: opt1 =

[issue27173] Modern Unix key bindings for IDLE

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: -> terry.reedy nosy: +markroseman ___ Python tracker ___

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +markroseman ___ Python tracker ___ ___

[issue25733] Code and IDLE should catch all compile errors.

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: How to cause SyntaxError -- obvious NameError -- ?, already caught in code module OverflowError-- ?, already caught in code module SystemError - 22 nested for loops ('deeply nested blocks') TypeError -- chr(0), 2.7 ValueError -- chr(0), 3.x; bytes(0), 2.7

Re: for / while else doesn't make sense

2016-06-10 Thread Gregory Ewing
Steven D'Aprano wrote: I have a 2000 inch monitor, and by using a narrow proportional font set to 5pt, I can display the entire Python standard library including tests on screen at once. Then it's just a matter of using my trusty 4" reflecting telescope to zoom in on any part of the screen I

Re: Want to play with or learn a parser system including a grammar for Python? See spark_parser on pypy

2016-06-10 Thread rocky
On Thursday, June 9, 2016 at 1:36:56 AM UTC-4, Lawrence D’Oliveiro wrote: > On Wednesday, June 8, 2016 at 10:39:00 PM UTC+12, rocky wrote: > > > In addition to the example programs which give the classic arithmetic > > expression evaluator, I now include the beginnings of a full Python 2.6 > >

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread Joel Goldstick
On Fri, Jun 10, 2016 at 6:52 PM, mad scientist jr wrote: > Is this group appropriate for that kind of thing? > (If not sorry for posting this here.) > > So I wanted to start learning Python, and there is s much information > online, which is a little overwhelming.

Re: Want to play with or learn a parser system including a grammar for Python? See spark_parser on pypy

2016-06-10 Thread rocky
On Friday, June 10, 2016 at 4:33:28 AM UTC-4, Robin Becker wrote: > On 08/06/2016 19:32, rocky wrote: > .. > > > > Sorry that should have been 1998 which would make more sense for the 7th > > conference if the 1st one was around 2001. I've corrected the date in [1] > >

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread Marc Brooks
The structure of your program is really not that Pythonic. I'd recommend you take a look at PEP 8. https://www.python.org/dev/peps/pep-0008/ It's not perfect, but it's a good start to get a feel for how to structure your Python work. Marc On Fri, Jun 10, 2016 at 7:05 PM, Christopher Reimer <

Re: how to solve memory

2016-06-10 Thread MRAB
On 2016-06-11 00:31, meInvent bbird wrote: it is quite ridiculous, this time i am sure that i put correct indentation and add a else statement to make sure recursive call inside the if statement , it still memory error, where is the memory error? is itertools.combinations so big for the list?

[issue27263] Tkinter sets the HOME environment variable, breaking scripts

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: As IDLE maintainer, this annoys me also. IDLE and in particular test_idle necessarily change the environment by calling tkinter.Tk(). When run under test.regrtest, test_idle gets slapped with a warning, and in 3.6, gets labelled a failure, even when it

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
James Lu added the comment: Even a wrapper class would be helpful, it's simply more pythonic. On Fri, Jun 10, 2016 at 6:02 PM, Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > The main reason is that there would be very little benefit. Lists are a

Re: i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread Christopher Reimer
Sent from my iPhone > On Jun 10, 2016, at 3:52 PM, mad scientist jr > wrote: > . > Now that it's done, I am wondering what kind of things I could do better. This is Python, not BASIC. Lay off on the CAP LOCK key and delete all the comments and separation blocks.

[issue27223] _read_ready and _write_ready should respect _conn_lost

2016-06-10 Thread Łukasz Langa
Changes by Łukasz Langa : -- stage: -> patch review title: _ready_ready and _write_ready should respect _conn_lost -> _read_ready and _write_ready should respect _conn_lost ___ Python tracker

[issue23693] timeit accuracy could be better

2016-06-10 Thread Guido van Rossum
Changes by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___

Re: how to solve memory

2016-06-10 Thread meInvent bbird
it is quite ridiculous, this time i am sure that i put correct indentation and add a else statement to make sure recursive call inside the if statement , it still memory error, where is the memory error? is itertools.combinations so big for the list? if deep == maxx: if deep > 0: b

[issue27256] email header indentation destroyed

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed title: header indentation destroyed -> email header indentation destroyed type: -> behavior versions: -Python 3.4 ___ Python tracker

[issue27233] Missing documentation for PyOS_FSPath

2016-06-10 Thread Jelle Zijlstra
Jelle Zijlstra added the comment: Brett Cannon added documentation for this function in another issue. -- resolution: -> fixed status: open -> closed ___ Python tracker

[issue27238] Bare except: usages in turtle.py

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Add a comment to indicate that bare exception is intentional and briefly why. -- nosy: +terry.reedy ___ Python tracker

Re: how to solve memory

2016-06-10 Thread meInvent bbird
i put final part of code inside one more space and add constraint deep > 0 but still memory error and print the deep number to see, it do not run infinity again V6 is just my superstitution, because V is disable 6 is separation i run your version directly, it has key = '0' error M1 = {}

[issue16484] pydoc generates invalid docs.python.org link for xml.etree.ElementTree and other modules

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Those are the only failures on 2 of the 4 buildbots running gui tests. -- nosy: +terry.reedy ___ Python tracker ___

i'm a python newbie & wrote my first script, can someone critique it?

2016-06-10 Thread mad scientist jr
Is this group appropriate for that kind of thing? (If not sorry for posting this here.) So I wanted to start learning Python, and there is s much information online, which is a little overwhelming. I really learn best from doing, especially if it's something actually useful. I needed to

[issue24750] IDLE: Cosmetic improvements for main window

2016-06-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Applied as 288e97680d84 (with # -> * typo): first ttk widgets. Issue *24750: Switch all scrollbars in IDLE to ttk versions. Where needed, add minimal tests to cover changes. -- resolution: -> fixed stage: commit review -> resolved status: open ->

[issue24759] Idle: require tk 8.5 and ttk widgets, and drop unneeded code.

2016-06-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue21386] ipaddress.IPv4Address.is_global not implemented

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Here is an updated patch that uses my proposal in msg219017. Since this is already documented at https://docs.python.org/3.5/library/ipaddress.html#ipaddress.IPv4Address.is_global I think it should also go into 3.5. -- versions: +Python 3.6 Added

[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: > But I'll be happiest if nothing changes here (given that Guido ruled > yesterday that Python's current urandom() implementation has to be > reverted to once again match Linux's non-blocking urandom() behavior). With urandom() behavior restored, can we

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: The main reason is that there would be very little benefit. Lists are a very efficient data structure and the heap manipulations are also very cheap. -- assignee: -> rhettinger nosy: +rhettinger resolution: -> rejected status: open -> closed

[issue3982] support .format for bytes

2016-06-10 Thread Nick Coghlan
Nick Coghlan added the comment: The core problem with the idea of adding bytes.format to Python 3 is that the real power of str.format actually lies in the extensible __format__ protocol and the associated format() builtin, as those rely heavily on text-specific assumptions. I interpreted

[issue27290] Turn heaps library into a more OOP data structure?

2016-06-10 Thread James Lu
New submission from James Lu: The heapq library uses a list or other mutable sequence time to represent a heap. Since Python is a highly OOP language, why not make heaps their own data type? -- components: Library (Lib) messages: 268159 nosy: James.Lu priority: normal severity: normal

[issue27186] add os.fspath()

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- stage: resolved -> commit review ___ Python tracker ___ ___

[issue27186] add os.fspath()

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: fixed -> ___ Python tracker ___ ___

[issue27038] Make os.DirEntry exist

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon ___ Python tracker ___ ___

[issue27186] add os.fspath()

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5a62d682636e by Brett Cannon in branch 'default': Issue #27186: Add os.PathLike support to DirEntry https://hg.python.org/cpython/rev/5a62d682636e -- ___ Python tracker

Re: movie from pictures

2016-06-10 Thread alex wright
I find shlex.split to be most useful to make my arguments a list in these cases. On Jun 9, 2016 3:28 PM, "MRAB" wrote: > On 2016-06-09 19:58, Peter Otten wrote: > >> Nev wrote: >> >> Thank you for your reply. I tried something like this in python code: >>> >>> from

Re: fast dictionary initialization

2016-06-10 Thread Random832
pOn Fri, Jun 10, 2016, at 17:07, maurice wrote: > Hi. If I have already a list of values, let's call it valuesList and the > keysList, both same sized lists, what is the easiest/quickest way to > initialize a dictionary with those keys and list, in terms of number of > lines perhaps? > > example:

fast dictionary initialization

2016-06-10 Thread maurice
Hi. If I have already a list of values, let's call it valuesList and the keysList, both same sized lists, what is the easiest/quickest way to initialize a dictionary with those keys and list, in terms of number of lines perhaps? example: valuesList = [1,2,3] keysList = ['1','2','3'] So the

[issue3982] support .format for bytes

2016-06-10 Thread Derek Wilson
Derek Wilson added the comment: Gregory - I'm glad that you're willing to consider this again. It still is a constant issue for me, and .format with variable width fields in binary protocols is so the right tool for the job. If there is anything I can do to help get this added to 3.6 let me

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

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch that deprecates support of general bytes-like objects in os functions. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file43336/path_converter-deprecate-buffer.patch

[issue27289] test_ftp_timeout fails with EOFError

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Here is a patch to skip the test. -- keywords: +patch stage: needs patch -> patch review Added file: http://bugs.python.org/file43335/issue27289.diff ___ Python tracker

[issue27289] test_ftp_timeout fails with EOFError

2016-06-10 Thread Berker Peksag
New submission from Berker Peksag: >From >http://buildbot.python.org/all/builders/x86-64%20Ubuntu%2015.10%20Skylake%20CPU%203.5/builds/533/steps/test/logs/stdio == ERROR: test_ftp_timeout (test.test_urllib2net.TimeoutTest)

[issue15468] Edit docs to hide hashlib.md5()

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: The looks good to me in general, but I'd suggest to refer to the new algorithms_guaranteed and algorithms_available attributes in the following paragraph: +:func:`sha512`. The :func:`md5` is typically available, but will be missing if +Python has been

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: +steven.daprano ___ Python tracker ___ ___

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Tim Peters
Tim Peters added the comment: It was a primary purpose of `secrets` to be a place where security best practices could be implemented, and changed over time, with no concern about backward compatibility for people who don't use it. So if `secrets` needs to supply a class with all the methods

[issue20900] distutils register command should print text, not bytes repr

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch ingrid! -- assignee: eric.araujo -> resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue20900] distutils register command should print text, not bytes repr

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 02824cee7624 by Berker Peksag in branch '3.5': Issue #20900: distutils register command now decodes HTTP responses correctly https://hg.python.org/cpython/rev/02824cee7624 New changeset b0be24a2f16c by Berker Peksag in branch 'default': Issue

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Donald Stufft
Donald Stufft added the comment: As an additional aside, the documentation of secrets references the documentation of random.py for it's secrets.SystemRandom class, however random.py docouments random.SystemRandom as using os.urandom. So the documentation for secrets.SystemRandom should be

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-06-10 Thread William Pitcock
William Pitcock added the comment: It seems to me that calling __contains__() (PySequence_Contains()) isn't necessary, as the first and last elements of the list are already known, and therefore known to be in the list. Revising the behaviour of popitem() to avoid calling

[issue27288] secrets should use getrandom() on Linux

2016-06-10 Thread Donald Stufft
New submission from Donald Stufft: In 3.5.0 and 3.5.1 os.urandom will, where available, use the getrandom() to block rather than get insecure random from the urandom pool on Linux. In 3.5.2 this change is reverted so that os.urandom will return possibly predictable random numbers instead of

[issue27186] add os.fspath()

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset a5a013ca5687 by Brett Cannon in branch 'default': Issue #27186: Add os.PathLike support to pathlib. https://hg.python.org/cpython/rev/a5a013ca5687 -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Demur Rumed
Demur Rumed added the comment: The patches LGTM & seem to be implementation of follow up ideas outlined in the first portion. It'd be good to verify that benchmarks are relatively unaffected -- ___ Python tracker

[issue26243] zlib.compress level as keyword argument

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Regenerated for review. -- Added file: http://bugs.python.org/file43334/zlib_compress_positional_only_data.patch ___ Python tracker

[issue26282] Add support for partial keyword arguments in extension functions

2016-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: update patch replaces yet few magic constants. -- Added file: http://bugs.python.org/file4/wordcode-refactor2.patch ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not just about cleaning (to my eyes current code is not very readable, and I read it many times, perhaps more times than any other core developer in last months). There are other benefits. Changing jump offsets allows to get rid of EXTENDED_ARGs for

[issue26282] Add support for partial keyword arguments in extension functions

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69c0aa8a8185 by Serhiy Storchaka in branch 'default': Issue #26282: PyArg_ParseTupleAndKeywords() and Argument Clinic now support https://hg.python.org/cpython/rev/69c0aa8a8185 -- nosy: +python-dev ___

[issue20900] distutils register command should print text, not bytes repr

2016-06-10 Thread Berker Peksag
Berker Peksag added the comment: issue20900.patch looks good to me. We are already testing output of "python -setup.py upload --show-response" in Lib/distutils/tests/test_upload.py so I removed test_show_reponse and tweaked test_upload to test the whole line: -

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-06-10 Thread Xiang Zhang
Xiang Zhang added the comment: Raymond, In single threaded case popitem may still fail. I want to correct my last message that popitem does not fail in this case because it calls __getitem__ but instead it calls __contains__[1]. In __contains__ it deletes the item since it expires, and

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-06-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eric.snow ___ Python tracker ___ ___

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-06-10 Thread William Pitcock
William Pitcock added the comment: At least in my case, the application is single-threaded. I don't think this is a locking-related issue as the expiringdict test case itself fails which is also single-threaded. -- ___ Python tracker

[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-10 Thread Tim Peters
Tim Peters added the comment: Raymond, while I'm in general agreement with you, note that urandom() doesn't deliver "random" bytes to begin with. A CSPRNG is still a PRNG. For example, if the underlying urandom() generator is ChaCha20, _it_ has "only" 512 bits of state. Seeding the Twister

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Brett Cannon
Brett Cannon added the comment: Documenting the deprecation in 3.5 is fine. -- ___ Python tracker ___ ___

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: One more. https://docs.python.org/3/library/venv.html Should that be updated for 3.5.1 as well as 3.6? -- ___ Python tracker

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: See also: https://github.com/pypa/python-packaging-user-guide/issues/242 -- ___ Python tracker ___

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Steve Piercy
Steve Piercy added the comment: I forgot to include the specific URL to update: https://docs.python.org/3/installing/ There may be other places. -- ___ Python tracker

[issue25413] ctypes (libffi) fails to compile on Solaris X86

2016-06-10 Thread Matthias Klose
Matthias Klose added the comment: CristiFati, please could you check if the libffi patch is still needed with the current upstream libffi? See https://github.com/libffi/libffi -- ___ Python tracker

[issue27129] Wordcode, part 2

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I really don't think any of this should be done at all. The current code is clean and fast (and to my eyes at least is very readable). -- ___ Python tracker

[issue27275] KeyError thrown by optimised collections.OrderedDict.popitem()

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm wondering if the expiringdict(1) needs to have locked wrappers for the inherited methods: def __delitem__(self, key): with self.lock: OrderedDict.__delitem__(self, key) Otherwise, there is a risk that one thread is deleting a

[issue23693] timeit accuracy could be better

2016-06-10 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +gvanrossum, tim.peters ___ Python tracker ___

[issue27272] random.Random should not read 2500 bytes from urandom

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: With anything less than than full seeding of the 19937-bit state space, we lose all the guarantees (proved properties) documented at http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/ARTICLES/mt.pdf . It is very nice to be able to rely on those properties

[issue27286] str object got multiple values for keyword argument

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Since currently generated bytecode is not correct, I think we should update the magic number for forcing the regenerating pyc-files. -- Added file: http://bugs.python.org/file43332/BUILD_MAP_UNPACK_WITH_CALL-function_pos2.patch

[issue26213] Document BUILD_*_UNPACK opcodes

2016-06-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: And BUILD_MAP_UNPACK_WITH_CALL. All these opcodes were added in issue2292 for implementing PEP 448, but are not documented even in the PEP. -- nosy: +Joshua.Landau, neil.g, serhiy.storchaka, twouters ___ Python

Re: how to solve memory

2016-06-10 Thread John Gordon
In <8a1c372e-bd6c-4923-8ae1-8f129ec74...@googlegroups.com> meInvent bbird writes: > > I already responded to your earlier post about this program. Did you > > read it? > sorry i missed your reply post, > i find post by me and search your name, no this name > is your

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2016-06-10 Thread Matthias Klose
Matthias Klose added the comment: removed the PC/icons directory. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue17500] move PC/icons/source.xar to http://www.python.org/community/logos/

2016-06-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6c55d1eadc4 by doko in branch '2.7': - Issue #17500, and https://github.com/python/pythondotorg/issues/945: Remove https://hg.python.org/cpython/rev/c6c55d1eadc4 New changeset 0c4d525a2f10 by doko in branch '3.5': - Issue #17500, and

[issue27285] Document the deprecation of pyvenv in favor of `python3 -m venv`

2016-06-10 Thread Brett Cannon
Brett Cannon added the comment: Basically I changed my mind about adding the code deprecation in 3.5.1 since it wasn't fair to people to run into that in a bugfix release. Documenting the deprecation, though, can happen in Python 3.5.1 as well as updating the documentation of the venv module

Re: for / while else doesn't make sense

2016-06-10 Thread Marko Rauhamaa
Ian Kelly : > On Jun 10, 2016 6:37 AM, "Marko Rauhamaa" wrote: >> If your display can show 1,500 lines at once, that's your limit. Mine >> shows 70. > > I disagree on that point. For a typical-size display, it's a > reasonable guideline. The point I'm

[issue27286] str object got multiple values for keyword argument

2016-06-10 Thread Raymond Hettinger
Raymond Hettinger added the comment: This patch looks correct. -- nosy: +rhettinger ___ Python tracker ___

ANN: bcolz 1.1.0 released!

2016-06-10 Thread Francesc Alted
== Announcing bcolz 1.1.0 == What's new == This release brings quite a lot of changes. After format stabilization in 1.0, the focus is now in fine-tune many operations (specially queries in ctables), as well as widening the available computational

  1   2   >