[issue25270] codecs.escape_encode systemerror on empty byte string

2015-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 01.10.2015 04:35, Martin Panter wrote: > For the record, because I was curious: Function codecs.escape_encode() is not > documented, and barely tested. It was used for the documented “string_escape” > codec in Python 2, but this codec was removed for

[issue25270] codecs.escape_encode systemerror on empty byte string

2015-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 30.09.2015 15:11, Serhiy Storchaka wrote: > May be better to test a condition "size > 0" before calling > _PyBytes_Resize(), as in many other case where _PyBytes_Resize() is used. > > Or accept shared objects in _PyBytes_Resize() if new size is equal to

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Attached patch raises a ValueError if the current recursion depth is higher than the new "low-water mark". The low-water mark is the value computed by _Py_MakeEndRecCheck() in Py_LeaveRecursiveCall() to decide if we can reset the overflowed field of the

[issue2466] os.path.ismount doesn't work for mounts the user doesn't have permission to see

2015-10-01 Thread Robin Roth
Robin Roth added the comment: This bug is still present and annoying. For me it appeared when running ismount on a nfs-mounted directory, when the user who runs python has no read permission inside the directory. Therefore the lstat on /mntdir/.. fails. Attached a patch that fixes this by

Re: Check if a given value is out of certain range

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 09:40:58 +0200, Laura Creighton writes: >'Either' doesn't get used much unless you are heading for >'either x or y but not both'. I don't think I was clear in expressing things this way. What I meant was, around here at any rate, 'either' is more often used for

Re: Check if a given value is out of certain range

2015-10-01 Thread Laura Creighton
In a message of Wed, 30 Sep 2015 14:46:48 -0600, Ian Kelly writes: >Thought mirrors language. In English, we typically would say "x is not >between 0 and 10", not "x is either less than 0 or greater than 10". I wonder if that is regional. I think you may have stacked things with the 'either' and

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
Changes by STINNER Victor : -- versions: +Python 3.4, Python 3.5 ___ Python tracker ___

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 835085cc28cd by Victor Stinner in branch '3.5': Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom() https://hg.python.org/cpython/rev/835085cc28cd -- ___ Python tracker

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 202c827f86df by Victor Stinner in branch '2.7': Issue #25003: os.urandom() doesn't use getentropy() on Solaris because https://hg.python.org/cpython/rev/202c827f86df New changeset 83dc79eeaf7f by Victor Stinner in branch '3.4': Issue #25003:

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Ok, I pushed fixes for Python 2.7, 3.4, 3.5 and 3.6. Summary for Solaris: - Python 2.7, 3.4: read from /dev/urandom (use a private file descriptor) - Python 3.5, 3.6: use the getrandom() function on Solaris 11.3 and newer (no file descriptor), or fallback on

Re: reg multiple login python

2015-10-01 Thread harirammanohar159
On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: > Hi All, > > Is there anyway i can login to remote servers at once and do the activity, i > can do one by one using for loop.. > > Thanks in advance. Hi Laura, at the same time means... i have an activity say on two

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread Xiang Zhang
Xiang Zhang added the comment: I can reproduce this action on Ubuntu. The forged readline.py in python's execution directory can steal the permission of python and do something dangerous. -- nosy: +xiang.zhang ___ Python tracker

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, the default handler for errror handlers uses a loop to check for non-ASCII characters. It can be replaced with PyUnicode_IS_ASCII(str) which has a complexity O(1). Done in new patch. -- Added file:

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread STINNER Victor
New submission from STINNER Victor: The AMD64 Windows7 SP1 3.x buildbot randomly fails. Tests take a lot of time. I don't know if it's a slow hardware/VM, or if the system is very busy. By the way, regrtest is run with -j4 (run 4 tests in parallel). Example of errors:

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Serhiy wrote: > This message looks confusing to me. 2 > 1, isn't? > The dependency of min_limit from new_limit is not monotonic: (...) Ok, now I'm confused too :-) First of all, I propose to change the exception type to RecursionError because it's really

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Oh, there is a bug in utf8_encoder() (not in my patch!), newpos was not used after calling the error handler. It's now fixed in the new patch. -- Added file: http://bugs.python.org/file40646/utf8_encoder_errors-2.patch

