Re: Strict comparisons in Python 2

2015-10-13 Thread Terry Reedy
On 10/13/2015 9:43 AM, Steven D'Aprano wrote: In Python 3, comparisons between arbitrary types raise TypeError: py> None < 2 Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: NoneType() < int() In Python 2, that same comparison will arbitrarily return

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Nice. The only changes I had to make other than a doc change are 'Settings tab' to 'Extensions tab' and deletion of an line-ending space that got added in editing the extension doc string. We both need to remember to strip trailing whitespace, as it causes

[issue24782] Merge 'configure extensions' into main IDLE config dialog

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 334dc1abc8af by Terry Jan Reedy in branch '2.7': Issue #24782: Finish converting the Configure Extension dialog into a new https://hg.python.org/cpython/rev/334dc1abc8af New changeset 5647c61fb593 by Terry Jan Reedy in branch '3.4': Issue #24782:

Re: request

2015-10-13 Thread Zachary Ware
On Tue, Oct 13, 2015 at 5:45 AM, Uday Pethakamsetty wrote: > Hi > > I am working on python 2.x for long time. > > I thought of testing python 3.5 for possible usage. > > The problem is that when I installed python 3.5, all the pip installs are > directing to python

Re: How to handle attachments passed via Postfix

2015-10-13 Thread Burak Arslan
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 10/13/15 00:52, Anthony Papillion wrote: >> Check out the email.parser module, or the convenience function >> > email.message_from_string - you should be able to get at the >> > different parts (including attachments) from there. >> > > Many

[issue25194] Opt-in motivations & affiliations page for core contributors

2015-10-13 Thread Nick Coghlan
Nick Coghlan added the comment: I'm about to hop on a plane to PyCon Poland, so David, how about you just go ahead and add your entry? After some reflection, I've realised we probably don't want to be too prescriptive regarding the personal bios, and can instead let patterns & themes emerge

Re: Strong typing implementation for Python

2015-10-13 Thread m
W dniu 13.10.2015 o 03:35, Michael Torrie pisze: > On 10/12/2015 06:07 PM, Steven D'Aprano wrote: >> > Where is the "vast amounts of noise" added to the code? > Well in Java code for one. No wonder they require auto-completion. > Java class-based namespaces must be a nightmare to work with.

[issue25386] msvcrt_putch/msvcrt_putwch don't check the return value of _putch/_putwch

2015-10-13 Thread Eric V. Smith
Eric V. Smith added the comment: Although the function names have changed (I think due to Argument Clinic), the reported issue still applies to the current code: https://hg.python.org/cpython/file/tip/PC/msvcrtmodule.c#l309 I'll let other decide if the change is actually desirable. It would

Re: Strong typing implementation for Python

2015-10-13 Thread Laura Creighton
In a message of Mon, 12 Oct 2015 19:35:57 -0600, Michael Torrie writes: >On 10/12/2015 06:07 PM, Steven D'Aprano wrote: >> Where is the "vast amounts of noise" added to the code? > >Well in Java code for one. No wonder they require auto-completion. >Java class-based namespaces must be a nightmare

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue25384] Use _PyBytesWriter in the binascii module

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d6fcda2b9b5e by Victor Stinner in branch 'default': Issue #25384: Use _PyBytesWriter API in binascii https://hg.python.org/cpython/rev/d6fcda2b9b5e -- nosy: +python-dev ___ Python tracker

Re: Strong typing implementation for Python

2015-10-13 Thread Todd
On Oct 13, 2015 2:11 AM, "Steven D'Aprano" wrote: > > On Tue, 13 Oct 2015 04:20 am, Marko Rauhamaa wrote: > > > As for managing complexity, many people believe static typing is a > > crucial tool. I disagree. Static typing adds vast amounts of noise to > > the code. > > Only

[issue22684] message.as_bytes() produces recursion depth exceeded

2015-10-13 Thread Jan Malte
Jan Malte added the comment: Are there any news about this bug report? -- nosy: +janmalte ___ Python tracker ___

Python not working on my system

