Re: Ignore error with non-zero exit status

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn wrote: >> Percent formatting isn't going away. There's no need to tell people to >> abandon it in favour of .format(), unless they actually need a feature >> of .format(). > >

Categorising strings on meaningful–meaningless spectrum (was: Catogorising strings into random versus non-random)

2015-12-20 Thread Ben Finney
Steven D'Aprano writes: > Let's call the second group "random" and the first "non-random", > without getting bogged down into arguments about whether they are > really random or not. I think we should discuss it, even at risk of getting bogged down. As you know better than

[RELEASED] Python 3.4.4 is now available

2015-12-20 Thread Larry Hastings
On behalf of the Python development community and the Python 3.4 release team, I'm pleased to announce the availability of Python 3.4.4. Python 3.4.4 is the last version of Python 3.4.4 with binary installers, and the end of "bugfix" support. After this release, Python 3.4.4 moves into

[issue4709] Mingw-w64 and python on windows x64

2015-12-20 Thread Nathaniel Smith
Changes by Nathaniel Smith : -- nosy: +njs ___ Python tracker ___ ___ Python-bugs-list mailing

Can I call a pymc-function directly?

2015-12-20 Thread Robert
Hi, I am new to pymc package. I come across the following tutorial: The example is from: www.map.ox.ac.uk/media/PDF/Patil_et_al_2010.pdf . import pymc import numpy as np n = 5*np.ones(4,dtype=int) x = np.array([-.86,-.3,-.05,.73]) alpha = pymc.Normal('alpha',mu=0,tau=.01) beta

[issue23670] Modifications to support iOS as a cross-compilation target

2015-12-20 Thread Russell Keith-Magee
Russell Keith-Magee added the comment: Another update - the issue with libffi has been resolved, so there is now only need for a single copy of libffi_ios sources. This directory could potentially be merged with the libffi_osx sources, except that libffi no longer supports PowerPC as a

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Martin Panter
Martin Panter added the comment: Left some comments about possibly unnecessary ref counting. Other than that it seems okay. -- ___ Python tracker ___

Re: Catogorising strings into random versus non-random

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 2:01 PM, Steven D'Aprano wrote: > I have a large number of strings (originally file names) which tend to fall > into two groups. Some are human-meaningful, but not necessarily dictionary > words e.g.: > > > baby lions at play > saturday_morning12 >

[issue25913] base64.a85decode adobe flag incorrectly utilizes <~ as a marker causing error

2015-12-20 Thread Swati Jaiswal
Changes by Swati Jaiswal : -- keywords: +patch Added file: http://bugs.python.org/file41377/iss_25913.patch ___ Python tracker

Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Ganesh Pal
> (Polite people would *ask* a *question*.) I am a polite person , sorry if the wording was harsh. > (“_a non-zero_”, with a space in-between. “anon” can be misunderstood as an > abbreviation for “anonymous”.) It was a typo. > Most simple solution for this: Do not use a loop. More

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn > wrote: It is supposed to be an attribution *line*, _not_ an attribution novel. Also, the “(was: …)” part is to be removed from the Subject header field value to complete the change of

Re: Installing PyCharm on Windows

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 9:46 AM, Terry Reedy wrote: > On 12/20/2015 4:54 PM, Chris Angelico wrote: > >> Want to run CPython 3.6 on Windows? >> Go hunt down a compiler, fiddle around with it, and see if >> >> you can get everything to work. > > > No, much easier. Essentially the

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-20 Thread Martin Panter
Martin Panter added the comment: I understood “bytes-like” to mean what is now defined in the glossary: what is accepted by the C-level y* format for the PyArg parsing functions. I tend to agree with that it may not have been the best term to

Re: (Execution) Termination bit, Alternation bit.

2015-12-20 Thread eryk sun
On Sun, Dec 20, 2015 at 10:21 AM, Dennis Lee Bieber wrote: > On Sun, 20 Dec 2015 12:25:30 +0100, "Skybuck Flying" > declaimed the following: >> >>This does make me wonder how Windows 7 terminates threads/processes/hanging >>applications. >>

