[issue24598] asyncio: add background task detecting reference cycles

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Python 3.4 is able to break reference cycles even if an object part of the cycle has a destructor. See the PEP 442. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24598

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: As I wrote, glib switch from floats to integers to generate random numbers. To provide reproductible random numbers, an environment variable was added to select the old PRNG. Anyway, if we modify random.py, the generated numbers should be different, no? To me,

[issue24601] bytes and unicode splitlines() methods differ on what is a line break

2015-07-10 Thread Martin Panter
Martin Panter added the comment: * Issue 7643: Originally a complaint about the difference, but was closed after adding more differences! * Issue 22232: Documentation bug, but with some discussion on changing the API. Maybe a duplicate? * Issue 22233: Email and HTTP message parsing bug related

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: As I wrote, glib switch from floats to integers to generate random numbers. And as I wrote, this would be accepted in a feature release. Not necessarily a bugfix release. -- ___ Python tracker

[issue23601] use small object allocator for dict key storage

2015-07-10 Thread Julian Taylor
Julian Taylor added the comment: Your benchmarks are not affected by this change see the other issue. They are also not representative of every workload out there. I can at least see the argument why you didn't want to put the other variant of this change in as it made the code a tiny bit

EuroPython 2015 Keynote: Mandy Waite

2015-07-10 Thread M.-A. Lemburg
We are pleased to introduce our final keynote speaker for EuroPython 2015: Mandy Waite. She will be giving her keynote on Friday, July 24. About Mandy Waite - Mandy works at Google as a Developer Advocate for Google Cloud Platform and to make the world a better place for

Karlsruhe (Germany) Python User Group, July 17th 2015, 7pm

2015-07-10 Thread Jürgen A . Erhard
The Karlsruhe Python User Group (KaPy) meets again. Friday, 2015-07-17 (July 17th) at 19:00 (7pm) in the rooms of Entropia eV (the local affiliate of the CCC). See http://entropia.de/wiki/Anfahrt on how to get there. For your calendars: meetings are held monthly, on the 3rd Friday. There's

Re: [setuptools] install data-file in users home-dir

2015-07-10 Thread Chris Warrick
On 10 July 2015 at 03:11, c.bu...@posteo.jp wrote: I am using setuptools to create a wheel file. There is a conf-file I want to install into the users config-diretory. e.g. /home/user/.config/appname/app.conf setup(..., data_files = [ ('~/.config/appname/', ['app.conf']) ] )

[setuptools] install data-file in users home-dir

2015-07-10 Thread c.buhtz
I am using setuptools to create a wheel file. There is a conf-file I want to install into the users config-diretory. e.g. /home/user/.config/appname/app.conf setup(..., data_files = [ ('~/.config/appname/', ['app.conf']) ] ) I see two problems here: 1. I don't know the users name.

[issue18291] codecs.open interprets FS, RS, GS as line ends

2015-07-10 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- title: codecs.open interprets space as line ends - codecs.open interprets FS, RS, GS as line ends ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18291

[issue22232] str.splitlines splitting on non-\r\n characters

2015-07-10 Thread Martin Panter
Martin Panter added the comment: The main documentation has been updated and Issue 12855 has been closed. What is left to do here, considering this is marked as a documenation bug? Just modify the doc strings, as Terry suggested in https://bugs.python.org/issue22232#msg225766? --

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I propose to rewrite Random.randint() in random.py. If that would give a different sequence of random numbers, I'm not sure that's acceptable in a bugfix release. Raymond can shed a light. -- stage: - needs patch versions: -Python 3.2, Python 3.3,

[issue24603] New update of OpenSSL