2015-10-13 Thread Cinto Llach
I'm sending you this email, as I'm having problems trying to install and use Python. I've been tryng to install Python on one System : HP Intel Core 2 Duo 4300, 1,8 GHz 2 Gb RAM Windows XP Professional SP 3 And I've got the following screens, with no visible Command Buttons. I've been

Re: Python not working on my system

2015-10-13 Thread Mathew Carrick
Hi Cinto, Python 3.5 does not work on Windows XP. Can you use Python 3.4 instead? Best, Mathew Carrick On Tue, Oct 13, 2015 at 12:10 AM, Cinto Llach wrote: > I’m sending you this email, as I’m having problems trying to install and > use Python. > > > > I’ve been tryng to

Re: Some Help getting started

2015-10-13 Thread Laura Creighton
In a message of Mon, 12 Oct 2015 16:58:40 -0600, Ian Kelly writes: >Just saying that it doesn't work doesn't help us help you. What >precisely have you tried, and what was the error that you got when you >tried it? What Ian said. Also what python version are you using and what OS? Laura --

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: Serhiy Storchaka added the comment: > Could you please look at proposed documentation changes? Sure, done. -- ___ Python tracker

User defined generic types and collections.abc

2015-10-13 Thread Martí Congost
I have a package that defines a variety of collections based on the ABCs provided by collections.abc (Mapping, Sequence, etc). I wanted to take advantage of the type hinting facilities introduced in Python 3.5, and I'm having doubts as to what would be the best way to go about it. Lets take one

Re: How to handle attachments passed via Postfix

2015-10-13 Thread Anthony Papillion
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 On October 13, 2015 2:04:09 AM CDT, Burak Arslan wrote: > > >On 10/13/15 00:52, Anthony Papillion wrote: >>> Check out the email.parser module, or the convenience function >>> > email.message_from_string - you should

ANN: Python Meeting Düsseldorf - 21.10.2015

2015-10-13 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Martí Congost Tapias
New submission from Martí Congost Tapias: Defining a union of typing.re.Pattern and anything that isn't AnyStr raises a TypeError exception. Example: from typing import Union, re def foo(pattern: Union[str, re.Pattern]) -> None: pass Exception traceback: Traceback (most recent call

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Xiang Zhang
Changes by Xiang Zhang <18518281...@126.com>: -- nosy: +xiang.zhang ___ Python tracker ___ ___

Re: Strong typing implementation for Python

2015-10-13 Thread Marko Rauhamaa
Laura Creighton : > When Design Patterns were new, the 2 of the first books to come out > were 'Design Patterns'[1995] which was C++ focused, and the 'Design > Patterns Smalltalk Companion'[1998]. If you read the two of them, side > by side (as DPSTC asks you to) you will be

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitous strings

