Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread cl
I am developing some code which runs on a (remote from me most of the time) Beaglebone Black single board computer. It reads various items of data (voltages, currents, temperatures, etc.) using both a 1-wire bus system and the Beaglebone's ADC inputs. The values are stored at hourly intervals

Python code in presentations

2014-09-30 Thread Jean-Michel Pichavant
Hello list, I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code in an efficient way (with some basic syntax highlights). I need to be catchy about the code I'm presenting otherwise

Re: Python code in presentations

2014-09-30 Thread Tom P
On 30.09.2014 13:50, Jean-Michel Pichavant wrote: Hello list, I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code in an efficient way (with some basic syntax highlights). I need to

Re: Python code in presentations

2014-09-30 Thread Joel Goldstick
On Tue, Sep 30, 2014 at 8:46 AM, Tom P werot...@freent.dd wrote: On 30.09.2014 13:50, Jean-Michel Pichavant wrote: Hello list, I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code

Re:Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Dave Angel
c...@isbd.net Wrote in message: I am developing some code which runs on a (remote from me most of the time) Beaglebone Black single board computer. It reads various items of data (voltages, currents, temperatures, etc.) using both a 1-wire bus system and the Beaglebone's ADC inputs. The

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Rustom Mody
On Tuesday, September 30, 2014 5:18:31 PM UTC+5:30, Chris wrote: I would actually quite like to keep the configuration data separate from the code as it would simplify using the data at the 'home' end of things as I'd just need to copy the configuration file across. This was why the database

Re: Python code in presentations

