[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. The only difference is that PyUnicode_AsDecodedUnicode fails for most encodings (except rot13), but PyUnicode_AsDecodedObject just crashes in debug build. It seems to me that these functions (as well as PyUnicode_AsEncodedUnicode) shouldn't exist it

[issue28426] PyUnicode_AsDecodedObject can only return unicode now

2016-10-12 Thread Xiang Zhang
New submission from Xiang Zhang: PyUnicode_AsDecodedObject was added in f46d49e2e0f0 and became an API in 2284fa89ab08. It seems its intention is to return a Python object. But during evolution, with commits 5f11621a6f51 and 123f2dc08b3e, it can only return unicode now, becoming another

Re: [TIP] testfixtures 4.11.0 Released!

2016-10-12 Thread Chris Withers
*sigh*, it's 4.11.0 that was released with these changes... On 12/10/2016 17:06, Chris Withers wrote: Hi All, I'm pleased to announce the release of testfixtures 4.10.1 featuring the following: - Allow the attributes returned in LogCapture.actual() rows to be specified. - Allow a default

RE: smtplib TimeoutError not catch

2016-10-12 Thread Joaquin Alzola
>Not surprisingly, the exception you should catch is simply TimeoutError: >try: >server.sendmail(sender, receivers, msg.as_string()) >except TimeoutError as e: >print("SMTP could not be contacted: %s" % e) >finally: > server.quit() The error was thrown by

Re: Scripting Help please

2016-10-12 Thread Terry Reedy
On 10/12/2016 4:37 PM, LongHairLuke wrote: Hi l am on my way to make a bot for the game Piano Tiles 2. But the code l have written so far saids invalid syntax at 2nd line. Here is my code: If you want to write Python code, start by working through the tutorial included with the docs. --

[issue28425] Python3 ignores __init__.py that are links to /dev/null

2016-10-12 Thread Douglas Greiman
New submission from Douglas Greiman: This manifests in the following way: A package directory containing an __init__.py that is a symlink to /dev/null is treated as a namespace package instead of a regular package. The Bazel build tool creates many __init__.py files in this way, which is how

Re: Python-based monads essay (Re: Assignment versus binding)

2016-10-12 Thread Steve D'Aprano
On Wed, 12 Oct 2016 11:52 pm, Gregory Ewing wrote: > Steven D'Aprano wrote: >> "the implementation is free to use in-place mutations of the state object >> – ... without letting anyone know that the implementation has given up >> any functional purity." > > If it's impossible to tell that

[issue28424] pkgutil.get_data() doesn't work with namespace packages

2016-10-12 Thread Douglas Greiman
New submission from Douglas Greiman: pkg_util.get_data('mypackage', 'resourcename') returns None if 'mypackage' is a namespace package, because the package object has no __file__ attribute. A shell script is attached to reproduce this. This is either a bug to be fixed (my preference) or

[issue28423] list.insert(-1,value) is wrong!

2016-10-12 Thread Tim Peters
Tim Peters added the comment: It's fine. Read the docs. "s.insert(i, x) inserts x into s at the index given by i (same as s[i:i] = [x])" Note that: >>> fred[-1:] [4] So the empty slice s[-1:-1] is _between_ 3 and 4 in `fred`. If you're not surprised by >>> fred[-1] 4 then you shouldn't

[issue28423] list.insert(-1,value) is wrong!

2016-10-12 Thread stephen
New submission from stephen: python3.4.3 on linux mint 17.3 interactive mode on terminal >>> fred=[0,1,2,3,4] >>> fred.insert(-1,9) >>> fred [0, 1, 2, 3, 9, 4] We should get [0,1,2,3,4,9]. Embarrassing error! -- messages: 278541 nosy: unklestephen priority: normal severity: normal

Re: Scripting Help please

2016-10-12 Thread Wildman via Python-list
On Wed, 12 Oct 2016 20:48:31 +, alister wrote: > On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote: > >> Hi l am on my way to make a bot for the game Piano Tiles 2. >> But the code l have written so far saids invalid syntax at 2nd line. >> Here is my code: >> >> >> >> while True: >>

Re: How to process syntax errors

2016-10-12 Thread Terry Reedy
On 10/12/2016 5:59 AM, mr.puneet.go...@gmail.com wrote: # I created a platform class with different method in a file > # and making it as a package. class platform: def connect(self): # connect device def destroy(self): # destroy device def config(self, command):

Re: Scripting Help please

2016-10-12 Thread alister
On Wed, 12 Oct 2016 13:37:23 -0700, LongHairLuke wrote: > Hi l am on my way to make a bot for the game Piano Tiles 2. > But the code l have written so far saids invalid syntax at 2nd line. > Here is my code: > > > > while True: >If active then > FFSnapShot(areaX, areaY + height -

Scripting Help please

2016-10-12 Thread LongHairLuke
Hi l am on my way to make a bot for the game Piano Tiles 2. But the code l have written so far saids invalid syntax at 2nd line. Here is my code: while True: If active then FFSnapShot(areaX, areaY + height - offsetBottom, areaX + width, areaY + height - offsetBottom, sid) For

[issue26980] The path argument of asyncio.BaseEventLoop.create_unix_connection is not documented

2016-10-12 Thread Марк Коренберг
Марк Коренберг added the comment: It will be nice if someone also adds if abstract UNIX sockets are supported. And also about bytes/str path support. -- nosy: +mmarkk ___ Python tracker

[issue18378] locale.getdefaultlocale() fails on Mac OS X with default language set to English

2016-10-12 Thread László Károlyi
László Károlyi added the comment: OSX Sierra + Python, the bug still exists. subscribing -- nosy: +karolyi ___ Python tracker ___

[issue21720] "TypeError: Item in ``from list'' not a string" message

2016-10-12 Thread Ben Finney
Ben Finney added the comment: On 12-Oct-2016, Nick Coghlan wrote: > In this case, I think just reporting the first failing item is fine, > and mentioning the type of that item in the error message is the > most useful additional information we can provide to make things > easier to debug. Yes;

Re: smtplib TimeoutError not catch

2016-10-12 Thread MRAB
On 2016-10-12 14:21, Joaquin Alzola wrote: Hi Guys Try to connect to the smtp via smtplib. The connection is down because the Firewall has not been open yet so the exception is something that should appear. Now I want to catch this timeout in case error happens in future. Here the exception

[issue26631] Unable to install Python 3.5.1 on Windows 10 - Error 0x80070643: Failed to install MSI package.

2016-10-12 Thread Skye
Skye added the comment: I am having the same issue. Currently do not have Python on my computer. Tried to fix by doing Method 1 here, no success: http://www.techpayee.com/failed-to-install-msi-package/ -- nosy: +SHarris ___ Python tracker

smtplib TimeoutError not catch

2016-10-12 Thread Joaquin Alzola
Hi Guys Try to connect to the smtp via smtplib. The connection is down because the Firewall has not been open yet so the exception is something that should appear. Now I want to catch this timeout in case error happens in future. Here the exception trace. [2016-10-12 14:14:06,289] ERROR in

[issue23297] Clarify error when ‘tokenize.detect_encoding’ receives text

2016-10-12 Thread Berker Peksag
Berker Peksag added the comment: It looks like this can also be fixed by issue 12486. -- nosy: +berker.peksag ___ Python tracker ___

[issue22502] after continue in pdb stops in signal.py

2016-10-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Fixed in issue 20766. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue20766] reference leaks in pdb

2016-10-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- stage: patch review -> resolved ___ Python tracker ___ ___

[issue26980] The path argument of asyncio.BaseEventLoop.create_unix_connection is not documented

2016-10-12 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report. I'm marking this as an easy documentation issue. BaseEventLoop is now AbstractEventLoop (87e3a58ed3c3) and the documentation of AbstractEventLoop.create_unix_connection() can be found in Doc/library/asyncio-eventloop.rst. Guido already

[issue20766] reference leaks in pdb

2016-10-12 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue20766] reference leaks in pdb

