[ANN]:JSONStream

2013-07-17 Thread Sol Toure
I was trying to process a large file containing a number of distinct JSON object as a stream, but I couldn't find anything readily available to that. (maybe I didn't search hard enough) So I came up with this: https://github.com/qrtz/JSONStream I hope you find it useful too. --

ANN: eGenix EuroPython 2013 Talks Videos

2013-07-17 Thread eGenix Team: M.-A. Lemburg
ANNOUNCING eGenix EuroPython 2013 Talks Videos This announcement is also available on our web-site for online reading: http://www.egenix.com/company/news/EuroPython-2013-Presentations.html

Re: help on python regular expression named group

2013-07-17 Thread wxjmfauth
Le mardi 16 juillet 2013 08:55:58 UTC+2, Mohan L a écrit : Dear All, Here is my script : #!/usr/bin/python import re # A string. logs = date=2012-11-28 time=21:14:59 # Match with named groups. m =

Re: Homework help requested (not what you think!)

2013-07-17 Thread alex23
On 17/07/2013 8:43 AM, John Ladasky wrote: The kids all claim to be interested. They all want to write the next great 3D video game. Thus, I'm a little surprised that the kids don't actually try to sit down and code without me prompting them. I think that they're disappointed when I show

Re: Homework help requested (not what you think!)

2013-07-17 Thread Steven D'Aprano
On Tue, 16 Jul 2013 15:43:45 -0700, John Ladasky wrote: The kids all claim to be interested. They all want to write the next great 3D video game. Thus, I'm a little surprised that the kids don't actually try to sit down and code without me prompting them. I think that they're disappointed

Re: help on python regular expression named group

2013-07-17 Thread Joshua Landau
On 17 July 2013 07:15, wxjmfa...@gmail.com wrote: Not sure, I'm correct. I took you precise string to refresh my memory. I'm glad to see you doing something else, but I don't think you understood his problem. Note that his problem has not solution, which a few seconds of Googling has confirmed

Re: help on python regular expression named group

2013-07-17 Thread wxjmfauth
Le mercredi 17 juillet 2013 09:46:46 UTC+2, Joshua Landau a écrit : On 17 July 2013 07:15, wxjmfa...@gmail.com wrote: Not sure, I'm correct. I took you precise string to refresh my memory. I'm glad to see you doing something else, but I don't think you understood his problem.

Re: Homework help requested (not what you think!)

2013-07-17 Thread Joshua Landau
On 16 July 2013 23:43, John Ladasky john_lada...@sbcglobal.net wrote: Well, a few other parents caught wind of what I was doing with my son, and they asked me whether I could tutor their kids, too. I accepted the jobs (for pay, actually). The kids all claim to be interested. They all

Re: Homework help requested (not what you think!)

2013-07-17 Thread PythonAB
On 17 jul 2013, at 08:35, alex23 wrote: On 17/07/2013 8:43 AM, John Ladasky wrote: The kids all claim to be interested. They all want to write the next great 3D video game. Thus, I'm a little surprised that the kids don't actually try to sit down and code without me prompting them. I

Re: tkinter redraw rates

2013-07-17 Thread Dave Angel
On 07/16/2013 11:04 PM, fronag...@gmail.com wrote: Noted on the quoting thing. Regarding the threading, well, first, I'm not so much a programmer as someone who knows a bit of how to program. And it seems that the only way to update a tkinter window is to use the .update() method, which is

Re: tkinter redraw rates

2013-07-17 Thread fronagzen
On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote: On 07/16/2013 11:04 PM, fronag...@gmail.com wrote: Noted on the quoting thing. Regarding the threading, well, first, I'm not so much a programmer as someone who knows a bit of how to program. And it seems that

Re: grimace: a fluent regular expression generator in Python

