Re: manually build a unittest/doctest object.

2015-12-08 Thread Peter Otten
Vincent Davis wrote: > If I have a string that is python code, for example > mycode = "print('hello world')" > myresult = "hello world" > How can a "manually" build a unittest (doctest) and test I get myresult > > I have attempted to build a doctest but that is not working. > e =

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
New submission from Raymond Hettinger: On little-endian machines, the decoding of an oparg can be sped-up by using a single 16-bit pointer deference. Current decoding: leaq2(%rcx), %rbp movzbl -1(%rbp), %eax movzbl -2(%rbp), %r14d sall$8, %eax addl%eax, %r14d

[issue22341] Python 3 crc32 documentation clarifications

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. But while we are here, wouldn't be worth to unify the name of second parameter of binascii and zlib CRC calculation functions? And unify the description of crc_hqx() with other functions. -- ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: You have forgot to attach a patch. -- ___ Python tracker ___ ___

Re: writing an email.message.Message in UTF-8

2015-12-08 Thread Adam Funk
On 2015-12-08, dieter wrote: > Adam Funk writes: > >> I'm trying to write an instance of email.message.Message, whose body >> contains unicode characters, to a UTF-8 file. (Python 2.7.3 & 2.7.10 >> again.) >> >> reply = email.message.Message() >>

[issue25822] Add docstrings to fields of urllib.parse results

2015-12-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Results of urlsplit() and urlparse() functions in the urllib.parse module are named tuple with a number of fields. Since property docstrings are writable now (issue24064), we can provide docstrings for all these fields. See also issue24878. --

Re: Understanding Python from a PHP coder's perspective

2015-12-08 Thread Peter Otten
Chris Angelico wrote: > On Tue, Dec 8, 2015 at 8:59 AM, Ian Kelly wrote: >> On Mon, Dec 7, 2015 at 2:40 PM, Chris Angelico wrote: >>> So that's a quick potted summary of why the URLs don't reflect the >>> language used. Python is event-driven, but

Re: Understanding Python from a PHP coder's perspective

2015-12-08 Thread Chris Angelico
On Tue, Dec 8, 2015 at 8:24 PM, Peter Otten <__pete...@web.de> wrote: > Chris Angelico wrote: > >> On Tue, Dec 8, 2015 at 8:59 AM, Ian Kelly wrote: >>> On Mon, Dec 7, 2015 at 2:40 PM, Chris Angelico wrote: So that's a quick potted summary of why the

[issue23416] Make urllib.parse.SplitResult etc arguments optional

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I agree that it would be nice to have. But this feature has a cost. $ ./python -m timeit -s 'from urllib.parse import ParseResult' -- "ParseResult('http', 'u...@example.com:p...@www.python.org:080', '/doc/', '', 'query=yes', 'frag')" Unpatched: 1.61 usec

Re: writing an email.message.Message in UTF-8

2015-12-08 Thread Adam Funk
On 2015-12-07, Terry Reedy wrote: > On 12/7/2015 9:57 AM, Adam Funk wrote: >> I'm trying to write an instance of email.message.Message, whose body >> contains unicode characters, to a UTF-8 file. (Python 2.7.3 & 2.7.10 >> again.) > > The email package was rewritten for, I believe, 3.3. I

[issue21240] Add an abstactmethod directive to the Python ReST domain

2015-12-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d0d8b27a4e6 by Berker Peksag in branch '3.5': Issue #21240: Add an abstractmethod directive to mark abstract methods in the docs more explicitly https://hg.python.org/cpython/rev/1d0d8b27a4e6 New changeset 84468e1aea61 by Berker Peksag in branch

[issue1322] Deprecate platform.dist() and platform.linux_distribution() functions

2015-12-08 Thread Berker Peksag
Berker Peksag added the comment: We should probably delete the "will be removed in Python 3.7" part from the deprecation message to make porting from Python 2 easier. For example, we will add inspect.getargspec() back in 3.6. See issue 25486. --

