Re: Python 3 on Mac OS X 10.8.4

2014-06-26 Thread Une Bévue
Le 19/06/2014 12:43, Andrew Jaffe a écrit : The python.org packages are explicitly created in order to have no conflict with the system installed python. There is no problem with using them. OK, fine thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: python 3.44 float addition bug?

2014-06-26 Thread Steven D'Aprano
On Thu, 26 Jun 2014 13:39:23 +1000, Ben Finney wrote: Steven D'Aprano st...@pearwood.info writes: On Wed, 25 Jun 2014 14:12:31 -0700, Maciej Dziardziel wrote: Floating points values use finite amount of memory, and cannot accurately represent infinite amount of numbers, they are only

Re: How to get Timezone from latitude/longitude ?

2014-06-26 Thread codetarsier
Thanks for the help people. I was looking for the Malyasia City(lat/long)timezones. -- https://mail.python.org/mailman/listinfo/python-list

Re: python 3.44 float addition bug?

2014-06-26 Thread Chris Angelico
On Thu, Jun 26, 2014 at 7:15 PM, Steven D'Aprano st...@pearwood.info wrote: Here's an error that *cannot* occur with binary floats: the average of two numbers x and y is not guaranteed to lie between x and y! py from decimal import * py getcontext().prec = 3 py x = Decimal('0.516') py y =

Re: protect psycopg script from sql injection?

2014-06-26 Thread Peter Otten
celati Laurent wrote: I coded this following python script via psycopg; web_service_test.py http://python.6.x6.nabble.com/file/n5062113/web_service_test.py 1/ When i execute it, the result is 'bad resquest'. Could you tell me why? No, but you might find out yourself. When you remove the

Re: Standard way to generate mail/news reply?

2014-06-26 Thread Adam Funk
On 2014-06-24, Skip Montanaro wrote: On Tue, Jun 24, 2014 at 6:46 AM, Adam Funk a24...@ducksburg.com wrote: Is there some standard library or code for taking an e-mail or newsgroup message generating a reply to it? You might try searching for mail reply on pypi.python.org. That will return

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-26 Thread Peter Tomcsanyi
Christian Gollwitzer aurio...@gmx.de wrote in message news:lofciv$nq6$1...@dont-email.me... For PNG image support you can load either the Img package which gives support for a large variety of images, or the smaller tkpng package. My first Google search for tkpng python gave no usable results.

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-26 Thread Christian Gollwitzer
Am 26.06.14 12:39, schrieb Peter Tomcsanyi: Christian Gollwitzer aurio...@gmx.de wrote in message news:lofciv$nq6$1...@dont-email.me... For PNG image support you can load either the Img package which gives support for a large variety of images, or the smaller tkpng package. My first Google

OOP no Python

2014-06-26 Thread Samuel David
Olá, Estou analisando algumas necessidades de nossa empresa e fiquei bastante interessado em resolve-las utilizando Python, lendo o FAQ do site de vcs percebo que está é uma linguagem bastante completa. Mas estou com uma dúvida referente ao tópico “Por que eu deveria usar Python e não

Re: OOP no Python

2014-06-26 Thread Stéphane Wirtel
In English, Sorry On 26 Jun 2014, at 16:16, Samuel David wrote: Olá, Estou analisando algumas necessidades de nossa empresa e fiquei bastante interessado em resolve-las utilizando Python, lendo o FAQ do site de vcs percebo que está é uma linguagem bastante completa. Mas estou com uma

Re: OOP no Python

2014-06-26 Thread Mark Lawrence
On 26/06/2014 15:16, Samuel David wrote: Olá, python.pt https://www.facebook.com/python.pt IRC freenode #python-pt channel I think :) -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from

Re: State of speeding up Python for full applications

2014-06-26 Thread alister
On Wed, 25 Jun 2014 20:54:29 -0700, CM wrote: I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference, and sometimes a

Re: python-daemon for Python v3

2014-06-26 Thread ryuanerin
2014년 1월 19일 일요일 오후 7시 30분 27초 UTC+9, Asaf Las 님의 말: Hi Community Is there ported to Python v3 python-daemon package? https://pypi.python.org/pypi/python-daemon/ i am afraid it is not as simple as correction of relative path input feature and except clauses in mentioned

