Re: Packaging multiple wheels in the same package

2016-07-06 Thread Nir Cohen
On Wednesday, July 6, 2016 at 10:09:01 PM UTC+3, Ethan Furman wrote: > On 07/06/2016 11:43 AM, Nir Cohen wrote: > > > We decided that we want to package sets of wheels together created or > > downloaded > > by `pip wheel`, add relevant metadata, package them together into a > single archive >

[issue27220] Add a pure Python version of 'collections.defaultdict'

2016-07-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> rhettinger ___ Python tracker ___

[issue27380] IDLE: add base Query dialog with ttk widgets

2016-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Next patch should finish issue except for a couple of minor questions. -- stage: test needed -> commit review Added file: http://bugs.python.org/file43651/query-helpsource.diff ___ Python tracker

Re: the best online course

2016-07-06 Thread Michael Torrie
On 07/06/2016 06:50 PM, Lawrence D’Oliveiro wrote: >> I want to be easy and not bored so i can learn python. > > There is no Royal Road, nothing is going to be handed to you on a plate. Seconded. If he gets bored easily, he will not be very successful at learning Python or any other programming

[issue23591] Add IntFlags

2016-07-06 Thread Ethan Furman
Ethan Furman added the comment: Reviewing... -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue24459] Mention PYTHONFAULTHANDLER in the man page

2016-07-06 Thread Joshua Jay Herman
Joshua Jay Herman added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue27137] Python implementation of `functools.partial` is not a class

2016-07-06 Thread Nick Coghlan
Nick Coghlan added the comment: I should be able to take a look at the updated patch this coming weekend. -- stage: patch review -> commit review ___ Python tracker

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-07-06 Thread Nick Coghlan
Nick Coghlan added the comment: Aye, skipping the caching entirely would be an even simpler solution - the only thing it is saving in the typical case is a dictionary lookup in the modules cache. -- ___ Python tracker

Re: the best online course

2016-07-06 Thread Lawrence D’Oliveiro
On Thursday, July 7, 2016 at 7:28:38 AM UTC+12, nickpe...@gmail.com wrote: > i am totaly beginner and i want to learn python. Write code. > I want to be easy and not bored so i can learn python. There is no Royal Road, nothing is going to be handed to you on a plate. --

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: ah, okay, that makes much more sense and is indeed a bug. Recommendation given that most people won't be using a python 2.7 version that has this and tons of other subprocess from a threaded process bugs fixed: Use subprocess32 where this isn't a problem.

[issue27400] Datetime NoneType after calling Py_Finalize and Py_Initialize

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: Is there any particular reason that datetime.strptime caches the imported module like that? >From a quick search, these two other examples don't bother with any caching:

[issue19489] move quick search box above TOC

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: It looks like this can be fixed by us. Since sphinx 1.0 there is this handy config parameter: http://www.sphinx-doc.org/en/stable/config.html#confval-html_sidebars I've attached a patch which pins the searchbox as the first thing on every page. --

[issue23710] C API doc for PyObject_HEAD is outdated

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: This diff amends the documentation to point out that PyObject_HEAD includes the ob_base field, gives a brief overview of it and points to the PyObject/structures page for more information. It also changes the semicolon part to a warning for clarity. --

[issue27242] Make the docs for NotImplemented & NotImplementedError unambiguous

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: New patch with proper indenting, should be good as far as formatting is concerned :) -- Added file: http://bugs.python.org/file43648/NotImplemented_exceptions_wording_5.patch ___ Python tracker

[issue26267] UUID docs should say how to get "standard form"

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: This patch adds documentation for the str(uuid) operator along with documenting the fact that UUID instances support comparisons with `>` and `<`. It also indents the attributes and descriptions to emphasize that they are part of the UUID instance, not the uuid