Re[2]: Packages installing problem

2015-12-08 Thread lalith
Thank for reply.. some packages does not exist for windows. Thanks, Lalith. -- Original Message -- From: "Laura Creighton" To: "lalith" Cc: python-list@python.org; l...@openend.se Sent: 12/7/2015 9:21:19 PM Subject: Re: Packages installing problem

[issue24238] Avoid entity expansion attacks in Element Tree

2015-12-08 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka stage: -> patch review ___ Python tracker ___

Re: Python Script - Windows Task Scheduler - Logging

2015-12-08 Thread Laura Creighton
In a message of Mon, 07 Dec 2015 23:53:10 +, Raheel Rao writes: >Hello there,I created a python script that connects to an ftp and downloads >files to a specifed folder and logs each event in a log file. This script >works perfectly fine as i want it to however when i put this in a task

[issue21240] Add an abstactmethod directive to the Python ReST domain

2015-12-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks for reminding me of this issue, Brett. I have also updated numbers and selectors docs to use the new directive. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 -Python 3.4

[issue4709] Mingw-w64 and python on windows x64

2015-12-08 Thread Carl Kleffner
Carl Kleffner added the comment: The situation is not THAT bad. You can install a prerelease of mingwpy with pip: pip install -i https://pypi.anaconda.org/carlkl/simple mingwpy or with conda: (thanks to omnia-md) conda install -c https://conda.anaconda.org/omnia mingwpy It is not hosted

ANN: eGenix pyOpenSSL Distribution 0.13.12

2015-12-08 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.12 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface for

ANN: eGenix pyOpenSSL Distribution 0.13.12

2015-12-08 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.13.12 An easy-to-install and easy-to-use distribution of the pyOpenSSL Python interface for

Python Script - Windows Task Scheduler - Logging

2015-12-08 Thread Raheel Rao
Hello there,I created a python script that connects to an ftp and downloads files to a specifed folder and logs each event in a log file. This script works perfectly fine as i want it to however when i put this in a task scheduler, the script runs and downloads the file just fine except that

Re: storing test logs under /var/log/

2015-12-08 Thread Peter Otten
Ganesh Pal wrote: [Cameron Simpson:] >> Finally. sys.exit accepts an integer, not a string. > Most of code uses sys.exit("some error message") , I did notice > that the error message is not displayed by sys .exit("some error > message") , do u mean that using string is not advisable with

Re: Accessing container's methods

2015-12-08 Thread Tony van der Hoff
On 07/12/15 23:47, Erik wrote: Hi Tony, On 07/12/15 18:10, Tony van der Hoff wrote: A highly contrived example, where I'm setting up an outer class in a Has-a relationship, containing a number of Actors. The inner class needs to access a method of the outer class; here the method get_name.

Re: storing test logs under /var/log/

2015-12-08 Thread Ganesh Pal
> Finally. sys.exit accepts an integer, not a string. > Most of code uses sys.exit("some error message") , I did notice that the error message is not displayed by sys .exit("some error message") , do u mean that using string is not advisable with sys.exit ? How to I display error messages

Re: manually build a unittest/doctest object.

2015-12-08 Thread Chris Angelico
On Wed, Dec 9, 2015 at 1:04 AM, Vincent Davis wrote: > I also tried something like: > assert exec("""print('hello word')""") == 'hello word' I'm pretty sure exec() always returns None. If you want this to work, you would need to capture sys.stdout into a string: import

Problem

2015-12-08 Thread Namrah Anwar
Dear Administration, I am Namrah Anwar writing to you from Pakistan. I downloaded Python version 3.5.1 and 2.7 and after installation at first, upon opening again it asked for Modify, repair or uninstall options. I tried to fix it but could not. Can you please help me out how to fix this and why

Is Python a good choice for a data logger?