Re: OOP no Python

2014-06-26 Thread Chris Angelico
2014-06-27 0:16 GMT+10:00 Samuel David samuel.co...@eos-hoepers.com: Mas estou com uma dúvida referente ao tópico “Por que eu deveria usar Python e não insira aqui a sua linguagem favorita?”. Google Translate tells me you're asking Why use Python instead of some other language?. (I'm going to

Execute a python script with CGI ?

2014-06-26 Thread dandrigo
Dear all, I coded a python script (web service with query postgresql/postgis). Up to now, i did several test on my local laptop station (windows). Now i want to execute this python script on our remote server (Web server : Apache;OS : Linux). How to write a CGI template please? Could you

Re: Execute a python script with CGI ?

2014-06-26 Thread gregor
Hi, Am Thu, 26 Jun 2014 08:24:56 -0700 (PDT) schrieb dandrigo laurent.cel...@gmail.com: I coded a python script (web service with query postgresql/postgis). Up to now, i did several test on my local laptop station (windows). Now i want to execute this python script on our remote server

Re: State of speeding up Python for full applications

2014-06-26 Thread CM
I'm reposting my question with, I hope, better formatting: I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference,

Re: State of speeding up Python for full applications

2014-06-26 Thread Mark Lawrence
On 26/06/2014 17:49, CM wrote: I'm reposting my question with, I hope, better formatting: I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-26 Thread Christian Gollwitzer
Am 26.06.14 14:37, schrieb Christian Gollwitzer: Am 26.06.14 12:39, schrieb Peter Tomcsanyi: Christian Gollwitzer aurio...@gmx.de wrote in message news:lofciv$nq6$1...@dont-email.me... For PNG image support you can load either the Img package which gives support for a large variety of images,

print statements and profiling a function slowed performance

2014-06-26 Thread CM
Huh. I learned two new Python facts this week: 1. print statements were slowing down my code enough to really notice a particular transition. It went from about 2-3 seconds to a bit under 1 second. What at first seemed unresponsive now seems almost snappy. The only difference was removing a lot

Re: OOP no Python

2014-06-26 Thread Guilherme Rezende
Samuel, http://groups.google.com/group/python-brasil On Thu, Jun 26, 2014 at 12:18 PM, Chris Angelico ros...@gmail.com wrote: 2014-06-27 0:16 GMT+10:00 Samuel David samuel.co...@eos-hoepers.com: Mas estou com uma dúvida referente ao tópico “Por que eu deveria usar Python e não insira

Newbie coding question

2014-06-26 Thread Martin S
Hi, I've been following the tutorial here http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ But when I get to section 1.10 there is person = input('Enter your name: ') However this generates an error person = input('Enter your name: ') Enter your name: hi Traceback (most recent call

Re: Newbie coding question

2014-06-26 Thread alister
On Thu, 26 Jun 2014 20:53:35 +0200, Martin S wrote: Hi, I've been following the tutorial here http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ But when I get to section 1.10 there is person = input('Enter your name: ') However this generates an error person = input('Enter

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Michael Torrie
On 06/26/2014 12:44 PM, CM wrote: Huh. I learned two new Python facts this week: 1. print statements were slowing down my code enough to really notice a particular transition. It went from about 2-3 seconds to a bit under 1 second. What at first seemed unresponsive now seems almost snappy.

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Mark Lawrence
On 26/06/2014 19:44, CM wrote: Huh. I learned two new Python facts this week: 1. print statements were slowing down my code enough to really notice a particular transition. It went from about 2-3 seconds to a bit under 1 second. What at first seemed unresponsive now seems almost snappy. The

Re: Newbie coding question

2014-06-26 Thread Martin S
Ah, that was actually correct. Thanks ... /Martin S 2014-06-26 20:58 GMT+02:00 alister alister.nospam.w...@ntlworld.com: On Thu, 26 Jun 2014 20:53:35 +0200, Martin S wrote: Hi, I've been following the tutorial here http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ But when I

Re: Newbie coding question

2014-06-26 Thread Emile van Sebille
On 6/26/2014 11:53 AM, Martin S wrote: Hi, I've been following the tutorial here http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ But when I get to section 1.10 there is person = input('Enter your name:') However this generates an error person = input('Enter your name: ') Enter