2015-10-13 Thread Lewis Haley
New submission from Lewis Haley: Consider the following snippet: import difflib first = u'location,location,location' for second in ( u'location.location.location', # two periods (no commas) u'location.location,location', # period after first u'location,location.location', #

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Lewis Haley
Changes by Lewis Haley : -- title: difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitous strings -> difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

[issue25389] It crashes as long as I press "(parenthese)

2015-10-13 Thread IvenDong
New submission from IvenDong: Process: Python [1100] Path: /Applications/Python 3.5/IDLE.app/Contents/MacOS/Python Identifier:org.python.IDLE Version: 3.5.0rc4 (3.5.0rc4) Code Type: X86 (Native) Parent Process:??? [1]

Re: Strong typing implementation for Python

2015-10-13 Thread Steven D'Aprano
On Tue, 13 Oct 2015 06:55 pm, Todd wrote: > On Oct 13, 2015 2:11 AM, "Steven D'Aprano" wrote: >> Consider the following piece of code: >> >> def addone(x): >> return x + 1 >> >> >> The human programmer reading that can trivially infer that x must be a >> number (or at

[issue25381] Doc: Use of old description of raise in Python3

2015-10-13 Thread R. David Murray
R. David Murray added the comment: There's also the fact that the argument to raise can be an exception class, but the second element of sys.exc_info is still an instance of that class, which only occurred to me while reading your revised patch. -- stage: patch review -> needs patch

Strict comparisons in Python 2

2015-10-13 Thread Steven D'Aprano
In Python 3, comparisons between arbitrary types raise TypeError: py> None < 2 Traceback (most recent call last): File "", line 1, in TypeError: unorderable types: NoneType() < int() In Python 2, that same comparison will arbitrarily return True or False, according to some

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ionel Cristian Mărieș
Ionel Cristian Mărieș added the comment: I think those warning are about the fact that stuff that ain't in the packages list are added on PYTHONPATH. Not 100% sure tho. Nothing to do with MANIFEST.in (not used for develop). Plus it's more specific to setuptools (where develop is implemented)

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread R. David Murray
R. David Murray added the comment: In 3.4/3.5 a better fix would be to use EmailMessage instead of Message, and smtp.send_message instead of smtp.sendmail. That will do the right thing, where "the right thing" is defined as defaulting to utf-8 for both headers and body. A specific

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread R. David Murray
R. David Murray added the comment: To clarify: it will default to utf-8 encoded for email transport. (Since email now supports SMTPUTF8, what I said could have meant defaulting to that, which it does *not* do.) -- ___ Python tracker

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Allan Lewis
Changes by Allan Lewis : -- nosy: +Allan Lewis ___ Python tracker ___ ___

Re: Strict comparisons in Python 2

2015-10-13 Thread Ian Kelly
On Oct 13, 2015 7:48 AM, "Steven D'Aprano" wrote: > > In Python 3, comparisons between arbitrary types raise TypeError: > > py> None < 2 > Traceback (most recent call last): > File "", line 1, in > TypeError: unorderable types: NoneType() < int() > > > In Python 2, that

[issue25381] Doc: Use of old description of raise in Python3

2015-10-13 Thread Xiang Zhang
Xiang Zhang added the comment: Actually what I intend is that the exception object passed to raise is the exception instance raise finally throws (what is stored in the second variable). So it seems wise not to do any more for me. A single sentence has lead to confusion, not to mention more.

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ned Batchelder
Ned Batchelder added the comment: You are right that "develop" is from setuptools. The same messages appear with "sdist": $ python setup.py --quiet sdist no previously-included directories found matching 'doc/_build' no previously-included directories found matching

sorry for all the typos

2015-10-13 Thread Laura Creighton
re-reading what I wrote after Marko quoted it, I see an unacceptable level of typos and other sentence structure errors. I have eyedrops in my eyes today. I really cannot read what I type well enough. Amusing that my fingers find 'struct' a more reasonable thing to type than 'struck', (to me

Extended functions in embedded code

2015-10-13 Thread Ervin Hegedüs
Hello there, I'm interesting for the embeding of Python code - the examples and docs are very helpfully. The main code, which embeds the Python interpreter, had written in C. There are several functions, what I have to use in embedded (Python) code, so I must to write them as Python extension.

Re: Strong typing implementation for Python

2015-10-13 Thread Laura Creighton
In a message of Tue, 13 Oct 2015 13:31:56 +0100, Bartc writes: >On 13/10/2015 11:42, Marko Rauhamaa wrote: > >> A few years back I programmed in Java. I literally had to write (or >> generate) 2,000 lines of code to satisfy the structural requirements >> (interfaces, method stubs, javadocs, ...)

I have this programme (annotated) I want allow it to run more than once any tips or even better python code. :)

2015-10-13 Thread abbasmo
import time #this is so that i can set a timer print ("only print numbers as your answers (Round all numbers up): ") time.sleep(2) #this is to let the person know what format to write it in# answer = input ("enter the height of the room walls between 2 to 6 metres: ") #this is the first input

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ned Batchelder
New submission from Ned Batchelder: The MANIFEST.in file for coverage.py excludes directories line doc/_build. If I run "python setup.py --quiet develop", I get output like this: python3.5 setup.py --quiet develop no previously-included directories found matching 'doc/_build' no

Re: Extended functions in embedded code

2015-10-13 Thread Laura Creighton
Are you looking for this:? https://docs.python.org/3.5/library/runpy.html or maybe this:? https://docs.python.org/3.5/library/importlib.html#importlib.import_module Or is your real problem 'I don't have a filesystem'? Laura -- https://mail.python.org/mailman/listinfo/python-list

dont know if it sent sorry if it has

2015-10-13 Thread abbasmo
import time #this is so that i can set a timer print ("only print numbers as your answers (Round all numbers up): ") time.sleep(2) #this is to let the person know what format to write it in# answer = input ("enter the height of the room walls between 2 to 6 metres: ") #this is the first input

[issue25389] It crashes as long as I press "(parenthese)

2015-10-13 Thread Ned Deily
Ned Deily added the comment: Unfortunately, the version of Tcl/Tk shipped by Apple in OS X is old and buggy. Please install an updated version of Tcl/Tk 8.5, for example from ActiveState, as explained here: https://www.python.org/download/mac/tcltk/ -- resolution: -> third party

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Martí Congost Tapias
Changes by Martí Congost Tapias : -- components: +Library (Lib) -Interpreter Core ___ Python tracker ___

Re: Strong typing implementation for Python

2015-10-13 Thread Bartc
On 13/10/2015 11:42, Marko Rauhamaa wrote: A few years back I programmed in Java. I literally had to write (or generate) 2,000 lines of code to satisfy the structural requirements (interfaces, method stubs, javadocs, ...) before the code actually did anything. And this is the recommended

[issue9208] SMTPHandler in the logging module does not handle unicode strings

2015-10-13 Thread simon04
simon04 added the comment: I don't see why/how this should be fixed in Python 3. Using the example from msg109621 and Python 3.5.0, I get: --- Logging error --- Traceback (most recent call last): File "/usr/lib/python3.5/logging/handlers.py", line 985, in emit smtp.sendmail(self.fromaddr,

Re: Strict comparisons in Python 2

2015-10-13 Thread Random832
Ian Kelly writes: > You couldn't do this with a __future__ import because those must be > confined to the importing module and are therefore generally limited > to syntax changes. In principle, it could be a syntax change to the < operator (etc) to cause it to try to call

Re: Extended functions in embedded code

2015-10-13 Thread Ervin Hegedüs
Hi Chris, On Wed, Oct 14, 2015 at 02:05:43AM +1100, Chris Angelico wrote: > On Wed, Oct 14, 2015 at 1:59 AM, Ervin Hegedüs wrote: > > no, I have filesystem. I help to contribute a software, which had > > written in C. The configuration schema is very simple, there are > >

[issue25393] 'resource' module documentation error

2015-10-13 Thread Christos Georgiou
New submission from Χρήστος Γεωργίου (Christos Georgiou): https://docs.python.org/3.5/library/resource.html https://docs.python.org/3.5/library/resource.html#resource.RLIMIT_FSIZE ends with the sentence "This only affects the stack of the main thread in a multi-threaded process." I believe

[issue1353344] python.desktop

2015-10-13 Thread Shubham Dash
Changes by Shubham Dash : Added file: http://bugs.python.org/file40768/python.desktop ___ Python tracker ___

Re: Extended functions in embedded code

2015-10-13 Thread Ervin Hegedüs
Hi, On Tue, Oct 13, 2015 at 02:51:21PM +0200, Laura Creighton wrote: > Are you looking for this:? > https://docs.python.org/3.5/library/runpy.html I think I'm not - I'm afraid, the runpy modul wasn't developed for me, for this reason. > or maybe this:? >

Re: Extended functions in embedded code

2015-10-13 Thread Chris Angelico
On Wed, Oct 14, 2015 at 1:59 AM, Ervin Hegedüs wrote: > no, I have filesystem. I help to contribute a software, which had > written in C. The configuration schema is very simple, there are > several keywords, but not all required function could be > configure with them. Python

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: The failure is in the configglue test suite, but apparently also kazan and qutebrowser are also affected by this change. In the Launchpad bug there's a link to a librarian build log result. The problem is that doing the .get() requires that subclasses

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

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

Re: Extended functions in embedded code

2015-10-13 Thread Chris Angelico
On Wed, Oct 14, 2015 at 2:29 AM, Ervin Hegedüs wrote: >> >> Sounds to me like the easiest way would be to inject into the >> builtins. You should be able to import the builtins module from your C >> code, and then stuff some extra attributes into it; they'll be >> automatically

Re: Strict comparisons in Python 2

2015-10-13 Thread Ian Kelly
On Tue, Oct 13, 2015 at 9:24 AM, Random832 wrote: > Ian Kelly writes: >> You couldn't do this with a __future__ import because those must be >> confined to the importing module and are therefore generally limited >> to syntax changes. > > In

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Guido van Rossum
Guido van Rossum added the comment: Confirmed. The failure is because Pattern is _TypeAlias, which is not a type. But it should be allowed. I'll think of something. (Does mypy accept this?) -- nosy: +gvanrossum ___ Python tracker

[issue25390] Can't define a typing.Union containing a typing.re.Pattern

2015-10-13 Thread Guido van Rossum
Changes by Guido van Rossum : -- assignee: -> gvanrossum ___ Python tracker ___ ___

Re: Extended functions in embedded code

2015-10-13 Thread Emile van Sebille
On 10/13/2015 8:29 AM, Ervin Hegedüs wrote: Hi Chris, On Wed, Oct 14, 2015 at 02:05:43AM +1100, Chris Angelico wrote: Sounds to me like the easiest way would be to inject into the builtins. You should be able to import the builtins module from your C code, and then stuff some extra

Re: Some Help getting started

2015-10-13 Thread jogaserbia
Hi Glenn, Welcome to the community and thank you for creating this module. It's great you want to get this going in Python (3?). A couple of things: 1) I looked at the github repo. You do not have anything to be deployed there. Actually, that repo has nothing to do with python as of yet,

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread R. David Murray
R. David Murray added the comment: OK, so I guess it should be backed out in 3.4. But the since the patch does not change the signature of get, it seems like it is a legitimate change for 3.5. It is using the public API, after all. -- ___ Python

Re: Some Help getting started

2015-10-13 Thread jogaserbia
Forgot to mention. you might want to take a look at numpy and pandas for their structures. https://github.com/numpy/numpy https://github.com/pydata/pandas I always find it easier to look at something concrete. Ivan -- https://mail.python.org/mailman/listinfo/python-list

[issue25385] Spurious warning when compiling extension module

2015-10-13 Thread Steve Dower
Steve Dower added the comment: This should be fixed in numpy.distutils. The warning exists in distutils.msvccompiler, which is deprecated and only remains in case people were importing it directly (the only reference in the stdlib is the test suite). --

[issue25385] Spurious warning when compiling extension module

2015-10-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Do you have a reference or changeset to point to, so that the Numpy developers can understand easily what the issue is? -- ___ Python tracker

[issue25394] CoroWrapper breaks gen.throw

2015-10-13 Thread Chris Seto
Changes by Chris Seto : -- keywords: +patch Added file: http://bugs.python.org/file40770/corowrapper.diff ___ Python tracker ___

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread R. David Murray
R. David Murray added the comment: Or are you saying the existing code is actually depending on the old value of rawval, which is what Łukasz was worried about? -- ___ Python tracker

[issue25394] CoroWrapper breaks gen.throw

2015-10-13 Thread Chris Seto
New submission from Chris Seto: When asyncio.coroutines._DEBUG is set to True all coroutines are wrapped in a CoroWrapper. The definition of CoroWrapper.throw only excepts a single argument, exc. It should accept an exception info tuple as returned from sys.exc_info just as normal generators

request

2015-10-13 Thread Uday Pethakamsetty
Hi I am working on python 2.x for long time. I thought of testing python 3.5 for possible usage. The problem is that when I installed python 3.5, all the pip installs are directing to python 3.5, instead of my native python 2.7. I heard of a feature called pylauancher; but I didn't find any

[issue25396] A Python runtime not could be located.

2015-10-13 Thread Brian
New submission from Brian: Hello - I'm new to this community and an system error brings me here. Thank you all in advance for any help and support! I'm using a MacBook Pro (Retina, 15-inch, Late 2013) with OS 10.11 El Capitan. I receive the following error every 15-30 minutes:

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread R. David Murray
Changes by R. David Murray : -- nosy: +serhiy.storchaka stage: -> needs patch versions: +Python 3.6 ___ Python tracker ___

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-13 Thread Adam
Adam added the comment: Any comments about this proposed patch? -- ___ Python tracker ___ ___

[issue17908] Unittest runner needs an option to call gc.collect() after each test

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: While I like the idea of adding an option to force a garbage collection after running each time, I don't like how unittest is growing :-( It looks more and more like regrtest and I hate regrtest (I reworked its code recently to create a less ugly

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Doesn't crash on 3.4.3. Crashes on 3.5.0. The crash is reproduced with Python-only implementation of json, therefore it is not related to json. -- nosy: +haypo priority: normal -> high ___ Python tracker

Re: request

2015-10-13 Thread Laura Creighton
In a message of Tue, 13 Oct 2015 13:28:29 -0600, paul.hermeneu...@gmail.com wri tes: >On Oct 13, 2015 1:16 PM, "Uday Pethakamsetty" >wrote: > >> The problem is that when I installed python 3.5, all the pip installs are >directing to python 3.5, instead of my native

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: 3.6.0a0 (de982d8b7b15) #0 0x080e62a1 in _PyTrash_thread_destroy_chain () at Objects/object.c:2010 #1 0x080bf8b3 in frame_dealloc (f=f@entry=0x83f06e4) at Objects/frameobject.c:462 #2 0x080e3eef in _Py_Dealloc (op=op@entry=0x83f06e4) at

Re: Extended functions in embedded code

2015-10-13 Thread Ervin Hegedüs
Hi Chris, what I misses: currently I'm using Python 2.7. On Wed, Oct 14, 2015 at 02:48:57AM +1100, Chris Angelico wrote: > On Wed, Oct 14, 2015 at 2:29 AM, Ervin Hegedüs wrote: > >> > >> Sounds to me like the easiest way would be to inject into the > >> builtins. You should

Re: Extended functions in embedded code

2015-10-13 Thread Ervin Hegedüs
Hi, On Tue, Oct 13, 2015 at 08:55:42AM -0700, Emile van Sebille wrote: > On 10/13/2015 8:29 AM, Ervin Hegedüs wrote: > >Hi Chris, > > > >On Wed, Oct 14, 2015 at 02:05:43AM +1100, Chris Angelico wrote: > > >>Sounds to me like the easiest way would be to inject into the > >>builtins. You should be

[issue25392] setup.py --quiet doesn't silence "no previously-included directories" warnings from MANIFEST.in

2015-10-13 Thread Ben Finney
Changes by Ben Finney : -- nosy: +bignose ___ Python tracker ___ ___

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread Simonas Kazlauskas
New submission from Simonas Kazlauskas: cat attachment | python -m json.tool reliably makes python to SIGSEGV on Arch linux $ python --version Python 3.5.0 $ uname -a Linux kumabox 4.2.2-1-ARCH #1 SMP PREEMPT Tue Sep 29 22:21:33 CEST 2015 x86_64 GNU/Linux Does not fail on 2.7.10. --

[issue25370] Add support of pickling very large bytes and str objects with protocol < 4

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is preliminary patch. It doesn't include changes to tests. Some bigmem tests need to be changed. -- keywords: +patch stage: -> patch review Added file: http://bugs.python.org/file40774/pickle_large_strings.patch

[issue25395] SIGSEGV using json.tool

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: Can you post a GDB traceback? -- ___ Python tracker ___ ___

Pythran 0.7.2 is out!

2015-10-13 Thread serge guelton
(sorry for the double posting, if any) Dear pythraners and pythonistae (the latin plural for pythonista?) It is my pleasure to announce the release of Pythran 0.7.2, now available on - pypy: https://pypi.python.org/pypi/pythran - conda: https://anaconda.org/serge-sans-paille/pythran

Re: request

2015-10-13 Thread paul.hermeneutic
On Oct 13, 2015 1:16 PM, "Uday Pethakamsetty" wrote: > The problem is that when I installed python 3.5, all the pip installs are directing to python 3.5, instead of my native python 2.7. > Probably, this is because the Python 3 directories appears first in the PATH

Re: request

2015-10-13 Thread Mathew Carrick
Hi Uday, Pip should support using the pip{version} command to install version-specific packages. Try using pip2.7 to install 2.7 packages. Best, Mathew Carrick On Tue, Oct 13, 2015 at 2:45 AM, Uday Pethakamsetty < uday.pethakamse...@infor.com> wrote: > Hi > > > > I am working on python 2.x for

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___

[issue24980] Allow for providing 'on_new_thread' callback to 'concurrent.futures.ThreadPoolExecutor'

2015-10-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +bquinlan ___ Python tracker ___ ___

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Tim Peters
Tim Peters added the comment: Do note that this is not an "edit distance" (like Levenshtein) algorithm. It works as documented instead ;-) , searching (in effect recursively) for the leftmost longest contiguous matching blocks. Both "leftmost" and "contiguous" are crucial to understanding

[issue25382] pickletools.dis(): output memo id for MEMOIZE

2015-10-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> serhiy.storchaka resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue25385] Spurious warning when compiling extension module

