ANNOUNCE: pywebview 0.5

2014-12-01 Thread antacid
pywebview is a lightweight cross-platform wrapper around a webview component that allows to display HTML content in its own dedicated window. It gives you richness of web technologies in your desktop application, all without a need to resort to an external browser. Combined with a lightweight

I need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Python-list Team, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with

Read response XML attributes in django rest framework

2014-12-01 Thread reetesh nigam
I need to read xml attributes coming in response data. I am using Django rest framework. requested XML : myTagxyz verified=N product=ABC startDate=02-02-2014//myTag Response I am getting: {'xyz': None} I am using : 'DEFAULT_PARSER_CLASSES': ('rest_framework.parsers.XMLParser') in my

Re: ssl error with the python mac binary

2014-12-01 Thread Paul Wiseman
On 10 November 2014 at 22:51, Ned Deily n...@acm.org wrote: In article CACgdh2iG9+cLjj7mZ7qeALQd==pcrknnv8i_eerj6ahjvg3...@mail.gmail.com, Paul Wiseman poal...@gmail.com wrote: I've been using the latest mac ppc/i386 binaries from python.org

Python and GUI development

2014-12-01 Thread Ganesh Pal
Hi folks, I want to design a GUI interface for my project . I wanted it to use it Python and it has to work on freebsd . Please provide me the latest trends for GUI development with python. Regard s Ganesh -- https://mail.python.org/mailman/listinfo/python-list

Re: Python and GUI development

2014-12-01 Thread Chris Angelico
On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal ganesh1...@gmail.com wrote: Hi folks, I want to design a GUI interface for my project . I wanted it to use it Python and it has to work on freebsd . Please provide me the latest trends for GUI development with python. Regard s Ganesh There

Need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Guys, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with 1000 Test

Fwd: Need Help

2014-12-01 Thread Ezhilarasan Chandrasekar
Hi Guys, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of the TC (lets say, OK or FAIL or ERROR)? So that If I'm working with 1000 Test

Re: Read response XML attributes in django rest framework

2014-12-01 Thread Roy Smith
In article 1248a112-88fd-4346-a733-7716671b8...@googlegroups.com, reetesh nigam nigamreetes...@gmail.com wrote: I need to read xml attributes coming in response data. I am using Django rest framework. requested XML : myTagxyz verified=N product=ABC startDate=02-02-2014//myTag

Re: Fwd: Need Help

2014-12-01 Thread alister
On Mon, 01 Dec 2014 18:41:27 +0530, Ezhilarasan Chandrasekar wrote: Hi Guys, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the final result of

Re: Issues installing Python 2.7

2014-12-01 Thread billyfurlong
This actually worked!! It's a bare machine with nothing (except the system) using python. -- https://mail.python.org/mailman/listinfo/python-list

Re: Issues installing Python 2.7

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 3:40 AM, billyfurl...@gmail.com wrote: This actually worked!! It's a bare machine with nothing (except the system) using python. Good to know! But, uhh... *what* actually worked? You've posted with no content, so we have no idea which of the several suggestions in this

Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread billyfurlong
Hi all, Getting an error when I try to install ez_setup.py. I thought that this was an issues with an incorrect version of python, so I upgraded to 2.7.5 successfully. But unfortunately I get the same error. [root@yyboxname tmp]# wget https://bootstrap.pypa.io/ez_setup.py

Re: Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 3:58 AM, billyfurl...@gmail.com wrote: Getting an error when I try to install ez_setup.py. I thought that this was an issues with an incorrect version of python, so I upgraded to 2.7.5 successfully. But unfortunately I get the same error. File stdin, line 51

Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? i.e. if d['xxx'] were accessed and there was no key 'xxx' then d['xxx'] would get set to 'xxx' I know I can define a function with lambda for the default_factory, but I don't see

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ian Kelly
On Mon, Dec 1, 2014 at 11:05 AM, Larry Martell larry.mart...@gmail.com wrote: Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? i.e. if d['xxx'] were accessed and there was no key 'xxx' then d['xxx'] would get set to 'xxx' I

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ethan Furman
On 12/01/2014 10:05 AM, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? You need to subclass and modify __missing__ to actually pass along the key: -- class defaultdictkey(defaultdict): ... def

