ANN: pyftpdlib 1.3.1 released

2014-04-14 Thread Giampaolo Rodola'
Hello, I'm pleased to announce release 1.3.1 of Python FTP Server library (pyftpdlib). http://code.google.com/p/pyftpdlib/ === About === Python FTP server library provides an high-level portable interface to easily write very fast asynchronous FTP/S servers with Python. === Changes === - #282:

SQLObject 1.5.2

2014-04-14 Thread Oleg Broytman
Hello! I'm pleased to announce version 1.5.2, the second bugfix release of branch 1.5 of SQLObject. What's new in SQLObject === * Adapt duplicate error message strings for SQLite 3.8. Contributor for this release is Neil Muller. For a more complete list, please see the

ANN: MyNewspaper v4.0

2014-04-14 Thread Iñigo Serna
Hi there, I'm really pleased to announce a new release of MyNewspaper, a web-based personal ATOM/RSS aggregator and feeds reader. This new version has been completely rewritten from scratch. It's under GNU Affero GPL License version 3 or later. Some technical points of interest: - written in

ANN: Bookmarks v1.0

2014-04-14 Thread Iñigo Serna
Hi there, Bookmarks is a simple personal web-based application to manage web bookmarks. It's written in Python 3.2+ and uses BottlePy web microframework and jQuery javascript library. Both are included with the package. It was coded as a funny practice, but it includes some nice features:

Calico Scheme in Python

2014-04-14 Thread Doug Blank
We are writing to let you know of a recent spin-off from our Scheme implementation work: we now have a version implemented in Python. This is a full Scheme with proper tail-call recursion handling written in Python. We also added some interesting Python-Scheme interactions: * Scheme can use

Re: Teaching python to non-programmers

2014-04-14 Thread alex23
On 11/04/2014 3:42 PM, Rustom Mody wrote: On Friday, April 11, 2014 10:41:26 AM UTC+5:30, Chris Angelico wrote: On Fri, Apr 11, 2014 at 2:37 PM, Rustom Mody wrote: Right. Its true that when I was at a fairly large corporate, I was not told: Please always top post! What I was very gently and

Re: MemoryError in data conversion

2014-04-14 Thread dieter
Mok-Kong Shen mok-kong.s...@t-online.de writes: The code attached below produces in one of the two IMHO similar cases (excepting the sizes of the lists involved) MemoryError. Could experts kindly tell why that's so and whether there is any work-around feasible. MemoryError means: the Python

Re: Teaching python to non-programmers

2014-04-14 Thread Ian Kelly
On Mon, Apr 14, 2014 at 12:13 AM, alex23 wuwe...@gmail.com wrote: http://www.ietf.org/rfc/rfc1855.txt If you are sending a reply to a message or a posting be sure you summarize the original at the top of the message, or include just enough text of the original to give a context.

Re: Teaching python to non-programmers

2014-04-14 Thread Mark Lawrence
On 14/04/2014 01:20, Steven D'Aprano wrote: On Mon, 14 Apr 2014 00:54:02 +0100, Mark Lawrence wrote: but the powers that be deem fit not to take any action over. There is no Internet police. Which is a good thing, for if there were, this sort of criticism of the Internet police is exactly

Learner looking for assistance

2014-04-14 Thread Anthony Smith
Hi All I am probably doing something wrong but don't know what Any help would great Code below the calc_total does not return a estimated_total_weight if add the estimated_total_weight the rest of the code works I am at a lose as to why ? def calc_total(self): amount = 0

Re: MemoryError in data conversion

2014-04-14 Thread Peter Otten
Mok-Kong Shen wrote: The code attached below produces in one of the two IMHO similar cases (excepting the sizes of the lists involved) MemoryError. Could experts kindly tell why that's so and whether there is any work-around feasible. Here's a simpler way to reproduce the error: import ast

Re: Language summit notes

2014-04-14 Thread wxjmfauth
Le dimanche 13 avril 2014 22:13:36 UTC+2, Terry Reedy a écrit : Everyone, please ignore Jim's unicode/fsr trolling, which started in July 2012. Don't quote it, don't try to answer it. -- Terry Jan Reedy --- FYI: I was waiting for the final 3.4 release. I'm only now

Re: Language summit notes

2014-04-14 Thread wxjmfauth
- Unicode == Coding of the characters (all schemes) == math. For those who are interested in that field, I recommand to try to understand why we (the world) have to live with all these coding schemes. jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Learner looking for assistance