2016-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 31a2d270c0c3 by Xavier de Gaye in branch '3.5': Issue #20766: Fix references leaked by pdb in the handling of SIGINT handlers. https://hg.python.org/cpython/rev/31a2d270c0c3 New changeset 86a1905ea28d by Xavier de Gaye in branch '3.6': Issue

Re: How to process syntax errors

2016-10-12 Thread sohcahtoa82
On Wednesday, October 12, 2016 at 3:01:26 AM UTC-7, mr.pune...@gmail.com wrote: > Hi All > > Its really good to see that some discussion happening around this topic. > Sorry I was out from my work for sometime so couldn't follow up but I really > find it useful. It gives me good opportunity to

[issue28279] setuptools failing to read from setup.cfg only in Python 3.6

2016-10-12 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +jason.coombs ___ Python tracker ___ ___

Re: an other issue when installing python under Windows OS

2016-10-12 Thread eryk sun
On Wed, Oct 12, 2016 at 3:25 PM, eryk sun wrote: > On Wed, Oct 12, 2016 at 12:24 PM, Karlheinz Hoening wrote: >> >>on my iMac I have installed Windows (7) and I am now trying to install >>Python 3.5.2 (32-bit) under Windows OS. >>Every time after

Re: How to process syntax errors

2016-10-12 Thread Rob Gaddi
mr.puneet.go...@gmail.com wrote: > On Monday, October 10, 2016 at 7:45:40 PM UTC+5:30, mr.pune...@gmail.com > wrote: >> Hi >> >> Is there any way to capture syntax errors and process them ? I want to write >> a function which calls every time whenever there is syntax error in the >> program.