Re: Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread Billy Furlong
Hi Chris, Yep that got me closer. I found that using | sudo python2.7 was a bad command. So I changed over to | python2.7. [root@myserver tmp]# wget https://bootstrap.pypa.io/ez_setup.py --no-check-certificate -O - | python2.7 --2014-12-01 12:57:07-- https://bootstrap.pypa.io/ez_setup.py

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman et...@stoneleaf.us wrote: On 12/01/2014 10:05 AM, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? You need to subclass and modify __missing__ to actually pass

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman et...@stoneleaf.us wrote: On 12/01/2014 10:05 AM, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? You need to subclass and modify __missing__ to actually pass

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Tim Chase
On 2014-12-01 13:05, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? i.e. if d['xxx'] were accessed and there was no key 'xxx' then d['xxx'] would get set to 'xxx' I know I can define a function with

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ethan Furman
On 12/01/2014 10:29 AM, Larry Martell wrote: On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman et...@stoneleaf.us wrote: On 12/01/2014 10:05 AM, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so that accesses to undefined keys get to set to the key? You need to

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Larry Martell
On Mon, Dec 1, 2014 at 1:36 PM, Ethan Furman et...@stoneleaf.us wrote: On 12/01/2014 10:29 AM, Larry Martell wrote: On Mon, Dec 1, 2014 at 1:19 PM, Ethan Furman et...@stoneleaf.us wrote: On 12/01/2014 10:05 AM, Larry Martell wrote: Is there a way to set the default_factory of defaultdict so

Re: Setting default_factory of defaultdict to key

2014-12-01 Thread Ian Kelly
On Mon, Dec 1, 2014 at 11:29 AM, Larry Martell larry.mart...@gmail.com wrote: I spoke too soon: class defaultdictkey(defaultdict): ... def __missing__(self, key): ... self[key] = self.default_factory(key) ... x = defaultdictkey(lambda k: k) print x['aaa'] None print x['aaa'] aaa a =

Re: Need Help

2014-12-01 Thread Fabio Zadrozny
On Mon, Dec 1, 2014 at 11:05 AM, Ezhilarasan Chandrasekar aezhi...@gmail.com wrote: Hi Guys, I'm a beginner of python, I just want your help. I'm using the Python in Pydev - Eclipse. How can I get the Failure values from the Console in to a txt or a csv file? And how can I get the

Re: Invalid Syntax Installing pip - ez_setup.py

2014-12-01 Thread Billy Furlong
Success. Whats happening is that the second wget command is not recognizing the --no-check-certificate. So I went around the problem and installed it manually. wget https://pypi.python.org/packages/source/s/setuptools/setuptools-7.0.zip --no-check-certificate unzip setuptools-7.0.zip

i have to create this patch in python but wasnt having any luck i was wondering if anyone had a solution?

2014-12-01 Thread python help required
def penultimatePatch(): win = GraphWin(Patch1,(100), 100) amountOfCircles = 5 #Filled Red Circles fillCircle = Circle(Point(20,20)+100/amountOfCircles) fillCircle.draw(win) fillCircle.setFill(red) #Verticle white rectangles rectangleVerticle1 =

Re: Python and GUI development

2014-12-01 Thread Patrick Stinson
I’ve been using PyQt for 10 years. Absolutely fabulous, fun, and I imagine the others are also excellent as they have all been around long enough to die naturally if they were not very useful. On Dec 1, 2014, at 3:13 AM, Chris Angelico ros...@gmail.com wrote: On Mon, Dec 1, 2014 at 10:55

Cherrypy - prevent browser prefetch?

2014-12-01 Thread Israel Brewster
I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway to prevent browser prefetch? I'm running to a problem, specifically from Safari on

Re: Python and GUI development