2015-10-13 Thread Steve Dower
Steve Dower added the comment: Issue #23970 added the new compiler class, but all that really changed is that the module name is now distutils._msvccompiler. You *still* shouldn't access it except through distutils.ccompiler.new_compiler(compiler='msvc'), which is how it always was. I can't

[issue21159] configparser.InterpolationMissingOptionError is not very intuitive

2015-10-13 Thread R. David Murray
R. David Murray added the comment: By the way, I won't argue a lot if you say we should go for the strict backward compatibility view even in 3.5, I'm more raising the question. -- ___ Python tracker

[issue25382] pickletools.dis(): output memo id for MEMOIZE

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset d88526aa1b29 by Serhiy Storchaka in branch 'default': Issue #25382: pickletools.dis() now outputs implicit memo index for the https://hg.python.org/cpython/rev/d88526aa1b29 -- nosy: +python-dev ___

[issue25380] Incorrect protocol for the STACK_GLOBAL opcode

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

[issue14574] SocketServer doesn't handle client disconnects properly

2015-10-13 Thread Jason Morawski
Jason Morawski added the comment: Found another issue with this in 2.7 If the socket.error gets raised from the call to self.wfile.flush(), then when self.wfile.close() is called, self.wfile.flush() is called a second time if self.wfile._wbuf is not empty. This will raise the socket.error

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Documentation patch updated. -- Added file: http://bugs.python.org/file40771/pickle_new_ex_protocol_2_doc_2.patch ___ Python tracker

