Python Help

2014-10-15 Thread Jeffe
Hi, I am looking for anyone who knows python (C++ is also ok) well enough to write a basic script login registration and tws ib api connected. Looking to build a asset/security trading platform and have investors interested but want to see it operational first. Looking for a something basic

Re: Python Help

2014-10-15 Thread Chris Angelico
On Wed, Oct 15, 2014 at 4:57 PM, Jeffe jeffevalen...@gmail.com wrote: Looking for a something basic yet operational, fee based or we can discuss equity if succesfully funded. Have some Big people interested with a solid business framework. Just need the software to show and its on..

reading output from a .sol file

2014-10-15 Thread varun7rs
Hello everyone, I have a .sol file at my hand and I wish to make it an xml file so that its a bit more convenient to read and skim off data from an xml file. But to do that, I need to write a function to read the values in the .sol file. What I intend is when I read the line z_ something, i

Re: Is there an easy way to control indents in Python

2014-10-15 Thread alex23
On 15/10/2014 12:23 PM, Juan Christian wrote: Using PyCharm is easy: File Settings (IDE Settings) Editor Smart Keys Reformat on paste choose Reformat Block This isn't as straight forward as you imply. Say I have misindented code like this: if True: print 'true' else:

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-15 Thread Peter Otten
Venugopal Reddy wrote: Actuvally am having below XML File: ?xml version=1.0 encoding=UTF-8? soapenv:Envelope xmlns:soapenv=http://schemas.xmlsoap.org/soap/envelope/; soapenv:Body c:RetriveByVehicleLineModelYearResponse xmlns:a=urn:ford/VehicleOrder/LegacyFeatureMapping/v2.0

Re: Code Review for Paper, Rock, Scissors

2014-10-15 Thread Larry Hudson
On 10/14/2014 01:04 AM, Revenant wrote: Hi all! I'm new to Python and programming in general, and am trying to learn as much as I can about it. Anyway, for a basic first program I made a simple game of Paper, Rock, Scissors. For this program, I incorporated a main menu that presented three

Help with parsing a dict from Vendor's API?