Re: Question about regular expression

2015-10-01 Thread gal kauffman
My example will give false positive if there is a space before a comma. Or anything else by the conventions in the original string. I tried to keep it as simple as I could. If you want to catch a wider range of values you can use *simple* regular expression to catch as much spaces as you want. On

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > The dependency of min_limit from new_limit is not monotonic: (...) Right, _Py_MakeEndRecCheck() is not monotonic. Let me try to make it monotonic: def f1(x): return x * 3 // 4 def f2(x): return x - 50 f1() > f2() for x <= 196 f1() == f2() for x in 198..200

[issue25123] Logging Documentation - dictConfig disable_existing_loggers

2015-10-01 Thread Vinay Sajip
Vinay Sajip added the comment: This is mentioned in the documentation for dictConfig - see the bottom of the section at https://docs.python.org/2.7/library/logging.config.html#dictionary-schema-details -- resolution: -> not a bug status: open -> closed

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread Berker Peksag
Berker Peksag added the comment: LGTM > Alternative: Add a new sys.implementation.debug_build flag. According to the sys.implementation documentation and PEP 421, we can only add a private attribute without writing a PEP. But I find sys.implementation._debug_build too long and ``from sys

Re: Question about regular expression

2015-10-01 Thread Tim Chase
On 2015-10-01 01:48, gal kauffman wrote: > items = s.replace(' (', '(').replace(', ',',').split() s = "name1 (1)" Your suggestion doesn't catch cases where more than one space can occur before the paren. -tkc -- https://mail.python.org/mailman/listinfo/python-list

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file40645/bench.py ___ Python tracker ___

[issue25277] test_eintr hangs on randomly on "AMD64 FreeBSD 9.x 3.x"

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 10efb1797e7b by Victor Stinner in branch 'default': Issue #25277: Set a timeout of 10 minutes in test_eintr using faulthandler to https://hg.python.org/cpython/rev/10efb1797e7b -- nosy: +python-dev ___

[issue25185] Inconsistency between venv and site

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset d927c6cae05f by Vinay Sajip in branch '3.4': Closes #25185: Use UTF-8 encoding when reading pyvenv.cfg. https://hg.python.org/cpython/rev/d927c6cae05f New changeset eaf9220bdee3 by Vinay Sajip in branch '3.5': Closes #25185: merged fix from 3.4.

Re: reg multiple login python

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 03:07:14 -0700, harirammanohar...@gmail.com wr ites: >On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: >> Hi All, >> >> Is there anyway i can login to remote servers at once and do the activity, i >> can do one by one using for loop..

Re: reg multiple login python

2015-10-01 Thread harirammanohar159
On Thursday, 1 October 2015 12:35:01 UTC+5:30, hariramm...@gmail.com wrote: > Hi All, > > Is there anyway i can login to remote servers at once and do the activity, i > can do one by one using for loop.. > > Thanks in advance. Hi Michael, please see earlier post to know the exact requirement

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Benchmark results. Sorry for the very long output. There are some (corner?) cases where the patched Python is a little bit slower. I consider that it's ok since it's *much* faster in the other cases. What do you think? Common platform: Timer info:

[issue23749] asyncio missing wrap_socket (starttls)

2015-10-01 Thread Mathieu Sornay
Changes by Mathieu Sornay : -- nosy: +msornay ___ Python tracker ___ ___ Python-bugs-list

[issue12238] Readline module loading in interactive mode

2015-10-01 Thread R. David Murray
R. David Murray added the comment: This issue was reported again in issue 25288. To summarize: the cwd should only be used for imports *after* the command prompt is displayed, and readline is imported *before* the prompt is displayed but currently is imported from the cwd. This should be

[issue25290] csv.reader: minor docstring typo