[issue25380] Incorrect protocol for the STACK_GLOBAL opcode

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset e52f1fa2d10e by Serhiy Storchaka in branch '3.4': Issue #25380: Fixed protocol for the STACK_GLOBAL opcode in https://hg.python.org/cpython/rev/e52f1fa2d10e New changeset 4115eabc3a6d by Serhiy Storchaka in branch '3.5': Issue #25380: Fixed

[issue25391] difflib.SequenceMatcher(...).ratio gives bad/wrong/unexpected low value with repetitious strings

2015-10-13 Thread Tim Peters
Tim Peters added the comment: BTW, the "leftmost longest contiguous" bit is messy to explain, so the main part of the docs don't explain it all (it's of no interest to 99.9% of users). Instead it's formally defined in the .find_longest_match() docs: """ If isjunk was omitted or None,

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread STINNER Victor
STINNER Victor added the comment: pickle_new_ex_protocol_2_doc_2.patch looks good to me. -- ___ Python tracker ___

[issue24164] Support pickling objects with __new__ with keyword arguments with protocol 2+

2015-10-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset de982d8b7b15 by Serhiy Storchaka in branch 'default': Issue #24164: Document changes to __getnewargs__ and __getnewargs_ex__. https://hg.python.org/cpython/rev/de982d8b7b15 -- ___ Python tracker

  1   2   >