2015-12-08 Thread villascape
Let's say there are multiple data-loggers (PCs probably running Linux) behind various firewalls which communicate to other devices on their respective LAN via a proprietary protocol using UDP/IP to collect data. On perhaps a sixty second periodic basis, the data-loggers will send the data to a

Re: Accessing container's methods [solved]

2015-12-08 Thread Tony van der Hoff
Hum, sorry about the empty reply; just finger trouble! Anyway I wasn't expecting such a great response; thanks to all. On 07/12/15 23:47, Erik wrote: [snip] As you can't sensibly put the object into more than one container at a time anyway, then you can pass the container object to the Actor

Re: manually build a unittest/doctest object.

2015-12-08 Thread Laura Creighton
In a message of Tue, 08 Dec 2015 07:04:39 -0700, Vincent Davis writes: >On Tue, Dec 8, 2015 at 2:06 AM, Peter Otten <__pete...@web.de> wrote: > >> But why would you want to do that? > > >Thanks Peter, I want to do that because I want to test jupyter notebooks. >​The notebook is in JSON and I can

Re: Problem

2015-12-08 Thread Fabien
On 12/08/2015 04:03 PM, Namrah Anwar wrote: Dear Administration, I am Namrah Anwar writing to you from Pakistan. I downloaded Python version 3.5.1 and 2.7 and after installation at first, upon opening again it asked (snip) -- *Regards,Namrah Anwar* *PhD Student (Fellowship) - Cancer Biology -

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added patch. -- keywords: +patch Added file: http://bugs.python.org/file41268/improve_arg_decoding.diff ___ Python tracker

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
On Tue, Dec 8, 2015 at 2:06 AM, Peter Otten <__pete...@web.de> wrote: > But why would you want to do that? Thanks Peter, I want to do that because I want to test jupyter notebooks. ​The notebook is in JSON and I can get the source and result out but it was unclear to me how to stick this into a

Re: Help on for loop understanding

2015-12-08 Thread Robert
On Monday, December 7, 2015 at 10:24:09 PM UTC-5, Chris Angelico wrote: > On Tue, Dec 8, 2015 at 1:36 PM, Erik wrote: > > So, you can write your class's iterator to do anything that makes sense when > > someone says "for i in myclassinstance:". > > > > If your class is a subclass of a class

[issue15858] tarfile missing entries due to omitted uid/gid fields

2015-12-08 Thread Tom Lynn
Tom Lynn added the comment: I think issue24514 (fixed in Py2.7.11) is a duplicate of this issue. -- ___ Python tracker ___

Re: Problem

2015-12-08 Thread Laura Creighton
In a message of Tue, 08 Dec 2015 16:11:53 +0100, Fabien writes: >On 12/08/2015 04:03 PM, Namrah Anwar wrote: >> Dear Administration, >> >> I am Namrah Anwar writing to you from Pakistan. I downloaded Python version >> 3.5.1 and 2.7 and after installation at first, upon opening again it asked

Re: Is Python a good choice for a data logger?

2015-12-08 Thread Chris Angelico
On Wed, Dec 9, 2015 at 12:30 AM, wrote: > Is Python a good choice for the following: > > 1) The data-loggers to pole data and/or receive data from the UDP devices and > send the data to the server? > > 2) The daemon/application running on the server which receives the data

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
On Tue, Dec 8, 2015 at 2:06 AM, Peter Otten <__pete...@web.de> wrote: > >>> import doctest > >>> example = doctest.Example( > ... "print('hello world')\n", > ... want="hello world\n") > >>> test = doctest.DocTest([example], {}, None, None, None, None) > >>> runner =

Can one use Python 3.4 lzma library to initialize file_reader for a 7z file?

