[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2016-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I would use different test, not depending on outer stack depth. -- keywords: +patch nosy: +serhiy.storchaka stage: -> patch review type: -> behavior Added file: http://bugs.python.org/file42156/test_walk_stack.patch

Re: looping and searching in numpy array

2016-03-13 Thread srinivas devaki
problem is infact not related to numpy at all. the complexity of your algorithm is O(len(npArray1) * len(npArray2)) which means the number of computations that you are doing is in the range of 10**10, if the absolute difference between the maximum element and minimum element is less than 10**6,

[issue5505] sys.stdin.read() doesn't return after first EOF on Windows

2016-03-13 Thread Martin Panter
Martin Panter added the comment: Since this was apparenly only a bug in 3.2, can we close it as being out of date? -- nosy: +martin.panter ___ Python tracker

[issue22854] Documentation/implementation out of sync for IO

2016-03-13 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___

[issue747320] rfc2822 formatdate functionality duplication

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

[issue747320] rfc2822 formatdate functionality duplication

2016-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ee64faffd46a by Berker Peksag in branch 'default': Issue #747320: Use email.utils.formatdate() to avoid code duplication https://hg.python.org/cpython/rev/ee64faffd46a -- nosy: +python-dev ___ Python

[issue16181] cookielib.http2time raises ValueError for invalid date.

2016-03-13 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4 ___ Python tracker

[issue16181] cookielib.http2time raises ValueError for invalid date.

2016-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 838f68a76ea1 by Berker Peksag in branch '3.5': Issue #16181: cookiejar.http2time() now returns None if year is higher than datetime.MAXYEAR https://hg.python.org/cpython/rev/838f68a76ea1 New changeset 8b7de03261f5 by Berker Peksag in branch

[issue23890] assertRaises increases reference counter

2016-03-13 Thread Robert Collins
Robert Collins added the comment: I don't think we make any guarantees for or against references, but - we attempt to free references already (see how we call clear_frames), so this is a bug, pure and simple. -- ___ Python tracker

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Steven D'Aprano
On Mon, 14 Mar 2016 12:16 am, BartC wrote: > On 13/03/2016 09:39, Steven D'Aprano wrote: >> On Sun, 13 Mar 2016 04:54 am, BartC wrote: > >>> Common sense tells you it is unlikely. >> >> Perhaps your common sense is different from other people's common sense. >> To me, and many other Python

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2016-03-13 Thread Robert Collins
Robert Collins added the comment: Hmm, this is a little surprising, but - why are you raising AssertionError like that - thats what assertRaises is for. -- stage: -> needs patch ___ Python tracker

[issue24922] assertWarnsRegex doesn't allow multiple warning messages

2016-03-13 Thread Robert Collins
Robert Collins added the comment: The context manager errors if *nothing* matches, not if *everything* matches, which is very different to catch_warnings because the filters are used to *exclude* warnings, and excess warnings are errors there. Because of that, there's little if any reason to

[issue20556] Use specific asserts in threading tests

2016-03-13 Thread Robert Collins
Robert Collins added the comment: @Serhiy care to commit it? -- ___ Python tracker ___ ___ Python-bugs-list

[issue25520] unittest load_tests protocol not working as documented

2016-03-13 Thread Robert Collins
Robert Collins added the comment: What version of python are you testing with? unittest 2.7 has a number of bugs vis-a-vis namespaces and discovery. If you're testing with less than 3.5, or perhaps 3.6, please try with unittest2, which has the same fixes as the stdlib unittest. --

[issue25783] test_traceback.test_walk_stack() fails when run directly (without regrtest)

2016-03-13 Thread Robert Collins
Robert Collins added the comment: Can we just stop running the test suite directly? python -m unittest test.test_traceback should work fine and as quickly, ... I'd like to delete all the __main__ in the test suite as cruft TBH. The patch would be ok if ugly, its a bit of a magic number

[issue25690] Replacement for unittest.mock.mock_open

2016-03-13 Thread Robert Collins
Robert Collins added the comment: Hmm, I haven't looked closely, but some high level thoughts. I'm worried about making mock too complex here. We already say folk should use a VFS for complex file based tests, and there's quite a chunk of code you're adding - perhaps better to just use a VFS?

[issue24780] unittest assertEqual difference output foiled by newlines

2016-03-13 Thread Robert Collins
Robert Collins added the comment: Thanks for the patch; reviewed in rietvald. -- ___ Python tracker ___ ___

[issue19217] Calling assertEquals for moderately long list takes too long

2016-03-13 Thread Robert Collins
Robert Collins added the comment: The new output seems ok to me? -- ___ Python tracker ___ ___

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2016-03-13 Thread Robert Collins
Robert Collins added the comment: I think we should close this again: if you subclass something you need to implement the full public API. raw has been in that API since 2010!. It's a shame that folk have been implementing just-enough, rather than the actual API, but I don't see that has all

[issue22625] When cross-compiling, don’t try to execute binaries

2016-03-13 Thread Martin Panter
Martin Panter added the comment: Thanks Robert. Russell also pointed out on python-dev that the patches at Issue 23670 show how he is doing cross compilation, via a new high-level iOS/Makefile file. Here is a cut-down version of the parts that I find relevant: # Build for the native build

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

2016-03-13 Thread Robert Collins
Robert Collins added the comment: @mbussonn - I don't see an updated non-tty-checking patch from you? -- ___ Python tracker ___

[issue26481] unittest discovery process not working without .py source files

2016-03-13 Thread Robert Collins
Robert Collins added the comment: Sorry, I missed the little footnote on case 4 about still supporting source-less distributions. I guess in that context we do still need to support this. However - please check that this does indeed happen on Python master - 3.6. unittest does evolve and if

[issue26481] unittest discovery process not working without .py source files

2016-03-13 Thread Robert Collins
Robert Collins added the comment: Python has stopped supporting .pyc-only distributions - see https://www.python.org/dev/peps/pep-3147/#case-3-pycache-foo-magic-pyc-with-no-source - and so, while what you are seeing is inconsistent with import in some older python's, it is not a bug in newer

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread BartC
On 14/03/2016 00:17, chetam.che...@gmail.com wrote: Create a class called BankAccount Create a constructor that takes in an integer and assigns this to a `balance` property. Create a method called `deposit` that takes in cash deposit amount and updates the balance accordingly.

[issue25900] unittest ignores the first ctrl-c when it shouldn't

2016-03-13 Thread Robert Collins
Robert Collins added the comment: I'd rather make this super simple: just terminate the test run immediately. We can catch KeyBoardInterrupt in the UI layer to still permit outputting summary information. That removes one more source of global state that makes testing fragile. --

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread Ben Finney
chetam.che...@gmail.com writes: > Hello, I have this same assignment to create Bank account and I am new > to python. Welcome to Python! If you have an assignment, that implies you are working through a course and you have received enough teaching to attempt the task yourself. > please help me

[issue22625] When cross-compiling, don’t try to execute binaries

2016-03-13 Thread Robert Collins
Robert Collins added the comment: So in general: https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/System-Type.html#System-Type and https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Hosts-and-Cross_002dCompilation.html There are three platforms in

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread Chris Angelico
On Mon, Mar 14, 2016 at 11:57 AM, MRAB wrote: > On 2016-03-14 00:40, Chris Angelico wrote: >> >> On Mon, Mar 14, 2016 at 11:17 AM, wrote: >>> >>> Hello, I have this same assignment to create Bank account and I am new to >>> python. please

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread MRAB
On 2016-03-14 00:40, Chris Angelico wrote: On Mon, Mar 14, 2016 at 11:17 AM, wrote: Hello, I have this same assignment to create Bank account and I am new to python. please help me out. The best help you can get is: DO THE WORK. You can't simply ask for help

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread Chris Angelico
On Mon, Mar 14, 2016 at 11:17 AM, wrote: > Hello, I have this same assignment to create Bank account and I am new to > python. please help me out. The best help you can get is: DO THE WORK. You can't simply ask for help without doing any work first. If you want to

Re: Need help on a project To :"Create a class called BankAccount with the following parameters "

2016-03-13 Thread chetam . chetzy
On Friday, January 8, 2016 at 11:38:11 AM UTC-5, acushl...@gmail.com wrote: > On Wednesday, 30 December 2015 19:21:32 UTC+1, Won Chang wrote: > > i have these task which i believe i have done well to some level > > > > Create a function get_algorithm_result to implement the algorithm below > >

Re: Encapsulation in Python

2016-03-13 Thread Gregory Ewing
Rick Johnson wrote: Sure, that's reliable in most cases, but your argument assumes that the actual source code for the symbol exists in the module from which it was imported, when it could just as well exist N-levels below that that module, due to chained imports. Unless the module is doing

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Paul Rubin
BartC writes: > def case(*args): > return any((arg == switch.value for arg in args)) def case(values): return switch.value in values > I used it in my benchmark to replace the if-else chain checking three > lots of ranges: > > switch(c) > if

Is anyone in this group using Python Editor v5 for Chromebooks?

2016-03-13 Thread Jeff Schumaker
I'm trying to use Python Editor v5 for Chromebooks. It works fine, except it won't read data files. I'm just wondering if anyone else is using this editor and has found a solution to this problem. -- https://mail.python.org/mailman/listinfo/python-list

Re: pdf version of python tutorial

2016-03-13 Thread kamaraju kusumanchi
On Sun, Mar 13, 2016 at 1:34 PM, Chris Warrick wrote: > > There is a download link on the documentation index: > > https://docs.python.org/3/download.html > Exactly what I needed. Thanks. raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog --

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread BartC
On 13/03/2016 20:57, Chris Angelico wrote: On Mon, Mar 14, 2016 at 6:39 AM, BartC wrote: I used it in my benchmark to replace the if-else chain checking three lots of ranges: switch(c) if case(ord("A"),ord("B"),ord("C"),ord("D"),ord("E"),ord("F"), It worked, but took 110

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Chris Angelico
On Mon, Mar 14, 2016 at 8:26 AM, Christian Gollwitzer wrote: > I assume you run this in a big loop. What about a single hash-table lookup? > > from collections import Counter > counts=Counter() > for c in whatever: > counts[c]+=1 > > upper=sum(counts[x] for x in

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Christian Gollwitzer
Am 13.03.16 um 20:39 schrieb BartC: switch(c) if case(ord("A"),ord("B"),ord("C"),ord("D"),ord("E"),ord("F"), ord("G"),ord("H"),ord("I"),ord("J"),ord("K"),ord("L"), ord("M"),ord("N"),ord("O"),ord("P"),ord("Q"),ord("R"),

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Chris Angelico
On Mon, Mar 14, 2016 at 6:39 AM, BartC wrote: > I used it in my benchmark to replace the if-else chain checking three lots > of ranges: > > switch(c) > if case(ord("A"),ord("B"),ord("C"),ord("D"),ord("E"),ord("F"), > ord("G"),ord("H"),ord("I"),ord("J"),ord("K"),ord("L"),

Re: problem using pickle

2016-03-13 Thread Terry Reedy
On 3/12/2016 10:45 AM, Nicky Mac wrote: class object: def __init__(self,i, This is a syntax error, so this is not the code that ran without error. As Peter Otten said, please write a minimal complete runnable example that shows the error and then copy and paste it as run. -- Terry

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Marko Rauhamaa
BartC : > Exactly why having ready-made solutions is preferable to everyone > hacking their own solutions to switch. A developer friend of mine once said insightfully that the point of OO is getting rid of switch statements. IOW, most use cases for switch statements are handled

Re: The Cost of Dynamism

2016-03-13 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Sun, Mar 13, 2016 at 6:24 AM, Thomas 'PointedEars' Lahn > wrote: >> Marko Rauhamaa wrote: >>> […] HTML markup is all ASCII. >> >> Wrong. I am creating HTML documents whose source code contains Unicode >> characters every day. >> >> Also, the two of

Re: The Cost of Dynamism

2016-03-13 Thread Thomas 'PointedEars' Lahn
BartC wrote: > On 12/03/2016 19:26, Thomas 'PointedEars' Lahn wrote: >> BartC wrote: >>> On 12/03/2016 12:13, Marko Rauhamaa wrote: Why, look at the *English* page on Hillary Clinton: Hillary Diane Rodham Clinton /ˈhɪləri daɪˈæn ˈrɒdəm ˈklɪntən/ (born October 26,

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread BartC
On 13/03/2016 01:10, Mark Lawrence wrote: On 12/03/2016 23:57, BartC wrote: [switch statements] How does Python manage without them? Is it really necessary to declare hundreds of individual variables and assign a value to each? (And risk someone assigning a new value to them.) That they

[issue8232] webbrowser.open incomplete on Windows

2016-03-13 Thread Brandon Milam
Brandon Milam added the comment: I've tested the new patch and it is still able to properly find both chrome and firefox and is able to differentiate between new window and new tab for those two browsers so it is still working. Would someone review the patch? --

Re: Loading error message

2016-03-13 Thread Oscar Benjamin
On 13 Mar 2016 17:06, "BobFtz--- via Python-list" wrote: > > Hello > > I have just downloaded and installed a copy of the 3.5.1 programme but when > I come to run the programme I get an error message that says that > .api-ms-win-crt-runtime-l 1-1-0.dll is missing. > >

Re: issue w/ python 3.5.7

2016-03-13 Thread Oscar Benjamin
On 13 Mar 2016 18:01, "Steven D'Aprano" wrote: > > On Mon, 14 Mar 2016 03:56 am, lucile.m...@free.fr wrote: > > > Hello, > > We would like to get the procedure to launch the software "python.exe". > > The only options we have acsess are: modify, repair and uninstall. Thanks >

Re: issue w/ python 3.5.7

2016-03-13 Thread Thomas 'PointedEars' Lahn
lucile.m...@free.fr wrote: > We would like to get the procedure to launch the software "python.exe". > The only options we have acsess are: modify, repair and uninstall. […] -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-03-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Define BufferedIOBase.read1(-1) to read and return an arbitrary number > of bytes, more than zero unless none are available due to EOF or > non-blocking mode. Maybe suggest that it would return the current > buffered data or try to read a full buffer of

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-13 Thread Julien
Julien added the comment: Daily meditations: - This table is nice to show that there's various operations common to int and float (and does it well), not to list rounding methods (it happen to have only rounding methods, but that's a coincidence). - A coma separated list like

Re: Descriptors vs Property

2016-03-13 Thread Thomas 'PointedEars' Lahn
Veek. M wrote: > Thomas 'PointedEars' Lahn wrote: Nobility lies in action, not in name. —Surak > > Someone called Ned.B who i know elsewhere spoke on your behalf. I'm glad > to say I like/trust Ned a bit so *huggles* to you, and I shall snip. > > Also, sorry about the 'Steve'

Re: issue w/ python 3.5.7

2016-03-13 Thread Steven D'Aprano
On Mon, 14 Mar 2016 03:56 am, lucile.m...@free.fr wrote: > Hello, > We would like to get the procedure to launch the software "python.exe". > The only options we have acsess are: modify, repair and uninstall. Thanks > for your help, Rgds, What is your operating system? -- Steven --

[issue26552] Failing ensure_future still creates a Task

2016-03-13 Thread Guido van Rossum
Guido van Rossum added the comment: Sounds like an easy fix. Could you submit a patch? -- ___ Python tracker ___

[issue26549] co_stacksize is calculated from unoptimized code

2016-03-13 Thread Brett Cannon
Brett Cannon added the comment: I also suspect you're right, Antti, that the stack size is calculated prior to the bytecode being passed to through the peepholer which would have made the built tuple a value in the const array. Off the top of my head I don't remember where the stack size

Re: pdf version of python tutorial

2016-03-13 Thread Chris Warrick
On 13 March 2016 at 14:45, kamaraju kusumanchi wrote: > Is there a pdf version of the python tutorial > https://docs.python.org/3/tutorial/index.html that I can download? The > idea is to have everything in one file so I can search easily, be able > to work offline. >

pdf version of python tutorial

2016-03-13 Thread kamaraju kusumanchi
Is there a pdf version of the python tutorial https://docs.python.org/3/tutorial/index.html that I can download? The idea is to have everything in one file so I can search easily, be able to work offline. thanks raju -- Kamaraju S Kusumanchi | http://raju.shoutwiki.com/wiki/Blog --

Loading error message

2016-03-13 Thread BobFtz--- via Python-list
Hello I have just downloaded and installed a copy of the 3.5.1 programme but when I come to run the programme I get an error message that says that .api-ms-win-crt-runtime-l 1-1-0.dll is missing. I have un-installed and reinstalled the 3.5.1 programme a few time (as advised) but I

issue w/ python 3.5.7

2016-03-13 Thread lucile . mage
Hello, We would like to get the procedure to launch the software "python.exe". The only options we have acsess are: modify, repair and uninstall. Thanks for your help, Rgds, Lucile -- https://mail.python.org/mailman/listinfo/python-list

[issue26549] co_stacksize is calculated from unoptimized code

2016-03-13 Thread SilentGhost
Changes by SilentGhost : -- nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan, yselivanov ___ Python tracker ___

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-13 Thread Raymond Hettinger
Raymond Hettinger added the comment: GPS: priority low, feel free to drop if it you want. SS: But for now status quo is good to me. Marking as closed. Feel free to open a separate tracker item if you want to pursue the use of Modules/hashtable.c. -- resolution: -> rejected status:

RE: looping and searching in numpy array

2016-03-13 Thread Albert-Jan Roskam
> From: sjeik_ap...@hotmail.com > To: heml...@gmail.com; python-list@python.org > Subject: RE: looping and searching in numpy array > Date: Sun, 13 Mar 2016 13:51:23 + > > Hi, I suppose you have seen this already (in particular the first link): >

Re: programeren met python

2016-03-13 Thread Irmen de Jong
On 12-3-2016 17:58, Imre De Craemer wrote: > hoe moet je python dounlauden > Dit is een Engelse newsgroup, dus je kunt je vragen beter in het Engels stellen in plaats van in het Nederlands. Maar om je vraag te beantwoorden: Ga naar https://www.python.org/downloads/ met je web browser en klik

RE: looping and searching in numpy array

2016-03-13 Thread Albert-Jan Roskam
> Date: Thu, 10 Mar 2016 08:48:48 -0800 > Subject: Re: looping and searching in numpy array > From: heml...@gmail.com > To: python-list@python.org > > On Thursday, March 10, 2016 at 2:02:57 PM UTC+1, Peter Otten wrote: > > Heli wrote: > > > > > Dear all, > > > > > > I need to loop over a

Re: Descriptors vs Property

2016-03-13 Thread Veek. M
Thomas 'PointedEars' Lahn wrote: >>> Nobility lies in action, not in name. >>> —Surak Someone called Ned.B who i know elsewhere spoke on your behalf. I'm glad to say I like/trust Ned a bit so *huggles* to you, and I shall snip. Also, sorry about the 'Steve' thing - bit shady dragging in

Re: problem using pickle

2016-03-13 Thread Peter Otten
Nicky Mac wrote: > Dear Python team, > I have studied the excellent documentation, That is always a laudable endeavour ;) > and attempted to make use of > pickle thus: > > filename = 'my_saved_adventure' > import pickle > class object: 'object' already is the name for a Python built-in; you

Re: Error

2016-03-13 Thread Joel Goldstick
On Sat, Mar 12, 2016 at 3:32 AM, Abeer Sohail wrote: > I get this error every time I open Python. > -- > https://mail.python.org/mailman/listinfo/python-list > and what error is that? no attachments in this list. just copy and paste the error please -- Joel

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread BartC
On 13/03/2016 09:39, Steven D'Aprano wrote: On Sun, 13 Mar 2016 04:54 am, BartC wrote: Common sense tells you it is unlikely. Perhaps your common sense is different from other people's common sense. To me, and many other Python programmers, it's common sense that being able to replace

Re: Word Order Simple.

2016-03-13 Thread Peter Otten
Rodrick Brown wrote: > You are given nn words. Some words may repeat. For each word, output its > number of occurrences. The output order should correspond with the input > order of appearance of the word. See the sample input/output for > clarification. > > *Note:* Each input line ends with a

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Gene Heskett
On Sunday 13 March 2016 01:43:21 Terry Reedy wrote: > On 3/12/2016 8:20 PM, Steven D'Aprano wrote: > > Yeah, we get it. The CPython interpreter is plenty fast enough for > > whatever you use it for. Good for you! Millions aren't so lucky. > > They are looking for something faster, because for

Re: Export

2016-03-13 Thread Jesper K Brogaard
Den 13-03-2016 kl. 00:07 skrev Herbert Müller: Hello, how can I export my .py files to .exe files? Thanks for your support Your Robert Look at pyinstaller or py2exe. I have no experience with either of them. -- Venlig hilsen / Best regards Jesper K. Brogaard (remove upper case letters in my

problem using pickle

2016-03-13 Thread Nicky Mac
Dear Python team, I have studied the excellent documentation, and attempted to make use of pickle thus: filename = 'my_saved_adventure' import pickle class object: def __init__(self,i,.t) : self.id = i . class world: def __init__(self):

Word Order Simple.

2016-03-13 Thread Rodrick Brown
You are given nn words. Some words may repeat. For each word, output its number of occurrences. The output order should correspond with the input order of appearance of the word. See the sample input/output for clarification. *Note:* Each input line ends with a *"\n"* character. *Constraints:*

Export

2016-03-13 Thread Herbert Müller
Hello, how can I export my .py files to .exe files? Thanks for your support Your Robert -- https://mail.python.org/mailman/listinfo/python-list

[issue23214] BufferedReader.read1(size) signature incompatible with BufferedIOBase.read1(size=-1)

2016-03-13 Thread Martin Panter
Martin Panter added the comment: Calling BufferedReader.read1(sys.maxsize) gives me a MemoryError. Making read1(-1) equivalent to read1(sys.maxsize) only makes sense where the return value already has a predetermined size, and only a limited buffer needs to be allocated. Another

programeren met python

2016-03-13 Thread Imre De Craemer via Python-list
hoe moet je python dounlauden -- https://mail.python.org/mailman/listinfo/python-list

Error

2016-03-13 Thread Abeer Sohail
I get this error every time I open Python. -- https://mail.python.org/mailman/listinfo/python-list

ANN: pandas v0.18.0 Final released

2016-03-13 Thread Jeff Reback
Hi, This is a major release from 0.17.1 and includes a small number of API changes, several new features, enhancements, and performance improvements along with a large number of bug fixes. We recommend that all users upgrade to this version. This was a release of 3.5 months with 381 commits by

ANN: psutil 4.1.0 released

2016-03-13 Thread Giampaolo Rodola'
About = psutil (python system and process utilities) is a cross-platform library for retrieving information on running processes and system utilization (CPU, memory, disks, network) in Python. It is useful mainly for system monitoring, profiling and limiting process resources and management

[ANN] aenum 1.3.0 released

2016-03-13 Thread Ethan Furman
I am thrilled to announce the release of aenum 1.3.0 aenum --- advanced enumerations, named tuples, and named constants == aenum includes the new Python stdlib enum module available in Python 3.4 backported for previous

[issue26551] Regex.finditer infinite loops with certain input

2016-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is known issue. Some regular expressions has quadratic or even exponential complexity. Existing implementation can't be easy fixed. You can try an regular expressions engine that use completely different algorithms, i.e. re2

[issue26552] Failing ensure_future still creates a Task

2016-03-13 Thread Damien Nicolas
New submission from Damien Nicolas: When calling asyncio.ensure_future() on a coroutine, and if the loop is closed, ensure_future() will raise a RuntimeError. However, it still creates a Task, which will generate a RuntimeWarning that we can’t fix since there is no way to cancel the Task.

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-13 Thread SilentGhost
SilentGhost added the comment: Updated patch addresses the rietveld comments. -- Added file: http://bugs.python.org/file42155/issue26499_5.diff ___ Python tracker

[issue26551] Regex.finditer infinite loops with certain input

2016-03-13 Thread Alan Mislove
Alan Mislove added the comment: Thanks for the quick reply, Serhiy! You're right -- after letting it run for even longer, it does complete. Sorry for the trouble. I have two quick followup questions: 1. Would this be considered a performance bug? On my machine, it runs for over 20

Re: Descriptors vs Property

2016-03-13 Thread Thomas 'PointedEars' Lahn
Veek. M wrote: > > http://www.thecodingforums.com/threads/examples-of-ecmascipt-written-by-thomas-lahn.937812/ > > Examples of ECMAScipt written by Thomas Lahn > > Thomas is the forums best known critic of everyone else's attempts at > writing ECMAscript. I was

[issue26551] Regex.finditer infinite loops with certain input

2016-03-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is finite loop. Your script just needs too much time to finish. -- nosy: +serhiy.storchaka resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

Re: Encapsulation in Python

2016-03-13 Thread Steven D'Aprano
On Sun, 13 Mar 2016 03:44 am, Ian Kelly wrote: > On Fri, Mar 11, 2016 at 7:39 PM, Rick Johnson > wrote: >> At run-time, i don't care how large a "module namespace" may >> be. Sometimes a module namespace will be small, with only a >> few exposed symbols, but

[issue26551] Regex.finditer infinite loops with certain input

2016-03-13 Thread Alan Mislove
New submission from Alan Mislove: I found a regex and input that causes re.finditer() to appear to get into an infinite loop. Please see the attached minimal python script that triggers the behavior. I've verified the bug exists on 2.7.6, 3.4.0, and 3.5.1; I haven't yet be able to test

[issue26314] interned strings are stored in a dict, a set would use less memory

2016-03-13 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > > Since interned strings table can only grow and contains exact strings, > other data structure may be more appropriate (for example > Modules/hashtable.c). > FYI this module is not well optimized. I took code and then

Re: Descriptors vs Property

2016-03-13 Thread Veek. M
Thomas 'PointedEars' Lahn wrote: > Veek. M wrote: > >> Thomas 'PointedEars' Lahn wrote: I haven't read the descriptor protocol as yet. >>> You should. You should also trim your quotations to the relevant >>> minimum, and post using your real name. >> >> I don't take advice from people on

[issue26250] no document for sqlite3.Cursor.connection

2016-03-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti stage: -> patch review ___ Python tracker

[issue26176] EmailMessage example doesn't work

2016-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: #26426 has been marked as duplicate of this, and contains more information about the error. -- nosy: +ezio.melotti stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker

[issue24918] Docs layout bug

2016-03-13 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch(es)! -- assignee: docs@python -> ezio.melotti resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24918] Docs layout bug

2016-03-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 78e9c18d3e5b by Ezio Melotti in branch '3.5': #24918: fix CSS for code blocks when a side box is present. Patch by Manvi B. https://hg.python.org/cpython/rev/78e9c18d3e5b New changeset 444d80ae123e by Ezio Melotti in branch 'default': #24918:

Re: The Cost of Dynamism (was Re: Pyhon 2.x or 3.x, which is faster?)

2016-03-13 Thread Steven D'Aprano
On Sun, 13 Mar 2016 04:54 am, BartC wrote: > On 12/03/2016 16:56, Steven D'Aprano wrote: >> On Sun, 13 Mar 2016 12:42 am, BartC wrote: >> >>> Ad-hoc attributes I don't have as much of a problem with, as they can be >>> handy. But predefined ones also have their points. (For one thing, I >>> know

Re: Descriptors vs Property

2016-03-13 Thread Thomas 'PointedEars' Lahn
Veek. M wrote: > Thomas 'PointedEars' Lahn wrote: >>> I haven't read the descriptor protocol as yet. >> You should. You should also trim your quotations to the relevant >> minimum, and post using your real name. > > I don't take advice from people on USENET who DON'T have a long history > of

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-13 Thread Martin Panter
Martin Panter added the comment: Julien: I tend to keep doc strings rather concise. Just mention the main points, not all the obscure corner cases or examples. In this case I would probably just change “int” to “integer” (lowercase) or “numbers.Integral” if you want to be specific. You might