2015-10-01 Thread Johannes Niediek
New submission from Johannes Niediek: docstring ends with colon, should be fullstop. -- components: Library (Lib) files: csvreader_docstring.txt messages: 252030 nosy: wasserverein priority: normal severity: normal status: open title: csv.reader: minor docstring typo type: enhancement

[issue12238] Readline module loading in interactive mode

2015-10-01 Thread R. David Murray
Changes by R. David Murray : -- stage: -> needs patch versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread Jeremy Kloth
Jeremy Kloth added the comment: The system is a dedicated Quad CPU @2.66GHz with 8GB RAM and running the tests on an SSD. I doubt it is the hardware. Please note, it is the only 64-bit Windows buildbot AND the only multi-core Windows buildbot. So it catches lots of things that most others

Re: reg multiple login python

2015-10-01 Thread paul.hermeneutic
On Oct 1, 2015 1:06 AM, wrote: > > Hi All, > > Is there anyway i can login to remote servers at once and do the activity, i can do one by one using for loop.. > If you want to start them all at the same time, look into subprocess and popen. --

ANN: eGenix PyRun - One file Python Runtime 2.1.1

2015-10-01 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 2.1.1 An easy-to-use single file relocatable Python run-time - available for Linux, Mac OS X and

PySide window does not resize to fit screen

2015-10-01 Thread Hedieh Ebrahimi
Dear all, I am using Pyside to create a user interface for my app. The app works fine on my computer with big screen, but when I take it to my laptop with smaller screen size, it does not resize to match the screen size. How can I make my main widget get some information about the screen

Re: PySide window does not resize to fit screen

2015-10-01 Thread Chris Warrick
On 1 October 2015 at 15:44, Hedieh Ebrahimi wrote: > Dear all, > > I am using Pyside to create a user interface for my app. > The app works fine on my computer with big screen, but when I take it to my > laptop with smaller screen size, it does not resize to match the screen

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread R. David Murray
R. David Murray added the comment: Well, so much for my memory :(. The actual discussion was in issue 12238, where *my* conclusion was that this should be fixed (readline should be special cased), but the issue is still open. Patches welcome :) -- resolution: -> duplicate stage: ->

Pandas Left Merge with xlsx with CSV producing null value columns in output

2015-10-01 Thread kbtyo
I would appreciate any feedback on the following question that I have raised here: http://stackoverflow.com/questions/32889129/pandas-left-merge-with-xlsx-with-csv-producing-null-value-columns-in-output Thank you for your feedback and support. --

ANN: eGenix PyRun - One file Python Runtime 2.1.1

2015-10-01 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix PyRun - One file Python Runtime Version 2.1.1 An easy-to-use single file relocatable Python run-time - available for Linux, Mac OS X and

[issue25288] readline.py file in current directory caused unexpected code execution.

2015-10-01 Thread R. David Murray
R. David Murray added the comment: This is not a bug, this is the way python works. When running in interactive mode (only) the current directory is first on the path. Now, should this behavior be changed? I think we've discussed this before and decided not to change it (for backward

[issue16701] Docs missing the behavior of += (in-place add) for lists.

2015-10-01 Thread R. David Murray
R. David Murray added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing

Re: Check if a given value is out of certain range

2015-10-01 Thread Ian Kelly
On Thu, Oct 1, 2015 at 2:33 AM, alister wrote: > Why is it that the Phrase "Don't Panic" is strongly discouraged in > emergency situations? > > answer because the brain parses the statement as follows and focuses on > Panic instead of calm. > > Don't : I must not

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: By the way, I'm surprised how slow is this buildbot. On Linux, running the whole test suite (399 tests) takes less than 5 minutes with -j4 on my PC (Intel i7-2600 @ 3.40GHz with 12 GB of RAM). Is Python much slower on Windows? Or the buildbot CPU is *much*

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread Zachary Ware
Zachary Ware added the comment: I was curious, so I checked: C:\Users\Zachary\code\hg.python.org\3.5>python.bat -m test.pystone Running Debug|x64 interpreter... Pystone(1.2) time for 5 passes = 1.14142 This machine benchmarks at 43805 pystones/second