[issue28378] urllib2 does not handle cookies with `,`

2016-10-12 Thread SilentGhost
SilentGhost added the comment: On python2 you should be able to use Cookie module to parse cookies, rather than doing that manually. Commas are handled correctly there. On python3 the same functionality can be found in http.cookies. The SimpleCookie.load could be used directly to have the

Re: How to process syntax errors

2016-10-12 Thread Steve D'Aprano
On Thu, 13 Oct 2016 12:46 am, Pierre-Alain Dorange wrote: > Terry Reedy wrote: > >> > Using this function, the code is "compiled". >> > I do not think this function is often used and most python project >> > simply use the interpreter (which do a small translation into

[issue17305] IDNA2008 encoding missing

2016-10-12 Thread Cory Benfield
Changes by Cory Benfield : -- nosy: +Lukasa ___ Python tracker ___ ___ Python-bugs-list

testfixtures 4.11.0 Released!

2016-10-12 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 4.10.1 featuring the following: - Allow the attributes returned in LogCapture.actual() rows to be specified. - Allow a default to be specified for encoding in TempDirectory.read() and TempDirectory.write(). The package is on

Re: an other issue when installing python under Windows OS

2016-10-12 Thread eryk sun
On Wed, Oct 12, 2016 at 12:24 PM, Karlheinz Hoening wrote: > >on my iMac I have installed Windows (7) and I am now trying to install >Python 3.5.2 (32-bit) under Windows OS. >Every time after having 'repaired' with the installation procedere I >receive the

[issue26944] android: test_posix fails

2016-10-12 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for the patch David, see my comment in Rietveld. New patch based on David patch, just a bit simpler. -- stage: patch review -> commit review versions: +Python 3.7 Added file: http://bugs.python.org/file45067/test_getgroups_4.patch

Re: How to process syntax errors

2016-10-12 Thread Chris Angelico
On Thu, Oct 13, 2016 at 12:46 AM, Pierre-Alain Dorange wrote: > Terry Reedy wrote: > >> > Using this function, the code is "compiled". >> > I do not think this function is often used and most python project >> > simply use the interpreter

[issue21720] "TypeError: Item in ``from list'' not a string" message

2016-10-12 Thread Nick Coghlan
Nick Coghlan added the comment: Right, Python 2.7 import is what it is at this point - if folks want something more modern, they can take a look at importlib2 :) In this case, I think just reporting the first failing item is fine, and mentioning the type of that item in the error message is

Re: How to process syntax errors