2014-04-14 Thread Ben Finney
Anthony Smith jackie.walkab...@gmail.com writes: the calc_total does not return a estimated_total_weight if add the estimated_total_weight the rest of the code works I am at a lose as to why ? When it's too confusing, simplify. The code you present is fine, but is more complex than it

gdb python core dump file : not in executable format: File format not

2014-04-14 Thread Wesley
Hi guys, Today I am debugging an issue related to memory leak. I use gdb 7.7 and python 2.7.6 to generate one core dump file from production env. And then, just use gdb to debug the coredump upon the same machine. Got error that seems not support debug core file using pyton? Here is snippet:

Re: Learner looking for assistance

2014-04-14 Thread Anthony Smith
On Monday, 14 April 2014 17:43:41 UTC+10, Anthony Smith wrote: Hi All I am probably doing something wrong but don't know what Any help would great Code below the calc_total does not return a estimated_total_weight if add the estimated_total_weight the rest of

Re:Learner looking for assistance

2014-04-14 Thread Dave Angel
Anthony Smith jackie.walkab...@gmail.com Wrote in message: Hi All I am probably doing something wrong but don't know what Any help would great As Ben pointed out, you should be more careful with your copy/paste, and especially with your indentation. I'll assume these are all methods

Re: MemoryError in data conversion

2014-04-14 Thread Mok-Kong Shen
Am 14.04.2014 09:46, schrieb Peter Otten: You ran into a limitation of the compiler. For us to suggest a workaround you'd have to explain why you want to convert the list returned from buildhuffmantree() into python source code and back. That list gives the Huffman encoding tree for

Re:MemoryError in data conversion

2014-04-14 Thread Dave Angel
Mok-Kong Shen mok-kong.s...@t-online.de Wrote in message: The code attached below produces in one of the two IMHO similar cases (excepting the sizes of the lists involved) MemoryError. Could experts kindly tell why that's so and whether there is any work-around feasible. Where's your stack

Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Mark Lawrence
http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Mon, Apr 14, 2014 at 10:56 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? Only someone for whom it's less work to build Python 2.8 than it is to port

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? Somewhat related. Only yesterday I ported/reimplemented a software package to python3. On the finish line,

Re: MemoryError in data conversion

2014-04-14 Thread Peter Otten
Mok-Kong Shen wrote: Am 14.04.2014 09:46, schrieb Peter Otten: You ran into a limitation of the compiler. For us to suggest a workaround you'd have to explain why you want to convert the list returned from buildhuffmantree() into python source code and back. That list gives the Huffman

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Mon, Apr 14, 2014 at 11:51 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? Somewhat related. Only yesterday

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: So get Python 3.3 for your system, then. That'll have to wait till it's time for an OS overhaul. I don't do those every year. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Mark Lawrence
On 14/04/2014 14:51, Marko Rauhamaa wrote: Chris Angelico ros...@gmail.com: If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? The people who haven't had enough time over the last eight

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 12:40 AM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: So get Python 3.3 for your system, then. That'll have to wait till it's time for an OS overhaul. I don't do those every year. What OS? Since getting 3.3 isn't just a matter of grab the

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 12:46 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: So not only do we have a schism between python2 and python3 but there's one between 3.0 and 3.3. I can't help but wonder if PEP 414 was a mistake. I still believe that PEP 404 was the correct thing to do. PEP 414

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread wxjmfauth
I will most probably backport two quite large applications to Py27 (scientific data processing apps). It's more a question of willingness, than a technical difficulty. Then basta. Note: cp1252 is good enough. (latin1/iso8859-1 not!). jmf -- https://mail.python.org/mailman/listinfo/python-list

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Pete Forman
Mark Lawrence breamore...@yahoo.co.uk writes: On 14/04/2014 14:51, Marko Rauhamaa wrote: Chris Angelico ros...@gmail.com: If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? The people who

Python hackathon ideas

2014-04-14 Thread Claudiu Popa
Hello! I'm planning a Python hackathon in my area, which will be held in a couple of weeks. Being my first organized hackathon, I don't quite know on what we will be working. One idea I have is to find a couple of open source projects and start contributing to them. Another idea is to work on

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Ian Kelly
On Apr 14, 2014 11:46 AM, wxjmfa...@gmail.com wrote: I will most probably backport two quite large applications to Py27 (scientific data processing apps). These applications are already on Python 3? Why do you want them on Python 2? Even the people talking about a 2.8 are only seeing it as an

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Ned Batchelder
On 4/14/14 2:59 PM, Ian Kelly wrote: Point of curiosity: if the first 256 codepoints of Unicode happened to correspond to cp1252 instead of Latin-1, would you still object to the FSR? Many of us on the list would appreciate it if you didn't open that particular can of worms. You are of