[issue25276] test_decimal sometimes crash on PPC64 AIX 3.x

2015-10-01 Thread Stefan Krah
Stefan Krah added the comment: Usually these segfaults are toolchain bugs (I've had at least 8, including gcc, suncc, libc...). Just a couple of observations: - The bot builds with -DCONFIG_32=1 -DANSI=1 despite being PPC64. - When we had an AIX snakebite machine, the xlc compile worked

Kansha 1.0.5 released

2015-10-01 Thread Romuald Texier-Marcadé
Hello everybody! On behalf of the *Kansha team*, I am excited to announce the release of version *1.0.5* of *Kansha*, an open source web application to manage and share collaborative scrum boards with enhanced todo lists and Trello-like boards (http://www.kansha.org/). This version is the first

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: On Linux, I also run the Python test suite with Python compiled in debug mode. I'm forcing the -O0 flag to disable *all* compilation optimization. All assertions are kept, etc. Maybe the slowness comes from CRT checks, maybe. --

The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread Chris Warrick
The Nikola developers decided to deprecate Python 2.7 support. Starting with v7.7.2, Nikola will display a warning if Python 2.7 is used (but it will still be fully supported). In early 2016, Nikola v8.0.0 will come out, and that release will not support Python 2.7 officially. The decision was

matplotlib timer

2015-10-01 Thread Dave Farrance
I'm trying to set up the basics of a timer-scheduled function in matplotlib and I can't figure out how to stop the timer. Maybe the stop() method is dysfunctional in Ubuntu 14.04 or maybe I'm getting the syntax wrong. If anybody's got matplotlib installed, can you try this code and tell me if it

Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread Chris Warrick
On 1 October 2015 at 18:43, wrote: > Python 3 has venv in the kit. Is there a reason users should get the > virtualenv add-on? Both can be used; I wrote about virtualenv because it’s the tried-and-true solution (and is it guaranteed in all Linux distros anyway?) On

Re: Question about regular expression

2015-10-01 Thread Rob Gaddi
On Wed, 30 Sep 2015 11:34:04 -0700, massi_srb wrote: > Hi everyone, > > firstly the description of my problem. I have a string in the following > form: > > s = "name1 name2(1) name3 name4 (1, 4) name5(2) ..." > > that is a string made up of groups in the form 'name' (letters only) > plus

Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread Stefan Behnel
Chris Warrick schrieb am 01.10.2015 um 18:26: > The Nikola developers decided to deprecate Python 2.7 support. I wonder why it took the Nikola project so long to take that decision. Python 3.3 came out almost exactly three(!) years ago and seems to have all major features that they would require.

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread John Beck
John Beck added the comment: Confirmed that test_os runs cleanly on Solaris 12, for each of: * 2.7.10 (plus your patch from 98454:202c827f86df) * 3.4.3 (plus your patch from 98455:83dc79eeaf7f) * 3.5.0 (plus your patch from 98452:835085cc28cd) * 3.6 (tip) --

[issue15663] Investigate providing Tcl/Tk 8.6 with OS X installers

2015-10-01 Thread Ronald Oussoren
Ronald Oussoren added the comment: W.r.t. install_name_tool: macholib (PyPI project) contains functionality to do this work in pure python. I do not propose to include macholib in the stdlib, it is too special purpose and not everyone that has provided patches is a CPython contributor

[issue25003] os.urandom() should call getrandom(2) not getentropy(2) on Solaris 11.3 and newer

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: Thanks! I close the issue, it's now fixed. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

Re: PySide window does not resize to fit screen

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 06:44:25 -0700, Hedieh Ebrahimi writes: >Dear all, > >I am using Pyside to create a user interface for my app. >The app works fine on my computer with big screen, but when I take it to my >laptop with smaller screen size, it does not resize to match the screen

Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread paul.hermeneutic
Python 3 has venv in the kit. Is there a reason users should get the virtualenv add-on? On Oct 1, 2015 10:28 AM, "Chris Warrick" wrote: > The Nikola developers decided to deprecate Python 2.7 support. > Starting with v7.7.2, Nikola will display a warning if Python 2.7 is >

[issue25289] test_strptime hangs sometimes on AMD64 Windows7 SP1 3.x buildbot

2015-10-01 Thread Zachary Ware
Zachary Ware added the comment: Jeremy Kloth wrote: > Please note, it is the only 64-bit Windows buildbot That's not true anymore; in fact, all but David Bolen's XP and Windows 7 bots are 64-bit. Yours is the one one in the 'stable' set, but that classification is a bit out of date for the

[issue23447] Import fails when doing a circular import involving an `import *`

2015-10-01 Thread Steven Barker
Steven Barker added the comment: Thanks for looking at the issue Brett. I think you're right that your patch has incorrect semantics, since it doesn't save the value to the provided namespace if it had to go through the special path to find the name. I think my patch got that part right

Re: matplotlib timer

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 20:03:26 +0100, Dave Farrance writes: >Laura Creighton wrote: > >>In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes: >>>Yet the documentation says that it's mandatory for the GUI backend base >>>to implement stop() but that

[issue8231] Unable to run IDLE without write-access to home directory

2015-10-01 Thread John Gray
John Gray added the comment: See Issue14576 which is the same underlying issue. -- nosy: +John Gray ___ Python tracker ___

[issue22413] Bizarre StringIO(newline="\r\n") translation

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see a reason to deprecate anything. Can you write up in one paragraph how StringIO's newline flag differs from the one to TextIOWrapper? (What happens to the initial value is a separate issue AFAIC.) --

Re: matplotlib timer

2015-10-01 Thread Dave Farrance
Laura Creighton wrote: >In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes: >>Yet the documentation says that it's mandatory for the GUI backend base >>to implement stop() but that single_shot is optional. Ho hum. > >report as a bug. its a doc bug at least,

Re: Create a .lua fle from Python

2015-10-01 Thread Steven D'Aprano
On Wed, 30 Sep 2015 07:21 pm, jmp wrote: >> Is Ariel's xml file user-supplied? If so, how does your suggestion >> prevent the resulting lua script from executing arbitrary code? > > It does not. Like it doesn't fulfill the millions of possible > requirements the OP could have written but did

Re: matplotlib timer

2015-10-01 Thread Dave Farrance
Laura Creighton wrote: >In a message of Thu, 01 Oct 2015 17:36:50 +0100, Dave Farrance writes: >>I'm trying to set up the basics of a timer-scheduled function in >>matplotlib and I can't figure out how to stop the timer. Maybe the >>stop() method is dysfunctional in Ubuntu 14.04

Re: Check if a given value is out of certain range

2015-10-01 Thread Steven D'Aprano
On Thu, 1 Oct 2015 08:31 am, Mark Lawrence wrote: >> What is so "yuck" about that? What would you do instead? It seems like >> the best solution to me. Easy to read, fast to execute. >> > > I have to parse those damn brackets and then figure out the inverted > logic. Give me x < 0 or x > 10

Re: Check if a given value is out of certain range

2015-10-01 Thread Steven D'Aprano
On Fri, 2 Oct 2015 04:20 am, John Gordon wrote: > In <560d78e2$0$1618$c3e8da3$54964...@news.astraweb.com> Steven D'Aprano > writes: > >> > I have to parse those damn brackets and then figure out the inverted >> > logic. Give me x < 0 or x > 10 any day of the week. When

[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2015-10-01 Thread John Gray
John Gray added the comment: I hit this issue with an "H:" homedrive that is on a network share, and then in Windows is using "offline files" to keep a local copy. .idlerc was not cached so IDLE worked when online/connected to my work network but not when I was offline. The temporary

[issue14576] IDLE: inconsistent use of HOMEDRIVE, HOMEPATH, and USERPROFILE on Windows

2015-10-01 Thread John Gray
John Gray added the comment: For the h: drive issue mentioned above: This was on Python 2.7.10. -- ___ Python tracker ___

Re: The Nikola project is deprecating Python 2.7 (+2.x/3.x user survey results)

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 10:43:58 -0600, paul.hermeneu...@gmail.com wri tes: >Python 3 has venv in the kit. Is there a reason users should get the >virtualenv add-on? Yes. It is known to work. Debian packager doko (Matthias Klose) thinks that venv is not debian compatible. Thus when you

Re: matplotlib timer

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes: >Yet the documentation says that it's mandatory for the GUI backend base >to implement stop() but that single_shot is optional. Ho hum. report as a bug. its a doc bug at least, but I think its a real bug, and your code should

Re: Check if a given value is out of certain range

2015-10-01 Thread Steven D'Aprano
On Thu, 1 Oct 2015 06:46 am, Ian Kelly wrote: > On Wed, Sep 30, 2015 at 2:19 PM, alister > wrote: [...] >> the problem with 1 is the human brain is not particularity good with >> negatives*. >> to do not (some function) you first of all have to work out some

Re: matplotlib timer

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 17:36:50 +0100, Dave Farrance writes: >I'm trying to set up the basics of a timer-scheduled function in >matplotlib and I can't figure out how to stop the timer. Maybe the >stop() method is dysfunctional in Ubuntu 14.04 or maybe I'm getting the >syntax wrong. > >If

[issue25272] asyncio tests are getting noisy

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: Or call gc.collect() in that TestCase.setUp()? -- ___ Python tracker ___

Re: Check if a given value is out of certain range

2015-10-01 Thread John Gordon
In <560d78e2$0$1618$c3e8da3$54964...@news.astraweb.com> Steven D'Aprano writes: > > I have to parse those damn brackets and then figure out the inverted > > logic. Give me x < 0 or x > 10 any day of the week. When you're an old, > > senile git like me, readability counts

[issue25291] ssl socket gets into broken state when client exits during handshake

2015-10-01 Thread Oleg
Oleg added the comment: when i run the server in one terminal and the client in another the server output wold be: Serving on ('127.0.0.1', 8443) my transport None my backlog len 2 my backlog size 4200 that output proves that it is trying to write into socket, while there is no transport!

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-01 Thread Vinay Sajip
Changes by Vinay Sajip : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

Re: Check if a given value is out of certain range

2015-10-01 Thread John Gordon
In <560d8726$0$1602$c3e8da3$54964...@news.astraweb.com> Steven D'Aprano writes: > > But it takes ever-so-slightly more effort to do so. > Slightly more effort than what alternative? How would you communicate the > idea of *not* asking for X without using the concept of

Re: matplotlib timer

2015-10-01 Thread Dave Farrance
Laura Creighton wrote: >In a message of Thu, 01 Oct 2015 20:03:26 +0100, Dave Farrance writes: >>Laura Creighton wrote: >> >>>In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave Farrance writes: Yet the documentation says that it's mandatory for the GUI

[issue25291] ssl socket gets into broken state when client exits during handshake

2015-10-01 Thread Oleg
Oleg added the comment: Please disregard previous comment!(or delete it), i wanted to create new issue instead! -- ___ Python tracker ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg252050 ___ Python tracker ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: Can you fix the issue title or do you want me to fix it? And did you also add a file you meant to go to a different issue? (Maybe link to the new issue and I can figure it out.) -- ___ Python tracker

Re: Check if a given value is out of certain range

2015-10-01 Thread Emile van Sebille
On 10/1/2015 12:59 PM, Marko Rauhamaa wrote: John Gordon : I wasn't commenting directly to the "ask not..." quote; I was referring upthread to the choice between not 0 <= x <= 10 and x < 0 or x > 10 Both are of course understandable, but in my opinion, the

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-01 Thread Zachary Ware
Zachary Ware added the comment: Thanks, Vinay! -- stage: needs patch -> resolved versions: +Python 3.5, Python 3.6 ___ Python tracker ___

[issue25274] sys.setrecursionlimit() must fail if the current recursion depth is higher than the new low-water mark

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: _Py_MakeEndRecCheck() was changed in issue5392 (noised Antoine as a committer). There are many ways to make it monotonic. #define _Py_MakeEndRecCheck(x) \ (--(x) < ((_Py_CheckRecursionLimit > 200) \ ? (_Py_CheckRecursionLimit - 25) \

[issue24884] Add method reopenFile() in WatchedFileHandler class

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6d61b057c375 by Vinay Sajip in branch 'default': Closes #24884: refactored WatchedFileHandler file reopening into a separate method, based on a suggestion and patch by Marian Horban. https://hg.python.org/cpython/rev/6d61b057c375 -- nosy:

Re: Check if a given value is out of certain range

2015-10-01 Thread Marko Rauhamaa
John Gordon : > I wasn't commenting directly to the "ask not..." quote; I was > referring upthread to the choice between > > not 0 <= x <= 10 > > and > > x < 0 or x > 10 > > Both are of course understandable, but in my opinion, the latter one > takes slightly less effort

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Oleg
Changes by Oleg : -- title: ssl socket gets into broken state when client exits during handshake -> better Exception message for certain task termination scenario ___ Python tracker

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: > I don't like this. The sys module is one of most used module, but it has too > many members, and adding yet one makes the situation worse. Hum, what is the problem of adding a symbol? How does it make the module less usable? > Checking for debug mode is

[issue24870] Optimize ascii and latin1 decoder with surrogateescape and surrogatepass error handlers

2015-10-01 Thread STINNER Victor
STINNER Victor added the comment: I just pushed my patch to optimize the UTF-8 encoder with error handlers: see the issue #25267. It's up to 70 times as fast. The patch was based on Serhiy's work: faster_surrogates_hadling.patch attached to this issue. --

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Oleg
New submission from Oleg: the weird condition in the code causes the task to end with double exception, hard to understand what really had happened. producing output like that: |i am task.. |i keep working |Exception in callback Task._step() |handle: |Traceback (most

[issue25292] ssl socket gets into broken state when client exits during handshake

2015-10-01 Thread Oleg
New submission from Oleg: when i run the server in one terminal and the client in another the server output wold be: Serving on ('127.0.0.1', 8443) my transport None my backlog len 2 my backlog size 4200 that output proves that it is trying to write into socket, while there is no transport!

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg252051 ___ Python tracker ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : Removed file: http://bugs.python.org/file40651/example_files.tar.gz ___ Python tracker ___

[issue25267] Optimize UTF-8 encoder with error handlers

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2b5357b38366 by Victor Stinner in branch 'default': Issue #25267: The UTF-8 encoder is now up to 75 times as fast for error https://hg.python.org/cpython/rev/2b5357b38366 -- nosy: +python-dev ___ Python

[issue25097] test_logging may fail with 'Access is denied' when pywin32 is installed

2015-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 72c57c120c19 by Vinay Sajip in branch '3.4': Fixes #25097: Windows test is skipped if there are insufficient privileges, rather than failing. https://hg.python.org/cpython/rev/72c57c120c19 New changeset b54528d8d8c3 by Vinay Sajip in branch '3.5':

[issue25256] Add sys.debug_build public variable to check if Python was compiled in debug mode

2015-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't like this. The sys module is one of most used module, but it has too many members, and adding yet one makes the situation worse. >>> len(dir(sys)) 81 Checking for debug mode is not often needed, and mainly in tests. Current way ``hasattr(sys,

Re: matplotlib timer

2015-10-01 Thread Laura Creighton
In a message of Thu, 01 Oct 2015 20:47:10 +0100, Dave Farrance writes: >Laura Creighton wrote: > >>In a message of Thu, 01 Oct 2015 20:03:26 +0100, Dave Farrance writes: >>>Laura Creighton wrote: >>> In a message of Thu, 01 Oct 2015 18:45:06 +0100, Dave

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Guido van Rossum added the comment: (OK, issue should be all cleaned up. :-) -- ___ Python tracker ___ ___

[issue25291] better Exception message for certain task termination scenario

2015-10-01 Thread Guido van Rossum
Changes by Guido van Rossum : -- Removed message: http://bugs.python.org/msg252053 ___ Python tracker ___

  1   2   >