[issue26519] Cython doesn't work anymore on Python 3.6

2016-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be this is the same issue as reported in msg257646. This was a bug in Cython and it is fixed now. -- nosy: +scoder ___ Python tracker

[issue26520] asyncio.new_event_loop() hangs

2016-03-09 Thread Erwin Mayer
New submission from Erwin Mayer: I am using the following function to force a coroutine to run synchronously: def await_sync(coro: types.CoroutineType, timeout_s: int=None): """ :param coro: a coroutine or lambda loop: coroutine(loop) :param timeout_s: :return: """ loop

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-09 Thread Julien
Julien added the comment: > It could be made into a link like the other use of Integral. I'll propose a patch. > The other uses are "integral float", which is *not* the same as an integer. > It is a float whose value is a whole number, and AFAIK "integral" is the > correct adjective for

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Wed, 9 Mar 2016 01:03 pm, Dennis Lee Bieber wrote: > On Wed, 09 Mar 2016 10:28:40 +1100, Steven D'Aprano > declaimed the following: > > >> >>Python will never expand \n to \r\n. But it may translate \r\n to \n. >> > Not on input, but it will on output (on Windows) That

[issue26519] Cython doesn't work anymore on Python 3.6

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: Oops, my commands to reproduce the bug were wrong. Commands to reproduce the bug: --- tar -xf mtrand.tar.gz # download mtrand.tar.gz attached to this issue ./python -m venv ENV ENV/bin/python -m pip install cython ENV/bin/python ENV/bin/cython --fast-fail

[issue26519] Cython doesn't work anymore on Python 3.6

2016-03-09 Thread STINNER Victor
New submission from STINNER Victor: I tried to run numpy test suite on Python 3.6 compiled in debug mode. I got an assertion error. Then I wanted to try the Git version of numpy, but the "Cythonizing sources" step of the numpy installer fails with: --- Traceback (most recent call last): File

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Chris Angelico
On Thu, Mar 10, 2016 at 2:33 AM, Steven D'Aprano wrote: > On Thu, 10 Mar 2016 01:54 am, Chris Angelico wrote: > >> I have a source of occasional text files that basically just dumps >> stuff on me without any metadata, and I have to figure out (a) what >> the encoding is, and

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Terry Reedy
On 3/9/2016 9:03 AM, BartC wrote: I've just tried a UTF-8 file and getting some odd results. With a file containing [three euro symbols]: €€€ (including a 3-byte utf-8 marker at the start), and opened in text mode, Python 3 gives me this series of bytes (ie. the ord() of each character): 239

ANN: Python 201 Book Kickstarter Campaign

2016-03-09 Thread Mike Driscoll
I am happy to announce my latest project, which is the sequel to my Python 101 book: Python 201 – Intermediate Python. I am launching a Kickstarter campaign to help fund its publication so if you’re interested in supporting, you can do so here:

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Thu, 10 Mar 2016 02:06 am, Jon Ribbens wrote: > On 2016-03-09, Steven D'Aprano wrote: >> generate the output. Without seeing the code you used, I have *no idea* >> how you could get that result. If you read the file in binary, you should >> get this: >> >>

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Thu, 10 Mar 2016 01:54 am, Chris Angelico wrote: > I have a source of occasional text files that basically just dumps > stuff on me without any metadata, and I have to figure out (a) what > the encoding is, and (b) what language the text is in. https://pypi.python.org/pypi/chardet > then I

Re: turtle ??

2016-03-09 Thread Terry Reedy
On 3/9/2016 2:39 AM, Ömer sarı wrote: import turtle # Allows us to use turtles wn = turtle.Screen() # Creates a playground for turtles alex = turtle.Turtle()# Create a turtle, assign to alex alex.forward(50) # Tell alex to move forward by 50 units

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Thu, 10 Mar 2016 01:39 am, BartC wrote: > This is the code: > > f=open("input","r") > t=f.read(1000) > f.close() If you don't give read an argument, it will try to read the entire file: t = f.read() > print ("T",type(t),len(t)) > print (t) > for i in t: > print (ord(i)) > > This

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-09 Thread Georg Brandl
Georg Brandl added the comment: There's two different uses here: The one use in "truncated to Integral" means that you get an integer type out. It is not specified to be `int` because `__trunc__` may return other types. It could be made into a link like the other use of Integral. The other