2014-12-01 Thread Ben Finney
Ganesh Pal ganesh1...@gmail.com writes: I want to design a GUI interface for my project . I wanted it to use it Python and it has to work on freebsd . Please provide me the latest trends for GUI development with python. A good starting point

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread sohcahtoa82
On Monday, December 1, 2014 12:29:04 PM UTC-8, Israel Brewster wrote: I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway to

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Tim Chase
On 2014-12-01 11:28, Israel Brewster wrote: I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway to prevent browser prefetch? I'm

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Christoph M. Becker
Tim Chase wrote: I haven't investigated recently, but I remember Django's ability to trigger a log-out merely via a GET was something that irked me. All this to also say that performing non-idempotent actions on a GET request is just begging for trouble. ;-) ACK. However, isn't log-out

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Ned Batchelder
On 12/1/14 4:26 PM, Tim Chase wrote: On 2014-12-01 11:28, Israel Brewster wrote: I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http protocol question, but when using cherrypy to serve a web app, is there anyway

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Tim Chase
On 2014-12-01 22:44, Christoph M. Becker wrote: Tim Chase wrote: haven't investigated recently, but I remember Django's ability to trigger a log-out merely via a GET was something that irked me. All this to also say that performing non-idempotent actions on a GET request is just

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Tim Chase
On 2014-12-01 16:50, Ned Batchelder wrote: On 12/1/14 4:26 PM, Tim Chase wrote: All this to also say that performing non-idempotent actions on a GET request is just begging for trouble. ;-) This is the key point: your web application shouldn't be doing these kinds of actions in response to

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Israel Brewster
On Dec 1, 2014, at 12:50 PM, Ned Batchelder n...@nedbatchelder.com wrote: On 12/1/14 4:26 PM, Tim Chase wrote: On 2014-12-01 11:28, Israel Brewster wrote: I don't know if this is a cherrypy specific question (although it will be implemented in cherrypy for sure), or more of a general http

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Israel Brewster
On Dec 1, 2014, at 1:12 PM, Tim Chase python.l...@tim.thechases.com wrote: On 2014-12-01 16:50, Ned Batchelder wrote: On 12/1/14 4:26 PM, Tim Chase wrote: All this to also say that performing non-idempotent actions on a GET request is just begging for trouble. ;-) This is the key point:

Re: Python and GUI development

2014-12-01 Thread Rod Person
On Mon, 1 Dec 2014 23:13:32 +1100 Chris Angelico ros...@gmail.com wrote: On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal ganesh1...@gmail.com wrote: Hi folks, I want to design a GUI interface for my project . I wanted it to use it Python and it has to work on freebsd . Please

Re: ssl error with the python mac binary

2014-12-01 Thread Ned Deily
In article cacgdh2huvqtqpfj40vwv51xasjrcu0ycddcgaz1ndm84kwk...@mail.gmail.com, Paul Wiseman poal...@gmail.com wrote: I just gave 2.7.9rc1 a go and seems like it is still linked to the same version of openssl? Yes, it still is for rc1. Unfortunately, I was not able to get everything done in

Re: ssl error with the python mac binary

2014-12-01 Thread Paul Wiseman
On 1 December 2014 at 22:59, Ned Deily n...@acm.org wrote: In article cacgdh2huvqtqpfj40vwv51xasjrcu0ycddcgaz1ndm84kwk...@mail.gmail.com, Paul Wiseman poal...@gmail.com wrote: I just gave 2.7.9rc1 a go and seems like it is still linked to the same version of openssl? Yes, it still is

Re: How about some syntactic sugar for __name__ == '__main__' ?

2014-12-01 Thread Ethan Furman
On 11/13/2014 10:32 AM, Ethan Furman wrote: On 11/12/2014 01:51 PM, Ian Kelly wrote: On Wed, Nov 12, 2014 at 2:33 PM, Chris Kaynor wrote: A decorator is an interesting idea, and should be easy to implement (only lightly tested): def main(func): if func.__module__ == __main__:

Re: How about some syntactic sugar for __name__ == '__main__' ?

2014-12-01 Thread Ethan Furman
On 12/01/2014 03:19 PM, Ethan Furman wrote: Well, I've tried this out, and it's only okay. As soon as interesting things start happening, spurious errors about thread IDs start printing, which really messes up the user experience [...] So here's another thought: Have a small python

Re: How about some syntactic sugar for __name__ == '__main__' ?

2014-12-01 Thread Chris Angelico
On Tue, Dec 2, 2014 at 11:45 AM, Ethan Furman et...@stoneleaf.us wrote: Put the above somewhere in your path (e.g. /usr/local/bin), make it executable, and then instead of shebanging your scripts with `/usr/local/bin/python` you can use `/usr/local/bin/py_main`, which will load and execute

Re: Cherrypy - prevent browser prefetch?

2014-12-01 Thread Tim Chase
On 2014-12-01 13:14, Israel Brewster wrote: On Dec 1, 2014, at 12:50 PM, Ned Batchelder n...@nedbatchelder.com The way to indicate to a browser that it shouldn't pre-fetch a URL is to make it a POST request. Ok, that makes sense. The only difficulty I have with that answer is that to the