2016-10-12 Thread Pierre-Alain Dorange
Terry Reedy wrote: > > Using this function, the code is "compiled". > > I do not think this function is often used and most python project > > simply use the interpreter (which do a small translation into byte-code > > to be faster and check syntax error before running

Re: an other issue when installing python under Windows OS

2016-10-12 Thread Vlastimil Brom
2016-10-12 14:24 GMT+02:00 Karlheinz Hoening : >Hello all, > >on my iMac I have installed Windows (7) and I am now trying to install >Python 3.5.2 (32-bit) under Windows OS. >Every time after having 'repaired' with the installation procedere I >receive the

[issue28422] multiprocessing Manager mutable type member access failure

2016-10-12 Thread Vilnis Termanis
Changes by Vilnis Termanis : -- type: crash -> behavior ___ Python tracker ___

[issue28422] multiprocessing Manager mutable type member access failure

2016-10-12 Thread Vilnis Termanis
Changes by Vilnis Termanis : -- type: -> crash ___ Python tracker ___ ___

[issue28422] multiprocessing Manager mutable type member access failure

2016-10-12 Thread Vilnis Termanis
New submission from Vilnis Termanis: Accessing some Manager types (e.g. Lock) through a list, dict or Namespace proxy is not possible if both the mutable container (e.g. list) and contained type instance (e.g. Lock) have been created in the same process. Symptoms: In accessing process:

Re: Python-based monads essay (Re: Assignment versus binding)

2016-10-12 Thread Gregory Ewing
Steven D'Aprano wrote: "the implementation is free to use in-place mutations of the state object – ... without letting anyone know that the implementation has given up any functional purity." If it's impossible to tell that functional purity has been given up, then in what sense has it been

an other issue when installing python under Windows OS

2016-10-12 Thread Karlheinz Hoening
Hello all, on my iMac I have installed Windows (7) and I am now trying to install Python 3.5.2 (32-bit) under Windows OS. Every time after having 'repaired' with the installation procedere I receive the following message when starting Python 3.5:

[issue28415] PyUnicode_FromFromat interger format handling different from printf about zeropad

2016-10-12 Thread Antti Haapala
Antti Haapala added the comment: To be more precise, C90, C99, C11 all say that ~"For d, i, o, u, x and X conversions, if a precision is specified, the 0 flag will be ignored." -- nosy: +ztane ___ Python tracker

Re: Local variables to a function doesn't disapear after function execution. Why ?

2016-10-12 Thread ast
"Christian Gollwitzer" a écrit dans le message de news:ntl6in$on5$1...@dont-email.me... Am 12.10.16 um 13:18 schrieb ast: Because the Test() call does never terminate. You have the mainloop inside of your constructor. As long as this loop runs, your program exists. Try it

Re: Local variables to a function doesn't disapear after function execution. Why ?

2016-10-12 Thread Christian Gollwitzer
Am 12.10.16 um 13:18 schrieb ast: Hello, here is the small program: from tkinter import * class Test: def __init__(self): root = Tk() label = Label(root, text="this is a test") label.pack() root.mainloop() test=Test() I dont understand why this program works.

Local variables to a function doesn't disapear after function execution. Why ?

2016-10-12 Thread ast
Hello, here is the small program: from tkinter import * class Test: def __init__(self): root = Tk() label = Label(root, text="this is a test") label.pack() root.mainloop() test=Test() I dont understand why this program works. After execution of function

Re: How to process syntax errors

2016-10-12 Thread Steve D'Aprano
On Wed, 12 Oct 2016 08:59 pm, mr.puneet.go...@gmail.com wrote: > Now person who wants to write a script using above package can simply use > below approach. Which does not make him to have knowledge in python. > > DUT = platform() > DUT connect > DUT config {commands} > DUT show {commands} > DUT

Re: [RELEASE] Python 3.6.0b2 is now available

2016-10-12 Thread Robin Becker
On 11/10/2016 02:12, Ned Deily wrote: On behalf of the Python development community and the Python 3.6 release team, I'm happy to announce the availability of Python 3.6.0b2. 3.6.0b2 is the second of four planned beta releases of Python 3.6, the next major release of Python, and marks the end of

Re: while loop (Reposting On Python-List Prohibited)

2016-10-12 Thread BartC
On 12/10/2016 11:15, Peter Otten wrote: BartC wrote: On 12/10/2016 05:30, Lawrence D’Oliveiro wrote: On Wednesday, October 12, 2016 at 11:23:48 AM UTC+13, BartC wrote: while n>=x: n=n-1 print "*"* n else: print ("2nd loop exit n=",n,"x=",x) What is the difference between

[issue21720] "TypeError: Item in ``from list'' not a string" message

2016-10-12 Thread Berker Peksag
Berker Peksag added the comment: Well, I find using a for loop is a bit verbose in this case :) In Python 3.2: >>> __import__('encodings', fromlist=[b'aliases']) Traceback (most recent call last): File "", line 1, in TypeError: Item in ``from list'' not a string BytesWarning is there since