Re: print statements and profiling a function slowed performance

2014-06-26 Thread CM
Seems like over the years good old fashioned debugging skills have been lost. In the earliest days of IDEs (Turbo BASIC and QuickBASIC) I regularly would employ debuggers with break points, watches, and step through my code. I do also use a debugger, but lazily use print statements,

Re: print statements and profiling a function slowed performance

2014-06-26 Thread CM
On Thursday, June 26, 2014 3:27:48 PM UTC-4, Mark Lawrence wrote: 3. use the logging module :) I've just never got around to it, but I guess I should. Thanks for the nudge. -- https://mail.python.org/mailman/listinfo/python-list

2.7.7 Built-in OpenSSL Library?

2014-06-26 Thread David Andrzejewski
Taking a look at: http://bugs.python.org/issue21462 It looks like the OpenSSL library in Python 2.7.7 on Windows should be 1.0.1. However, when I install Python 2.7.7 on my system, C:\Python27python Python 2.7.7 (default, Jun 1 2014, 14:17:13) [MSC v.1500 32 bit (Intel)] on win32 Type help,

Re: 2.7.7 Built-in OpenSSL Library?

2014-06-26 Thread Zachary Ware
On Thu, Jun 26, 2014 at 3:41 PM, David Andrzejewski david.andrzejew...@gmail.com wrote: Taking a look at: http://bugs.python.org/issue21462 It looks like the OpenSSL library in Python 2.7.7 on Windows should be 1.0.1. However, when I install Python 2.7.7 on my system, C:\Python27python

Re: 2.7.7 Built-in OpenSSL Library?

2014-06-26 Thread David Andrzejewski
On Thursday, June 26, 2014 5:09:10 PM UTC-4, Zachary Ware wrote: On Thu, Jun 26, 2014 at 3:41 PM, David Andrzejewski david.andrzejew...@gmail.com wrote: Taking a look at: http://bugs.python.org/issue21462 It looks like the OpenSSL library in Python 2.7.7 on Windows should

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-26 Thread Ned Deily
In article lohpaq$6hr$1...@dont-email.me, Christian Gollwitzer aurio...@gmx.de wrote: Am 26.06.14 14:37, schrieb Christian Gollwitzer: Am 26.06.14 12:39, schrieb Peter Tomcsanyi: Christian Gollwitzer aurio...@gmx.de wrote in message news:lofciv$nq6$1...@dont-email.me... For PNG image

Re: Execute a python script with CGI ?

2014-06-26 Thread Ian Kelly
On Thu, Jun 26, 2014 at 9:24 AM, dandrigo laurent.cel...@gmail.com wrote: Dear all, I coded a python script (web service with query postgresql/postgis). Up to now, i did several test on my local laptop station (windows). Now i want to execute this python script on our remote server (Web

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Michael Torrie
On 06/26/2014 02:36 PM, CM wrote: What I do find Heisenbergian are bugs that show up when debugging and profiling stuff are removed, but completely gone when present. IE profiling and debugging slow it down enough that often subtle race conditions are masked. Would never have occurred

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Chris Angelico
On Fri, Jun 27, 2014 at 6:36 AM, CM cmpyt...@gmail.com wrote: Yes, it stands to reason that profiling code is going to introduce a runtime cost. How else would we expect profiling to work? I think I was hoping for magic. :D Thank you for being honest :) The fact is, though, that time-of-day

Re: Newbie coding question

2014-06-26 Thread Chris Angelico
On Fri, Jun 27, 2014 at 4:53 AM, Martin S shieldf...@gmail.com wrote: I've been following the tutorial here http://anh.cs.luc.edu/python/hands-on/3.1/handsonHtml/ Be aware that this tutorial is aimed at Python 3.1, which is a quite old version in the 3.x branch. I recommend you get the latest

Re: python 3.44 float addition bug?