Re: Python and GUI development

2014-12-01 Thread Ganesh Pal
Thanks for the bunch of suggestion , I have decided to go with PYQt for now : ) On Tue, Dec 2, 2014 at 4:13 AM, Rod Person rodper...@rodperson.com wrote: On Mon, 1 Dec 2014 23:13:32 +1100 Chris Angelico ros...@gmail.com wrote: On Mon, Dec 1, 2014 at 10:55 PM, Ganesh Pal

Re: Python and GUI development

2014-12-01 Thread Michael Torrie
On 12/01/2014 08:49 PM, Ganesh Pal wrote: Thanks for the bunch of suggestion , I have decided to go with PYQt for now : ) If the licensing of PyQt is not appropriate for you (it's GPL only, unless you buy a license), you can use PySide, which is almost a drop-in replacement for it, that's

help you download youtube videos in any format and watch later

2014-12-01 Thread marishjaskitons
I suppose the possibilities of Youtube Downloader Application are really exciting. We get along like oil and water. This begs the question, because of this, Free Youtube Downloader for Android still uses it today. I may have to reveal that I dislike Youtube Downloader for Android software. It may

[issue22943] bsddb: test_queue fails on Windows

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset df17d2b0878f by Serhiy Storchaka in branch '2.7': Issue #22943: bsddb tests are locale independend now. https://hg.python.org/cpython/rev/df17d2b0878f -- ___ Python tracker rep...@bugs.python.org

[issue22924] Use of deprecated cgi.escape

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f5eb62bdcb1a by Serhiy Storchaka in branch '3.4': Issue #22924: Scripts gprof2html.py and highlight.py now use html.escape() https://hg.python.org/cpython/rev/f5eb62bdcb1a New changeset 8c1d1e861081 by Serhiy Storchaka in branch 'default': Issue

[issue22943] bsddb: test_queue fails on Windows

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22943

[issue22924] Use of deprecated cgi.escape

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22924 ___

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So what to do wish UserDict? Should we break backward compatibility and add support for self and dict keywords as in other dict-like types? -- ___ Python tracker rep...@bugs.python.org

[issue22838] Convert re tests to unittest

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 21a7a92f4d0c by Serhiy Storchaka in branch '3.4': Issue #22838: All test_re tests now work with unittest test discovery. https://hg.python.org/cpython/rev/21a7a92f4d0c New changeset 258ee94b5bac by Serhiy Storchaka in branch 'default': Issue

[issue22838] Convert re tests to unittest

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22838 ___

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is the status of your contributor agreement Martin? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21032 ___

[issue14099] ZipFile.open() should not reopen the underlying file

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What your thoughts Benjamin? Should this patch be applied to 2.7.10 (this is not critical for 2.7.9)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14099

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-12-01 Thread Martin Richard
Martin Richard added the comment: Guido, Currently in my program, I manually remove and then re-adds the reader to the loop in the parent process right after the fork(). I also considered a dirty monkey-patching of remove_reader() and remove_writer() which would act as the original versions

[issue22578] Add additional attributes to re.error

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9711c60e3049 by Serhiy Storchaka in branch 'default': Removed unused function linecol() (added in issue #22578 by mistake). https://hg.python.org/cpython/rev/9711c60e3049 -- ___ Python tracker

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-12-01 Thread Martin Richard
Martin Richard added the comment: I said something wrong in my previous comment: removing and re-adding the reader callback right after the fork() is obviously subject to a race condition. I'll go for the monkey patching. -- ___ Python tracker

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Martin Panter
Martin Panter added the comment: Hi Serhiy, I submitted the form online on 22 Nov; just patiently waiting for it to come through now. In the last few minutes I noticed an asterisk has appeared against my name on the bug tracker, so hopefully it is all good now. --

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 561d1d0de518 by Serhiy Storchaka in branch 'default': Issue #21032: Deprecated the use of re.LOCALE flag with str patterns or https://hg.python.org/cpython/rev/561d1d0de518 -- nosy: +python-dev ___

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22407

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Martin Panter
Martin Panter added the comment: Looks like revision 561d1d0de518 was to fix this issue, but the NEWS entry has the wrong reference number -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22407

[issue22971] test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot

2014-12-01 Thread STINNER Victor
New submission from STINNER Victor: http://buildbot.python.org/all/builders/AMD64%20FreeBSD%209.x%203.x/builds/2434/steps/test/logs/stdio ... [127/390] test_trace [128/390] test_imghdr [129/390] test_queue [130/390] test_thread Fatal Python error: Cannot recover from stack overflow. Current

[issue22971] test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot

2014-12-01 Thread STINNER Victor
STINNER Victor added the comment: Can it be related to the issue #22676? -- nosy: +pitrou, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22971 ___

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. Thank you Martin. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22407 ___ ___ Python-bugs-list

[issue22972] Timeout making ajax calls to SimpleHTTPServer from internet explorer

2014-12-01 Thread Andrew Burrows
New submission from Andrew Burrows: I have flask webservice running on windows, run up with `app.run()` which works fine from Chrome but when accessed with IE it sometimes fails with a timeout error. I've managed to reproduce the problem without flask which suggests there is (maybe?) some

[issue22676] _pickle's whichmodule() is slow

2014-12-01 Thread STINNER Victor
STINNER Victor added the comment: This issue may have introduce a regression, please see: Issue #22971: test_pickle: Fatal Python error: Cannot recover from stack overflow. on FreeBSD buildbot -- ___ Python tracker rep...@bugs.python.org

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f88c00391dd8 by Serhiy Storchaka in branch '2.7': Issue #21032. Fixed socket leak if HTTPConnection.getresponse() fails. https://hg.python.org/cpython/rev/f88c00391dd8 New changeset ba72da4883eb by Serhiy Storchaka in branch '3.4': Issue #21032.

[issue22407] re.LOCALE is nonsensical for Unicode

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset abc7fe393016 by Serhiy Storchaka in branch 'default': Fixed issue number in Misc/NEWS for issue #22407. https://hg.python.org/cpython/rev/abc7fe393016 -- nosy: +python-dev ___ Python tracker

[issue22973] hash() function gives the same result for -1 and for -2 argument (==-2)

2014-12-01 Thread ardabro
New submission from ardabro: built-in hash() function cannot be effectively used for integers due to weird behavior for -1 argument: hash(0) 0 hash(-1) -2# ! hash(-2) -2 hash(-3) -3 -- components: Library (Lib) messages: 231932 nosy: ardabro priority: normal

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: When tstate-overflowed is already set to 1 before entering PyErr_NormalizeException() to normalize an exception, the following cases may occur: 1) Normalizing a built-in exception = instantiation ok. 2) Normalizing a python exception that fails with a

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file37333/mymodule.c ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22898 ___