Re: gdb python core dump file : not in executable format: File format not

2014-04-14 Thread david.gar...@gmail.com
Does this help? http://plasmodic.github.io/ecto/ecto/usage/external/debugging.html http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsDebugging http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/debug.html http://forums.gentoo.org/viewtopic-p-7123814.html

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Phil Dobbin
On 14/04/2014 13:56, Mark Lawrence wrote: http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? On a related note, Guido announced today that there will be no 2.8 that the eol for 2.7 will be 2020.

Re: MemoryError in data conversion

2014-04-14 Thread Mok-Kong Shen
Am 14.04.2014 15:59, schrieb Peter Otten: You could use json, but you may run into the same problem with that, too (only later): import json items = [] for i in range(1000): ... s = json.dumps(items) ... items = [items] ... Traceback (most recent call last): File stdin, line 2, in

Python, Linux, and the setuid bit

2014-04-14 Thread Ethan Furman
For anyone in the unenviable position of needing [1] to run Python scripts with the setuid bit on, there is an suid-python wrapper [2] that makes this possible. When I compiled it I was given a couple warnings. Can any one shed light on what they mean?

Re: Python, Linux, and the setuid bit

2014-04-14 Thread John Gordon
In mailman.9260.1397511440.18130.python-l...@python.org Ethan Furman et...@stoneleaf.us writes: fprintf(stderr, Could not allocate %d bytes. errno=%d\n, size, errno); %d is not the correct specifier for printing objects of type size_t. char **envp_read;

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Grant Edwards
On 2014-04-14, John Gordon gor...@panix.com wrote: In mailman.9260.1397511440.18130.python-l...@python.org Ethan Furman et...@stoneleaf.us writes: fprintf(stderr, Could not allocate %d bytes. errno=%d\n, size, errno); %d is not the correct specifier for printing

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Grant Edwards
On 2014-04-14, Grant Edwards invalid@invalid.invalid wrote: On 2014-04-14, John Gordon gor...@panix.com wrote: char **envp_read; char **envp_write; if (envp_write envp_read) { memset(envp_write, 0, ((unsigned int) envp_read -

Re: MemoryError in data conversion

2014-04-14 Thread Gregory Ewing
Mok-Kong Shen wrote: I have yet a question out of curiosity: Why is my 2nd list structure, that apparently is too complex for handling by eval and json, seemingly not a problem for pickle? Pickle is intended for arbitrary data structures, so it is designed to be able to handle deeply-nested

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 7:13 AM, Ethan Furman et...@stoneleaf.us wrote: When I compiled it I was given a couple warnings. Can any one shed light on what they mean? They mean, most likely, that the author compiled the program on his own computer and not on any other. If I had to make a guess,

Re: Python hackathon ideas

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 4:54 AM, Claudiu Popa pcmantic...@gmail.com wrote: - Python 2 only (and we'll try to port them to Python 3) I know about Python 3 Wall of superpowers, but most of the Python 2 only projects seems too big for us to tackle in one day. I suspect that, by now, any Py2

Re:Python, Linux, and the setuid bit

2014-04-14 Thread Dave Angel
Ethan Furman et...@stoneleaf.us Wrote in message: For anyone in the unenviable position of needing [1] to run Python scripts with the setuid bit on, there is an suid-python wrapper [2] that makes this possible. When I compiled it I was given a couple warnings. Can any one shed light on

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Ethan Furman
On 04/14/2014 06:33 PM, Dave Angel wrote: (you really should have put a comment, so we'd know this is line 200, 201) Sorry, not used to asking questions about C code. ;) I'll make sure and do that next time. Thanks for the help! -- ~Ethan~ --

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Ethan Furman
Thanks to everyone for the pointers. ;) -- ~Ethan~ -- https://mail.python.org/mailman/listinfo/python-list

Re: Python, Linux, and the setuid bit

2014-04-14 Thread Chris Angelico
On Tue, Apr 15, 2014 at 11:38 AM, Ethan Furman et...@stoneleaf.us wrote: Thanks to everyone for the pointers. ;) Pun intended, I hope...? ChrisA *groan* -- https://mail.python.org/mailman/listinfo/python-list

Re: Python hackathon ideas

2014-04-14 Thread Rustom Mody
On Tuesday, April 15, 2014 12:24:47 AM UTC+5:30, Claudiu Popa wrote: Hello! I'm planning a Python hackathon in my area, which will be held in a couple of weeks. Being my first organized hackathon, I don't quite know on what we will be working. Just yesterday I discovered that kodos that

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Terry Reedy
On 4/14/2014 9:51 AM, Marko Rauhamaa wrote: Chris Angelico ros...@gmail.com: If you're going to do that, why not just port your code to 3.x and be done with it? Who has the resources to put hours and hours of dev time into a 2.8? Somewhat related. Only yesterday I ported/reimplemented a

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Terry Reedy
On 4/14/2014 8:56 AM, Mark Lawrence wrote: http://blog.startifact.com/posts/the-call-of-python-28.html so in response to the last line, who *IS* going to do all of the required work? Steve Dower of Microsoft proposed a similar idea of a migration version of 2.7 after talking with people from

Re: Martijn Faassen: The Call of Python 2.8

2014-04-14 Thread Marko Rauhamaa
Terry Reedy tjre...@udel.edu: Any decent system should have 3.4 available now. Really, now? Which system is that? Marko -- https://mail.python.org/mailman/listinfo/python-list

[issue17088] ElementTree incorrectly refuses to write attributes without namespaces when default_namespace is used

2014-04-14 Thread Stefan Behnel
Stefan Behnel added the comment: @gene_wood: that's unrelated. This ticket is about attributes being rejected incorrectly. Fixing the example of the OP: from xml.etree.ElementTree import * svg = ElementTree(XML( ... svg width=12cm height=4cm viewBox=0 0 1200 400

[issue21196] Name mangling example in Python tutorial

2014-04-14 Thread Chandan Kumar
Chandan Kumar added the comment: Uploading the patch for the improvement to the name mangling section of the Python tutorial. Please note that the modification is much smaller than I proposed earlier. -- keywords: +patch Added file:

[issue21212] Documentation of octal representation

2014-04-14 Thread Bill
New submission from Bill: This documentation section: https://docs.python.org/3/faq/programming.html?highlight=octal#how-do-i-convert-a-string-to-a-number seems still to refer to Python 2 octal representation rules. So I think it needs updating. -- assignee: docs@python components:

[issue1484] logging: callHandlers tests handler levels instead of logger levels?

2014-04-14 Thread Artur
Artur added the comment: So what is logger level for if it's not used on calling handlers? -- nosy: +artur.ambroziak versions: +Python 2.7 -Python 2.4, Python 2.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1484

[issue21213] Memory bomb by incorrect custom serializer to json.dumps

2014-04-14 Thread saaj
New submission from saaj: I was chaning an implementation of the function that is passed to json.dumps to extend serializable types. By a mistake (**return** instead of **raise**) it turned into, which at its minum can be expressed as:: def d(obj): return TypeError(repr(obj))

[issue21214] PEP8 doesn't verifies last line.

2014-04-14 Thread Max
New submission from Max: PEP8 doesn't verifies last line at all. Also W292 will never be checked. Reproducible on PEP8 = 1.5.0 -- messages: 216072 nosy: f1ashhimself priority: normal severity: normal status: open title: PEP8 doesn't verifies last line. type: behavior

[issue18321] Multivolume support in tarfile module

2014-04-14 Thread Lars Gustäbel
Lars Gustäbel added the comment: Okay, let me tell you why I reject your contribution at this point. The patch you submitted may be well-suited for your purposes but it does not meet the requirements of a standard library implementation because it is not generic and comprehensive enough. It

[issue21214] PEP8 doesn't verifies last line.

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: The pep8 tool is a third-party package: it isn't part of the core Python project. You probably want to report this at the pep8 bugtracker: http://github.com/jcrocholl/pep8/issues -- nosy: +mark.dickinson resolution: - 3rd party status: open - closed

[issue21212] Documentation of octal representation

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset fb7bc8fe0d49 by Eric V. Smith in branch '3.4': Fix text about int() with octal numbers. Closes #21212. http://hg.python.org/cpython/rev/fb7bc8fe0d49 New changeset 6107a727c60a by Eric V. Smith in branch 'default': Merge 3.4: Fix text about int()

[issue21212] Documentation of octal representation

2014-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed. Thanks! -- nosy: +eric.smith resolution: fixed - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21212

[issue21212] Documentation of octal representation

2014-04-14 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21212 ___

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Ok, I'll reopen the issue to do that. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169 ___

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread Kushal Das
Kushal Das added the comment: Another patch with docs update and one line code comment. -- Added file: http://bugs.python.org/file34815/issue21169_v7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue20077] Format of TypeError differs between comparison and arithmetic operators

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I think 'please review' was directed at anyone, and yes, using the review link is one way to do a review, but when there isn't enough line-by-line commenting to make the code review tool worth using you can just post on the issue. (And when you do use the

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
New submission from Glenn Jones: The package listed in the dev guide may not exist depending on the version of Ubuntu. It may be necessary to use python3.3 or python3.4. -- components: Devguide messages: 216080 nosy: Glenn.Jones, ezio.melotti priority: normal severity: normal status:

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset bdde36cd9048 by R David Murray in branch '3.4': #21169: add comment and doc update for getpass change. http://hg.python.org/cpython/rev/bdde36cd9048 New changeset fe532dccf8f6 by R David Murray in branch 'default': Merge: #21169: add comment and

[issue21169] getpass.getpass() fails with non-ASCII characters in prompt

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I decided to tweak the language slightly, Kushal. If this isn't what you were looking for, Martin, let me know. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21169

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Eric Snow
Eric Snow added the comment: I was going to say we should consider changing the API of _PyBytes_Resize() and _PyString_Resize(). However, having looked at the two functions, I guess it makes sense. Looking at the patch, I'd argue that we still need to set the string to NULL in the error

[issue19980] Improve help('non-topic') response

2014-04-14 Thread Jessica McKellar
Jessica McKellar added the comment: Elias, thanks for your patch! I think it's important to add the second part of Terry's suggestion which gives the user a specific next step to take, namely: Try help('help') for information on recognized strings or help(str) for help on the str class.

[issue21209] q.put(some_tuple) fails when PYTHONASYNCIODEBUG=1

2014-04-14 Thread Guido van Rossum
Guido van Rossum added the comment: This is nice (a backport 3.3 would be even nicer) but at least for the PyPI repo version of Tulip I'd like to have work-around so people won't run into this when they are using a slightly outdated Python version. I'll think about which of my work-arounds is

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
Changes by Glenn Jones gl...@millenniumhand.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file34816/ubuntu-build-dep.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21215

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread R. David Murray
R. David Murray added the comment: Since you are saying that it is sometimes necessary to use a different package, perhaps we should be saying that in the devguide? And providing the possible names. -- nosy: +barry, r.david.murray ___ Python

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I would also advocate for a better api, that leaves it up to the caller what to do, much like realloc() does. A convenience macro that frees the block on error could then be provided. But this is 2.7 and we don't change stuff there :) Can you

[issue21215] build-deps instructions for Ubuntu

2014-04-14 Thread Glenn Jones
Glenn Jones added the comment: On Ubuntu 13.10, using python3 did not install the dependencies (apt reported using the python3-defaults source package instead of python3). The python3.4, package does not exist, but the python3.3 package did work. This may be that we're specifying the wrong

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Eric V. Smith
Changes by Eric V. Smith e...@trueblade.com: -- type: enhancement - behavior versions: +Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546 ___

[issue17498] error responses from server are masked in smtplib when server closes connection

2014-04-14 Thread Kushal Das
Kushal Das added the comment: New version of the patch which can be successfully applied to tip. -- Added file: http://bugs.python.org/file34817/issue17498_v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17498

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Eric Snow
Eric Snow added the comment: For example, in the patch binascii_b2a_uu() in Modules/binascii.c no longer sets rv to NULL even though in one of the _PyString_Resize() error cases rv is not automatically set to NULL. And simply setting rv to NULL would be backward-incompatible as well.

[issue20624] Clarify recommendation to inherit from Exception

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8dc1b45bd467 by Mark Dickinson in branch '3.4': Issue #20624: Exception docs wording tweak - clarify that it's okay to inherit from a subclass of Exception. http://hg.python.org/cpython/rev/8dc1b45bd467 New changeset 262204877004 by Mark Dickinson

[issue6623] Lib/ftplib.py Netrc class should be removed.

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: This patch is the same as my previous one, except instead of removing Netrc usage from the ftplib.test() function, it replaces it with the netrc.netrc object. Note that there are no existing tests for the ftplib.test() function. Also did some very minor cleanups

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 520ce42ba2b8 by Eric V. Smith in branch '2.7': Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods. http://hg.python.org/cpython/rev/520ce42ba2b8 -- nosy: +python-dev ___

[issue20968] mock.MagicMock does not mock __truediv__

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 445ef3b58109 by Michael Foord in branch '3.4': Issue 20968. unittest.mock.MagicMock now supports division http://hg.python.org/cpython/rev/445ef3b58109 -- nosy: +python-dev ___ Python tracker

[issue20434] Process crashes if not enough memory to import module

2014-04-14 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: This is _PyString_Resize(). I don't immediatlly see an error case where the string isn't freed: int _PyString_Resize(PyObject **pv, Py_ssize_t newsize) { register PyObject *v; register PyStringObject *sv; v = *pv; if (!PyString_Check(v)

[issue20624] Clarify recommendation to inherit from Exception

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset f729a0e90c4f by Mark Dickinson in branch '2.7': Issue #20624: Merge exception docs tweak from 3.4 branch. http://hg.python.org/cpython/rev/f729a0e90c4f -- ___ Python tracker rep...@bugs.python.org

[issue20624] Clarify recommendation to inherit from Exception

2014-04-14 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed. Closing. -- resolution: - fixed status: open - closed versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20624 ___

[issue17826] Setting a side_effect on mock from create_autospec doesn't work

2014-04-14 Thread Michael Foord
Michael Foord added the comment: Can you explain why we need to check for the call_count here? I don't understand why this is needed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17826

[issue12220] minidom xmlns not handling spaces in xmlns attribute value field

2014-04-14 Thread Marek Stepniowski
Marek Stepniowski added the comment: Added test to amathew's patch. -- nosy: +mstepniowski Added file: http://bugs.python.org/file34819/minidom_space_char_in_namespace_with_test.patch ___ Python tracker rep...@bugs.python.org

[issue7776] http.client.HTTPConnection tunneling is broken

2014-04-14 Thread Senthil Kumaran
Senthil Kumaran added the comment: I verified the patch and this indeed corrects a nasty bug in sending a wrong header when doing it a lower level HTTPSConnection to proxy and set_tunnel (bad term) to the end host..I was worried as why we did not observe this earlier and it seems to me that

[issue20968] mock.MagicMock does not mock __truediv__

2014-04-14 Thread Michael Foord
Michael Foord added the comment: Thanks! -- assignee: - michael.foord resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20968

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Sam Lucidi
Sam Lucidi added the comment: I've attempted to synthesize the ideas in this thread into a clearer explanation of __main__. What I've written doesn't attempt to explain anything else about module naming, but it does try to address the common package and module uses of __main__. --

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
R. David Murray added the comment: I've made some review comments. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___ ___ Python-bugs-list

[issue15104] Unclear language in __main__ description

2014-04-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: needs patch - patch review versions: +Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104 ___

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2014-04-14 Thread Toshio Kuratomi
Toshio Kuratomi added the comment: Took a look at this and was able to reproduce it on Fedora Linux 20 and current cpython head. It is somewhat random though. I'm able to get reasonably consistent failures using image/jpeg and iterating the test case about 20 times. Additionally, it looks

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7c484551bce1 by Eric V. Smith in branch '3.4': Issue #12546: Allow \x00 as a fill character for builtin type __format__ methods. http://hg.python.org/cpython/rev/7c484551bce1 New changeset bd90e68dc81f by Eric V. Smith in branch 'default': Closes

[issue12546] builtin __format__ methods cannot fill with \x00 char

2014-04-14 Thread Eric V. Smith
Eric V. Smith added the comment: Fixed in 2.7, 3.4, 3.5. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12546

[issue15104] Unclear language in __main__ description

2014-04-14 Thread Sam Lucidi
Sam Lucidi added the comment: Thanks, I've revised the change based on your comments. -- Added file: http://bugs.python.org/file34822/clarify-__main__-documentation.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15104

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg174146 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___

[issue15916] change doctest DocTestSuite not to raise ValueError if no docstrings

2014-04-14 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg174145 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15916 ___

[issue18518] return-ing within code timed with timeit.timeit causes wrong return value of timeit.timeit

2014-04-14 Thread jonathan ferretti
jonathan ferretti added the comment: Added note to timeit function briefly explaining how to avoid it the issue and the cause -- keywords: +patch nosy: +jonathan.ferretti type: enhancement - behavior Added file: http://bugs.python.org/file34823/timeit.patch

[issue21198] Minor tarfile documentation bug

2014-04-14 Thread Matt Chaput
Matt Chaput added the comment: Simple patch to remove the underscore in tarfile.rst. -- keywords: +patch nosy: +maatt Added file: http://bugs.python.org/file34824/issue21198.patch ___ Python tracker rep...@bugs.python.org

  1   2   3   4   >