[issue1243678] httplib gzip support

2015-05-27 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- superseder: Performance for small reads and fix seek problem - transparent gzip compression in urllib ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1243678

[issue24290] c_uint32 bitfields break structures

2015-05-27 Thread Rony Batista
Rony Batista added the comment: Well, looks like the issue is with 64 bit mode then. For the first 5 cases the right answer is 69.95930480957031, and for the last 2 its -69.95930480957031. The results for the 32 bit mode are all correct. -- ___

Re: Decoding JSON file using python

2015-05-27 Thread random832
On Wed, May 27, 2015, at 18:23, Karthik Sharma wrote: The JSON structure is valid as shown by http://jsonlint.com/ I want to be able to access the different fields inside `data` such as `severity`, `subject` and also fields inside `tdetails` such as `CPUs` and `Product`. How do I do

Re: Decoding JSON file using python

2015-05-27 Thread MRAB
On 2015-05-27 23:23, Karthik Sharma wrote: I have the JSON structure shown below and the python code shown below to manipulate the JSON structure. import json json_input = { msgType: 0, tid: 1, data: [{\Severity\:\warn\,\Subject\:\Reporting

Re: PUDB Traceback

2015-05-27 Thread MRAB
On 2015-05-27 21:01, Piyush Verma wrote: Hi, I'm facing traceback when using pudb python debugger to debug. Any help to resolve it. # python -m pudb file.py input Traceback (most recent call last): File /usr/lib/python2.7/runpy.py, line 162, in _run_module_as_main __main__, fname,

Re: Decoding JSON file using python

2015-05-27 Thread Cameron Simpson
On 27May2015 15:23, Karthik Sharma karthik.sha...@gmail.com wrote: I have the JSON structure shown below and the python code shown below to manipulate the JSON structure. import json json_input = { msgType: 0, tid: 1, data: [{\Severity\:\warn\,\Subject\:\Reporting

Re: assertRaises() help

2015-05-27 Thread Cameron Simpson
On 27May2015 16:09, Vincent Davis vinc...@vincentdavis.net wrote: I am trying to add a test to pandas Int the first case I assert that I get a NaT value, in the second I what to test that I get a value error. def test_day_not_in_month_coerce_true () works I am trying to duplicate them with

Re: assertRaises() help

2015-05-27 Thread Vincent Davis
On Wed, May 27, 2015 at 4:55 PM, Cameron Simpson c...@zip.com.au wrote: First, test your test by hand running: to_datetime('2015-02-29', coerce=False) _Does_ it raise ValueError? ​Well that was not expected.​ Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

[issue24293] Windows installer unreadable with std/custom themes

2015-05-27 Thread Mike Miller
Mike Miller added the comment: Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24293 ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: should self be changed?

2015-05-27 Thread Terry Reedy
On 5/27/2015 2:32 AM, Chris Angelico wrote: On Wed, May 27, 2015 at 3:23 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Wednesday 27 May 2015 06:45, Mark Lawrence wrote: Apart from breaking all the tools that rely on self being spelt self this looks like an excellent idea.

Re: a more precise distance algorithm

2015-05-27 Thread Oscar Benjamin
On 27 May 2015 at 19:00, Brian Blais bbl...@gmail.com wrote: On Mon, May 25, 2015 at 11:11 PM, Steven D'Aprano st...@pearwood.info wrote: Let's compare three methods. def naive(a, b): return math.sqrt(a**2 + b**2) def alternate(a, b): a, b = min(a, b), max(a, b) if a == 0:

assertRaises() help

2015-05-27 Thread Vincent Davis
I am trying to add a test to pandas Int the first case I assert that I get a NaT value, in the second I what to test that I get a value error. def test_day_not_in_month_coerce_true () works I am trying to duplicate them with coerce= False which will give a ValueError but I cant get the tests to

Decoding JSON file using python

2015-05-27 Thread Karthik Sharma
I have the JSON structure shown below and the python code shown below to manipulate the JSON structure. import json json_input = { msgType: 0, tid: 1, data: [{\Severity\:\warn\,\Subject\:\Reporting

[issue24298] inspect.signature includes bound argument for wrappers around bound methods

2015-05-27 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: Added file: http://bugs.python.org/file39526/signature2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24298 ___

[issue24304] Documentation broken link to license

2015-05-27 Thread Roundup Robot
Roundup Robot added the comment: New changeset d4080f3c0894 by Ned Deily in branch '2.7': Issue 24304: Fix broken license link in FAQ. https://hg.python.org/cpython/rev/d4080f3c0894 New changeset 8631d61f6577 by Ned Deily in branch '3.4': Issue 24304: Fix broken license link in FAQ.

Re: SyntaxError on progress module

2015-05-27 Thread alb
Hi Chris, Chris Angelico ros...@gmail.com wrote: [] Python 3.0 removed the 'u' for unicode in front of strings but due to popular demand to ease porting it was reinstated in 3.3. Strip it away and you should be fine to go. Or upgrade to 3.3 or better; is there anything holding you on 3.2?

Re: SyntaxError on progress module

2015-05-27 Thread alb
Hi Mark, Mark Lawrence breamore...@yahoo.co.uk wrote: [] File /home/debian/repos/2418_IASI-NG/Documents/Tools/tex_tool/venv/local/lib/python3.2/site-packages/progress/bar.py, line 48 empty_fill = u'∙' ^ SyntaxError: invalid syntax [] Python 3.0 removed

Re: should self be changed?

2015-05-27 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: Using some other name in place of self should definitely remain *possible*, but not commonly done. You are effectively making the argument that Python has made a mistake by not giving self a special, language-level status. Marko --

Re: SyntaxError on progress module

2015-05-27 Thread David Palao
2015-05-27 9:30 GMT+02:00 alb al.bas...@gmail.com: Hi Mark, Mark Lawrence breamore...@yahoo.co.uk wrote: [] File /home/debian/repos/2418_IASI-NG/Documents/Tools/tex_tool/venv/local/lib/python3.2/site-packages/progress/bar.py, line 48 empty_fill = u'∙' ^

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-05-27 Thread Nathaniel Smith
New submission from Nathaniel Smith: DeprecationWarning and PendingDeprecationWarning are invisible by default. The rationale for this is that they are only useful to people who are writing code, so they should not be shown to end-users who are merely running code. If someone is typing stuff

[issue24294] DeprecationWarnings should be visible by default in the interactive REPL

2015-05-27 Thread Nathaniel Smith
Nathaniel Smith added the comment: I also filed a similar bug with ipython: https://github.com/ipython/ipython/issues/8478 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24294 ___

<    1   2   3