[issue22898] segfault during shutdown attempting to log ResourceWarning

2014-12-01 Thread Xavier de Gaye
Changes by Xavier de Gaye xdeg...@gmail.com: Added file: http://bugs.python.org/file37334/setup.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22898 ___

[issue21032] Socket leak if HTTPConnection.getresponse() fails

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Few notes about patches. Check patches for trailing spaces. And it would be more suitable if you provide single patch instead of a couple of patches. I have slightly changed the test, so it checks that the file is actually closed, not lost, The fix LGTM.

[issue22973] hash() function gives the same result for -1 and for -2 argument (==-2)

2014-12-01 Thread Eric V. Smith
Eric V. Smith added the comment: hash() is not defined to be unique, so you're always going to have collisions. The behavior of hash() for int that you're seeing is not a bug. There's some background here: http://stackoverflow.com/questions/10130454/why-do-1-and-2-both-hash-to-2-in-python

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-12-01 Thread Ethan Furman
Ethan Furman added the comment: Fix `self` now, add a warning and single minor cycle deprecation period for 'dict'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___

[issue7665] test_urllib2 and test_ntpath fail if path contains \

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7665 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22972] Timeout making ajax calls to SimpleHTTPServer from internet explorer

2014-12-01 Thread R. David Murray
R. David Murray added the comment: Why do you think this is a Python problem? Can you reproduce it without using javascript? Given that it works with other browsers (ie: python has no problem responding to the queries themselves) and javascript is doing the query, I think it would be much

[issue20148] Derby: Convert the _sre module to use Argument Clinic

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Synchronized with the tip again. -- Added file: http://bugs.python.org/file37335/sre_clinic_4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20148

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Matthias Klose
Matthias Klose added the comment: seen as well with 3.3 -- keywords: +3.3regression, 3.4regression nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966 ___

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2014-12-01 Thread Guido van Rossum
Guido van Rossum added the comment: How about not doing anything in the parent but in the child, closing the selector and then the event loop? On Mon, Dec 1, 2014 at 1:29 AM, Martin Richard rep...@bugs.python.org wrote: Martin Richard added the comment: I said something wrong in my