[issue28393] Update encoding lookup docs wrt #27938

2016-10-12 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The names are indeed case-insensitive. However, something important is missing: the implementation details changed between Python 3.5 and 3.6. Please check the implementation for details and update the documentation with versionadded flags. Thanks.

[issue28378] urllib2 does not handle cookies with `,`

2016-10-12 Thread Grzegorz Sikorski
Grzegorz Sikorski added the comment: I attach example express/nodejs server which by default returns a cookie with the comma (see expiry time format). The output from the python test file I posted in previous message is: ``` python test.py cookie1=exampleCookie; Path=/,

Re: repr/str diff between Python 2 and 3

2016-10-12 Thread Skip Montanaro
Thanks everyone. I'm not going to try to be too cute, and will just change my test case. I'm leaving Python 2 behind in this particular case for now anyway. I can always return to the issue if I decide I need Python 2.7 support at some point in the future. Skip --

[issue28378] urllib2 does not handle cookies with `,`

2016-10-12 Thread Grzegorz Sikorski
Grzegorz Sikorski added the comment: I was debugging this and found out that urllib2 works more-less correct. The only problem I would see is referring to the header by `res.headers['Set-Cookie']`, as it returns comma-separated string, which cannot be processed properly in case the cookie

[issue21720] "TypeError: Item in ``from list'' not a string" message

2016-10-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > How about raising a TypeError if ``all(isinstance(l, str) for l in > fromlist)`` is False? That would make the exception message less clearer > since we can't include the "[...] not 'bytes'" part though. for l in fromlist: if not isinstance(l,

Re: while loop (Reposting On Python-List Prohibited)

2016-10-12 Thread Peter Otten
BartC wrote: > On 12/10/2016 05:30, Lawrence D’Oliveiro wrote: >> On Wednesday, October 12, 2016 at 11:23:48 AM UTC+13, BartC wrote: >>> while n>=x: >>> n=n-1 >>> print "*"* n >>> else: >>> print ("2nd loop exit n=",n,"x=",x) >> >> What is the difference between that and >> >>

Re: How to process syntax errors

2016-10-12 Thread mr . puneet . goyal
On Monday, October 10, 2016 at 7:45:40 PM UTC+5:30, mr.pune...@gmail.com wrote: > Hi > > Is there any way to capture syntax errors and process them ? I want to write > a function which calls every time whenever there is syntax error in the > program. > > For example, > > inside example.py

Re: how to evaluate a ast tree and change Add to Multiply ?

2016-10-12 Thread meInvent bbird
i just expect to rewrite + become multiply by edit the example in the link provided but search no examples about this, feel unknown about args and keywords etc, do not know how to write this ast.Call(func=ast.Name(id='Add', ctx=ast.Load()), args=[node],

Re: how to evaluate a ast tree and change Add to Multiply ?

2016-10-12 Thread meInvent bbird
i use example here http://greentreesnakes.readthedocs.io/en/latest/examples.html On Wednesday, October 12, 2016 at 5:47:12 PM UTC+8, Chris Angelico wrote: > On Wed, Oct 12, 2016 at 8:32 PM, meInvent bbird wrote: > > class ChangeAddtoMultiply(ast.NodeTransformer): > >

[issue28421] lib/distutils/sysconfig.py fails to pick up Py_ENABLE_SHARED value

2016-10-12 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> third party stage: -> resolved ___ Python tracker ___

Re: How to process syntax errors

2016-10-12 Thread mr . puneet . goyal
Hi All Its really good to see that some discussion happening around this topic. Sorry I was out from my work for sometime so couldn't follow up but I really find it useful. It gives me good opportunity to know python better as I recently started learning python. Ok so I tell you why I need

Re: while loop (Reposting On Python-List Prohibited)

2016-10-12 Thread BartC
On 12/10/2016 05:30, Lawrence D’Oliveiro wrote: On Wednesday, October 12, 2016 at 11:23:48 AM UTC+13, BartC wrote: while n>=x: n=n-1 print "*"* n else: print ("2nd loop exit n=",n,"x=",x) What is the difference between that and while n>=x: n=n-1 print

how to faster to know which ast name or id we want to change?

2016-10-12 Thread meInvent bbird
how to faster to know which ast name or id we want to change? because i use ast.walk to print all nodes then i know the name + is Add if using cparser to parse linux kernel, it will be a very large -- https://mail.python.org/mailman/listinfo/python-list

[issue21720] "TypeError: Item in ``from list'' not a string" message

2016-10-12 Thread Berker Peksag
Berker Peksag added the comment: > Should we file a separate issue regarding the similarly vague error message > from hasattr() itself? +1 from me. It would be good to show users a user friendly message :) > BytesWarning: Comparison between bytes and string How about raising a TypeError if

Re: how to evaluate a ast tree and change Add to Multiply ?

2016-10-12 Thread Chris Angelico
On Wed, Oct 12, 2016 at 8:32 PM, meInvent bbird wrote: > class ChangeAddtoMultiply(ast.NodeTransformer): > """Wraps all integers in a call to Integer()""" > def visit_Num(self, node): > if isinstance(node.n, int): > return

how to evaluate a ast tree and change Add to Multiply ?

2016-10-12 Thread meInvent bbird
import sys import parser import ast from collections import deque class ChangeAddtoMultiply(ast.NodeTransformer): """Wraps all integers in a call to Integer()""" def visit_Num(self, node): if isinstance(node.n, int): return ast.Call(func=ast.Name(id='Add',

why solveset and dsolve do not have _fields for ast.walk?

2016-10-12 Thread meInvent bbird
Traceback (most recent call last): File "astgraphforsympy.py", line 86, in print get_func_calls(tree) File "astgraphforsympy.py", line 48, in get_func_calls for node in ast.walk(tree): File "C:\Python27\lib\ast.py", line 213, in walk todo.extend(iter_child_nodes(node)) File

[issue28421] lib/distutils/sysconfig.py fails to pick up Py_ENABLE_SHARED value

2016-10-12 Thread Takashi Matsuzawa
Takashi Matsuzawa added the comment: I further looked into my build environment. This particular pyconfig.h is generated by Yocto build toolchain, modifying the original flat pyconfig.h So, this issue may not be Pythons, but Yocto/OE's. -- status: open -> closed

Re: Python-based monads essay (Re: Assignment versus binding)

2016-10-12 Thread Steven D'Aprano
On Sunday 09 October 2016 18:48, Gregory Ewing wrote: > Here's the first part of the essay I said I'd write about > monads: > > http://www.cosc.canterbury.ac.nz/greg.ewing/essays/monads/DemystifyingMonads.html Quoting from the essay: "the implementation is free to use in-place mutations of

[issue28421] lib/distutils/sysconfig.py fails to pick up Py_ENABLE_SHARED value

2016-10-12 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: How is sysroots/qemux86/user/include/python2.7/pyconfig.h generated? In normal cases, there's no #include in pyconfig.h. -- nosy: +Chi Hsuan Yen ___ Python tracker

[issue28414] SSL match_hostname fails for internationalized domain names

2016-10-12 Thread Anton Sychugov
Anton Sychugov added the comment: Christian, thanks a lot for your comment and for patch you provide. It becomes much clearer. I'll be watching for #17305. -- ___ Python tracker

[issue28421] lib/distutils/sysconfig.py fails to pick up Py_ENABLE_SHARED value

2016-10-12 Thread Takashi Matsuzawa
New submission from Takashi Matsuzawa: I have been debugging for a couple of days to now why my extension module build fails with my Yocto 2.0 cross-build environment. (python version is 2.7, host is x86_64 and target is qemux86). The symptom is that LD flags -L and -lpython27 are not being

Re: repr/str diff between Python 2 and 3

2016-10-12 Thread Serhiy Storchaka
On 12.10.16 04:30, Skip Montanaro wrote: https://docs.python.org/3/whatsnew/3.1.html It's the third hit when searching for 'float'. Assuming I understand what it's saying. ;) Thanks. Is that the "David Gay's algorithm"? That seems to apply only to repr(), while the change I observed was in

[issue28417] va_end twice in PyUnicode_FromFormatV

2016-10-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6a6ac890db78 by Benjamin Peterson in branch '3.6': va_end vargs2 once (closes #28417) https://hg.python.org/cpython/rev/6a6ac890db78 New changeset 439427ffbba1 by Benjamin Peterson in branch 'default': merge 3.6 (#28417)