2015-12-08 Thread Anmol Dalmia
Hello all. I am trying to read lines from a compressed xml file in a 7z format contained archive. The native lzma library of Python 3.4 allows to do so, but I am not sure it does so for 7z files. I explored many threads and found very unsatisfactory answers such as this one.

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Arnaud Diederen
New submission from Arnaud Diederen: [First of all let me say I'm not all that familiar with Windows, so please let me know if the wording in my analysis below is not clear and/or misleading.] It would appear the 32-bit installer for Python 2.7.11 creates the registry key: ---

Re: manually build a unittest/doctest object.

2015-12-08 Thread Vincent Davis
On Tue, Dec 8, 2015 at 7:30 AM, Laura Creighton wrote: > >-- > >https://mail.python.org/mailman/listinfo/python-list > > Check out this: > https://pypi.python.org/pypi/pytest-ipynb > ​Thanks Laura, I think I read the descript as saying I could run untittests on source code from

Re: Problem

2015-12-08 Thread Laura Creighton
In a message of Tue, 08 Dec 2015 20:03:27 +0500, Namrah Anwar writes: >Dear Administration, > >I am Namrah Anwar writing to you from Pakistan. I downloaded Python version >3.5.1 and 2.7 and after installation at first, upon opening again it asked >for Modify, repair or uninstall options. I tried

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

Re: manually build a unittest/doctest object.

2015-12-08 Thread Peter Otten
Vincent Davis wrote: > On Tue, Dec 8, 2015 at 2:06 AM, Peter Otten <__pete...@web.de> wrote: > >> >>> import doctest >> >>> example = doctest.Example( >> ... "print('hello world')\n", >> ... want="hello world\n") >> >>> test = doctest.DocTest([example], {}, None, None, None, None) >> >>>

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Zachary Ware
Zachary Ware added the comment: Eryk is correct, there should be no -32 suffix in 2.7. It's simple enough to fix, just remove the last line Eryk quoted (and purge generated files from PC/). This is a pretty major bug; Benjamin and Steve, how do you want to deal with it? --

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Zachary Ware
Changes by Zachary Ware : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware ___ Python tracker ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In about a half cases next_instr points to unaligned 16-bit value. Not all platforms allow access to unaligned data. We need other test in additional to PY_LITTLE_ENDIAN to allow this optimization. -- nosy: +mark.dickinson

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Stefan Krah
Stefan Krah added the comment: Usually unaligned accesses are believed to carry a big performance penalty, though rumor has it that for the latest generation of CPUs this is no longer an issue. -- nosy: +skrah ___ Python tracker

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Doesn't this introduce undefined behaviour? The new code looks like a violation of the strict aliasing rule. (Or do we compile with `-fno-strict-aliasing` or the like?) -- ___ Python tracker

[issue21815] imaplib truncates some untagged responses

2015-12-08 Thread Lita Cho
Lita Cho added the comment: I apologize, I completely forgot. I will do it this week. Thanks for the reminder! -- ___ Python tracker ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: +tim.peters ___ Python tracker ___ ___

[issue25823] Speed-up oparg decoding on little-endian machines

2015-12-08 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file41269/improve_arg_decoding2.diff ___ Python tracker ___

Getting data out of Mozilla Thunderbird with Python?

2015-12-08 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 Hello Everyone, I have a TON of email (years) stored in my Thunderbird. My backup strategy for the last few years has been to periodically dump it all in a tar file, encrypt that tar file, and move it up to the cloud. That way, if my machine ever

Re: Accessing container's methods

2015-12-08 Thread Thomas 'PointedEars' Lahn
Erik wrote: Please fix, Erik #75656. > On 07/12/15 18:10, Tony van der Hoff wrote: >> A highly contrived example, where I'm setting up an outer class in a >> Has-a relationship, containing a number of Actors. The inner class needs >> to access a method of the outer class; here the method

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread David Edelsohn
New submission from David Edelsohn: AIX requires helper scripts to build Python shared extension modules. The definitions and Makefile installation rules have bitrotted. Makefile.pre.in: @if [ -s Programs/python.exp -a \ except python.exp is created in Modules/python.exp, not

Re: Getting data out of Mozilla Thunderbird with Python?

2015-12-08 Thread Thomas 'PointedEars' Lahn
Anthony Papillion wrote: > -BEGIN PGP SIGNED MESSAGE- Please don’t do that again. > I have a TON of email (years) stored in my Thunderbird. My backup > strategy for the last few years has been to periodically dump it all > in a tar file, encrypt that tar file, and move it up to the

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread David Edelsohn
Changes by David Edelsohn : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Steve Dower
Steve Dower added the comment: Needs a new release - up to Ben whether it's .12 or just a new .11. I can do the build today or this weekend, but not in between. -- ___ Python tracker

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread David Wahlund
New submission from David Wahlund: File "C:\Python34\lib\imaplib.py", line 536, in login typ, dat = self._simple_command('LOGIN', user, self._quote(password)) File "C:\Python34\lib\imaplib.py", line 1141, in _simple_command return self._command_complete(name, self._command(name,

Re: Accessing container's methods

2015-12-08 Thread Vincent Vande Vyvre
Le 08/12/2015 20:02, Thomas 'PointedEars' Lahn a écrit : Erik wrote: Please fix, Erik #75656. On 07/12/15 18:10, Tony van der Hoff wrote: A highly contrived example, where I'm setting up an outer class in a Has-a relationship, containing a number of Actors. The inner class needs to

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread Zachary Ware
Changes by Zachary Ware : -- stage: -> resolved type: crash -> behavior ___ Python tracker ___

[issue21815] imaplib truncates some untagged responses

2015-12-08 Thread Maciej Szulik
Maciej Szulik added the comment: Perfect, thanks! -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue13940] imaplib: Mailbox names are not quoted

2015-12-08 Thread Maciej Szulik
Maciej Szulik added the comment: siemer thx for the comments in the review. I'll try to address them by the end of this week. -- ___ Python tracker ___

[issue25826] imaplib can't process lines after starttls

2015-12-08 Thread David Wahlund
David Wahlund added the comment: Sorry, my bad... Using ImapClient that changed the socket to str. -- resolution: -> not a bug status: open -> closed ___ Python tracker

Re: Accessing container's methods

2015-12-08 Thread Mark Lawrence
On 08/12/2015 19:02, Thomas 'PointedEars' Lahn wrote: Erik wrote: Please fix, Erik #75656. Please fix what? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting data out of Mozilla Thunderbird with Python?

2015-12-08 Thread Mark Lawrence
On 08/12/2015 18:42, Thomas 'PointedEars' Lahn wrote: Anthony Papillion wrote: -BEGIN PGP SIGNED MESSAGE- Please don’t do that again. Says who? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --

Re: Accessing container's methods

2015-12-08 Thread Erik
Annoyingly, there seemed to be no responses to the original question when I wrote that and then shortly after, I saw all the others (and we all pretty much said the same thing - so I'm not sure why I was singled out for special attention ;)). On 08/12/15 19:02, Thomas 'PointedEars' Lahn

Shadowing built-ins [was Re: filter a list of strings]

2015-12-08 Thread Steven D'Aprano
On Wednesday 09 December 2015 09:58, Thomas 'PointedEars' Lahn wrote: > Mark Lawrence wrote: > >> On 03/12/2015 01:15, c.bu...@posteo.jp wrote: >>> I would like to know how this could be done more elegant/pythonic. >>> >>> I have a big list (over 10.000 items) with strings (each 100 to 300 >>>

[issue23200] Deprecate the zlib decompressor’s flush() method

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After reading zlib manual it looks to me that your are right, flush() has no other effect except a little less memory consumption. This can be not important in the context of Python. Hope Nadeem will confirm this. -- assignee: docs@python ->

META email [was Re: Getting data out of Mozilla Thunderbird with Python?]

2015-12-08 Thread Steven D'Aprano
On Wednesday 09 December 2015 05:42, Thomas 'PointedEars' Lahn wrote: [snip] Thomas, your sig says: Please do not cc me. / Bitte keine Kopien per E-Mail. but you have a Reply-To set. That implies that you want replies to be sent directly to you by email, not to the list or newsgroup. Is

[issue25827] Support ICC in configure

2015-12-08 Thread Zachary Ware
New submission from Zachary Ware: Attached is a patch that adds support for ICC to configure, making it easier to build with ICC on Unix and adjusting arguments to better fit ICC. - Adds '--with-icc' argument to configure, which sets 'CC=icc' and 'CXX=icpc' - Adds support for ICC PGO -

Re: Accessing container's methods

2015-12-08 Thread Thomas 'PointedEars' Lahn
Mark Lawrence wrote: > On 08/12/2015 19:02, Thomas 'PointedEars' Lahn wrote: >> Erik wrote: >> >> Please fix, Erik #75656. > > Please fix what? You are not ready for the answer yet. -- PointedEars Twitter: @PointedEars2 Please do not cc me. / Bitte keine Kopien per E-Mail. --

Re: Accessing container's methods

2015-12-08 Thread Thomas 'PointedEars' Lahn
Vincent Vande Vyvre wrote: > Le 08/12/2015 20:02, Thomas 'PointedEars' Lahn a écrit : >> Erik wrote: >>> Amongst other things, you can't put the object into multiple containers >> You can. Quickhack: ^ >> class Child: >> self._parents = [] >> >> def add_to_parent

[issue25807] test_multiprocessing_fork.test_mymanager fails and hangs

2015-12-08 Thread Toby Tobkin
Toby Tobkin added the comment: Do you have more information on the environment you're running tests on? I did not reproduce the crash by running the tests on a stock Ubuntu 14 64-bit. -- nosy: +tobytobkin ___ Python tracker

Re: storing test logs under /var/log/

2015-12-08 Thread Cameron Simpson
On 08Dec2015 13:24, Peter Otten <__pete...@web.de> wrote: Ganesh Pal wrote: [Cameron Simpson:] Finally. sys.exit accepts an integer, not a string. Most of code uses sys.exit("some error message") , I did notice that the error message is not displayed by sys .exit("some error message") ,

Re: filter a list of strings

2015-12-08 Thread Thomas 'PointedEars' Lahn
Mark Lawrence wrote: > On 03/12/2015 01:15, c.bu...@posteo.jp wrote: >> I would like to know how this could be done more elegant/pythonic. >> >> I have a big list (over 10.000 items) with strings (each 100 to 300 >> chars long) and want to filter them. >> >> list = . >> […] > > targets =

Re: Accessing container's methods

2015-12-08 Thread Ian Kelly
On Tue, Dec 8, 2015 at 3:37 PM, Erik wrote: > On 08/12/15 19:02, Thomas 'PointedEars' Lahn wrote: >> >> Erik wrote: >> >> Please fix, Erik #75656. > > > Fixed(*) [SNIP] > (*) In the sense that it's not going to change ;) Then I think you mean "Working as

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-12-08 Thread Nicholas Chammas
Nicholas Chammas added the comment: I know. I came across this issue after upgrading to the 3.5.1 release and seeing that vars(namedtuple) didn't work anymore. I looked through the changelog [0] for an explanation of why that might be and couldn't find one, so I posted that question on Stack

Re: Accessing container's methods

2015-12-08 Thread Chris Angelico
On Wed, Dec 9, 2015 at 10:41 AM, Ian Kelly wrote: > On Tue, Dec 8, 2015 at 3:37 PM, Erik wrote: >> On 08/12/15 19:02, Thomas 'PointedEars' Lahn wrote: >>> >>> Erik wrote: >>> >>> Please fix, Erik #75656. >> >> >> Fixed(*) > > [SNIP] > >> (*)

Re: Accessing container's methods

2015-12-08 Thread Mark Lawrence
On 08/12/2015 22:52, Thomas 'PointedEars' Lahn wrote: Mark Lawrence wrote: On 08/12/2015 19:02, Thomas 'PointedEars' Lahn wrote: Erik wrote: Please fix, Erik #75656. Please fix what? You are not ready for the answer yet. I'll be all pointed ears when you actually manage to provide

[issue24421] Race condition compiling Modules/_math.c

2015-12-08 Thread Martin Panter
Martin Panter added the comment: Here is an alternative patch to compile _math.c once from the main makefile, before the extension modules are built. I have only tested this on Linux, building in the source directory, and from a separate directory. -- versions: -Python 3.4 Added

[issue22341] Python 3 crc32 documentation clarifications

2015-12-08 Thread Martin Panter
Martin Panter added the comment: In crc-sign.v5.patch I have changed the binascii.crc_hqx() and crc32() documentation to use “value”, matching the zlib documentation. Is that what you had in mind? -- stage: -> patch review versions: +Python 3.6 Added file:

[issue25824] 32-bit 2.7.11 installer creates registry keys that are incompatible with the installed python27.dll

2015-12-08 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't really have the time to cut a new release in the next few weeks. On Tue, Dec 8, 2015, at 10:42, Steve Dower wrote: > > Steve Dower added the comment: > > Needs a new release - up to Ben whether it's .12 or just a new .11. I can > do the build today

[issue13317] building with 2to3 generates wrong import paths because build_ext is run after build_py

2015-12-08 Thread Swati Jaiswal
Swati Jaiswal added the comment: are you working on it @eric? -- nosy: +curioswati ___ Python tracker ___ ___

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2015-12-08 Thread Emanuel Barry
Changes by Emanuel Barry : -- versions: +Python 3.3, Python 3.4, Python 3.6 ___ Python tracker ___

[issue22341] Python 3 crc32 documentation clarifications

2015-12-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, thank you Martin. -- assignee: docs@python -> martin.panter stage: patch review -> commit review ___ Python tracker

[issue18597] On Windows sys.stdin.readline() doesn't handle Ctrl-C properly

2015-12-08 Thread Troy Hirni
Troy Hirni added the comment: I'm also experiencing this on Windows 8 and 10. In the bare example below, I can Ctrl-C to exit the loop. When I press Enter again, the exception at the bottom appears. try: while True: input("? ") except: pass >>> >>> try: ... while True: ...

[issue25820] Clean up run_gdb() calls

2015-12-08 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6902b2024d25 by Martin Panter in branch '3.5': Issue #25820: Remove unused assignment and redundant GDB CLI arguments https://hg.python.org/cpython/rev/6902b2024d25 New changeset 2e5fdb8a8874 by Martin Panter in branch 'default': Issue #25820:

[issue25825] AIX shared library extension modules installation broken

2015-12-08 Thread Martin Panter
Martin Panter added the comment: It looks like the Programs/python.exp change was done accidentally in revision 88a532a31eb3 (Issue 18093), so we should be safe reverting the relevant lines back to Modules/python.exp. The configure script currently sets

[issue25820] Clean up run_gdb() calls

2015-12-08 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-12-08 Thread Larry Hastings
Larry Hastings added the comment: You're a little late; 3.5.1 was released two days ago. -- ___ Python tracker ___

[issue24931] _asdict breaks when inheriting from a namedtuple

2015-12-08 Thread Nicholas Chammas
Nicholas Chammas added the comment: Should this change be called out in the 3.5.1 release docs? It makes some code that works on 3.5.0 break in 3.5.1. See: http://stackoverflow.com/q/34166469/877069 -- nosy: +Nicholas Chammas ___ Python tracker

[issue15858] tarfile missing entries due to omitted uid/gid fields

2015-12-08 Thread Martin Panter
Martin Panter added the comment: Yes I think you are right. With Python 3.5.0: $ python3 -c 'import tarfile; print(tarfile.open("bad.tar").getnames())' ['foo', 'foo/a'] $ python3 -m tarfile --list bad.tar foo/ foo/a The proposed fix here is slightly different: truncate from the first space,