2013-07-17 Thread Ben Last
On 16 July 2013 20:48, python-list-requ...@python.org wrote: From: Anders J. Munch 2...@jmunch.dk Date: Tue, 16 Jul 2013 13:38:35 +0200 Ben Last wrote: north_american_number_re = (RE().start .literal('(').followed_by.**exactly(3).digits.then.**literal(')')

Re: tkinter redraw rates

2013-07-17 Thread fronagzen
On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote: On 07/16/2013 11:04 PM, fronag...@gmail.com wrote: Noted on the quoting thing. Regarding the threading, well, first, I'm not so much a programmer as someone who knows a bit of how to program. And it seems that the only way

Re: tkinter redraw rates

2013-07-17 Thread Dave Angel
On 07/17/2013 07:10 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote: On 07/16/2013 11:04 PM, fronag...@gmail.com wrote: Noted on the quoting thing. Regarding the threading, well, first, I'm not so much a programmer as someone who knows a bit of

Re: grimace: a fluent regular expression generator in Python

2013-07-17 Thread Johann Hibschman
Ben Last b...@benlast.com writes: Good points. I wanted to find a syntax that allows comments as well as being fluent: RE() .any_number_of.digits # Recall that any_number_of includes zero .followed_by.an_optional.dot.then.at_least_one.digit # The dot is specifically optional # but we must

Re: tkinter redraw rates

2013-07-17 Thread fronagzen
On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote: On 07/17/2013 07:10 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote: On 07/16/2013 11:04 PM, fronag...@gmail.com wrote: Noted on the quoting thing. Regarding the threading, well,

Re: Homework help requested (not what you think!)

2013-07-17 Thread Neil Cerutti
On 2013-07-16, John Ladasky john_lada...@sbcglobal.net wrote: So, what I am seeking are suggestions for programming assignments that I can give to brand-new students of Python. Please keep in mind that none of them are even up to the task of a simple algorithm like Bubble Sort -- at least, not

Re: Homework help requested (not what you think!)

2013-07-17 Thread Chris Angelico
On Wed, Jul 17, 2013 at 11:20 PM, Neil Cerutti ne...@norwich.edu wrote: Markov chains are an advanced technique you could introduce, but you'd need a huge list of names broken into syllables from somewhere. You could use names broken into letters... or skip the notion of names and just

Re: Homework help requested (not what you think!)

2013-07-17 Thread Neil Cerutti
On 2013-07-17, Chris Angelico ros...@gmail.com wrote: On Wed, Jul 17, 2013 at 11:20 PM, Neil Cerutti ne...@norwich.edu wrote: Markov chains are an advanced technique you could introduce, but you'd need a huge list of names broken into syllables from somewhere. You could use names broken into

Re: Homework help requested (not what you think!)

2013-07-17 Thread Chris Angelico
On Wed, Jul 17, 2013 at 11:55 PM, Neil Cerutti ne...@norwich.edu wrote: On 2013-07-17, Chris Angelico ros...@gmail.com wrote: On Wed, Jul 17, 2013 at 11:20 PM, Neil Cerutti ne...@norwich.edu wrote: Markov chains are an advanced technique you could introduce, but you'd need a huge list of names

Re: grimace: a fluent regular expression generator in Python

2013-07-17 Thread Roy Smith
In article mailman.4772.1373978931.3114.python-l...@python.org, Anders J. Munch 2...@jmunch.dk wrote: The problem with Perl-style regexp notation isn't so much that it's terse - it's that the syntax is irregular (sic) and doesn't follow modern principles for lexical structure in computer

Re: [ANN]:JSONStream

2013-07-17 Thread Clark C. Evans
Looks interesting. In YAML we used three dashes as the stream separator. So already a YAML processor could handle a JSON stream ... for doc in yaml.load_all( ... --- {one: value} ... --- {two: another} ... --- ... {three: a third item in the stream, ... with: more data} ... ): ...

Re: tkinter redraw rates

2013-07-17 Thread Dave Angel
On 07/17/2013 09:18 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote: On 07/17/2013 07:10 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel wrote: On 07/16/2013 11:04 PM, fronag...@gmail.com wrote: Noted on

Re: tkinter redraw rates

2013-07-17 Thread Peter Otten
fronag...@gmail.com wrote: Hm. My apologies for not being very clear. What I'm doing is this: self.loader_thread = Thread(target=self.loadpages, name=loader_thread) self.loader_thread.start() while self.loader_thread.isAlive():

Python HTTP POST

2013-07-17 Thread Matt Graves
I am going to be creating a python script that will make filling in information at my job easier. I have all of the information I need... I guess I just need to see it in practice to fully grasp it. How would I submit a python HTTP POST request to... for example, go to google.com, enter Pie

Re: [ANN]:JSONStream

2013-07-17 Thread Sol Toure
I didn't look into using YAML processor. Also that would have required pre-processing the data to add the separators. With this method you don't need the separators. You can have 0 or more white space between objects: for obj in JSONStream(StringIO('''{one:1}{two:2}{three:3} 4 {five: 5}''')):

Storing a very large number

2013-07-17 Thread Hasit Mistry
I came across a problem that requires me to store a very large number (say 10^100). How do I do it efficiently? And also, how do I select a particular number (say 209th) from that very large number? I am relatively new to Python. Thank you in advance. --

Re: [ANN]:JSONStream

2013-07-17 Thread Fábio Santos
On 17 Jul 2013 20:40, Sol Toure sol2...@gmail.com wrote: I didn't look into using YAML processor. Also that would have required pre-processing the data to add the separators. With this method you don't need the separators. You can have 0 or more white space between objects: for obj in

Re: Storing a very large number

2013-07-17 Thread Grant Edwards
On 2013-07-17, Hasit Mistry hasi...@lavabit.com wrote: I came across a problem that requires me to store a very large number (say 10^100). How do I do it efficiently? First you must define efficient. If you want to store the least number of bytes, and all you need to do is store the number

Re: Storing a very large number

2013-07-17 Thread Gary Herron
On 07/17/2013 12:21 PM, Hasit Mistry wrote: I came across a problem that requires me to store a very large number (say 10^100). How do I do it efficiently? And also, how do I select a particular number (say 209th) from that very large number? I am relatively new to Python. Thank you in

Re: Storing a very large number

2013-07-17 Thread Ian Kelly
On Wed, Jul 17, 2013 at 1:21 PM, Hasit Mistry hasi...@lavabit.com wrote: I came across a problem that requires me to store a very large number (say 10^100). How do I do it efficiently? Both the int and Decimal types support arbitrary precision. Floats do not. And also, how do I select a

Re: Python HTTP POST

2013-07-17 Thread John Gordon
In 00ec2f9b-fcae-428c-8932-163e653dd...@googlegroups.com Matt Graves tunacu...@gmail.com writes: How would I submit a python HTTP POST request to... for example, go to google.com, enter Pie into the search box and submit (Search) Something like this: import urllib import urllib2 # the

Re: Python HTTP POST

2013-07-17 Thread Joel Goldstick
On Wed, Jul 17, 2013 at 4:15 PM, John Gordon gor...@panix.com wrote: In 00ec2f9b-fcae-428c-8932-163e653dd...@googlegroups.com Matt Graves tunacu...@gmail.com writes: How would I submit a python HTTP POST request to... for example, go to google.com, enter Pie into the search box and submit

[ANN] bbfreeze 1.1.2

2013-07-17 Thread Ralf Schmitt
Hi, I've just released bbfreeze 1.1.2. The code is available from pypi https://pypi.python.org/pypi/bbfreeze/ or from github https://github.com/schmir/bbfreeze bbfreeze creates stand-alone executables from python scripts. It's similar in purpose to the well known py2exe for windows,

Re: [ANN] bbfreeze 1.1.2

2013-07-17 Thread Fábio Santos
On 17 Jul 2013 21:46, Ralf Schmitt r...@systemexit.de wrote: bbfreeze will not work with python 3 or higher. -- Cheers Ralf Seems like it has awesome features, but py3k is really important to me. Is this on your roadmap? -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter redraw rates

2013-07-17 Thread Michael Torrie
On 07/17/2013 05:08 AM, fronag...@gmail.com wrote: Ok. Well, what I'm currently doing, based on advice from this thread, is to create a new thread that handles the downloading, as well as updating a variable for text display on the GUI, and in the main thread, just after the thread is created,

Re: grimace: a fluent regular expression generator in Python

2013-07-17 Thread Gregory Ewing
Ben Last wrote: north_american_number_re = (RE().start .literal('(').followed_by.__exactly(3).digits.then.__literal(')') .then.one.literal(-).then.__exactly(3).digits .then.one.dash.followed_by.__exactly(4).digits.then.end

Creating a Program to Decompose a Number and Run a Function on that Decomposition

2013-07-17 Thread CTSB01
I've been puzzling over how to get a certain function working in Python. The function, takes positive integers to other positive integers as follows: Phi_m(n2) = Phi_m(m*n + r) = m*x[n1] + r*(x[n1 + 1] - x[n1]) The above terms are all integer valued and are defined as follows: n2 = the

Re: tkinter redraw rates

2013-07-17 Thread fronagzen
On Thursday, July 18, 2013 1:38:34 AM UTC+8, Dave Angel wrote: On 07/17/2013 09:18 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote: On 07/17/2013 07:10 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 6:07:22 PM UTC+8, Dave Angel

Re: tkinter redraw rates

2013-07-17 Thread Dave Angel
On 07/17/2013 08:44 PM, fronag...@gmail.com wrote: On Thursday, July 18, 2013 1:38:34 AM UTC+8, Dave Angel wrote: On 07/17/2013 09:18 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote: On 07/17/2013 07:10 AM, fronag...@gmail.com wrote: On

Re: Python-list Digest, Vol 118, Issue 144

2013-07-17 Thread Ben Last
From: Gregory Ewing greg.ew...@canterbury.ac.nz To: python-list@python.org Is 'dash' the same as 'literal(-)'? Yes, it's a convenience method, like 'dot' and 'underscore'. The code I pasted is from the unit tests, where I use the different methods to push coverage up. Is there any

Need help with network script

2013-07-17 Thread bbechdol
Hi everyone. I am starting to learn python and I decided to start with what I though was a simple script but I guess now. All I want to do is return what current network location I am using on my mac. Every time I run it, it gives me back a 0. I don't know what I am doing wrong so here is my

Re: Need help with network script

2013-07-17 Thread Chris Angelico
On Thu, Jul 18, 2013 at 11:44 AM, bbech...@gmail.com wrote: Hi everyone. I am starting to learn python and I decided to start with what I though was a simple script but I guess now. All I want to do is return what current network location I am using on my mac. Every time I run it, it gives

Re: Need help with network script

2013-07-17 Thread bbechdol
Im trying to get the output from scselect and display it on a new line. -- http://mail.python.org/mailman/listinfo/python-list

Re: Need help with network script

2013-07-17 Thread bbechdol
On Wednesday, July 17, 2013 7:50:44 PM UTC-6, Chris Angelico wrote: On Thu, Jul 18, 2013 at 11:44 AM, Hi everyone. I am starting to learn python and I decided to start with what I though was a simple script but I guess now. All I want to do is return what current network location I am

Re: Python HTTP POST

2013-07-17 Thread alex23
On 18/07/2013 4:49 AM, Matt Graves wrote: How would I submit a python HTTP POST request to... for example, go to google.com, enter Pie into the search box and submit (Search) Other replies have suggested how you could do it by building the request yourself. Another approach is to interact

Re: Need help with network script

2013-07-17 Thread Dave Angel
On 07/17/2013 09:50 PM, Chris Angelico wrote: On Thu, Jul 18, 2013 at 11:44 AM, bbech...@gmail.com wrote: Hi everyone. I am starting to learn python and I decided to start with what I though was a simple script but I guess now. All I want to do is return what current network location I am

Re: Homework help requested (not what you think!)

2013-07-17 Thread alex23
On 17/07/2013 11:29 PM, Chris Angelico wrote: On Wed, Jul 17, 2013 at 11:20 PM, Neil Cerutti ne...@norwich.edu wrote: Markov chains are an advanced technique you could introduce, but you'd need a huge list of names broken into syllables from somewhere. You could use names broken into

Re: Need help with network script

2013-07-17 Thread bbechdol
In addition to reposting using copy/paste, please specify the Python version. There were differences between 2.6 and 2.7. Short answer is that subprocess.call() returns an integral returncode. So zero tells you that shelling to the subprocess succeeded. Perhaps you'd like

Re: tkinter redraw rates

2013-07-17 Thread fronagzen
On Thursday, July 18, 2013 9:07:24 AM UTC+8, Dave Angel wrote: On 07/17/2013 08:44 PM, fronag...@gmail.com wrote: On Thursday, July 18, 2013 1:38:34 AM UTC+8, Dave Angel wrote: On 07/17/2013 09:18 AM, fronag...@gmail.com wrote: On Wednesday, July 17, 2013 7:42:45 PM UTC+8, Dave Angel wrote:

What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-17 Thread Aseem Bansal
I wanted to do a little project for learning Python. I thought a chat system will be good as it isn't something that I have ever done. I wanted to know what will I need? I think that would require me these 1 learn network/socket programming 2 find a free server to host my chat server 3 GUI

Why on CentOS, python consumes too much memory ?

2013-07-17 Thread snowingbear
Hi: Previously, we found that our python scripts consume too much memory. So I use python's resource module to restrict RLIMIT_AS's soft limit and hard limit to 200M. On my RHEL5.3(i386)+python2.6.2, it works OK. But on CentOS 6.2(x86_64)+python2.6.6, it reports memory error(exceeding

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-17 Thread vikash agrawal
Hi Aseem, First of all great thought and all the best for the learning! On Thu, Jul 18, 2013 at 10:06 AM, Aseem Bansal asmbans...@gmail.com wrote: I wanted to do a little project for learning Python. I thought a chat system will be good as it isn't something that I have ever done. I wanted

Re: tkinter redraw rates

2013-07-17 Thread Dave Angel
On 07/18/2013 12:38 AM, fronag...@gmail.com wrote: On Thursday, July 18, 2013 9:07:24 AM UTC+8, Dave Angel wrote: On 07/17/2013 08:44 PM, fronag...@gmail.com wrote: On Thursday, July 18, 2013 1:38:34 AM UTC+8, Dave Angel wrote: On 07/17/2013 09:18 AM, fronag...@gmail.com wrote: On Wednesday,

Re: Homework help requested (not what you think!)

2013-07-17 Thread Aseem Bansal
On Wednesday, July 17, 2013 4:13:45 AM UTC+5:30, John Ladasky wrote: Hi folks, No, I'm not asking for YOU to help ME with a Python homework assignment! Previously, I mentioned that I was starting to teach my son Python.

Re: Need help with network script

2013-07-17 Thread Chris Angelico
On Thu, Jul 18, 2013 at 11:59 AM, bbech...@gmail.com wrote: On Wednesday, July 17, 2013 7:50:44 PM UTC-6, Chris Angelico wrote: Copy and paste your actual code, don't re-type it :) This is as far as I have gotten. THis is all my code and it has been copied and pasted. Thats why I am

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-17 Thread Eric S. Johansson
On Thu, 18 Jul 2013 00:36:17 -0400, Aseem Bansal asmbans...@gmail.com wrote: I wanted to do a little project for learning Python. I thought a chat system will be good as it isn't something that I have ever done. I wanted to know what will I need? I think that would require me these 1 learn

Re: What does it take to implement a chat system in Python (Not asking for code just advice before I start my little project)

2013-07-17 Thread Aseem Bansal
@Eric S. Johansson I am a novice who hasn't done any big project in programming. I haven't done anything I can even call a moderate project. I haven't touched web frameworks ever. I have little or no knowledge of network/socket programming. I have never used databases before. I understand

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: listpop.patch: list_resize(a, Py_SIZE(a) + d) for d 0 fails only when PyMem_Realloc(p, n) returns NULL if n allocated size. Is it possible? Is it desired behavior? Perhaps we should declare that PyMem_Realloc() should return the original pointer if it

[issue18085] Verifying refcounts.dat

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18085 ___ ___

[issue13083] _sre: getstring() releases the buffer before using it

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Regular Expressions nosy: +ezio.melotti, mrabarnett, serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13083

[issue18073] pickle.Unpickler may read too many bytes, causing hangs with blocking input stream

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems as the patch for issue17897 fixes this case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18073 ___

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread Charles-François Natali
Charles-François Natali added the comment: Victor, how about adding pyfailmalloc to the main repo (maybe under Tools), with a script making it easy to run the tests suite with it enabled? This way, it'll make it easier to run it from time to time (one could eve imagine making it part of the

[issue17897] Optimize unpickle prefetching

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See issue18073 for test case. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17897 ___ ___ Python-bugs-list

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Victor, how about adding pyfailmalloc to the main repo (maybe under Tools), with a script making it easy to run the tests suite with it enabled? Seconded. -- ___ Python tracker rep...@bugs.python.org

[issue17897] Optimize unpickle prefetching

2013-07-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: -pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17897 ___ ___ Python-bugs-list mailing

[issue17897] Optimize unpickle prefetching

2013-07-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'd prefer to see efforts go towards finishing the PEP 3154 implementation... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17897 ___

[issue17897] Optimize unpickle prefetching

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This patch is orthogonal to the PEP 3154 framing. The affecting of issue18073 is only an unexpected side effect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17897

[issue18397] Python with MinGW

2013-07-17 Thread Václav Šmilauer
Václav Šmilauer added the comment: @David others: mingw build is covered in detail under issue17605 by Roumen Petrov. -- nosy: +eudoxos ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18397

[issue18266] Fix test discovery for test_largefile.py

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18266 ___

[issue17767] Fix test discovery for test_locale.py

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17767 ___

[issue18479] Improvements to Powershell activate script for venv

2013-07-17 Thread Paul Moore
New submission from Paul Moore: Some small improvements to the powershell Activate script for venvs: 1. Can be run as a command, rather than needing to be dot sourced. This matches the behaviour of bat files, and of virtualenv's activate script, and avoids a source of user error. 2. Makes

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread STINNER Victor
STINNER Victor added the comment: 2013/7/17 Serhiy Storchaka rep...@bugs.python.org: listpop.patch: list_resize(a, Py_SIZE(a) + d) for d 0 fails only when PyMem_Realloc(p, n) returns NULL if n allocated size. Is it possible? Is it desired behavior? Perhaps we should declare that

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread STINNER Victor
STINNER Victor added the comment: 2013/7/17 Charles-François Natali rep...@bugs.python.org: Victor, how about adding pyfailmalloc to the main repo (maybe under Tools), with a script making it easy to run the tests suite with it enabled? This way, it'll make it easier to run it from time to

[issue18226] IDLE Unit test for FormatParagrah.py

2013-07-17 Thread Phil Webster
Phil Webster added the comment: Added tests for FormatParagraph using single/multiline comment blocks and single/multiline strings in the mock editor window. Here is a summary of the changes: FormatParagraph.py - description for format_paragraph_event - modified so that selecting a long

[issue17767] Fix test discovery for test_locale.py

2013-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 3b883491a5f2 by Serhiy Storchaka in branch '3.3': Issue #17767: test_locale now works with unittest test discovery. http://hg.python.org/cpython/rev/3b883491a5f2 New changeset 60e72210683c by Serhiy Storchaka in branch 'default': Issue #17767:

[issue18266] Fix test discovery for test_largefile.py

2013-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset dd75dbed1135 by Serhiy Storchaka in branch '3.3': Issue #18266: test_largefile now works with unittest test discovery and http://hg.python.org/cpython/rev/dd75dbed1135 New changeset 2d8573e12591 by Serhiy Storchaka in branch 'default': Issue

[issue17767] Fix test discovery for test_locale.py

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I combined two last Zachary's patches and added more robust locale test cleanup (old locale now restored even when print() in setUp() will failed). Thank you for your patch Zachary. -- resolution: - fixed stage: patch review - committed/rejected

[issue18266] Fix test discovery for test_largefile.py

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18266

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread STINNER Victor
STINNER Victor added the comment: Open issues (TODO list): - review and apply listpop.patch and frame_fasttolocals.patch - fix CJK codecs: using UNIINV to report _PyUnicodeWriter_WriteChar() failure in Modules/cjkcodecs/cjkcodecs.h does not work. The caller is not aware of the failure:

[issue18408] Fixes crashes found by pyfailmalloc

2013-07-17 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b81a535ad14 by Victor Stinner in branch 'default': Issue #18408: Fix structseq_reduce(), handle PyDict_SetItemString() failure http://hg.python.org/cpython/rev/7b81a535ad14 -- ___ Python tracker

[issue16968] Fix test discovery for test_concurrent_futures.py

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16968 ___

[issue18258] Fix test discovery for test_codecmaps*.py

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18258 ___

[issue18480] _elementtree: missing PyType_Ready call

2013-07-17 Thread Ronald Oussoren
New submission from Ronald Oussoren: The _elementtree extension calls PyType_Ready for most, but not all, types defined in the extension. The attached patch calls PyType_Ready for the ElementIter_Type. -- components: Extension Modules, XML files: elementtree-missing-type-ready.txt

[issue18480] _elementtree: missing PyType_Ready call

2013-07-17 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- keywords: +needs review, patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18480 ___ ___

[issue18480] _elementtree: missing PyType_Ready call

2013-07-17 Thread Christian Heimes
Christian Heimes added the comment: Good catch! ElementIter_Type has no prototype, too. $ grep Type Modules/_elementtree.c | grep static static PyTypeObject Element_Type; static PyTypeObject Element_Type = { static PyTypeObject ElementIter_Type = { static PyTypeObject TreeBuilder_Type; static

[issue18480] _elementtree: missing PyType_Ready call

2013-07-17 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +eli.bendersky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18480 ___ ___

[issue18480] _elementtree: missing PyType_Ready call

2013-07-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: It was a pretty easy catch, the _elementtree caused a crash while I was working on an implementation for PEP 447. The missing call to PyType_Ready helped to make that implementation more robust :-) I'm not entirely convinced that adding forward declarations

[issue18481] lcov report

2013-07-17 Thread Christian Heimes
New submission from Christian Heimes: The patch adds a couple of ignores and three Makefile targets for gcov and lcov reports. lcov [1] is a project that can create html reports from gcov output for C files. make coverage-report first cleans up the source tree, then recompiles Python with

[issue18258] Fix test discovery for test_codecmaps*.py

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What is a purpose of `support.use_resources = ['urlfetch']`? I don't see any effect. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18258 ___

[issue18258] Fix test discovery for test_codecmaps*.py

2013-07-17 Thread R. David Murray
R. David Murray added the comment: It enables the resource when the tests are run via unittest. (That is, it is equivalent to specifying '-u urlfetch' when running regrtest.) -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue18181] Add type.__locallookup__

2013-07-17 Thread Ronald Oussoren
Ronald Oussoren added the comment: issue-18181-full-v1.txt implements support for __locallookup__ to both super and _PyType_Lookup and should implement the entire PEP. The patch is not yet 100% and is missing: * Tests that add __locallookup__ to a metaclass at runtime, should enable the

[issue9307] Py_TPFLAGS_LONG_SUBCLASS is not documented

2013-07-17 Thread Yury V. Zaytsev
Yury V. Zaytsev added the comment: Hi, I agree with Alexander, I've been recently investigating a related problem and I found the lack of documentation on the subject quite frustrating; I therefore propose the attached patch to the docs. Hope that helps, --Yury. -- keywords: +patch

[issue18482] dis.dis fails on one letter strings.

2013-07-17 Thread James Lu
New submission from James Lu: dis.dis fails on one letter strings. dis.dis(t) Traceback (most recent call last): File pyshell#26, line 1, in module dis.dis(t) File C:\python 25\lib\dis.py, line 44, in dis disassemble_string(x) File C:\python 25\lib\dis.py, line 111, in

[issue9338] argparse optionals with nargs='?', '*' or '+' can't be followed by positionals

2013-07-17 Thread TD22057
Changes by TD22057 ted.dr...@gmail.com: -- nosy: +TD22057 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9338 ___ ___ Python-bugs-list mailing list

[issue18481] lcov report

2013-07-17 Thread Christian Heimes
Christian Heimes added the comment: https://dl.dropboxusercontent.com/u/19557108/python-lcov/index.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18481 ___

[issue18483] Add hour-24 type of time to test_http2time_formats in test_http_cookiejar.py

2013-07-17 Thread Vajrasky Kok
New submission from Vajrasky Kok: In test_http2time_formats test function, they test many type of date time format, such as: ... 'Thu, 03 Feb 1994 00:00:00 GMT', # proposed new HTTP format 'Thursday, 03-Feb-94 00:00:00 GMT', # old rfc850 HTTP format 'Thursday,

[issue13083] _sre: getstring() releases the buffer before using it

2013-07-17 Thread Matthew Barnett
Matthew Barnett added the comment: It looks like this was fixed for issue #14212. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13083 ___ ___

[issue18482] dis.dis fails on one letter strings.

2013-07-17 Thread R. David Murray
R. David Murray added the comment: NB: This is only a bug in python2. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18482 ___

[issue18258] Fix test discovery for test_codecmaps*.py

2013-07-17 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But I don't see any effect. $ ./python -m test.regrtest -v test_codecmaps_tw == CPython 3.3.2+ (3.3:359002d4370d+, Jul 14 2013, 15:34:54) [GCC 4.6.3] == Linux-3.8.0-27-generic-i686-with-debian-wheezy-sid little-endian ==

  1   2   >