[issue22935] Disabling SSLv3 support

2014-12-01 Thread Kurt Roeckx
Kurt Roeckx added the comment: I've just signed the contributor agreement -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22935 ___ ___

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
New submission from Dmitry Kazakov: This is a complete implementation of negative limits for functions from traceback module (see this proposal - https://mail.python.org/pipermail/python-ideas/2014-August/029105.html). I also added some tests. -- components: Library (Lib) files:

[issue22619] Possible implementation of negative limit for traceback functions

2014-12-01 Thread Dmitry Kazakov
Changes by Dmitry Kazakov jsb...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22619 ___ ___ Python-bugs-list

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Matthias Klose
Matthias Klose added the comment: proposed patch: diff -r 8dacb1a21793 Lib/importlib/_bootstrap.py --- a/Lib/importlib/_bootstrap.py Fri Nov 28 13:15:41 2014 +0100 +++ b/Lib/importlib/_bootstrap.py Mon Dec 01 17:05:00 2014 +0100 @@ -453,7 +453,7 @@ else: suffixes =

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread R. David Murray
R. David Murray added the comment: This looks like a duplicate of issue 22619. Were you under the impression you needed to open a new issue just in order to update your patch? You would be better off posting the patch to issue 22619 and closing this one, unless I'm missing something.

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I'll take this one. I think it should be easy to add a test case, which I'll do. -- assignee: - barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966

[issue22966] py_compile: foo.bar.py → __pycache__/foo.cpython-34.pyc

2014-12-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22966 ___ ___ Python-bugs-list

[issue22975] Crosses initialization?

2014-12-01 Thread Elazar Gershuni
Elazar Gershuni added the comment: https://hg.python.org/cpython/file/62a058c76869/Objects/unicodeobject.c#l9884 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22975 ___

[issue22975] Crosses initialization?

2014-12-01 Thread Elazar Gershuni
Changes by Elazar Gershuni elaz...@gmail.com: -- hgrepos: -282 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22975 ___ ___ Python-bugs-list

[issue22975] Crosses initialization?

2014-12-01 Thread Elazar Gershuni
New submission from Elazar Gershuni: In Objects/unicodeobject.c, What happens in these lines? case PyUnicode_4BYTE_KIND: { \ Py_UCS4 * to_ = (Py_UCS4 *)((data)) + (start); \ for (; i_ (length); ++i_, ++to_) *to_ = (value); \ break; \ default:

[issue22975] Crosses initialization?

2014-12-01 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22975 ___

[issue22975] Crosses initialization?

2014-12-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 15a1070a2c66 by Serhiy Storchaka in branch '3.4': Issue #22975: Close block at right place. https://hg.python.org/cpython/rev/15a1070a2c66 New changeset e1afae23dfcd by Serhiy Storchaka in branch 'default': Issue #22975: Close block at right place.

[issue22974] Make traceback functions support negative limits

2014-12-01 Thread Dmitry Kazakov
Dmitry Kazakov added the comment: Indeed, this is an exact duplicate, but I feel like that issue is an embarrassment: too many unnecessary actions, bad patches, and most of messages are totally useless. I wanted to start over for once, so I closed that issue. Pardon my initial ignorance.

[issue22609] Constructors of some mapping classes don't accept `self` keyword argument

2014-12-01 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: serhiy.storchaka - rhettinger priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22609 ___

[issue22975] Crosses initialization?

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is correct syntax in C. But I agree that for clarity it should be changed. However note that building Python with g++ is not supported. There are many other things about which C compiler is lenient but which cause syntax error in C++ compiler. And

[issue20335] bytes constructor accepts more than one argument even if the first one is not a string

2014-12-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch with tests. -- stage: test needed - patch review Added file: http://bugs.python.org/file37337/issue20335.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20335

[issue21557] os.popen os.system lack shell-related security warnings

2014-12-01 Thread Chris Rebert
Chris Rebert added the comment: Here is a patch that adds the necessary warnings from issue 7950. Please review it when you get a chance. -- keywords: +patch Added file: http://bugs.python.org/file37338/fix-21557.patch ___ Python tracker

  1   2   >