2015-07-10 Thread Friedrich Spee von Langenfeld
New submission from Friedrich Spee von Langenfeld: The developers of OpenSSL have published a new update. It fixes a bug marked as severe (https://www.openssl.org/news/secadv_20150709.txt). It seems that we are using a vulnerable version. Could someone who knows the relevant files' locations

[issue24603] New update of OpenSSL

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Yes, read the discussion on python-dev: https://mail.python.org/pipermail/python-dev/2015-July/140706.html Christian Heimes wrote: 1.0.2c is only used in 3.5b3. The production builds are either using 1.0.2a or 1.0.1j. Should I understand that only Windows

Combing Search Engine with REST

2015-07-10 Thread subhabrata . banerji
Dear Group, I am trying to make a search engine. I used Whoosh to do it. I want to add documents to it. This is going fine. Now, I want to add documents in the index with REST framework. I could learn Flask well. My task is to use Flask to add documents (by using put/post) to index. I am

Re: Evaluation order

2015-07-10 Thread candide
Le vendredi 10 juillet 2015 04:02:56 UTC+2, Chris Angelico a écrit : I'm not sure what contradiction you're referring to, here. The evaluation that you're pointing out says, as Terry showed via the disassembly, that Python's first action is to look up the name 't' and grab a reference to

Re: Evaluation order

2015-07-10 Thread Terry Reedy
On 7/10/2015 8:04 AM, candide wrote: Le vendredi 10 juillet 2015 04:02:56 UTC+2, Chris Angelico a écrit : I'm not sure what contradiction you're referring to, here. The evaluation that you're pointing out says, as Terry showed via the disassembly, that Python's first action is to look up the

[issue24604] problem to install scipy manually on Centos 6

2015-07-10 Thread cbaud
New submission from cbaud: I'm working with the entreprise distribution Centos 6, unfortunatly the package pyhton3 proposed by the package manager yum isn't working. That why I had to install python manually, for that purpose I used pip3. Once again I had a problem with pip tool to install

The EuroPython 2015 Keynotes

2015-07-10 Thread M.-A. Lemburg
With Mandy Waite we have announced all keynotes for EuroPython 2015: 5 keynotes, 6 speakers, 4 women and 2 men. Keynote Schedule * Monday: Ola Sendecka Ola Sitarska * Tuesday: Guido van Rossum * Wednesday: Holger Krekel * Thursday: Carrie Anne * Friday: Mandy Waite More

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread beliavsky--- via Python-list
On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: With Mandy Waite we have announced all keynotes for EuroPython 2015: 5 keynotes, 6 speakers, 4 women and 2 men. Your mentioning these numbers makes me wonder if the organizing committee is using gender preferences in its

Re: Combing Search Engine with REST

2015-07-10 Thread Laura Creighton
In a message of Fri, 10 Jul 2015 04:46:25 -0700, subhabrata.bane...@gmail.com writes: Dear Group, I am trying to make a search engine. I used Whoosh to do it. I want to add documents to it. This is going fine. Now, I want to add documents in the index with REST framework. I could learn Flask

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Stefano Mazzucco
Stefano Mazzucco added the comment: Martin, thanks for elaborating my thoughts! I have dug I bit deeper in Python2's urllib code with pdb, and I think I have narrowed the issue down to what open_http does. In my example code, replacing opener.open(url) with opener.open_http(url) gives the

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Stefano Mazzucco
Stefano Mazzucco added the comment: Martin, I have applied the patch https://bugs.python.org/file31201 to my Python2.7.10 installation and seem to work OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24599

[issue16487] Allow ssl certificates to be specified from memory rather than files.

2015-07-10 Thread Martin Richard
Martin Richard added the comment: I'm not sure I know how to do this correctly: I lack of experience both with openssl C API and writing python modules in C. It may be more flexible, but unless the key is protected/crypted somehow, one would need a string or bytes buffer to hold the key when

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-10 Thread josch
New submission from josch: Hi, sometimes (but not reliably reproducibly, one has to run it a few times) I get a segmentation fault when running the following networkx based Python code on large input graphs:

Re: [setuptools] install data-file in users home-dir

2015-07-10 Thread Chris Angelico
On Sat, Jul 11, 2015 at 10:01 AM, c.bu...@posteo.jp wrote: On 2015-07-10 09:39 Chris Warrick kwpol...@gmail.com wrote: And you should not create the files in your install script. Instead, install them to a different data dir (somewhere in 'share/appname', or alongside your package). When

[issue24572] IDLE Text Output With ASCII Control Codes Not Working

2015-07-10 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - duplicate stage: - resolved status: open - closed superseder: - IDLE does not display \b backspace correctly. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24572

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Ned Deily
Ned Deily added the comment: I've also seen a crash in lru_cache_tp_traverse but with the 3.5.0b3 release build for the OS X 64-bit/32-bit installer. I just stumbled across the segfault by bringing up the interactive interpreter and typing import ssl. After a lot of playing around, I

[issue24570] IDLE Autocomplete and Call Tips Do Not Pop Up on OS X with ActiveTcl 8.5.18

2015-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: More tests might help pin down the bug. Here is the complete config for completions. [AutoComplete] enable=True popupwait=2000 [AutoComplete_cfgBindings] force-open-completions=Control-Key-space [AutoComplete_bindings] autocomplete=Key-Tab

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Ned Deily
Ned Deily added the comment: Process 51270 launched: './python' (x86_64) Process 51270 stopped * thread #1: tid = 0x5c8677, 0x0001000c1af8 python`_PyObject_Alloc(use_calloc=0, ctx=unavailable, nelem=unavailable, elsize=unavailable) + 24 at obmalloc.c:1170, queue = 'com.apple.main-thread',

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: -ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24606 ___ ___ Python-bugs-list mailing list

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Mark Lawrence
Mark Lawrence added the comment: FTR I can reproduce this on Windows 8.1 with 3.4.3 and 3.3.5 but not 2.7.10 or 2.6.6. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24606

[issue24572] IDLE Text Output With ASCII Control Codes Not Working

2015-07-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: Idle expands tabs to spaces, if asked to do so. It otherwise passes user code generated chars to tkinter, which passes them on to tk, which eventually passes them on to the OS gui widgets. I will say more on the existing issue. -- nosy: +terry.reedy

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread random832
The My Documents directory is not guaranteed to be named Documents. On older versions of windows it was My Documents, and on foreign versions of windows it is a name in their language. The correct way to get the path of this folder is, for example (couldn't test since I'm on a mac right now)

Re: [setuptools] install data-file in users home-dir

2015-07-10 Thread c.buhtz
On 2015-07-10 09:39 Chris Warrick kwpol...@gmail.com wrote: And you should not create the files in your install script. Instead, install them to a different data dir (somewhere in 'share/appname', or alongside your package). When someone runs your app, only then you should copy this file to

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This looks as a duplicate of issue14010. -- nosy: +serhiy.storchaka resolution: - duplicate stage: - resolved status: open - closed superseder: - deeply nested filter segfaults ___ Python tracker

[issue14010] deeply nested filter segfaults

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue24606 for another instance of this in map(). -- versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14010 ___

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Laura Creighton
Maybe HOMEPATH is what windows calls it? http://libertyboy.free.fr/computing/reference/envariables/ (but maybe this is only for windows XP. I don't have a windows system, so I cannot test this.) Laura -- https://mail.python.org/mailman/listinfo/python-list

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread MRAB
On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far:

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Mark Storkamp via Python-list
In article mailman.402.1436541332.3674.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's

Re: Combing Search Engine with REST

2015-07-10 Thread subhabangalore
On Friday, July 10, 2015 at 5:36:48 PM UTC+5:30, Laura Creighton wrote: In a message of Fri, 10 Jul 2015 04:46:25 -0700, writes: Dear Group, I am trying to make a search engine. I used Whoosh to do it. I want to add documents to it. This is going fine. Now, I want to add documents in

[issue24606] segfault caused by nested calls to map()

2015-07-10 Thread David Lukeš
New submission from David Lukeš: The following program makes Python 3.4.3 crash with a segmentation fault: ``` #!/usr/bin/env python3 import operator N = 50 l = [0] for i in range(N): l = map(operator.add, l, [1]) print(list(l)) ``` I suppose the problem is that there are too many

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: It looks more like a bug in networkx, than a bug in Python itself. networkx has probably issues with reference counter, concurrency (threads), or things like that. I'm unable to reproduce the crash on Python 3.4 (system binary from Fedora 22) or Python 3.6

Re: Evaluation order

2015-07-10 Thread Thierry Chappuis
Hi, No, the value of t is a reference to tje list. So first, (1) the value of the reference t is recovered, (2) the parenthesis is evaluated, (...) the whole expression is evaluated. To evaluate (2), the .sort() call is executed in place with the side effect of sorting the content of t. t.sort()

Re: Evaluation order

2015-07-10 Thread Thierry Chappuis
Hi, No, the value of t is a reference to tje list. So first, (1) the value of the reference t is recovered, (2) the parenthesis is evaluated, (...) the whole expression is evaluated. To evaluate (2), the .sort() call is executed in place with the side effect of sorting the content of t. t.sort()

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-10 Thread Ned Deily
Ned Deily added the comment: The Windows installer and the 32-bit-only OS X installer both have local copies of OpenSSL. At the moment, only the 3.5.0 betas have been released with 1.0.2. Setting to release blocker priority for 3.5.0b4. -- nosy: +benjamin.peterson, larry, ned.deily

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Tim Peters
Tim Peters added the comment: Anyway, if we modify random.py, the generated numbers should be different, no? Not in a bugfix release. The `min()` trick changes no results whatsoever on a box that doesn't do double-rounding. On a box that does do double-rounding, the only difference in

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Ok, it looks like most people are in favor of min(). Can anyone propose a patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24567 ___

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Martin Panter
Martin Panter added the comment: Perhaps you might be able to test out the patch https://bugs.python.org/file31201 to see if that fixes your problem? Though there is a good chance the patch needs updating, since it is fairly old. -- ___ Python

Re: Evaluation order

2015-07-10 Thread Ned Batchelder
On Friday, July 10, 2015 at 8:04:36 AM UTC-4, candide wrote: Le vendredi 10 juillet 2015 04:02:56 UTC+2, Chris Angelico a écrit : I'm not sure what contradiction you're referring to, here. The evaluation that you're pointing out says, as Terry showed via the disassembly, that

[issue24605] segmentation fault at asciilib_split_char.lto_priv

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Oh, networkx looks to be written in pure Python. You should search for a module implemented in C. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24605

Re: (side-)effects and ...

2015-07-10 Thread Chris Angelico
On Sat, Jul 11, 2015 at 12:05 AM, Skip Montanaro skip.montan...@gmail.com wrote: I'm not sure about X-No-Html. A quick Google search for that header returned nothing useful. Yeah. At best it seems redundant - Hey look, there's no HTML in this message! - but I suspect it's mainly bragging I can

Trouble getting to windows My Documents directory

2015-07-10 Thread Mark Storkamp via Python-list
I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far: - from tkinter import Tk from tkinter.filedialog import

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Mark Lawrence
On 10/07/2015 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better way to do this, but this is what I've tried so far:

[issue24603] Update OpenSSL to 1.0.2d in Windows and OS X installer

2015-07-10 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +Macintosh nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24603 ___

Re: (side-)effects and ...

2015-07-10 Thread Skip Montanaro
On Thu, Jul 9, 2015 at 9:05 PM, Chris Angelico ros...@gmail.com wrote: Even if it respects that, there's no way that Mailman can know to respect his ridiculous copyright restriction. Well, sure. But Mailman is probably not alone in this regard. In case it wasn't clear from Tony the Tiger's

[issue24599] urllib URLopener().open https url returns 501 Not Implemented when https_proxy env var is http://

2015-07-10 Thread Lukas Wunner
Lukas Wunner added the comment: Thank you Martin for referencing my patch. It still applies cleanly with --fuzz=0 to 2.7.10. Would be awesome if this fix would finally get merged. -- nosy: +l ___ Python tracker rep...@bugs.python.org

Re: Evaluation order

2015-07-10 Thread Chris Angelico
On Fri, Jul 10, 2015 at 10:04 PM, candide c.cand...@laposte.net wrote: But in order to perform an operation, the interpreter has to evaluate the operands and evaluating is not grabbing a reference to. Actually, it is. Suppose that instead of 't', you had a function call: def get_t(announce,

Re: [setuptools] install data-file in users home-dir

2015-07-10 Thread Chris Warrick
CC’ing the mailing list; please use Reply All in the future. On 10 July 2015 at 16:36, c.bu...@posteo.jp wrote: Hi Chris, thank you for your answer. On 2015-07-10 09:39 Chris Warrick kwpol...@gmail.com wrote: You should NEVER use sudo with pip. Instead, use virtualenvs as a regular user,

[issue24604] problem to install scipy manually on Centos 6

2015-07-10 Thread STINNER Victor
STINNER Victor added the comment: Sorry, this is the bug tracker of the Python language. See the http://www.scipy.org/ website to report bugs on scipy, thank you. -- nosy: +haypo resolution: - not a bug status: open - closed ___ Python tracker

Re: Evaluation order

2015-07-10 Thread Thierry Chappuis
Anyway, if we enter this kind of discussion, it is a reliable indication that the code smells. There is a pythonic way to express the same task: t.sort() t kind regards Thierry On ven., juil. 10, 2015 at 2:28 PM, Terry Reedy tjre...@udel.edu [tjre...@udel.edu] wrote: On 7/10/2015 8:04 AM,

Re: Evaluation order

2015-07-10 Thread Mark Lawrence
On 10/07/2015 15:30, Thierry Chappuis wrote: [snipped] Please don't top post here as it can get irritating, especially in long threads, thanks. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --

[issue23601] use small object allocator for dict key storage

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: Your benchmarks are not affected by this change see the other issue. Then you ran them, I assume? Could you show the output here that you got? They are also not representative of every workload out there. Certainly not, but they do provide a certain variety

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: I'm witnessing a crash in the C implementation during garbage collection. Interestingly, it only shows in the Py3.6 branch, not in Py3.5 (both latest). Here's the gdb session: Program received signal SIGSEGV, Segmentation fault. lru_cache_tp_traverse

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Rustom Mody
On Friday, July 10, 2015 at 11:18:57 PM UTC+5:30, Rustom Mody wrote: On Friday, July 10, 2015 at 8:56:48 PM UTC+5:30, Mark Storkamp wrote: MRAB wrote: On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Christophe Biocca
New submission from Christophe Biocca: Basically, some (malformed or empty?) WAV strings result in the empty string being returned when calling readframes. That string cannot be passed back to writeframes() without causing a crash, since it does not implement the buffer interface. --

Re: [setuptools] install data-file in users home-dir

2015-07-10 Thread c.buhtz
Hi Chris, thank you for your answer. On 2015-07-10 09:39 Chris Warrick kwpol...@gmail.com wrote: You should NEVER use sudo with pip. Instead, use virtualenvs as a regular user, or create your own .deb packages. I am not sure, but maybe this is an Ubuntu-specific problem? When I don't use

[issue24607] standardize sh module

2015-07-10 Thread Vitali Lovich
New submission from Vitali Lovich: The subprocess module provides a good foundation of basic functionality. However, anything moderately complex becomes cumbersome to write. Additionally, it has pitfalls that people frequently overlook. People then often either resort to hand-rolling their

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Rustom Mody
On Friday, July 10, 2015 at 8:56:48 PM UTC+5:30, Mark Storkamp wrote: MRAB wrote: On 2015-07-10 15:27, Mark Storkamp via Python-list wrote: I'm just learning Python, and I've run into trouble trying to change directory to the windows My Documents directory. There's likely a better

[issue24583] set.update(): Crash when source set is changed during merging

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: intermediary.diff LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24583 ___ ___ Python-bugs-list

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: self-root.next and self-root.prev should never be NULL. Could you please provide minimal example of code that produces a crash? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373

Re: Matplotlib X-axis timezone trouble

2015-07-10 Thread Peter Pearson
On Thu, 09 Jul 2015 19:50:33 GMT, Tony the Tiger tony@tiger.invalid wrote: On Tue, 30 Jun 2015 00:56:26 +, Peter Pearson wrote: If I use timezone US/Central, I get the same (bad) plot. Perhaps this can help?: http://stackoverflow.com/questions/1301493/setting-timezone-in-python Yes,

[issue22232] str.splitlines splitting on non-\r\n characters

2015-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: If this isn't already mentioned in 2 to 3 porting notes it is worth highlighting there. code which uses a str in python 2 and still uses a str in python 3 is now splitting on many more characters. That seems to be the source of bugs like issue22233.

[issue24601] bytes and unicode splitlines() methods differ on what is a line break

2015-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: hah, i should've searched the tracker first. looks like the other open issues cover this. -- resolution: - duplicate status: open - closed superseder: - str.splitlines splitting on non-\r\n characters versions: +Python 2.7, Python 3.4, Python 3.5,

[issue22233] http.client splits headers on non-\r\n characters

2015-07-10 Thread Gregory P. Smith
Gregory P. Smith added the comment: The obvious fix seems to be to not use splitlines but explicitly split on the allowed characters for ASCII based protocols and formats that only want \r and \n to be considered. I don't think we can rightfully change the unicode splitlines behavior.

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread Chris Angelico
On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list python-list@python.org wrote: On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: With Mandy Waite we have announced all keynotes for EuroPython 2015: 5 keynotes, 6 speakers, 4 women and 2 men. Your mentioning these

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e035639516c by Serhiy Storchaka in branch '3.4': Issue #24608: chunk.Chunk.read() now always returns bytes, not str. https://hg.python.org/cpython/rev/9e035639516c New changeset 64b2d154a5db by Serhiy Storchaka in branch '3.5': Issue #24608:

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - needs patch versions: +Python 3.5, Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24608

[issue24608] Certain inputs to wave.open() result in readframes returning a str instead of bytes

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you for your report Christophe. -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24608

[issue24567] random.choice IndexError due to double-rounding

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: There are other affected methods: randrange(), randint(), shuffle(), sample(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24567 ___

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: It's not actually my own code using the lru_cache here. From a quick grep over the code tree, the only potentially related usage I found was in Python's fnmatch module, on the _compile_pattern() function. Commenting that out then made the crash go away, so this

[issue24607] standardize sh module

2015-07-10 Thread Skip Montanaro
Skip Montanaro added the comment: While it's an interesting library, my fear is that people will start shelling out to all sorts of things which Python already has builtin. One of the examples on the github site was showing how to call ls. Another example invoked wc. neither of those is

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Tim Graham
Changes by Tim Graham timogra...@gmail.com: -- nosy: -Tim.Graham ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

[issue14373] C implementation of functools.lru_cache

2015-07-10 Thread Stefan Behnel
Stefan Behnel added the comment: test_fnmatch.py also passes, BTW. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

[issue24602] SRE_SEARCH Integer Underflow

2015-07-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This was fixed in issue18684. -- resolution: - out of date stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24602

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread beliavsky--- via Python-list
On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote: On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list python-list@python.org wrote: On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: With Mandy Waite we have announced all keynotes for EuroPython

[issue24609] shutil.copytree fails with symlinks to directories when symlink=False

2015-07-10 Thread Thomas Kluyver
New submission from Thomas Kluyver: shutil.copytree behaves differently with symlinks depending on the 'symlinks' parameter. If this is True, symlinks are replicated in the destination. If False, the contents of the targets are copied to the destination. With symlinks=False, it currently

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2015-07-10 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - berker.peksag nosy: +takluyver versions: +Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21697 ___

[issue24609] shutil.copytree fails with symlinks to directories when symlink=False

2015-07-10 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and the patch. This is a duplicate of issue 21697. Could you please attach the patch in that issue? -- nosy: +berker.peksag resolution: - duplicate stage: - resolved status: open - closed superseder: - shutil.copytree() handles

[issue21697] shutil.copytree() handles symbolic directory incorrectly

2015-07-10 Thread Thomas Kluyver
Thomas Kluyver added the comment: Here's my patch (I submitted the duplicate issue). I think it's functionally the same as Eduardo's, but it also adds a test. -- Added file: http://bugs.python.org/file39893/shutil_copytree_symlink_dir.patch ___

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread Jon Ribbens
On 2015-07-10, beliav...@aol.com beliav...@aol.com wrote: On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote: On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list python-list@python.org wrote: On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: With

Re: Trouble getting to windows My Documents directory

2015-07-10 Thread Tim Chase
On 2015-07-10 09:27, Mark Storkamp via Python-list wrote: sourcedir = os.environ['HOME']+/Documents/ First, I'd do a couple things here to accommodate various systems to make it cross-platform: sourcedir = os.path.join( os.path.expanduser('~'), Documents ) os.chdir(sourcedir)

[issue24607] standardize sh module

2015-07-10 Thread R. David Murray
R. David Murray added the comment: Indeed. If you want shell scripting, use a shell script. The advantage of python scripting is exactly that you are using non-shell, with explicit control of what gets substituted where rather than the shell's implicit rules. Regardless our our opinions,

Re: pygtk2 and colors

2015-07-10 Thread nickgeovanis
I may be phrasing this question improperly, but...If I need a canvas or canvas-like object, does GTK3/pygobject provide one? Or only GTK2/PyGTK? The answer seems to be only GTK2/PyGTK but the discussion I find online doesn't seem to have a clear answer. --

Re: The EuroPython 2015 Keynotes

2015-07-10 Thread Terry Reedy
On 7/10/2015 5:14 PM, beliavsky--- via Python-list wrote: On Friday, July 10, 2015 at 2:58:18 PM UTC-4, Chris Angelico wrote: On Fri, Jul 10, 2015 at 10:01 PM, beliavsky--- via Python-list python-list@python.org wrote: On Friday, July 10, 2015 at 7:21:14 AM UTC-4, M.-A. Lemburg wrote: With