2014-09-30 Thread Rustom Mody
On Tuesday, September 30, 2014 5:21:00 PM UTC+5:30, Jean-Michel Pichavant wrote: Hello list, I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code in an efficient way (with some basic

Re: Python code in presentations

2014-09-30 Thread Ned Batchelder
On 9/30/14 7:50 AM, Jean-Michel Pichavant wrote: I wonder if some people in this list who have successfully presented python code have some tips about doing the proper way. Ned's presentations for pycons are to me one example of successful code presentation: - the layout is simple - the

Re: Python code in presentations

2014-09-30 Thread Jean-Michel Pichavant
- Original Message - From: Joel Goldstick joel.goldst...@gmail.com Cc: python-list@python.org Sent: Tuesday, 30 September, 2014 3:01:38 PM Subject: Re: Python code in presentations I'm a little at a loss that you are concentrating on showing code to users. Are you also showing how

Re: Python code in presentations

2014-09-30 Thread Albert-Jan Roskam
-- On Tue, Sep 30, 2014 1:50 PM CEST Jean-Michel Pichavant wrote: Hello list, I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code in an efficient way

Re: Re:Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread cl
Dave Angel da...@davea.name wrote: c...@isbd.net Wrote in message: I am puzzling where and how to keep these configuration values. My current design has them in dedicated tables in the database but this is rather clumsy in many ways as there's an overhead reading them every time the

SNI support in python 2.7 for Locust load tests

2014-09-30 Thread Reddy
Hello, At the beginning - welcome everyone, as this is my first post here. I'm not an active Python developer now, but I have general knowledge of the language. I'm trying to use locust (http://locust.io/) to run load test of one site we're developing. Everything was running nice and smooth

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread cl
Rustom Mody rustompm...@gmail.com wrote: On Tuesday, September 30, 2014 5:18:31 PM UTC+5:30, Chris wrote: I would actually quite like to keep the configuration data separate from the code as it would simplify using the data at the 'home' end of things as I'd just need to copy the

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread jkn
might this be of interest (though old)? https://wiki.python.org/moin/ConfigParserShootout Cheers Jon N -- https://mail.python.org/mailman/listinfo/python-list

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Neil D. Cerutti
On 9/30/2014 7:35 AM, c...@isbd.net wrote: Thus I'd have something like (apologies for any syntax errors):- cfg = { LeisureVolts: [AIN0, 0.061256, Leisure Battery Voltage], StarterVolts: [AIN1, 0.060943, Starter Battery Voltage], LeisureAmps1: [AIN2, 0.423122, Leisure Battery

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Rustom Mody
On Tuesday, September 30, 2014 8:48:15 PM UTC+5:30, c...@isbd.net wrote: Rustom Mody wrote: On Tuesday, September 30, 2014 5:18:31 PM UTC+5:30, Chris wrote: I would actually quite like to keep the configuration data separate from the code as it would simplify using the data at the

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Chris Angelico
On Wed, Oct 1, 2014 at 2:39 AM, Rustom Mody rustompm...@gmail.com wrote: python - just keep config in the modules/classes, not easy to use at 'both ends' (home and remote), otherwise quite simple Can work at a trivial level. As soon as things get a bit larger data and code mixed up

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Rustom Mody
On Tuesday, September 30, 2014 10:22:12 PM UTC+5:30, Chris Angelico wrote: On Wed, Oct 1, 2014 at 2:39 AM, Rustom Mody wrote: python - just keep config in the modules/classes, not easy to use at 'both ends' (home and remote), otherwise quite simple Can work at a trivial level. As

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Chris Angelico
On Wed, Oct 1, 2014 at 3:01 AM, Rustom Mody rustompm...@gmail.com wrote: And you get expressions for free - simple stuff like 7*24*60*60 to represent the number of seconds in a week (for people who aren't intimately familiar with 604800), or calculations relative to previous data, or whatever.

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Rustom Mody
On Tuesday, September 30, 2014 10:46:21 PM UTC+5:30, Chris Angelico wrote: On Wed, Oct 1, 2014 at 3:01 AM, Rustom Mody wrote: And you get expressions for free - simple stuff like 7*24*60*60 to represent the number of seconds in a week (for people who aren't intimately familiar with

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread cl
Rustom Mody rustompm...@gmail.com wrote: # docs for first option # more docs # examples # etcetera first_option =123 # docs for second option second_option = 234 Is that Python code, or is it a sectionless INI file, or what? Yeah I was going to say that this is possible

Re: SNI support in python 2.7 for Locust load tests

2014-09-30 Thread Christian Heimes
On 30.09.2014 16:50, Reddy wrote: Hello, At the beginning - welcome everyone, as this is my first post here. I'm not an active Python developer now, but I have general knowledge of the language. I'm trying to use locust (http://locust.io/) to run load test of one site we're developing.

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Chris Angelico
On Wed, Oct 1, 2014 at 3:31 AM, Rustom Mody rustompm...@gmail.com wrote: On the other hand if you impose a convention: Constants file-module has NOTHING but constants, thats a non-formal convention and thats ok. If however you mix it up with other (real) code, you'll get a bloody mess. This

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread Chris Angelico
On Wed, Oct 1, 2014 at 3:30 AM, c...@isbd.net wrote: The main trouble with this approach is that I need some way to have the python/config file available at the 'home' end of this as well as at the 'remote' end. I guess I could write a copy of the file into the database but then I have the

Re: Python code in presentations

2014-09-30 Thread Mihamina Rakotomandimby
On 09/30/2014 02:50 PM, Jean-Michel Pichavant wrote: I wonder if some people in this list who have successfully presented python code have some tips about doing the proper way. Ned's presentations for pycons are to me one example of successful code presentation: - the layout is simple -

Re: Keepin constants, configuration values, etc. in Python - dedicated module or what?

2014-09-30 Thread cl
Neil D. Cerutti ne...@norwich.edu wrote: On 9/30/2014 7:35 AM, c...@isbd.net wrote: Thus I'd have something like (apologies for any syntax errors):- cfg = { LeisureVolts: [AIN0, 0.061256, Leisure Battery Voltage], StarterVolts: [AIN1, 0.060943, Starter Battery Voltage],

Re[2]: Teaching Python

2014-09-30 Thread Grawburg
I use Chris Roffey's Coding Club - Python Basics (Level 1) and Coding Club - Python: Next Steps (Level 2) I also use the Turtle material from Python for Kids These are 11+ year old kids in week long, 3 hour/day summer camps on the Raspberry Pi and Python. The Level 2 book is for the 2nd camp

how to parse standard algebraic notation

2014-09-30 Thread math math
Hi, I am trying to learn Python while solving exercises. I want to basically write a program that inputs a polynomial in standard algebraic notation and outputs its derivative. I know that I need to get the exponent somehow, but I am not sure how to accomplish this in python (3.3) Do you

Re: how to parse standard algebraic notation

2014-09-30 Thread Gary Herron
On 09/30/2014 01:53 PM, math math wrote: Hi, I am trying to learn Python while solving exercises. I want to basically write a program that inputs a polynomial in standard algebraic notation and outputs its derivative. I know that I need to get the exponent somehow, but I am not sure how to

Restarting Python

2014-09-30 Thread Seymore4Head
Since the developers of Python decided to make Python 3 non backward compatible, I can't help but wonder why they don't think a command to restart would be a useful addition? -- https://mail.python.org/mailman/listinfo/python-list

Re: Restarting Python

2014-09-30 Thread Grant Edwards
On 2014-09-30, Seymore4Head Seymore4Head@Hotmail.invalid wrote: Since the developers of Python decided to make Python 3 non backward compatible, I can't help but wonder why they don't think a command to restart would be a useful addition? Uh... what? Does that make any sense to anybody else?

Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread cl
In the namedtuple documentation there's an example:- EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, department, paygrade') import sqlite3 conn = sqlite3.connect('/companydata') cursor = conn.cursor() cursor.execute('SELECT name, age, title, department,

Re: Restarting Python

2014-09-30 Thread Ned Batchelder
On 9/30/14 5:15 PM, Seymore4Head wrote: Since the developers of Python decided to make Python 3 non backward compatible, I can't help but wonder why they don't think a command to restart would be a useful addition? Starting a process over again in the same way is not something that is easy

Re: Restarting Python

2014-09-30 Thread Seymore4Head
On Tue, 30 Sep 2014 18:05:20 -0400, Ned Batchelder n...@nedbatchelder.com wrote: On 9/30/14 5:15 PM, Seymore4Head wrote: Since the developers of Python decided to make Python 3 non backward compatible, I can't help but wonder why they don't think a command to restart would be a useful

Re: Restarting Python

2014-09-30 Thread Terry Reedy
On 9/30/2014 5:15 PM, Seymore4Head wrote: Since the developers of Python decided to make Python 3 non backward compatible, This is a trollish exaggeration. I can't help but wonder why they don't think a command to restart would be a useful addition? More trollishness. Python does not

Re: Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread Peter Otten
c...@isbd.net wrote: In the namedtuple documentation there's an example:- EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, department, paygrade') import sqlite3 conn = sqlite3.connect('/companydata') cursor = conn.cursor() cursor.execute('SELECT

Re: Restarting Python

2014-09-30 Thread Seymore4Head
On Tue, 30 Sep 2014 18:58:50 -0400, Terry Reedy tjre...@udel.edu wrote: On 9/30/2014 5:15 PM, Seymore4Head wrote: Since the developers of Python decided to make Python 3 non backward compatible, This is a trollish exaggeration. I can't help but wonder why they don't think a command to

Re: Using namedtuple with sqlite, surely it can do better than the example

2014-09-30 Thread Mark Lawrence
On 30/09/2014 22:32, c...@isbd.net wrote: In the namedtuple documentation there's an example:- EmployeeRecord = namedtuple('EmployeeRecord', 'name, age, title, department, paygrade') import sqlite3 conn = sqlite3.connect('/companydata') cursor = conn.cursor()

Re: Restarting Python

2014-09-30 Thread Mark Lawrence
On 30/09/2014 22:27, Grant Edwards wrote: On 2014-09-30, Seymore4Head Seymore4Head@Hotmail.invalid wrote: Since the developers of Python decided to make Python 3 non backward compatible, I can't help but wonder why they don't think a command to restart would be a useful addition? Uh... what?

Re: Python code in presentations

2014-09-30 Thread Roy Smith
On Tue, Sep 30, 2014 1:50 PM CEST Jean-Michel Pichavant wrote: I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code in an efficient way (with some basic syntax highlights). [...]

Re: how to parse standard algebraic notation

2014-09-30 Thread Chris Angelico
On Wed, Oct 1, 2014 at 6:53 AM, math math mathemati...@gmail.com wrote: I want to basically write a program that inputs a polynomial in standard algebraic notation and outputs its derivative. I know that I need to get the exponent somehow, but I am not sure how to accomplish this in python

Re: Restarting Python

2014-09-30 Thread Chris Angelico
On Wed, Oct 1, 2014 at 9:16 AM, Seymore4Head Seymore4Head@hotmail.invalid wrote: On Tue, 30 Sep 2014 18:58:50 -0400, Terry Reedy tjre...@udel.edu wrote: On 9/30/2014 5:15 PM, Seymore4Head wrote: Since the developers of Python decided to make Python 3 non backward compatible, This is a

Re: SNI support in python 2.7 for Locust load tests

2014-09-30 Thread dieter
Reddy re...@poczta.fm writes: ... I'm trying to use locust (http://locust.io/) to run load test of one site we're developing. Everything was running nice and smooth until we switch the servers to use SNI. SNI is not officially supported in python 2.7.5 A recent post in this list regarding

[issue22470] Possible integer overflow in error handlers

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22470 ___

[issue22286] Allow backslashreplace error handler to be used on input

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22286 ___

[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 3.3, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22517 ___

[issue22519] integer overflow in computing byte's object representation

2014-09-30 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 2.7, Python 3.3, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22519 ___

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Gregory just has committed an equivalent of unicode_2.patch in a404bf4db6a6. -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22207

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Gregory P. Smith
Gregory P. Smith added the comment: modify it as you see fit, i hadn't noticed this issue; just the warnings. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22207 ___

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Yes, these warning annoyed me too. But Victor's patch is purposed to check input data of public C API functions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22207

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is original Victor's patch synchronized with the tip. -- Added file: http://bugs.python.org/file36757/issue22207_unicode_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22207

[issue4093] add gc/memory management tests to pybench

2014-09-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I think it's better to keep pybench speed performance oriented and rather use a new tool for memory performance tests. I've recently done a lightning talk at PyCon UK on the subject and found the current tools we have for memory testing a bit

[issue22207] Test for integer overflow on Py_ssize_t: explicitly cast to size_t

2014-09-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have reviewed the patch and found only few checks which looks good to me. Also I found two possible overflows (not fixed by the patch). All other changes looks redundant to me and just churn a code. -- ___

[issue22448] call_at/call_later with Timer cancellation can result in (practically) unbounded memory usage.

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: Sorry, I'm coming later after the review and the commit, but I worry about performances of _run_once() since it's the core of asyncio. Yury proposed to only iterate once on self._scheduled when removing delayed calls, and I have the same concern. Here is a

[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8e5e19b3cd4e by Victor Stinner in branch '3.4': Issue #22396: On 32-bit AIX platform, don't expose os.posix_fadvise() nor https://hg.python.org/cpython/rev/8e5e19b3cd4e New changeset 5ade1061fa3d by Victor Stinner in branch 'default': (Merge 3.4)

[issue22396] AIX posix_fadvise and posix_fallocate

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: Or can we simply keep the function and skip the test? Usually, we prefer to not provide the function in Python if it is known to be broken. Other examples: - HAVE_BROKEN_POLL: don't declare select.poll() - HAVE_BROKEN_PTHREAD_SIGMASK: don't declare

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: It looks like compilation of Python 3.5 fails on FreeBSD 6.4 because of the changeset bbe57429eba0a9ec21fb0f1178f409f1bba44c22: http://buildbot.python.org/all/builders/x86%20FreeBSD%206.4%203.x/builds/5061 Compile log: --- building '_ctypes' extension

[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread STINNER Victor
New submission from STINNER Victor: On buildbots FreeBSD 6.4 and 7.2, the compilation of the ctypes module fails because the function ffi_call_win32 is missing. I don't understand why a win32 function would be needed on FreeBSD!?

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

2014-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I haven't really followed, but now that the PEP is accepted, what is the progress on this one? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___

[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- components: +ctypes keywords: +buildbot ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22521 ___

[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: I don't understand why a win32 function would be needed on FreeBSD!? I see the function defined in libffi, but I don't see it used in the ctypes module. Note: the system libffi is not used, these buildbots compile the embedded version of libffi: checking

[issue22522] sys.excepthook doesn't receive the traceback when called from code.InteractiveInterpreter

2014-09-30 Thread Claudiu Popa
New submission from Claudiu Popa: It seems that sys.excepthook doesn't receive the traceback when an error occurs during a code.InteractiveInterpreter run. The problem is here: https://hg.python.org/cpython/file/5ade1061fa3d/Lib/code.py#l168. last_tb was previously set to None right before.

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

2014-09-30 Thread Ben Hoyt
Ben Hoyt added the comment: Yes, PEP 471 has been accepted, and I've got a mostly-finished C implementation of os.scandir() for CPython 3.5, as well as tests and docs. If you want a sneak preview, see posixmodule_scandir*.c, test/test_scandir.py, and os.rst here:

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: There is a similar error on OpenIndiana buildbot, Python cannot be compiled since this build: http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/8664/steps/compile/logs/stdio gcc -fPIC -Wsign-compare -g -O0 -Wall -Wstrict-prototypes

[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)

2014-09-30 Thread Mathieu Dupuy
Mathieu Dupuy added the comment: But I think md5-sess should really be integrated. It's a standard mechanism described by a RFC (https://www.ietf.org/rfc/rfc2617.txt), and people need it, however insecure it may be (aren't other method (md5) insecure too ?). --

[issue16038] ftplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___ ___ Python-bugs-list

[issue18747] Re-seed OpenSSL's PRNG after fork

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18747 ___ ___ Python-bugs-list

[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___ ___ Python-bugs-list

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for noticing this. Looking at an old build, the ctypes and curses compile errors under OpenIndiana are not new: http://buildbot.python.org/all/builders/AMD64%20OpenIndiana%203.x/builds/8658/steps/compile/logs/stdio Simply, it seems that a ctypes compile

[issue22521] ctypes compilation fails on FreeBSD: Undefined symbol ffi_call_win32

2014-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Those FreeBSD versions are totally obsolete, perhaps we should simply ignore any failures on them. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22521

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: the ctypes and curses compile errors under OpenIndiana are not new FYI the compilation error of curses on OpenIndiana is *old*, at least 3 years old :-( http://bugs.python.org/issue13552 I just opened the issue #22521 for the compilation error of ctypes on

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Jonas Wagner
Jonas Wagner added the comment: I don't understand where this error comes from... The compilation commands are exactly the same in both the before and after logs. The order of commands is also the same. The only difference is this message: *** WARNING: renaming _ssl since importing it

[issue16041] poplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___ ___ Python-bugs-list

[issue16038] ftplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 783e7b4375ac by Georg Brandl in branch '3.2': Issue #16038: CVE-2013-1752: ftplib: Limit amount of data read by https://hg.python.org/cpython/rev/783e7b4375ac -- ___ Python tracker rep...@bugs.python.org

[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0f362676460d by Georg Brandl in branch '3.2': Issue #16042: CVE-2013-1752: smtplib: Limit amount of data read by https://hg.python.org/cpython/rev/0f362676460d -- ___ Python tracker

[issue16037] httplib: header parsing is unlimited

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset deee87d61436 by Georg Brandl in branch '3.2': Issue #16037: HTTPMessage.readheaders() raises an HTTPException when more than https://hg.python.org/cpython/rev/deee87d61436 -- ___ Python tracker

[issue16041] poplib: unlimited readline() from connection

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 76be07730f8d by Georg Brandl in branch '3.2': Issue #16041: CVE-2013-1752: poplib: Limit maximum line lengths to 2048 to https://hg.python.org/cpython/rev/76be07730f8d -- ___ Python tracker

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 386b0f478117 by Georg Brandl in branch '3.2': Issue #18709: Fix CVE-2013-4238. The SSL module now handles NULL bytes https://hg.python.org/cpython/rev/386b0f478117 -- ___ Python tracker

[issue18747] Re-seed OpenSSL's PRNG after fork

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset bdf73458df5f by Christian Heimes in branch '3.2': Issue #18747: document issue with OpenSSL's CPRNG state and fork https://hg.python.org/cpython/rev/bdf73458df5f -- ___ Python tracker

[issue18709] SSL module fails to handle NULL bytes inside subjectAltNames general names (CVE-2013-4238)

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18709 ___ ___ Python-bugs-list

[issue17997] ssl.match_hostname(): sub string wildcard should not match IDNA prefix

2014-09-30 Thread Georg Brandl
Georg Brandl added the comment: Since it's been out in 3.2.x for so long, I won't apply this for 3.2 since at this point a behavior change might do more harm than good. -- resolution: - fixed status: open - closed versions: +Python 3.3, Python 3.4 -Python 3.2

[issue18747] Re-seed OpenSSL's PRNG after fork

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18747 ___

[issue16041] poplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16041 ___ ___ Python-bugs-list

[issue16042] smtplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16042 ___ ___ Python-bugs-list

[issue16038] ftplib: unlimited readline() from connection

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16038 ___

[issue21308] PEP 466: backport ssl changes

2014-09-30 Thread Matthias Klose
Matthias Klose added the comment: causing #22523, still referencing _ssl.sslwrap. -- nosy: +doko ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21308 ___

[issue22523] [regression] Lib/ssl.py still references _ssl.sslwrap

2014-09-30 Thread Matthias Klose
New submission from Matthias Klose: the backport in issue #21308 caused this regression. _ssl.sslwrap is still referenced in some files. -- components: Library (Lib) messages: 227896 nosy: alex, benjamin.peterson, christian.heimes, doko, dstufft, giampaolo.rodola, janssen, pitrou

[issue16037] httplib: header parsing is unlimited

2014-09-30 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16037 ___

[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Matthias Troffaes
Matthias Troffaes added the comment: Chiming in here: Sphinx's testing framework does include a feature that allows easily read/write files into/from text/bytes directly from path-like objects. There is thus a demand out there. If this feature were to make it into stdlib, it would be loved at

[issue22523] [regression] Lib/ssl.py still references _ssl.sslwrap

2014-09-30 Thread Matthias Klose
Matthias Klose added the comment: forwarded from https://bugs.debian.org/762010 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22523 ___ ___

[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Ram Rachum
Ram Rachum added the comment: Matthias: Do you prefer having both `write_bytes` and `write_text` instead of just `write` with a `binary` option? Do you prefer `append` and `exclusive` modes to be allowed or not? -- ___ Python tracker

[issue458343] distutils should zap .o as well as .so

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94af1af93670 by Antoine Pitrou in branch 'default': Remove pointless vile hack that can cause the build step to fail when some extension modules can't be imported. https://hg.python.org/cpython/rev/94af1af93670 -- nosy: +python-dev

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 94af1af93670 by Antoine Pitrou in branch 'default': Remove pointless vile hack that can cause the build step to fail when some extension modules can't be imported. https://hg.python.org/cpython/rev/94af1af93670 --

[issue22456] __base__ undocumented

2014-09-30 Thread anupama srinivas murthy
anupama srinivas murthy added the comment: I have documented the function in object.rst file. I do not know the use of the function and have not mentioned that. My documentation is based on what I understood from the comments below and the explanation here:

[issue22419] wsgiref request length

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 0d115d14adfd by Georg Brandl in branch '3.2': Issue #22419: Limit the length of incoming HTTP request in wsgiref server to https://hg.python.org/cpython/rev/0d115d14adfd -- ___ Python tracker

[issue22517] BufferedRWpair doesn't clear weakrefs

2014-09-30 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4fa5239624b8 by Georg Brandl in branch '3.2': Issue #22517: When a io.BufferedRWPair object is deallocated, clear its https://hg.python.org/cpython/rev/4fa5239624b8 -- ___ Python tracker

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: The change I just pushed should fix the failures, waiting for the buildbots to compile now. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5309 ___

[issue5309] distutils doesn't parallelize extension module compilation

2014-09-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks ok on OpenIndiana, closing now. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5309 ___

[issue22518] integer overflow in encoding unicode

2014-09-30 Thread STINNER Victor
STINNER Victor added the comment: New changeset f86fde20e9ce by Benjamin Peterson in branch 'default': merge 3.4 (closes #22518) https://hg.python.org/cpython/rev/f86fde20e9ce This changeset added other. It looks like you commited a conflict. -if (requiredsize2*outsize) +if

[issue20218] Add methods to `pathlib.Path`: `write_text`, `read_text`, `write_bytes`, `read_bytes`

2014-09-30 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +georg.brandl resolution: rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20218 ___

  1   2   3   >