[issue25844] Pylauncher, launcher.c: Assigning NULL to a pointer instead of testing against NULL

2015-12-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 48b3cac0dbcd by Vinay Sajip in branch '3.4': Fixes #25844: Corrected =/== typo potentially leading to crash in launcher. https://hg.python.org/cpython/rev/48b3cac0dbcd -- ___ Python tracker

Catogorising strings into random versus non-random

2015-12-20 Thread Steven D'Aprano
I have a large number of strings (originally file names) which tend to fall into two groups. Some are human-meaningful, but not necessarily dictionary words e.g.: baby lions at play saturday_morning12 Fukushima ImpossibleFork (note that some use underscores, others spaces, and some CamelCase)

[issue1753718] base64 "legacy" functions violate RFC 3548

2015-12-20 Thread R. David Murray
R. David Murray added the comment: The term "bytes-like object" is specifically designed for those situations where python used to say "X does not support the buffer interface" if passed something else. Which is the case here...now it says "a bytes-like object is required". I'm not sure if

Re: Installing PyCharm on Windows

2015-12-20 Thread Terry Reedy
On 12/20/2015 4:54 PM, Chris Angelico wrote: > Want to run CPython 3.6 on Windows? > Go hunt down a compiler, fiddle around with it, and see if you can get everything to work. No, much easier. Essentially the same steps as below after following the instructions in the devguide to get the 2015

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Ganesh Pal wrote: [repaired Subject, restored attribution] > Thomas 'PointedEars' Lahn wrote: >> Most simple solution for this: Do not use a loop. More "complicated" >> solution: Use an “if” statement. > > I want to stick on to loop and try modifying the code with if. Should I > use some

Re: Installing PyCharm on Windows