[issue26823] Shrink recursive tracebacks

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: Sorry for the delay, but here's a patch with updated tests after Nick's suggestions. It should be ready to merge now. (I'm having some failures in test_traceback, but they fail even without my patch) -- Added file:

Re: the best online course

2016-07-06 Thread Jay Thompson
There are a ton of great resources on https://wiki.python.org/moin/BeginnersGuide . The resource I generally recommend to people first is "Learn Python The Hard Way" @ http://learnpythonthehardway.org/ . The course is $29.95 and worth every penny but if you can't afford it the author has made the

Re: the best online course

2016-07-06 Thread Chris Angelico
On Thu, Jul 7, 2016 at 5:28 AM, wrote: > i am totaly beginner and i want to learn python. > I have see that there is many course in codeacademy, udemy, treehouse etc but > i not know who is the best. > Can you please give me some advice? > I want to be easy and not bored

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Oops the proglem of clang on ARM is not completely fixed in libffi 3.2.1. This commit [1] fixes only one `stmeqia` but not another. [1] https://github.com/libffi/libffi/commit/6eff9ff9e72463b9783be2514f944b6f05692054#diff-c6400d42bf23866ded49558ca9a54205R220

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Zachary Ware
Changes by Zachary Ware : -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: +1 for this. Cross-compile CPython for ARM with clang fails in _ctypes due to https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in libffi. By the way, I can't apply libffi.patch to the default branch. Some hunks are rejcted. Is there

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
John Hagen added the comment: @Berker, thanks for the tip! I've fixed it up. I think this latest patch covers everything Berker and Terry have commented about. -- Added file: http://bugs.python.org/file43645/Fix-tkinter-docs-PEP8.diff ___ Python

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43641/0001-Fix-tkinter-docs-PEP8.diff ___ Python tracker ___

[issue27220] Add a pure Python version of 'collections.defaultdict'

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: Raymond, do you have any interest/time to review this? I can ask someone else, if you prefer. -- ___ Python tracker ___

the best online course

2016-07-06 Thread nickpetros32
Hello, i am totaly beginner and i want to learn python. I have see that there is many course in codeacademy, udemy, treehouse etc but i not know who is the best. Can you please give me some advice? I want to be easy and not bored so i can learn python. Thank you and sorry for my bad english --

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Ammar Askar
Ammar Askar added the comment: > We really don't want to encourage any reliance on this optimization. It was > put there only to help mitigate the performance impact of a common mistake. Aah, I didn't realize the extra context behind why the unicode_concatenate path actually exists in ceval.

[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: +@unittest.skipIf(sysconfig.get_config_var('ANDROID_API_LEVEL') == 0, + "not an android platform") Hum, sysconfig.get_config_var() returns None for unknown variable. Why checking ==0? @Xavier: Are you generating the patch using "hg

[issue27051] Create PIP gui

2016-07-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: Window stacking order can be queried with tcl calls: https://stackoverflow.com/questions/10343759/determining-what-tkinter-window-is-currently-on-top/10391659#10391659. I do not if there is the equivalent for frames. Note that uses can change window stack

[issue27434] cross-building python 3.6 with an older interpreter fails

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: restrict_interp_2.patch: LGTM. not ... == '...' can be written ... != '...', no? -- nosy: +haypo ___ Python tracker

[issue25077] Compiler warnings: initialization from incompatible pointer type

2016-07-06 Thread Chris Jerdonek
Changes by Chris Jerdonek : -- nosy: +chris.jerdonek ___ Python tracker ___ ___

Re: Packaging multiple wheels in the same package

2016-07-06 Thread Ethan Furman
On 07/06/2016 11:43 AM, Nir Cohen wrote: We decided that we want to package sets of wheels together created or downloaded > by `pip wheel`, add relevant metadata, package them together into a single archive > (tar.gz or zip) and use the same tool which packs them up to install them later on,

[issue27137] Python implementation of `functools.partial` is not a class

2016-07-06 Thread Emanuel Barry
Emanuel Barry added the comment: Is there anything still preventing this from being merged? I think the ability to consistently get the same behaviour, with or without _functools available, outweighs the performance and simplicity loss (and as far as performance loss goes, it appears that

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread STINNER Victor
STINNER Victor added the comment: I agree with Raymond. Use ''.join(list of str) or a similar pattern. -- ___ Python tracker ___

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Berker Peksag
Berker Peksag added the comment: > which Berker says have been fixed in upstream libffi: > https://bugs.python.org/issue25077#msg266068 Correct, here is the actual commit: https://github.com/libffi/libffi/commit/4a677a425c18eda4bc5357b2485da57f133f908d I have also sent a patch to upstream

Packaging multiple wheels in the same package

2016-07-06 Thread Nir Cohen
Hey all, As part of working on Cloudify (http://github.com/cloudify-cosmo) we've had to provide a way for customers to install our plugins in an environment where PyPI isn't accessible. These plugins are sets of Python packages which necessarily depend on one another (i.e. a regular python

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9481e5f1792 by Serhiy Storchaka in branch 'default': Issue #27460: Unified error messages in bytes constructor for integers https://hg.python.org/cpython/rev/f9481e5f1792 -- nosy: +python-dev ___ Python

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your contribution Xiang Zhang. -- components: +Interpreter Core resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is enough. -- stage: -> commit review ___ Python tracker ___ ___

[issue23085] update internal libffi copy to 3.2.1

2016-07-06 Thread Chris Jerdonek
Chris Jerdonek added the comment: > Are there any issue *we* have with libffi which an update to 3.2.1 would > solve ? There are these Ubuntu-specific compiler warnings: https://bugs.python.org/issue25077 which Berker says have been fixed in upstream libffi:

[issue26974] Crash in Decimal.from_float

2016-07-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: My preference is to leave the Python implementation of from_float() as-is. Pure Python code is not obligated to defend itself against bizarre code. The C code however is obliged to not segfault. -- ___ Python

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: The constructor has been well tested in https://hg.python.org/cpython/file/tip/Lib/test/test_bytes.py#l111. It looks like that the original author only wants to guarantee the exception type but not message. So I didn't add a assertRaisesRegex test. --

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Raymond Hettinger
Raymond Hettinger added the comment: We really don't want to encourage any reliance on this optimization. It was put there only to help mitigate the performance impact of a common mistake. I don't think subclasses warrant extended coverage. This was already a hack at the outer limits of how

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. Are there any tests for these cases? -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Changes by Xiang Zhang : Removed file: http://bugs.python.org/file43637/bytes_exception_msg.patch ___ Python tracker ___

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Changes by Xiang Zhang : Added file: http://bugs.python.org/file43643/bytes_exception_msg.patch ___ Python tracker ___

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

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

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Guido van Rossum
Guido van Rossum added the comment: I'm not interested, sorry. -- ___ Python tracker ___ ___ Python-bugs-list

[issue26746] struct.pack(): trailing padding bytes on x64

2016-07-06 Thread Allan Haldane
Allan Haldane added the comment: Hello, Over at numpy I have a proposed fix for the bug you discovered, that numpy drops trailing padding in the 3118 format string. My strategy is going to make numpy interpret format strings exactly the same way as the struct module, let me know if you

[issue27386] Asyncio server hang when clients connect and immediately disconnect

2016-07-06 Thread Jim Fulton
Changes by Jim Fulton : -- type: behavior -> security ___ Python tracker ___ ___

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-07-06 Thread Roman Bolshakov
Changes by Roman Bolshakov : Removed file: http://bugs.python.org/file43046/leak.py ___ Python tracker ___

[issue27151] multiprocessing.Process leaves read pipes open (Process.sentinel)

2016-07-06 Thread Roman Bolshakov
Roman Bolshakov added the comment: multiprocessing.Queue._writer is affected by similar issue. _writer FD is left open after .close() is invoked on a Queue. -- Added file: http://bugs.python.org/file43642/leak.py ___ Python tracker

[issue27448] Race condition in subprocess.Popen which causes a huge memory leak

2016-07-06 Thread Andrew
Andrew added the comment: Gregory P. Smith, "if you are seeing a memory leak and the statements that fail before the gc.enable call are more than" The problem in my case was different. It was race condition between gc.isenabled and gc.disable. Isenabled was called when gc was disabled by

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the updated patch. I noticed a typo in your test script. It works for me if I update the super() line from super().__init__(self, master) to super().__init__(master) -- ___ Python tracker

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
John Hagen added the comment: @Terry I've removed the two string quotes changes in the latest patch. @Berker I spent a small amount of time trying out your proposed super() changes, but could not get them to work on 3.5.1. "C:\Users\John

[issue27455] Fix tkinter examples to be PEP8 compliant

2016-07-06 Thread John Hagen
Changes by John Hagen : Removed file: http://bugs.python.org/file43628/0001-Fix-tkinter-docs-PEP8.diff ___ Python tracker ___

[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-06 Thread Marcos Dione
Marcos Dione added the comment: Another version: * Changed availability to kernel type, version and date. -- Added file: http://bugs.python.org/file43640/copy_file_range.diff ___ Python tracker

[issue26826] Expose new copy_file_range() syscall in os module.

2016-07-06 Thread Marcos Dione
Marcos Dione added the comment: New version: * Adds a new test for offset parameters. -- Added file: http://bugs.python.org/file43639/copy_file_range.diff ___ Python tracker

[issue27434] cross-building python 3.6 with an older interpreter fails

2016-07-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch that gets rid of the changes in configure made by my version of autoconf. This version is 2.69 though, i.e. the same as the generated configure file that is under control of mercurial in the default branch. -- assignee: -> xdegaye stage:

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
Changes by Xiang Zhang : -- type: -> enhancement versions: +Python 3.6 ___ Python tracker ___

[issue27460] Change bytes exception when overflow

2016-07-06 Thread Xiang Zhang
New submission from Xiang Zhang: I suggest change `bytes` exception message when an iterable containing overflow integers. Right now, bytes([sys.maxsize+1]) emits ValueError: cannot fit 'int' into an index-sized integer "ValueError: cannot fit 'int' into an index-sized integer". I think

Re: best text editor for programming Python on a Mac

2016-07-06 Thread jennifer . greeen
I don't know anything about editors for coding, but as a writer that often use text editors (and I have seen them a lot!) I'd suggest you browsing this review site where you can find some cool apps http://besttexteditor.com;>besttexteditor.com --

Re: best text editor for programming Python on a Mac

2016-07-06 Thread jennifer . greeen
субота, 18 червня 2016 р. 02:52:35 UTC+3 користувач Chris написав: > I have been trying to write a simple Hello World script on my Mac at work > with TextEdit. However, I keep getting this error message: > > SyntaxError: Non-ASCII character '\xe2' in hello_world.py on line 1, but no > encoding

[issue27453] $CPP invocation in configure must use $CPPFLAGS

2016-07-06 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- title: Fix cross-compilation with Android NDK and Clang -> $CPP invocation in configure must use $CPPFLAGS versions: +Python 3.5 ___ Python tracker

[issue27442] expose the Android API level in sysconfig.get_config_vars()

2016-07-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch incorporating the substitutions to '$CPP $CPPFLAGS' and ANDROID_API_LEVEL. -- stage: patch review -> commit review Added file: http://bugs.python.org/file43636/android_api_3.patch ___ Python tracker

[issue26915] Test identity first in membership operation of ItemsView, ValuesView and Sequence in collections.abc

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27248] Possible refleaks in PyType_Ready in error condition

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7769] SimpleXMLRPCServer.SimpleXMLRPCServer.register_function as decorator

2016-07-06 Thread Xiang Zhang
Xiang Zhang added the comment: ping -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17711] Persistent id in pickle with protocol version 0

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping again. -- versions: +Python 3.6 -Python 3.4 ___ Python tracker ___

[issue21708] Deprecate nonstandard behavior of a dumbdbm database

2016-07-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 62da75b29b29 by Serhiy Storchaka in branch 'default': Issue #21708: Deprecated dbm.dumb behavior that differs from common dbm https://hg.python.org/cpython/rev/62da75b29b29 -- nosy: +python-dev ___

[issue27051] Create PIP gui

2016-07-06 Thread Upendra Kumar
Upendra Kumar added the comment: @Terry, I am switching between different frames using frame.tkraise() method in order to switch the user attention. Now, if I want to test which frame is at top what should I check for or which parameter I should check. --

[issue27441] redundant assignments to ob_size of new ints that _PyLong_New returned

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Changes to PyLong_FromUnsignedLong() and PyLong_FromUnsignedLongLong() LGTM. I don't know whether other changes have a positive effect. Are there any microbenchmarks? There are other places in which Py_SIZE() is set to the same value. --

[issue27452] IDLE: Cleanup config code

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In this case it works, because os.join('', filename) returns filename. -- ___ Python tracker ___

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 1. It would be interesting to see an example showing the benefit of this change. How large is the benefit, and how common is this case? 2. The optimization of string concatenation is CPython specific, and AFAIK it was decided not to extend it to other cases

[issue27458] Allow subtypes of unicode/str to hit the optimized unicode_concatenate block

2016-07-06 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -pitrou ___ Python tracker ___ ___ Python-bugs-list

Learn Python + Swift 3 by creating a comprehensive system with web app and iOS app

2016-07-06 Thread Leo Trieu
Guys, we're from Code4Startup team and we're running a KickStarter campaign for the next awesome course to bring best value to Python and Swift community. In this course, you will learn how to use Python and Swift 3 by cloning cool startup apps like UberEats, Doordash or Postmates. In case

Re: How well do you know Python?

2016-07-06 Thread Jussi Piitulainen
Steven D'Aprano writes: > On Tue, 5 Jul 2016 07:51 pm, Jussi Piitulainen wrote: > >> Chris Angelico writes: >> >>> On Tue, Jul 5, 2016 at 6:36 PM, Peter Otten wrote: It looks like $ python3 -c 'print({1, 2})' {1, 2} $ python3 -c 'print({2, 1})' {1, 2} will

Re: Appending an asterisk to the end of each line

2016-07-06 Thread cs
On 05Jul2016 21:37, Python List wrote: On 07/05/2016 03:05 PM, Seymore4Head wrote: import os f_in = open('win.txt', 'r') f_out = open('win_new.txt', 'w') for line in f_in.read().splitlines(): f_out.write(line + " *\n") f_in.close() f_out.close()