Public Service Announcement: planetpython.org

2016-03-09 Thread Tim Golden
For those who didn't know, we have a feed aggregator at https://planetpython.org. We're trying to clean up out-of-date or incorrect feed URLs. Planet Python config & (occasional) development happens on Github. So please check the Planet config files [1] to see if your blog is listed correctly, or

[issue20211] setup.py: do not add invalid header locations

2016-03-09 Thread Martin Hundebøll
Martin Hundebøll added the comment: The patch looks good to me, and works in my setup. -- nosy: +hundeboll ___ Python tracker ___

[issue26443] cross building extensions picks up host headers

2016-03-09 Thread Berker Peksag
Changes by Berker Peksag : -- stage: -> resolved superseder: -> setup.py: do not add invalid header locations ___ Python tracker

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Tim Golden
On 09/03/2016 15:06, Jon Ribbens wrote: > On 2016-03-09, Steven D'Aprano wrote: >> generate the output. Without seeing the code you used, I have *no idea* how >> you could get that result. If you read the file in binary, you should get >> this: >> >>

[issue26443] cross building extensions picks up host headers

2016-03-09 Thread Martin Hundebøll
Martin Hundebøll added the comment: Yes, it is a duplicate of #20211, and I agree with the fix proposed in there. Thanks for pointing it out. -- resolution: -> duplicate status: open -> closed ___ Python tracker

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Jon Ribbens
On 2016-03-09, Steven D'Aprano wrote: > generate the output. Without seeing the code you used, I have *no idea* how > you could get that result. If you read the file in binary, you should get > this: > > b'\xef\xbb\xbf\xe2\x82\xac\xe2\x82\xac\xe2\x82\xac' > > Or in decimal: >

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Chris Angelico
On Thu, Mar 10, 2016 at 1:57 AM, Steven D'Aprano wrote: > On Thu, 10 Mar 2016 01:11 am, Chris Angelico wrote: > >> The first three bytes are the "UTF-8 BOM", which suggests you may have >> created this in a broken editor like Notepad. > > Notepad may be horribly crippled, but

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Thu, 10 Mar 2016 01:03 am, BartC wrote: > On 09/03/2016 02:18, Steven D'Aprano wrote: >> On Wed, 9 Mar 2016 12:28 pm, BartC wrote: >> >>> (Which wasn't as painful as I'd expected. However the next project I >>> have in mind is 20K lines rather than 0.7K. For that I'm looking at some >>>

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Chris Angelico
On Thu, Mar 10, 2016 at 1:39 AM, BartC wrote: > On 09/03/2016 14:11, Chris Angelico wrote: >> >> On Thu, Mar 10, 2016 at 1:03 AM, BartC wrote: >>> >>> I've just tried a UTF-8 file and getting some odd results. With a file >>> containing [three euro symbols]: >>>

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Jon Ribbens
On 2016-03-09, BartC wrote: > (Isn't it better that it's automatic? Someone sends you a text file that > you want to open within a Python program. Are you supposed to analyze it > first, or expect the sender to tell you what it is (they probably won't > know) then need to hack

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Thu, 10 Mar 2016 01:11 am, Chris Angelico wrote: > The first three bytes are the "UTF-8 BOM", which suggests you may have > created this in a broken editor like Notepad. Notepad may be horribly crippled, but I'm not entirely sure "broken" is the right word for it. Does it do anything *wrong*?

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: In february 2016, I started a thread on the python-dev mailing list: [Python-Dev] Modify PyMem_Malloc to use pymalloc for performance https://mail.python.org/pipermail/python-dev/2016-February/143084.html M.-A. Lemburg wrote: """ > Do you see any drawback of

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread BartC
On 09/03/2016 14:11, Chris Angelico wrote: On Thu, Mar 10, 2016 at 1:03 AM, BartC wrote: I've just tried a UTF-8 file and getting some odd results. With a file containing [three euro symbols]: €€€ (including a 3-byte utf-8 marker at the start), and opened in text mode,

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-03-09 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file42103/pymem-3.patch ___ Python tracker ___

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: Patch 3: - Ooops, I updated pymem_api_misuse(), but I forgot to update the related unit test. It's now fixed. -- Added file: http://bugs.python.org/file42104/pymem-3.patch ___ Python tracker

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: Patch 3: - Ooops, I updated pymem_api_misuse(), but I forgot to update the related unit test. It's now fixed. -- Added file: http://bugs.python.org/file42103/pymem-3.patch ___ Python tracker

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: I created the issue #26516 "Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode" to help developers to detect bugs in their code, especially misuse of the PyMem_Malloc() API. -- ___

Re: turtle ??

2016-03-09 Thread Joel Goldstick
On Wed, Mar 9, 2016 at 6:55 AM, Steven D'Aprano wrote: > On Wed, 9 Mar 2016 08:06 pm, Peter Otten wrote: > > > Ömer sarı wrote: > > > >> l would like to ask a question as l m a little bit confused . > > > > In computing details matter, and in communication odd personal

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: When I wrote the PEP 445, I already proposed to add a new environment variable to install debug hooks on a Python compiled in release mode: https://www.python.org/dev/peps/pep-0445/#add-a-new-pydebugmalloc-environment-variable But the proposition was rejected

[issue26249] Change PyMem_Malloc to use pymalloc allocator

2016-03-09 Thread STINNER Victor
Changes by STINNER Victor : -- title: Change PyMem_Malloc to use PyObject_Malloc allocator? -> Change PyMem_Malloc to use pymalloc allocator ___ Python tracker

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: More complete patch (version 2): * Document PYTHONMALLOC environment variable * Add PYTHONMALLOC=debug to install debug hooks without forcing a specific memory allocator (keep the default memory allocator) * Fix sys._debugmallocstats() for PYTHONMALLOC=malloc:

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Chris Angelico
On Thu, Mar 10, 2016 at 1:03 AM, BartC wrote: > I've just tried a UTF-8 file and getting some odd results. With a file > containing [three euro symbols]: > > €€€ > > (including a 3-byte utf-8 marker at the start), and opened in text mode, > Python 3 gives me this series of bytes

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___

[issue26415] Fragmentation of the heap memory in the Python parser

2016-03-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- stage: -> patch review ___ Python tracker ___ ___

[issue26415] Fragmentation of the heap memory in the Python parser

2016-03-09 Thread A. Skrobov
A. Skrobov added the comment: The attached patch for the parser reduces "Maximum resident set size (kbytes)" threefold, for the degenerate example of 'import ast; ast.parse("0,"*100, mode="eval")', by eliminating many CST nodes that have a single child. According to the comment in node.c

[issue26494] Double deallocation on iterator exhausting

2016-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It crashes in debug build. -- ___ Python tracker ___ ___ Python-bugs-list

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread BartC
On 09/03/2016 02:18, Steven D'Aprano wrote: On Wed, 9 Mar 2016 12:28 pm, BartC wrote: (Which wasn't as painful as I'd expected. However the next project I have in mind is 20K lines rather than 0.7K. For that I'm looking at some mechanical translation I think. And probably some library to wrap

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset af2fc10f703b by Victor Stinner in branch '3.5': Issue #26516: Enhance Python mem allocators doc https://hg.python.org/cpython/rev/af2fc10f703b -- nosy: +python-dev ___ Python tracker

Re: Reason for not allowing import twice but allowing reload()

2016-03-09 Thread Steven D'Aprano
Sorry for the delay in answering! On Sat, 5 Mar 2016 11:51 pm, alien2u...@gmail.com wrote: > Steven, > >> There are better ways to manage your Python path than to manually insert >> paths into sys.path like that. What version of Python are you using? > > I would love to know, apart from

[issue26517] Crash in installer

2016-03-09 Thread Steve Dower
Steve Dower added the comment: Do you have any more details about this? A log file perhaps? With the current information there's nothing we can do to help you. -- ___ Python tracker

[issue26518] AttributeError: 'module' object has no attribute '_handlerList'

2016-03-09 Thread Berker Peksag
Berker Peksag added the comment: This doesn't look like an issue with the Python standard library. I think you should report this to pip. Also, why are you installing logging module on Python 2.7? The PyPI version of logging module is very old (last updated 2005). -- nosy:

[issue26518] AttributeError: 'module' object has no attribute '_handlerList'

2016-03-09 Thread Jools
New submission from Jools: AttributeError: 'module' object has no attribute '_handlerList' when trying to install any packages with pip. This one is with trying to install the logging package: http://pastebin.com/TCUpUMYn -- components: Library (Lib) messages: 261422 nosy: jools

[issue26517] Crash in installer

2016-03-09 Thread Jools
New submission from Jools: Crash when installing python 2.7.11 x64 edition out of the box. x86 version works. I chose to install for all users, and the system has write permissions to the folder (C:\bin\python27). -- components: Windows messages: 261421 nosy: jools, paul.moore,

Re: Python path

2016-03-09 Thread Steven D'Aprano
On Wed, 9 Mar 2016 06:29 pm, ast wrote: > Hello > > Python path may be read with: > import sys sys.path > > There is an environnement variable $PYTHONPATH (windows) > to set if you want to add some additionnal directories to the > path. > > But the default path seems not to be

Re: Question

2016-03-09 Thread Jon Ribbens
On 2016-03-08, Steven D'Aprano wrote: > On Wed, 9 Mar 2016 04:19 am, Ian Kelly wrote: >> On Mon, Mar 7, 2016 at 6:41 PM, Jon Ribbens >> wrote: >>> 'virtualenv' works even less well, it just says: >>> >>> $ virtualenv test >>> Using base prefix

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Marko Rauhamaa
Steven D'Aprano : > On Wed, 9 Mar 2016 05:08 pm, Marko Rauhamaa wrote: > >> Steven D'Aprano : >> >>> Possibly a really amateurish, lazy job, but still done. >>> >>> [...] Brilliant! I love helpful tools like that! >>> >>> How many years did you say you

Re: Question

2016-03-09 Thread Jon Ribbens
On 2016-03-09, Ian Kelly wrote: > It looks like the shell environment that comes with Git for Windows is > actually Windows Powershell [1], so presumably the activate.ps1 script > that's already provided by venv is what's needed, not a bash script. This is not true. I

Re: Review Request of Python Code

2016-03-09 Thread Matt Wheeler
On 9 March 2016 at 12:06, Matt Wheeler wrote: > But we can still do better. A list is a poor choice for this kind of > lookup, as Python has no way to find elements other than by checking > them one after another. (given (one of the) name(s) you've given it > sounds a bit like

[issue26494] Double deallocation on iterator exhausting

2016-03-09 Thread Filipp Andjelo
Filipp Andjelo added the comment: Hi Serhiy, I tried the short example you gave, but it doesn't crash. I'm getting: Exception ignored in: Traceback (most recent call last): File "./test.py", line 5, in __del__ next(it) StopIteration Exception ignored in: Traceback (most recent call

[issue26504] tclErr: invalid command name "PyAggImagePhoto"

2016-03-09 Thread Roger Mosher
Roger Mosher added the comment: It appears to be a problem with the Anaconda 3 distribution. See: https://groups.google.com/a/continuum.io/forum/#!topic/anaconda/xssOnleIPFw for a discussion. -- status: open -> closed ___ Python tracker

Re: Review Request of Python Code

2016-03-09 Thread Matt Wheeler
I'm just going to focus on a couple of lines as others are already looking at the whole thing: On 9 March 2016 at 04:18, wrote: > [snip]. > if word in a4: > [stuff] > elif word not in a4: >

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread BartC
On 09/03/2016 08:40, Mark Lawrence wrote: On 08/03/2016 23:59, Steven D'Aprano wrote: On Wed, 9 Mar 2016 06:15 am, BartC wrote: [...] But this was hardly necessary as it was so obvious: it takes 150ms to process a 300-pixel image, 20 seconds for a 2Mpixel one, and (I have to switch to PyPy

[issue25458] ftplib: command response shift - mismatch

2016-03-09 Thread Peter Pan
Peter Pan added the comment: Here is a small test for the new version. (To see the original ftplib.py version failing copy+paste the code from my initial post into a python file and run) -- Added file: http://bugs.python.org/file42100/test_ftp.py

Re: turtle ??

2016-03-09 Thread Steven D'Aprano
On Wed, 9 Mar 2016 08:06 pm, Peter Otten wrote: > Ömer sarı wrote: > >> l would like to ask a question as l m a little bit confused . > > In computing details matter, and in communication odd personal habits > distract from the actual message. Please reconsider your use of an "l" as > a

[issue25458] ftplib: command response shift - mismatch

2016-03-09 Thread Peter Pan
Peter Pan added the comment: I've updated "ftplib.py" from the 3.5.1 source code release. This should fix issues: http://bugs.python.org/issue25458 http://bugs.python.org/issue25491 -- Added file: http://bugs.python.org/file42099/ftplib.py ___

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Steven D'Aprano
On Wed, 9 Mar 2016 05:08 pm, Marko Rauhamaa wrote: > Steven D'Aprano : > >> Possibly a really amateurish, lazy job, but still done. >> >> [...] Brilliant! I love helpful tools like that! >> >> How many years did you say you have been programming? > > Let's keep it civil,

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: The motivation to support PYTHONMALLOC=malloc (always use malloc) and not just PYTHONMALLOC=debug (enable debug hooks) is to allow to use external memory debugger like Valgrind. Valgrind doesn't like pymalloc (pymalloc raises false alarms), we had to a

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: Example with Python compiled in release mode. By default, a buffer overflow is not detected. It may crash later, in a random place... $ ./python -c 'import _testcapi; _testcapi.pymem_buffer_overflow()' Enabling debug hooks detects the buffer overflow

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: The output of sys._debugmallocstats() contains different info: * Stats of type free lists * pymalloc stats * number of calls to memory allocators The available info depends on: * pymalloc disabled at compilation with ./configure --without-pymalloc * pymalloc

[issue26516] Add PYTHONMALLOC env var and add support for malloc debug hooks in release mode

2016-03-09 Thread STINNER Victor
New submission from STINNER Victor: Attached patch: - Add PYTHONMALLOC env var which accepts 4 values: * pymalloc: use pymalloc for PyObject_Malloc(), malloc for PyMem_Malloc() and PyMem_RawMalloc() * pymalloc_debug: pymalloc + debug hooks * malloc: use malloc for PyObject_Malloc(),

[issue9998] ctypes find_library should search LD_LIBRARY_PATH on linux

2016-03-09 Thread Pau Tallada
Pau Tallada added the comment: Any progress on this? It also affects installation of rtree (https://github.com/Toblerity/rtree/issues/56) -- nosy: +Pau Tallada ___ Python tracker

[issue26387] Crash calling sqlite3_close with invalid pointer

2016-03-09 Thread Filipp Andjelo
Filipp Andjelo added the comment: The issue26494 seems really suspicious, could be our case. And regarding my patch, nice to know, you are the same opinion. However, the code there is looking very strange. I really don't understand, why there are mutex guards anyway, since close() can only be

[issue26513] platform.win32_ver() broken in 2.7.11

2016-03-09 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: May be this is related to issue19143. -- nosy: +serhiy.storchaka ___ Python tracker ___

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-09 Thread Martin Panter
Martin Panter added the comment: Yes I agree it would be best to fix the bug(s) without major refactoring if practical. To fix the other bug, I think the parameters in read1(n) and readline(limit) need to be capped at self.length. The inherited BufferedIOBase.readlines() implementation

Re: Pickle __getstate__ __setstate__ and restoring n/w - beazley pg 172

2016-03-09 Thread Veek. M
dieter wrote: > "Veek. M" writes: > >> import socket >> class Client(object): >> def __init__(self,addr): >> self.server_addr = addr >> self.sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) >> self.sock.connect(addr) >> >> def __getstate__(self): >> return

Re: Review Request of Python Code

2016-03-09 Thread Friedrich Rentsch
On 03/09/2016 05:18 AM, subhabangal...@gmail.com wrote: Dear Group, I am trying to write a code for pulling data from MySQL at the backend and annotating words and trying to put the results as separated sentences with each line. The code is generally running fine but I am feeling it may be

Re: turtle ??

2016-03-09 Thread Peter Otten
Ömer sarı wrote: > l would like to ask a question as l m a little bit confused . In computing details matter, and in communication odd personal habits distract from the actual message. Please reconsider your use of an "l" as a replacement for "I". > l do practice > in "how to think like a

[issue26508] Infinite crash leading to DoS

2016-03-09 Thread STINNER Victor
STINNER Victor added the comment: "Then it is no bug that it crashes python?" The bug is your program creating inconsistent data. Without ctypes, you cannot create such inconsistent data. "Is a crash not a bug?" There are various ways to "crash" Python, but most of them are deliberate bugs.

[issue26177] tkinter: Canvas().keys returns empty strings.

2016-03-09 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue26177] tkinter: Canvas().keys returns empty strings.

2016-03-09 Thread Roundup Robot
Roundup Robot added the comment: New changeset d86891dee68a by Serhiy Storchaka in branch '3.5': Issue #26177: Fixed the keys() method for Canvas and Scrollbar widgets. https://hg.python.org/cpython/rev/d86891dee68a New changeset f0c895fb0374 by Serhiy Storchaka in branch '2.7': Issue #26177:

[issue26512] Vocabulary: Using "integral" in library/stdtypes.html

2016-03-09 Thread Julien
Julien added the comment: > In the contexts that you mentioned, "integral" is a synonym of "integer." Can you provide a source ? There's no mention of "integral" in the Wikipedia page of "integer" (but there's mentions of "integral element" and "integral domain" which are not synonyms for

Re: Pyhon 2.x or 3.x, which is faster?

2016-03-09 Thread Mark Lawrence
On 08/03/2016 23:59, Steven D'Aprano wrote: On Wed, 9 Mar 2016 06:15 am, BartC wrote: [...] But this was hardly necessary as it was so obvious: it takes 150ms to process a 300-pixel image, 20 seconds for a 2Mpixel one, and (I have to switch to PyPy here as I've never had time to hang about for

[issue26499] http.client.IncompleteRead from HTTPResponse read after part reading file

2016-03-09 Thread SilentGhost
SilentGhost added the comment: Here is the updated patch. I only included the additional fix for read1 since readlines is not overwritten in the HTTPConnection. Not sure how to write test for it, does it need a much longer body (compared to the one in tests) to produce this behaviour? The

[issue26513] platform.win32_ver() broken in 2.7.11

2016-03-09 Thread Florian Roth
Florian Roth added the comment: Confirmed. Version 2.7.11 64bit is erroneous too. Version 2.7.10 64bit works fine. I added the 64bit version screenshots to the shared dropbox folder. I'll downgrade all my projects to version 2.7.10 as the OS version detection is essential for proper

[issue26513] platform.win32_ver() broken in 2.7.11

2016-03-09 Thread Florian Roth
Florian Roth added the comment: I tested it on two different Windows 2008 R2 server systems. Same results. And I checked the issue by uninstalling 2.7.11 and installed 2.7.9 and 2.9.10 to verify. This means that not the system itself can be the problem. Please see screenshots:

Re: Pickle __getstate__ __setstate__ and restoring n/w - beazley pg 172

2016-03-09 Thread dieter
"Veek. M" writes: > import socket > class Client(object): > def __init__(self,addr): > self.server_addr = addr > self.sock = socket.socket(socket.AF_INET,socket.SOCK_STREAM) > self.sock.connect(addr) > > def __getstate__(self): > return self.server_addr > > def

[issue26513] platform.win32_ver() broken in 2.7.11

2016-03-09 Thread Florian Roth
Florian Roth added the comment: Screenshot 2.7.9 and platform.win32_ver() -- Added file: http://bugs.python.org/file42095/Screen Shot 2016-03-08 at 19.05.38.png ___ Python tracker

<    1   2