2014-06-26 Thread Steven D'Aprano
On Thu, 26 Jun 2014 19:38:45 +1000, Chris Angelico wrote: On Thu, Jun 26, 2014 at 7:15 PM, Steven D'Aprano st...@pearwood.info wrote: Here's an error that *cannot* occur with binary floats: the average of two numbers x and y is not guaranteed to lie between x and y! py from decimal import

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Steven D'Aprano
On Thu, 26 Jun 2014 13:37:41 -0700, CM wrote: On Thursday, June 26, 2014 3:27:48 PM UTC-4, Mark Lawrence wrote: 3. use the logging module :) I've just never got around to it, but I guess I should. Thanks for the nudge. While using the logging module is recommended for logging, if you

Re: print statements and profiling a function slowed performance

2014-06-26 Thread Chris Angelico
On Fri, Jun 27, 2014 at 12:55 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Thu, 26 Jun 2014 13:37:41 -0700, CM wrote: On Thursday, June 26, 2014 3:27:48 PM UTC-4, Mark Lawrence wrote: 3. use the logging module :) I've just never got around to it, but I guess I should.

Re: python 3.44 float addition bug?

2014-06-26 Thread Chris Angelico
On Fri, Jun 27, 2014 at 12:51 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Although you seem to have missed the critical issue: this is a failure mode which *binary floats cannot exhibit*, but decimal floats can. The failure being that assert x = (x+y)/2 = y may fail if x

[issue14477] Rietveld test issue

2014-06-26 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14477 ___

[issue14477] Rietveld test issue

2014-06-26 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - resolved ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14477 ___ ___ Python-bugs-list