2015-12-20 Thread Erik
Hello Thomas, On 19/12/15 18:32, Thomas 'PointedEars' Lahn wrote: > (and you should seriously > consider upgrading Windows or even better, to switch to a real operating > system, like GNU/Linux On 20/12/15 08:28, Thomas 'PointedEars' Lahn wrote: > Anyhow, *I* was not intending to start an OS

Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Thomas 'PointedEars' Lahn
Ganesh Pal wrote: > def run_scanner(): > """ > Mount /filesystems and run scanner > """ > for cmd in [" mount /filesystems ", " scanner_start"]: > try: > out, err, ret = run(cmd, timeout=3600) > if ret != 0: >

Re: Installing PyCharm on Windows

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 4:15 AM, Josef Pktd wrote: >> Mine was not a snide remark, but the truth. Those other operating systems I >> was talking about do give users more freedom. For example, the freedom to >> use it on as many different machines as you like without an

Re: Ignore error with non-zero exit status (was: How to ignore error with anon-zero exit status)

2015-12-20 Thread Chris Angelico
On Mon, Dec 21, 2015 at 8:22 AM, Thomas 'PointedEars' Lahn wrote: > Python 2.6 (why are you using the oldest Python minor version?) introduced > string.format(), so you should use that instead of the old string format > operator (“%”): > > logging.error("Can't run {0}; got

[issue25148] Windows registry PythonCore key changed inconsistent with other releases

2015-12-20 Thread Steve Dower
Steve Dower added the comment: The per-user installs collide without the name change, and since those are now the default, it's important to have the change. The redirection you refer to only occurs for HKLM and not HKCU. The launcher was updated and tested to find all versions. If there's a

[issue25914] Fix OrderedDict.__sizeof__

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +eric.snow, loewis, rhettinger ___ Python tracker ___

Re: (Execution) Termination bit, Alternation bit.

2015-12-20 Thread Skybuck Flying
"Richard Damon" wrote in message news:QHody.3724$bz5.3...@fx04.iad... On 12/19/15 9:03 PM, Skybuck Flying wrote: It could be usefull if the instruction pointer/return address that was pushed onto the stack when the interrupt handler was called can be modified by the interrupt handler so

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

2015-12-20 Thread Chris Angelico
On Sun, Dec 20, 2015 at 10:04 PM, Denis McMahon wrote: > It sounds like you're taking a python course. Your course should have > taught you all you need to carry out this programming task before setting > this exercise. > > Alternatively, if you have so far been a fully

[issue25701] Document that tp_setattro and tp_setattr are used for deleting attributes

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 2.7 all is the same except that there is the sq_ass_slice slot and the PySequence_SetSlice() function. -- Added file: http://bugs.python.org/file41370/setattr-2.7.patch ___ Python tracker

Re: Installing PyCharm on Windows

2015-12-20 Thread Chris Angelico
On Sun, Dec 20, 2015 at 8:23 PM, Steven D'Aprano wrote: > On Sun, 20 Dec 2015 07:28 pm, Thomas 'PointedEars' Lahn wrote: > >> Josef Pktd wrote: >> ^^ >> I doubt that is your real name. > > > So what? I doubt "PointedEars" is your real name, but you don't see me >

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread SilentGhost
SilentGhost added the comment: Here is the patch. -- keywords: +needs review, patch nosy: +SilentGhost stage: -> patch review type: -> behavior versions: +Python 3.3, Python 3.5, Python 3.6 Added file: http://bugs.python.org/file41368/issue25916.diff

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Sonali Gupta
Sonali Gupta added the comment: Should the sentence be removed completely? > This is equivalent to the Python expression ``list(o.keys())``. comments in Include/abstract.h are not absolutely correct too so should dictionary view be included in the return of PyMapping_Values, PyMapping_Keys

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2015-12-20 Thread STINNER Victor
STINNER Victor added the comment: Regressions are not cool, but it was a deliberate choice to not support bytes filenames in os.scandir(). If you use bytes, you can get filenames which are invalid: you will be unable to use the filename with open() to read its content for example. Bytes

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: For softer transition we can return old os.walk() implementation for bytes (may be with a deprecation warning). Using os.scandir() is just an optimization, and this shouldn't break existing program. -- nosy: +serhiy.storchaka

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
New submission from Adam Wasik: >>> file = open(r"C:\adam.txt","r+") >>> file.read() 'TEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TE XT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT TEXT\nTEXT TEXT TEXT TEXT TEXT TEXT

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread Adam Wasik
Adam Wasik added the comment: duplicate of the issue #12215 -- status: open -> closed ___ Python tracker ___

[issue25917] Fixing howto links in docs

2015-12-20 Thread SilentGhost
New submission from SilentGhost: This patch changes links from wiki to howto part of docs. -- assignee: docs@python components: Documentation files: howto.diff keywords: needs review, patch messages: 256761 nosy: SilentGhost, docs@python priority: normal severity: normal stage: patch

[issue17868] pprint long non-printable bytes as hexdump

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: fixed -> rejected ___ Python tracker ___

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2015-12-20 Thread Alessandro Cucci
Alessandro Cucci added the comment: Uploaded a new patch. This time I ran tests using: $ ./python -m test -v test_datetime and got no errors. I've written the c docstring, updated docs, and rewrote _format_time function. I know it's boring review this another time, but I'm doing my best.

Re: Installing PyCharm on Windows

2015-12-20 Thread Thomas 'PointedEars' Lahn
Josef Pktd wrote: ^^ I doubt that is your real name. > On Saturday, December 19, 2015 at 1:32:27 PM UTC-5, Thomas 'PointedEars' > Lahn wrote: >> Have you tried to install Python ≥ 3.4.4rc1 on Windows XP? If yes, it >> cannot work; you need Python < 3.4.4rc1 instead (and you should

[issue25914] Fix OrderedDict.__sizeof__

2015-12-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Proposed patch correctly calculates the size of OrderedDict (the size of an instance dict should not be counted) and adds exact tests for sizeof. -- components: Extension Modules files: odict_sizeof.patch keywords: patch messages: 256754 nosy:

[issue25915] file.write() after file.read() adds text to the end of the file

2015-12-20 Thread SilentGhost
Changes by SilentGhost : -- resolution: -> duplicate stage: -> resolved superseder: -> TextIOWrapper: issues with interlaced read-write type: -> behavior ___ Python tracker

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

2015-12-20 Thread Denis McMahon
On Sat, 12 Dec 2015 01:05:01 -0800, Harbey Leke 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

[issue17868] pprint long non-printable bytes as hexdump

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Withdrawn in favor of issue17530. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

Re: Installing PyCharm on Windows

2015-12-20 Thread Steven D'Aprano
On Sun, 20 Dec 2015 07:28 pm, Thomas 'PointedEars' Lahn wrote: > Josef Pktd wrote: > ^^ > I doubt that is your real name. So what? I doubt "PointedEars" is your real name, but you don't see me making a big deal out of it. You're welcome to call yourself by any reasonable moniker. --

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread Iber Parodi Siri
New submission from Iber Parodi Siri: The documentation of readframes (wave module) states that readframes returns a string of bytes, just like python 2.7, but that's not the case in python 3.4 readframes returns byte type objects -- assignee: docs@python components: Documentation

[issue23808] Symlink to directory on Windows 8

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- type: -> behavior versions: +Python 3.6 ___ Python tracker ___

[issue25911] Regression: os.walk now using os.scandir() breaks bytes filenames on windows

2015-12-20 Thread Campbell Barton
Campbell Barton added the comment: @haypo, I checked available info online and couldn't find any reference to byte file-paths were deprecated since Python3.2. On the contrary, the 3.2 release notes [0] state: "countless fixes regarding bytes/string issues; among them full support for a

Re: Ignore error with non-zero exit status

2015-12-20 Thread Thomas 'PointedEars' Lahn
Chris Angelico wrote: > On Mon, Dec 21, 2015 at 9:46 AM, Thomas 'PointedEars' Lahn > wrote: >>> Percent formatting isn't going away. There's no need to tell people to >>> abandon it in favour of .format(), unless they actually need a feature >>> of .format(). >> >>

Deadline for PythonFOSDEM 2016 is today.

2015-12-20 Thread Stephane Wirtel
Just inform you that the deadline for the CfP of the PythonFOSDEM will finish this evening. If you have a last talk to submit, please do it. Call For Proposals == This is the official call for sessions for the Python devroom at FOSDEM 2016. FOSDEM is the Free and Open source

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka ___ Python tracker ___

[issue25766] __bytes__ doesn't work for str subclasses

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka versions: -Python 3.4 ___ Python tracker ___

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Sonali Gupta
Sonali Gupta added the comment: The documentation now says that On success, return a list, a tuple or a dictionary view for PyMapping_Items, PyMapping_Values and PyMapping_Keys. -- keywords: +patch nosy: +mine0901 Added file: http://bugs.python.org/file41372/bug.patch

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter, r.david.murray ___ Python tracker ___

[issue25909] Incorrect documentation for PyMapping_Items and like

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > This is equivalent to the Python expression ``list(o.keys())``. This sentence is not correct. And comments in Include/abstract.h are not absolutely correct too. -- ___ Python tracker

[issue25766] __bytes__ doesn't work for str subclasses

2015-12-20 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1e54adef4064 by Serhiy Storchaka in branch '3.5': Issue #25766: Special method __bytes__() now works in str subclasses. https://hg.python.org/cpython/rev/1e54adef4064 New changeset af0b95fb1c19 by Serhiy Storchaka in branch 'default': Issue #25766:

[issue25898] Check for subsequence inside a sequence

2015-12-20 Thread Sebastian Linke
Sebastian Linke added the comment: Slightly modified the implementation to return the index rather than a boolean. -- Added file: http://bugs.python.org/file41374/subseq_index.patch ___ Python tracker

[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-20 Thread R. David Murray
R. David Murray added the comment: I think it is a reasonable backward-compatibility fix to make it work as badly as it previously did ;). I would not document it, and I do not consider it a high priority (as Serhiy said, this usage reached into object internals and thus was dangerous from

Re: Installing PyCharm on Windows

2015-12-20 Thread Josef Pktd
On Sunday, December 20, 2015 at 3:29:34 AM UTC-5, Thomas 'PointedEars' Lahn wrote: > Josef Pktd wrote: > ^^ > I doubt that is your real name. But it's the name I used for almost all of my Python open source development, and can be easily googled. except I misspelled my "name" josef-pkt

[issue25912] Use __spec__.__name__ instead of __name__ in the docs where appropriate

2015-12-20 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: docs@python -> components: +Library (Lib) -Documentation stage: -> test needed type: -> enhancement versions: -Python 3.5 ___ Python tracker

[issue25912] Use __spec__.__name__ instead of __name__ in the docs where appropriate

2015-12-20 Thread Brett Cannon
Brett Cannon added the comment: Trick with all of these suggestions is going to be thinking through compatibility issues from the change (which also means it can only apply to the default branch). -- nosy: +brett.cannon ___ Python tracker

How to ignore error with anon-zero exit status

2015-12-20 Thread Ganesh Pal
def run_scanner(): """ Mount /filesystems and run scanner """ for cmd in [" mount /filesystems ", " scanner_start"]: try: out, err, ret = run(cmd, timeout=3600) if ret != 0: logging.error("Can't run %s got %s (%d)!" % (cmd, err,

[issue25768] compileall functions do not document or test return values

2015-12-20 Thread Brett Cannon
Brett Cannon added the comment: The patch LGTM, Nicholas! I'll commit it when I have a chance. As for docs on test_importlib, nothing in the tests directory is documented to prevent people from depending on it since all the code in that directory is explicitly meant for testing Python and not

[issue25768] compileall functions do not document or test return values

2015-12-20 Thread Nicholas Chammas
Nicholas Chammas added the comment: Alright, sounds good to me. Thank you for guiding me through the process! -- ___ Python tracker ___

[issue25752] asyncio.readline - add customizable line separator

2015-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: ReadStream.read_until() has been implemented instead enhancing readline(). -- resolution: -> wont fix ___ Python tracker

[issue25902] Fixed various refcount issues in ElementTree iteration

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Added tests. -- Added file: http://bugs.python.org/file41373/etree_iter_refcount_2.patch ___ Python tracker ___

[issue21579] Python 3.4: tempfile.close attribute does not work

2015-12-20 Thread Марк Коренберг
Марк Коренберг added the comment: ping. THis is essential in our software, so we use private field in order to work-around this bug. -- ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread R. David Murray
Changes by R. David Murray : -- versions: -Python 3.3, Python 3.4 ___ Python tracker ___

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread R. David Murray
Changes by R. David Murray : -- stage: patch review -> commit review ___ Python tracker ___

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is not the only place where "string of bytes" or "byte string" is used as a synonym to "bytes object". -- nosy: +serhiy.storchaka ___ Python tracker

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread R. David Murray
R. David Murray added the comment: Yes, and I think it would be good to consistently use "bytes object" or similar wording, to avoid confusion. But not high enough priority to do a hunt-and-fix (unless someone really feels like doing that). I've got a patch pending for fixing it in the

[issue25916] wave module readframes now returns bytes not str

2015-12-20 Thread SilentGhost
SilentGhost added the comment: Here is the patch replacing exact match 'string of bytes' with :class:`bytes` where appropriate. No match was found in base64. -- Added file: http://bugs.python.org/file41375/issue25916_2.diff ___ Python tracker

[issue25766] __bytes__ doesn't work for str subclasses

2015-12-20 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___