2014-10-15 Thread Nick Ellson
Hello! I have a very specific question related to the output of a Vendors API (Palo Alto Networks pan.xapi and how I might farm data from this output. I am new to python, doing well in the tutorials, but this is an automation task at work and I know the rest will be much easier once i get past

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-15 Thread Venugopal Reddy
Thanks for Help Sir, Am using for feature in tree.findall( .//{urn:ford/interface/VehicleOrder/LegacyFeatureMapping/v2}PortInstalledOptionFeature): ) Please sir help me Here also this findall Method is not return any list values. On Wednesday, October 15, 2014 1:03:00 PM

Re: Jython or Pyton issue-- Kindly Help me....

2014-10-15 Thread Peter Otten
Venugopal Reddy wrote: Thanks for Help Sir, Am using for feature in tree.findall( .//{urn:ford/interface/VehicleOrder/LegacyFeatureMapping/v2}PortInstalledOptionFeature): ) Please sir help me Here also this findall Method is not return any list values. OK, I

Re: Help with parsing a dict from Vendor's API?

2014-10-15 Thread Peter Otten
Nick Ellson wrote: Hello! I have a very specific question related to the output of a Vendors API (Palo Alto Networks pan.xapi and how I might farm data from this output. I am new to python, doing well in the tutorials, but this is an automation task at work and I know the rest will be much

[ANN] pdb-clone 1.9 - a fast clone of pdb with the remote debugging and attach features

2014-10-15 Thread Xavier de Gaye
pdb-clone 1.9 has been released at Pypi: https://pypi.python.org/pypi/pdb-clone Features: * Improve significantly pdb performance. With breakpoints, pdb-clone runs just above the speed of the interpreter while pdb runs at 10 to 100 times the speed of the interpreter. * Extend pdb with

Re: Help with parsing a dict from Vendor's API?

2014-10-15 Thread Nick Ellson
Thank you Peter! That makes sense, and I did find pprint that dumped it out aligned so I could actually see the nested layers you are referring to. That got me my IP's. :-) I'll play with this now and see if I can harvest something targeted.. Like list all device host names running code

Re: Is there an easy way to control indents in Python

2014-10-15 Thread Chris “Kwpolska” Warrick
On Wed, Oct 15, 2014 at 9:27 AM, alex23 wuwe...@gmail.com wrote: On 15/10/2014 12:23 PM, Juan Christian wrote: Using PyCharm is easy: File Settings (IDE Settings) Editor Smart Keys Reformat on paste choose Reformat Block This isn't as straight forward as you imply. Say I have

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
Thanks Rustom for the advice. I am new to Python and getting struck at some basic things. How do I assign the values that I am printing to 3 variables say dict1, dict2, dict3? When I try to assign them before the print statement like this: d1, d2, d3 =[(queues[j], json.get(queues[j])) for j in

Re: CLI framework using python

2014-10-15 Thread vijnaana bhairava
Hi Naoki, I am new to python programming. Getting used to writing basic scripts to understand python. To understand 'Click' i may need some more guidance. For e.g if i were to do 'ifconfig -a' from Click, how would the program look like. That will help me get started. What i am looking for

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Rustom Mody
On Wednesday, October 15, 2014 9:22:48 PM UTC+5:30, Anurag Patibandla wrote: Thanks Rustom for the advice. I am new to Python and getting struck at some basic things. How do I assign the values that I am printing to 3 variables say dict1, dict2, dict3? When I try to assign them before the

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
First the values printed by '[(queues[j], json.get(queues[j])) for j in range(len(queues))] ' is a list, so I tried to convert it into a dict using dict(). And then I tried doing dict[0] but there is an error which says: 'type' object has no attribute '__getitem__' --

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Rustom Mody
On Wednesday, October 15, 2014 9:58:49 PM UTC+5:30, Anurag Patibandla wrote: First the values printed by '[(queues[j], json.get(queues[j])) for j in range(len(queues))] ' is a list, so I tried to convert it into a dict using dict(). And then I tried doing dict[0] but there is an error which

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
keys = json.keys() order = list(keys) q1 = int(round(len(keys)*0.2)) q2 = int(round(len(keys)*0.3)) q3 = int(round(len(keys)*0.5)) b = [q1,q2,q3] n=0 for i in b: queues = order[n:n+i] n = n+i #print queues #print [(queues[j], json.get(queues[j])) for j in

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Rustom Mody
On Wednesday, October 15, 2014 10:13:18 PM UTC+5:30, Rustom Mody wrote: On Wednesday, October 15, 2014 9:58:49 PM UTC+5:30, Anurag Patibandla wrote: First the values printed by '[(queues[j], json.get(queues[j])) for j in range(len(queues))] ' is a list, so I tried to convert it into a dict

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
keys = json.keys() order = list(keys) q1 = int(round(len(keys)*0.2)) q2 = int(round(len(keys)*0.3)) q3 = int(round(len(keys)*0.5)) b = [q1,q2,q3] n=0 for i in b: queues = order[n:n+i] n = n+i lists = [(queues[j], json.get(queues[j])) for j in range(len(queues))]

Re: Is there an easy way to control indents in Python

2014-10-15 Thread Terry Reedy
On 10/15/2014 10:32 AM, Chris “Kwpolska” Warrick wrote: On Wed, Oct 15, 2014 at 9:27 AM, alex23 wuwe...@gmail.com wrote: On 15/10/2014 12:23 PM, Juan Christian wrote: Using PyCharm is easy: File Settings (IDE Settings) Editor Smart Keys Reformat on paste choose Reformat Block This

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Rustom Mody
On Wednesday, October 15, 2014 10:30:49 PM UTC+5:30, Anurag Patibandla wrote: keys = json.keys() order = list(keys) q1 = int(round(len(keys)*0.2)) q2 = int(round(len(keys)*0.3)) q3 = int(round(len(keys)*0.5)) b = [q1,q2,q3] n=0 for i in b: queues = order[n:n+i] n = n+i

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
On Wednesday, October 15, 2014 1:10:41 PM UTC-4, Rustom Mody wrote: On Wednesday, October 15, 2014 10:30:49 PM UTC+5:30, Anurag Patibandla wrote: keys = json.keys() order = list(keys) q1 = int(round(len(keys)*0.2)) q2 = int(round(len(keys)*0.3)) q3 = int(round(len(keys)*0.5))

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
Here is my sample dict if that helps: json = {1: {Status: Submitted, Startdate: [01/01/2011], Enddate: [02/02/2012], Job_ID: 1, m_Quantile: 80, m_Controller: Python, m_Method: Distributed, Allocation_3: [50], Allocation_2: [30], Allocation_1: [20], Note: , m_Iterations: 1000, submit:

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Rustom Mody
On Wednesday, October 15, 2014 10:51:11 PM UTC+5:30, Anurag Patibandla wrote: Here is my sample dict if that helps: json = {1: {Status: Submitted, Startdate: [01/01/2011], Enddate: [02/02/2012], Job_ID: 1, m_Quantile: 80, m_Controller: Python, m_Method: Distributed, Allocation_3: [50],

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Dave Angel
Anurag Patibandla anuragpatiband...@gmail.com Wrote in message: Thanks for the response. Here is the code that I have tried. from operator import itemgetter keys = json.keys() order = list(keys) q1 = int(round(len(keys)*0.2)) q2 = int(round(len(keys)*0.3)) q3 = int(round(len(keys)*0.5))

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Dave Angel
Anurag Patibandla anuragpatiband...@gmail.com Wrote in message: On Wednesday, October 15, 2014 1:10:41 PM UTC-4, Rustom Mody wrote: On Wednesday, October 15, 2014 10:30:49 PM UTC+5:30, Anurag Patibandla wrote: keys = json.keys() order = list(keys) q1 = int(round(len(keys)*0.2))

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Dave Angel
Anurag Patibandla anuragpatiband...@gmail.com Wrote in message: dicts = dict(lists) print dicts print dict[0] Print dicts works as expected giving me the combine dictionary values. But when I say dict[0]. I see the error: TypeError: 'type' object has no attribute

Re:[ANN] pdb-clone 1.9 - a fast clone of pdb with the remote debugging and attach features

2014-10-15 Thread Dave Angel
Xavier de Gaye xdeg...@gmail.com Wrote in message: pdb-clone 1.9 has been released at Pypi: https://pypi.python.org/pypi/pdb-clone Features: * Improve significantly pdb performance. With breakpoints, pdb-clone runs just above the speed of the interpreter while pdb runs at 10 to 100

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
On Wednesday, October 15, 2014 1:35:43 PM UTC-4, Rustom Mody wrote: On Wednesday, October 15, 2014 10:51:11 PM UTC+5:30, Anurag Patibandla wrote: Here is my sample dict if that helps: json = {1: {Status: Submitted, Startdate: [01/01/2011], Enddate: [02/02/2012], Job_ID:

Creating a counter

2014-10-15 Thread Shiva
Hi, I am trying to search a string through files in a directory - however while Python script works on it and writes a log - I want to present the user with count of number of strings found. So it should increment for each string found. How do I implement it? If I use a print() within a if

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Anurag Patibandla
On Wednesday, October 15, 2014 1:41:13 PM UTC-4, Dave Angel wrote: Anurag Patibandla anuragpatiband...@gmail.com Wrote in message: Thanks for the response. Here is the code that I have tried. from operator import itemgetter keys = json.keys() order = list(keys) q1 =

How to debug Python IDLE?

2014-10-15 Thread ryguy7272
I'm wondering how to debug code in IDLE Python 3.4. I found this. http://www.cs.uky.edu/~paulp/CS115F11/notes/debug/debug.html That looks pretty helpful, but mine is nothing like that. All my controls are greyed out. The debugger does basically...nothing. All I get is messages like this.

tkinter (Tkinter ;-) )

2014-10-15 Thread tntsugar
hi guys, can you help me please... i installed python 3.4.2 and the IEP editor... now i want to program a little thingy with a window, a button and some entry fields that are connected to a simple calculation... the IEP shows me 3.4.2 without GUI... strange... in the instalation i see the

Re: Creating a counter

2014-10-15 Thread Ian Kelly
On Wed, Oct 15, 2014 at 12:39 PM, Shiva shivaji...@yahoo.com.dmarc.invalid wrote: Hi, I am trying to search a string through files in a directory - however while Python script works on it and writes a log - I want to present the user with count of number of strings found. So it should

Re: How to debug Python IDLE?

2014-10-15 Thread Terry Reedy
On 10/15/2014 3:09 PM, ryguy7272 wrote: I'm wondering how to debug code in IDLE Python 3.4. I found this. Use 3.4.2, which has an important bugfix for debugger. http://www.cs.uky.edu/~paulp/CS115F11/notes/debug/debug.html That looks pretty helpful, but mine is nothing like that. All my

Re: tkinter (Tkinter ;-) )

2014-10-15 Thread Terry Reedy
On 10/15/2014 3:12 PM, tntsu...@googlemail.com wrote: hi guys, can you help me please... i installed python 3.4.2 What system? and the IEP editor... I have no idea what that is. now i want to program a little thingy with a window, a button and some entry fields that are connected to a

Re: Is there an easy way to control indents in Python

2014-10-15 Thread Ian Kelly
On Wed, Oct 15, 2014 at 11:12 AM, Terry Reedy tjre...@udel.edu wrote: On 10/15/2014 10:32 AM, Chris “Kwpolska” Warrick wrote: It should parse this as else: print 'false' print 'done' Why? Because things like `print 'done'` usually have an empty line before it: There is no

Re: Creating a counter

2014-10-15 Thread Terry Reedy
On 10/15/2014 2:39 PM, Shiva wrote: Hi, I am trying to search a string through files in a directory - however while Python script works on it and writes a log - I want to present the user with count of number of strings found. So it should increment for each string found. How do I implement

Re: Creating a counter

2014-10-15 Thread Vincent Vande Vyvre
Le 15/10/2014 20:39, Shiva a écrit : Hi, I am trying to search a string through files in a directory - however while Python script works on it and writes a log - I want to present the user with count of number of strings found. So it should increment for each string found. How do I implement

Re: How to debug Python IDLE?

2014-10-15 Thread ryguy7272
On Wednesday, October 15, 2014 3:23:22 PM UTC-4, Terry Reedy wrote: On 10/15/2014 3:09 PM, ryguy7272 wrote: I'm wondering how to debug code in IDLE Python 3.4. I found this. Use 3.4.2, which has an important bugfix for debugger.

Re: Creating a counter

2014-10-15 Thread MRAB
On 2014-10-15 20:24, Vincent Vande Vyvre wrote: Le 15/10/2014 20:39, Shiva a écrit : Hi, I am trying to search a string through files in a directory - however while Python script works on it and writes a log - I want to present the user with count of number of strings found. So it should

Re: How to debug Python IDLE?

2014-10-15 Thread MRAB
On 2014-10-15 20:36, ryguy7272 wrote: On Wednesday, October 15, 2014 3:23:22 PM UTC-4, Terry Reedy wrote: On 10/15/2014 3:09 PM, ryguy7272 wrote: I'm wondering how to debug code in IDLE Python 3.4. I found this. Use 3.4.2, which has an important bugfix for debugger.

Re: Creating a counter

2014-10-15 Thread Gary Herron
On 10/15/2014 11:39 AM, Shiva wrote: Hi, I am trying to search a string through files in a directory - however while Python script works on it and writes a log - I want to present the user with count of number of strings found. So it should increment for each string found. How do I implement

Re: How to debug Python IDLE?

2014-10-15 Thread ryguy7272
On Wednesday, October 15, 2014 3:10:05 PM UTC-4, ryguy7272 wrote: I'm wondering how to debug code in IDLE Python 3.4. I found this. http://www.cs.uky.edu/~paulp/CS115F11/notes/debug/debug.html That looks pretty helpful, but mine is nothing like that. All my controls are greyed out.

Re: How to debug Python IDLE?

2014-10-15 Thread Mark Lawrence
On 15/10/2014 21:45, ryguy7272 wrote: On Wednesday, October 15, 2014 3:10:05 PM UTC-4, ryguy7272 wrote: I'm wondering how to debug code in IDLE Python 3.4. I found this. http://www.cs.uky.edu/~paulp/CS115F11/notes/debug/debug.html That looks pretty helpful, but mine is nothing like that.

Re: Parsing Python dictionary with multiple objects

2014-10-15 Thread Dave Angel
Anurag Patibandla anuragpatiband...@gmail.com Wrote in message: On Wednesday, October 15, 2014 1:35:43 PM UTC-4, Rustom Mody wrote: On Wednesday, October 15, 2014 10:51:11 PM UTC+5:30, Anurag Patibandla wrote: Here is my sample dict if that helps: json = {1: {Status:

Question About Running Python code

2014-10-15 Thread ryguy7272
I'm trying to run this script (using IDLE 3.4) #!/usr/bin/env python import urllib2 import pytz import pandas as pd from bs4 import BeautifulSoup from datetime import datetime from pandas.io.data import DataReader SITE = http://en.wikipedia.org/wiki/List_of_S%26P_500_companies; START =

Re: Question About Running Python code

2014-10-15 Thread Dan Stromberg
On Wed, Oct 15, 2014 at 3:50 PM, ryguy7272 ryanshu...@gmail.com wrote: I'm trying to run this script (using IDLE 3.4) I would be most appreciative if someone could respond to a few questions. The error that I get is this. 'invalid syntax' You may get better help if you give the context of

Re: Is there an easy way to control indents in Python

2014-10-15 Thread alex23
On 16/10/2014 12:32 AM, Chris “Kwpolska” Warrick wrote: It should parse this as else: print 'false' print 'done' Why? Because things like `print 'done'` usually have an empty line before it: if True: print 'true' else: print 'false' print 'done' That should be parsed the way you

Import Doesn't Import

2014-10-15 Thread ryguy7272
So sorry everyone. I've posted here several times today. This is VERY frustrating. So, I'm reading this link. https://docs.python.org/2/howto/urllib2.html Fetching URLs The simplest way to use urllib2 is as follows: import urllib2 response = urllib2.urlopen('http://python.org/') html =

Re: Import Doesn't Import

2014-10-15 Thread ryguy7272
On Wednesday, October 15, 2014 8:40:40 PM UTC-4, ryguy7272 wrote: So sorry everyone. I've posted here several times today. This is VERY frustrating. So, I'm reading this link. https://docs.python.org/2/howto/urllib2.html Fetching URLs The simplest way to use urllib2 is

Re: Import Doesn't Import

2014-10-15 Thread Chris Angelico
On Thu, Oct 16, 2014 at 11:40 AM, ryguy7272 ryanshu...@gmail.com wrote: I totally don't understand this language. Import means import. Right. WTF! Yes, but import from where? If you ask Python - or any other language - to import asfadgt4tfihavzcxvzxcvaerg, do you expect it to succeed?

Re: Question About Running Python code

2014-10-15 Thread Cameron Simpson
On 15Oct2014 16:09, Dan Stromberg drsali...@gmail.com wrote: On Wed, Oct 15, 2014 at 3:50 PM, ryguy7272 ryanshu...@gmail.com wrote: #1) That's very bizarre to mix single quotes and double quotes in a single language. Does Python actually mix single quotes and double quotes? I'm not

Re: Import Doesn't Import

2014-10-15 Thread Dan Stromberg
On Wed, Oct 15, 2014 at 5:40 PM, ryguy7272 ryanshu...@gmail.com wrote: ImportError: No module named 'urllib2' http://stackoverflow.com/questions/2792650/python3-error-import-error-no-module-name-urllib -- https://mail.python.org/mailman/listinfo/python-list

Re: Import Doesn't Import

2014-10-15 Thread MRAB
On 2014-10-16 01:40, ryguy7272 wrote: So sorry everyone. I've posted here several times today. This is VERY frustrating. So, I'm reading this link. https://docs.python.org/2/howto/urllib2.html Fetching URLs The simplest way to use urllib2 is as follows: import urllib2 response =

Re: Import Doesn't Import

2014-10-15 Thread Dan Stromberg
On Wed, Oct 15, 2014 at 5:44 PM, ryguy7272 ryanshu...@gmail.com wrote: Either this is the most brilliant thing ever invented, or it's the biggest piece of shit ever invented. I just can't tell. All I know for sure, is that it doesn't do ANYTHING that I tell it to do. Maybe you should

Re: Question About Running Python code

2014-10-15 Thread Ian Kelly
On Oct 15, 2014 7:04 PM, Cameron Simpson c...@zip.com.au wrote: On 15Oct2014 16:09, Dan Stromberg drsali...@gmail.com wrote: On Wed, Oct 15, 2014 at 3:50 PM, ryguy7272 ryanshu...@gmail.com wrote: #1) That's very bizarre to mix single quotes and double quotes in a single language. Does

Python 3 is the active language, recommended for newcomers (was: Import Doesn't Import)

2014-10-15 Thread Ben Finney
ryguy7272 ryanshu...@gmail.com writes: So, I'm reading this link. https://docs.python.org/2/howto/urllib2.html Note that this is the documentation for Python 2, which is obsolescent. It has had a long life, so references to Python on the web are still dominantly about that legacy version. Your

Re: Import Doesn't Import

2014-10-15 Thread Chris Rebert
On Wednesday, October 15, 2014, ryguy7272 ryanshu...@gmail.com wrote: So sorry everyone. I've posted here several times today. This is VERY frustrating. So, I'm reading this link. https://docs.python.org/2/howto/urllib2.html Important note!: The /2/ in the URL means those docs are for

Re: How to debug Python IDLE?

2014-10-15 Thread Terry Reedy
On 10/15/2014 3:36 PM, ryguy7272 wrote: Please pay attention to Mark's comment about how to avoid blank line doubling. def showMaxFactor(num): count = num / 2 while count 1: if num % count == 0: print 'largest factor of %d is %d' % \ (num,

Re: Import Doesn't Import

2014-10-15 Thread Terry Reedy
Perhaps you are trying too hard too fast. When I started Python, after 20 years of on and off experience with multiple languages, I went through the tutorial (on Dos, no Idle). It took about 2 hours. Then I quickly wrote the code I needed for a paid project. Do stick with 3.4.2, but use the

[issue22637] avoid using a shell in uuid: replce os.popen with subprocess.Popen

2014-10-15 Thread STINNER Victor
STINNER Victor added the comment: Arfrever wrote me on IRC: Your patch for issue #22637 has print(executable) Ooops. Updated patch without the print. -- Added file: http://bugs.python.org/file36930/uuid_popen-2.patch ___ Python tracker

[issue22627] Calling timestamp() on a datetime object modifies the timestamp of a different datetime object.

2014-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Christopher, I've already pointed out a fix in another message: just remove .replace(tzinfo=None). Doing computations on UTC datetimes (rather than naive) should ensure you don't encounter any ambiguities. -- resolution: - not a bug status: open -

[issue21338] Silent mode for compileall

2014-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34436ae65523 by Berker Peksag in branch 'default': Issue #21338: Add silent mode for compileall. https://hg.python.org/cpython/rev/34436ae65523 -- nosy: +python-dev ___ Python tracker

[issue21338] Silent mode for compileall

2014-10-15 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Thomas. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21338

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Matthew Green posted a nice explanation of the attack: http://blog.cryptographyengineering.com/2014/10/attack-of-week-poodle.html In short, currently it requires injection of code into the browser (i.e. SSL client) to be exploitable. While that's easy on the

[issue22640] Add silent mode for py_compile

2014-10-15 Thread Berker Peksag
New submission from Berker Peksag: This is similar to issue 21338. It would be good to add a new option -q to the CLI interface and add a new parameter quiet to py_compile.compile() (e.g. if doraise is False and quiet is True, do not print anything). -- assignee: berker.peksag

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hmm... of course, stdlib servers don't use create_stdlib_context() in 2.7. We'll have to do it by hand :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22638

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Cory Benfield
Cory Benfield added the comment: I don't believe it's in OpenSSL though. There's an outstanding OpenSSL patch: http://marc.info/?l=openssl-devm=141333049205629w=2 However, as Donald has pointed out, this is really only meaningful for servers and co-operating clients. It's not a useful

[issue3068] IDLE - Add an extension configuration dialog

2014-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: This version only allows configuration of default configuration. Added sections (for added extensions) are ignored. That will be a future enhancement. Patch 5 makes changes in load_extensions and set_user_value so that var strings are compared to saved

[issue22631] Feature Request CAN_RAW_FD_FRAMES

2014-10-15 Thread Stefan Tatschner
Changes by Stefan Tatschner ste...@sevenbyte.org: -- title: Feature Request CAN_RAW_FD_FRAME - Feature Request CAN_RAW_FD_FRAMES ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22631 ___

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Tell me if you will review this patch and maybe accept it ;-) In fact I checked all the return keywords in the email library and I didn't find any other copy of a dict. This is the reason why I am dubious about my patch ;-) --

[issue3068] IDLE - Add an extension configuration dialog

2014-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: Patch 5 was missing the last change. Ignore it unless here is a problem with 5a -- Added file: http://bugs.python.org/file36932/cfg-ext-34-5a.diff ___ Python tracker rep...@bugs.python.org

[issue22237] sorted() docs should state that the sort is stable

2014-10-15 Thread Mark Dickinson
Mark Dickinson added the comment: when I grep the code, I don't find it The non-greppability is due to preprocessor evil. The culprit is this macro from Include/object.h: #define _Py_IDENTIFIER(varname) _Py_static_string(PyId_##varname, #varname) along with the declaration

[issue22237] sorted() docs should state that the sort is stable

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Mark, Without your explanation, I was really lost. Thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22237 ___

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Update on 2.7: - there are no SSL servers in the stdlib (ha) - SSL clients don't do any auto-downgrading so it's not obvious we should patch something (if people choose to pass PROTOCOL_SSLv3, it's their problem). Update on 3.4: - the only SSL server in the

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-10-15 Thread Berker Peksag
Berker Peksag added the comment: + self.assertTrue(socket.SocketType is _socket.socket) You can use assertIs instead of assertTrue. -- nosy: +berker.peksag versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Martin Richard
Changes by Martin Richard mart...@martiusweb.net: -- nosy: +martius ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22638 ___ ___ Python-bugs-list

[issue22237] sorted() docs should state that the sort is stable

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: My patch for the documentation of Python 3.5, just need a small feedback. If you agree with this patch, I will provide the same patch for 2.7 and 3.4 Thank you -- keywords: +patch Added file: http://bugs.python.org/file36933/issue22237.patch

[issue13236] unittest needs more flush calls

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: ping about this bug, do you have the same problem with the last version of Python 3.4 and with Python 2.7.8 ? -- nosy: +matrixise ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13236

[issue17095] Modules/Setup *shared* support broken

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi Ned, What are the news for this issue? -- nosy: +matrixise ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17095 ___

[issue11844] Update json to upstream simplejson latest release

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi all, ping this issue for Python 3.5. -- nosy: +matrixise ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11844 ___

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-15 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991 ___ ___

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Christian Heimes
Christian Heimes added the comment: There is no need for a _create_stdlib_server_context() function. _create_stdlib_context() takes a purpose argument, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22638

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-15 Thread Stéphane Wirtel
Changes by Stéphane Wirtel steph...@wirtel.be: Removed file: http://bugs.python.org/file36915/issue21991.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991 ___

[issue22641] Use better default context in asyncio

2014-10-15 Thread Antoine Pitrou
New submission from Antoine Pitrou: asyncio is not yet bound by legacy use cases, so this patch switches asyncio to stronger default SSL settings for client connections. It also adds tests for that (the code path was untested). -- components: Library (Lib), asyncio files:

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: New version of the patch -- Added file: http://bugs.python.org/file36935/issue21991.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991 ___

[issue21991] The new email API should use MappingProxyType instead of returning new dicts.

2014-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: sorry, but how to update a patch without losing the rietveld review? Is there a documentation about that? Thanks. Stephane -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21991

[issue22641] Use better default context in asyncio

2014-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file36934/asyncio_default_context.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22641 ___

[issue22641] Use better default context in asyncio

2014-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Added file: http://bugs.python.org/file36936/asyncio_default_context.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22641 ___

[issue11844] Update json to upstream simplejson latest release

2014-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Development of simplejson and the standard json module has diverged. We may port selected fixes and features from simplejson, but I don't think a wholesale update is doable anymore. Please open separate issues for each feature you would like to see added to

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2014-10-15 Thread Matthias Klose
Matthias Klose added the comment: could somebody attach a build log from such a system? and the libffi config.log? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22634 ___

[issue22634] importing _ctypes failed: undefined symbol: ffi_call_win32

2014-10-15 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +larry priority: normal - release blocker versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22634 ___

[issue19450] Bug in sqlite in Windows binaries

2014-10-15 Thread Marc Schlaich
Marc Schlaich added the comment: I've now run various and partially complex applications including SQLAlchemy against SQLite 3.8.1 for months without having any issues. Right now I have run extensive database test suites against the current SQLite release 3.8.6 without any issues, too. So I

[issue20386] socket.SocketType enum overwrites import of _socket.SocketType

2014-10-15 Thread koobs
koobs added the comment: This change looks to be implicated in a buildbot breakage on koobs-freebsd9 (3.4). I couldn't reproduce the test failure by re-running the build, so possibly intermittent or non-deterministic. Full build log attached. I'll leave the issue closed for now, please

[issue19450] Bug in sqlite in Windows binaries

2014-10-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Steve is responsible for the Windows builds, but he always answered to your request above. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19450

[issue22638] ssl module: the SSLv3 protocol is vulnerable (POODLE attack)

2014-10-15 Thread Donald Stufft
Donald Stufft added the comment: I really don't think it's unreasonable to say SSL 3.0 is insecure, if you rely on it then you need to pass this flag to use it. Passing a flag to do something insecure is hardly onerous. -- ___ Python tracker

[issue19450] Bug in sqlite in Windows binaries

2014-10-15 Thread Mark Lawrence
Mark Lawrence added the comment: A work around is already given in msg201796 and is reinforced by this https://mail.python.org/pipermail/python-list/2014-October/679369.html -- nosy: +zach.ware ___ Python tracker rep...@bugs.python.org

  1   2   >