[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Technically this is not a bug. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14460 ___

[issue12800] 'tarfile.StreamError: seeking backwards is not allowed' when extract symlink

2014-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All works to me without exception in 2.7, 3.3 and 3.4. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12800 ___

[issue12942] Shebang line fixer for 2to3

2014-06-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +benjamin.peterson type: - enhancement versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12942 ___

[issue13074] Improve documentation of locale encoding functions

2014-06-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: The two functions serve a different purpose. getdefautltlocale() specifically avoids calling setlocale() and is thread-safe on Unix. It's purpose is to return the default locale string, not only the encoding. getpreferredencoding() only returns the

[issue21872] LZMA library sometimes fails to decompress a file

2014-06-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: import lzma f = lzma.open('22h_ticks_bad.bi5') len(f.read()) Traceback (most recent call last): File stdin, line 1, in module File /home/serhiy/py/cpython/Lib/lzma.py, line 310, in read return self._read_all() File

[issue18592] Idle: test SearchDialogBase.py

2014-06-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: The warning was due to absence of def self.root. Attached is close to what will commit. -- stage: needs patch - commit review Added file: http://bugs.python.org/file35784/test-search-sdb-18592-34.diff ___ Python

[issue21872] LZMA library sometimes fails to decompress a file

2014-06-26 Thread Ville Nummela
Ville Nummela added the comment: My stats so far: As of writing this, I have attempted to decompress about 5000 downloaded files (two years of tick data). 25 'bad' files were found within this lot. I re-downloaded all of them, plus about 500 other files as the minimum lot the server supplies

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Mak Nazečić-Andrlon
New submission from Mak Nazečić-Andrlon: While searching for a way to work around the breakage of the Schwartzian transform in Python 3 (and the resulting awkwardness if you wish to use heapq or bisect, which do not yet have a key argument), I thought of the good old IEEE-754 NaN.

[issue13405] Add DTrace probes

2014-06-26 Thread Xavier Morel
Changes by Xavier Morel xavier.mo...@masklinn.net: -- nosy: +xmorel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13405 ___ ___ Python-bugs-list

[issue14776] Add SystemTap static markers

2014-06-26 Thread Xavier Morel
Changes by Xavier Morel xavier.mo...@masklinn.net: -- nosy: +xmorel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14776 ___ ___ Python-bugs-list

[issue21590] Systemtap and DTrace support

2014-06-26 Thread Xavier Morel
Changes by Xavier Morel xavier.mo...@masklinn.net: -- nosy: +xmorel ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21590 ___ ___ Python-bugs-list

[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread Matthew Barnett
Matthew Barnett added the comment: Lookarounds can contain capture groups: import re re.search(r'a(?=(.))', 'ab').groups() ('b',) re.search(r'(?=(.))b', 'ab').groups() ('a',) so lookarounds that are optional or can have no repeats might have a use. I'm not sure whether it's useful to

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21873 ___ ___

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread akira
akira added the comment: I suspect that in the absence of %z, the most useful option would be to return naive datetime in the local timezone, but that can be added later. Naive datetime in the local timezone may lose information that is contained in the input timestamp: import os

[issue21864] Error in documentation of point 9.8 'Exceptions are classes too'

2014-06-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: - needs patch type: - enhancement versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21864 ___

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread akira
akira added the comment: Is the issue that: (1, float('nan')) == (1, float('nan')) False but nan = float('nan') (1, nan) == (1, nan) True ? `nan != nan` therefore it might be expected that `(a, nan) != (a, nan)` [1]: The values float('NaN') and Decimal('NaN') are special. The

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread akira
akira added the comment: btw, pypy3 (986752d005bb) is broken: (1, float('nan')) == (1, float('nan')) True -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21873 ___

[issue12613] itertools fixer fails

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: The patch is small and looks clean to me. Can someone take a look with a view to committing please, thanks. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12613

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Mümin Öztürk
Mümin Öztürk added the comment: I added an improved patch according to akira's explanation for strftime and rounding problem. -- Added file: http://bugs.python.org/file35785/strftime2.patch ___ Python tracker rep...@bugs.python.org

[issue15332] 2to3 should fix bad indentation (or warn about it)

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: I'd be inclined to close this as won't fix as a workaround is given, especially considering that mixing tabs and spaces has always been considered a no no. -- nosy: +BreamoreBoy ___ Python tracker

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: -- nosy: +nailor ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___ ___ Python-bugs-list

[issue12613] itertools fixer fails

2014-06-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12613 ___

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Python containers are allowed to let identity-imply-equality (the reflesive property of equality). Dicts, lists, tuples, deques, sets, and frozensets all work this way. So for your purposes, you need to use distinct NaN values rather than reusing a

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Mak Nazečić-Andrlon
Mak Nazečić-Andrlon added the comment: The bug is that the comparison should throw a TypeError, but does not (for incomparable A). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21873 ___

[issue21863] Display module names of C functions in cProfile

2014-06-26 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21863 ___ ___ Python-bugs-list mailing

[issue20069] Add unit test for os.chown

2014-06-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, I removed as _. I thought it was not possible. -- Added file: http://bugs.python.org/file35786/add_unit_test_os_chown_v5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20069

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-26 Thread Vajrasky Kok
Vajrasky Kok added the comment: Raymond, thanks for committing my patch but my name was already put into ACKS before this commit. $ grep -R Vajrasky Misc/ACKS Vajrasky Kok Vajrasky Kok -- ___ Python tracker rep...@bugs.python.org

[issue21873] Tuple comparisons with NaNs are broken

2014-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: Python core containers support the invariant: assert all(x in c for x in c) See also: http://bertrandmeyer.com/2010/02/06/reflexivity-and-other-pillars-of-civilization/ -- assignee: - rhettinger ___

[issue20069] Add unit test for os.chown

2014-06-26 Thread Claudiu Popa
Claudiu Popa added the comment: Looks good to me. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20069 ___

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 463f499ef591 by Raymond Hettinger in branch '3.4': Issue #19145: Remove duplicate ACKS entry http://hg.python.org/cpython/rev/463f499ef591 -- ___ Python tracker rep...@bugs.python.org

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 07eb04003839 by Raymond Hettinger in branch '2.7': Issue #19145: Remove duplicate ACKS entry http://hg.python.org/cpython/rev/07eb04003839 -- ___ Python tracker rep...@bugs.python.org

[issue20295] imghdr add openexr support

2014-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 71b9a841119a by R David Murray in branch 'default': #20295: Teach imghdr to recognize OpenEXR format images. http://hg.python.org/cpython/rev/71b9a841119a -- nosy: +python-dev ___ Python tracker

[issue20295] imghdr add openexr support

2014-06-26 Thread R. David Murray
R. David Murray added the comment: Thanks, Martin and Claudiu. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20295

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2014-06-26 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm with Martin and the other respondents who think this shouldn't be done. Without compelling timings, the smacks of feature creep. The platform specific issues may create an on-going maintenance problem. The feature itself is prone to misuse, leaving

[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-26 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19628 ___ ___

[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-26 Thread R. David Murray
R. David Murray added the comment: Do we really want to allow infinite recursion (say a symbolic link loop)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19628 ___

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On the second thought, I don't think accepting this should be contingent on any decision with respect to strptime. -- assignee: - belopolsky stage: needs patch - commit review ___ Python tracker

[issue19628] maxlevels -1 on compileall for unlimited recursion

2014-06-26 Thread R. David Murray
R. David Murray added the comment: Ah, bad font, I thought the -l was a -1. I see you aren't adding the infinite recursion, the just ability to control the maximum. The patch looks good to me. -- stage: patch review - commit review ___ Python

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-06-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21391 ___

[issue12750] datetime.strftime('%s') should respect tzinfo

2014-06-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: rounding problem fixed with math.floor Can you explain why math.floor rather than builtin round is the correct function to use? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12750

[issue21476] Inconsistent behaviour between BytesParser.parse and Parser.parse

2014-06-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0a16756dfcc0 by R David Murray in branch '3.4': #21476: Unwrap fp in BytesParser so the file isn't unexpectedly closed. http://hg.python.org/cpython/rev/0a16756dfcc0 New changeset a3ee325fd489 by R David Murray in branch 'default': Merge #21476:

[issue21476] Inconsistent behaviour between BytesParser.parse and Parser.parse

2014-06-26 Thread R. David Murray
R. David Murray added the comment: Thanks, Vajrasky. And to the reviewers as well. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21476

[issue21046] Document formulas used in statistics

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: Three months gone and still no patch, not that I believe one is needed. I'm inclined to close as won't fix, there's nothing to stop it being reopened if needed. -- ___ Python tracker rep...@bugs.python.org

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: Shouldn't the existing calls to abspath() be changed to os.path.abspath()? Or are both patches meant to be applied? I don't think the first patch applies cleanly any more. In any event: the deprecation and test look good to me. So assuming we get rid of the

[issue8387] use universal newline mode in csv module examples

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: @sfinnie can we please have a response to the question first asked by Antoine and repeated by Jessica, thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8387

[issue21327] socket.type value changes after using settimeout()

2014-06-26 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21327 ___ ___

[issue21391] shutil uses both os.path.abspath and an 'import from' of abspath

2014-06-26 Thread Eric V. Smith
Eric V. Smith added the comment: Now that I think about it, maybe we don't need a deprecation warning. http://legacy.python.org/dev/peps/pep-0008/#public-and-internal-interfaces says: Imported names should always be considered an implementation detail. Other modules must not rely on indirect

[issue2636] Adding a new regex module (compatible with re)

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: Will we actually get regex into the standard library on this pass? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2636

[issue21046] Document formulas used in statistics

2014-06-26 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: -zach.ware ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21046 ___ ___ Python-bugs-list

[issue20351] Add doc examples for DictReader and DictWriter

2014-06-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20351 ___

[issue21746] urlparse.BaseResult no longer exists

2014-06-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag, orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21746 ___ ___

[issue12815] Coverage of smtpd.py

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: There are comments on rietvield but I'm not sure whether or not they've been picked up. In any case can somebody set the appropriate fields and give us a commit review please. -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3

[issue14460] In re's positive lookbehind assertion repetition works

2014-06-26 Thread py.user
py.user added the comment: m = re.search(r'(?=(a)){10}bc', 'abc', re.DEBUG) max_repeat 10 10 assert -1 subpattern 1 literal 97 literal 98 literal 99 m.group() 'bc' m.groups() ('a',) It works like there are 10 letters a before letter b. --

[issue1528154] New sequences for Unicode groups and block ranges needed

2014-06-26 Thread Mark Lawrence
Mark Lawrence added the comment: Is there an easy way to find out how many other issues have #2636 as a dependency? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528154

[issue3647] urlparse - relative url parsing and joins to be RFC3986 compliance

2014-06-26 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3647 ___

[issue19870] Backport Cookie fix to 2.7 (httponly / secure flag)

2014-06-26 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- assignee: - berker.peksag stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19870 ___

[issue14373] C implementation of functools.lru_cache

2014-06-26 Thread Aaron Meurer
Changes by Aaron Meurer asmeu...@gmail.com: -- nosy: +Aaron.Meurer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14373 ___ ___ Python-bugs-list

  1   2   >