Eventlet 0.14 released

2014-07-03 Thread Sergey Shepelev
Eventlet is a concurrent networking library for Python that allows you to change how you run your code, not how you write it. http://pypi.python.org/pypi/eventlet/0.15.0 This release features websocket13 support, improved PyPy compatibility and wheel package. Thanks to all contributors! Huge

Re: how can i get the source code of goagent.exe?

2014-07-03 Thread Shiyao Ma
Ask on the goagent googlecode? exe is fow win, dig out more on the linux version. I bet it should be delivered with py source in that version. Regards. 2014-07-03 10:20 GMT+08:00 liuerfire Wang liuerf...@gmail.com: Hi 水静流深 the source code is on https://github.com/goagent/goagent Hi Terry,

Re: 1-0.95

2014-07-03 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: On Wed, 02 Jul 2014 23:00:15 +0300, Marko Rauhamaa wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: Rational(2).sqrt() * Rational(2).sqrt() == Rational(2) False Square root of 2 is not a rational number. Nobody said it

Re: general module auditing

2014-07-03 Thread Mark Lawrence
On 03/07/2014 02:17, Rita wrote: On Wed, Jul 2, 2014 at 2:46 PM, Irmen de Jong irmen.nos...@xs4all.nl mailto:irmen.nos...@xs4all.nl wrote: On 2-7-2014 4:04, Rita wrote: yes, this helps. But I want to know who uses the module, serpent. So, when I upgrade it or remove it they

Re: Image Upload with FalconFramework

2014-07-03 Thread Mark Lawrence
On 03/07/2014 04:54, Peter Romfeld wrote: Hi, I am stuck at a simple image upload function, in django i just used: for feature phones: file = request.body iOS with Form: class ImageForm(forms.Form): image = forms.FileField() What is forms? image is defined at the class level, not the

Re: TypeError expected in an augmented assignment

2014-07-03 Thread candide
seq = [1,2] seq.extend((3,4)) OK, this feature is referenced in the Python Library reference here : https://docs.python.org/3.2/library/stdtypes.html#typesseq-mutable not thoroughly referenced but, anyway, referenced. seq+= {5, 6} # the order of extending is not determined

Re: Success with subprocess communicate on Windows?

2014-07-03 Thread Wolfgang Maier
On 07/03/2014 06:09 AM, Terry Reedy wrote: Yes, but what puzzled me is that running subprocess.check_output(r'pyflakes c:\programs\python34\lib') in the regular interpreter *does* produce output instead of the error message. My guess is that it fills up the pipe, so that check_output starts

Re: TypeError expected in an augmented assignment

2014-07-03 Thread Chris Angelico
On Thu, Jul 3, 2014 at 5:51 PM, candide c.cand...@laposte.net wrote: Good and interesting observation. But I can't find out where this feature is referenced in the Language/Library Reference. Because, as my first post explains, augmented assignment performs the binary operation associated to

OT: speeds (physical, not computing) [was Re: 1-0.95]

2014-07-03 Thread Steven D'Aprano
On Wed, 02 Jul 2014 21:06:52 -0700, Rustom Mody wrote: On Thursday, July 3, 2014 7:49:30 AM UTC+5:30, Steven D'Aprano wrote: On Wed, 02 Jul 2014 23:00:15 +0300, Marko Rauhamaa wrote: On the other hand, floating-point numbers are perfect whenever you deal with science and measurement.

Re: Success with subprocess communicate on Windows?

2014-07-03 Thread Wolfgang Maier
On 07/03/2014 10:03 AM, Wolfgang Maier wrote: On 07/03/2014 06:09 AM, Terry Reedy wrote: - what is happening to the stderr output when run in IDLE ? I guess it is caught and suppressed somewhere, but to add to your observations the check_output call doesn't hang on IDLE, but finishes eventually

Re: general module auditing

2014-07-03 Thread Rita
On Thu, Jul 3, 2014 at 2:54 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 03/07/2014 02:17, Rita wrote: On Wed, Jul 2, 2014 at 2:46 PM, Irmen de Jong irmen.nos...@xs4all.nl mailto:irmen.nos...@xs4all.nl wrote: On 2-7-2014 4:04, Rita wrote: yes, this helps. But I want to

Re: TypeError expected in an augmented assignment

2014-07-03 Thread candide
From that link: An augmented assignment expression like x += 1 can be rewritten as x = x + 1 to achieve a similar, but not exactly equal effect. In the augmented version, x is only evaluated once. Also, when possible, the actual operation is performed in-place, meaning that

Re: 1-0.95

2014-07-03 Thread Steven D'Aprano
On Thu, 03 Jul 2014 09:51:35 +0300, Marko Rauhamaa wrote: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: [...] By the way, there's no need to use an invented example. Here is an actual example: py import math py from fractions import Fraction py math.sqrt(Fraction(2))**2

threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
Hi All, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a threading.Condition() and acquires() it! The program then registers the signal handlers where notify() and release() is called when the

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Roy Smith
In article mailman.11450.1404382552.18130.python-l...@python.org, Sangeeth Saravanaraj sangeeth.saravana...@gmail.com wrote: Hi All, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. We need more information. What version of Python are

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
On 03-Jul-2014, at 3:49 pm, Roy Smith r...@panix.com wrote: In article mailman.11450.1404382552.18130.python-l...@python.org, Sangeeth Saravanaraj sangeeth.saravana...@gmail.com wrote: Hi All, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Chris Angelico
On Thu, Jul 3, 2014 at 8:27 PM, Sangeeth Saravanaraj sangeeth.saravana...@gmail.com wrote: But does the behavior of threading.Condition.wait() depends on operating system?! The behaviour of signals certainly does - there's a huge difference between Windows and POSIX, and there are lesser

Re: 1-0.95

2014-07-03 Thread Marko Rauhamaa
Steven D'Aprano st...@pearwood.info: If you don't think Fraction counts as arbitrary precision rational number, what do you think does? I was assuming you were referring to an idealized datatype. Fraction() doesn't have a square root method. Let's make one: def newton(x, n): guess

Re: general module auditing

2014-07-03 Thread Mark Lawrence
On 03/07/2014 10:27, Rita wrote: On Thu, Jul 3, 2014 at 2:54 AM, Mark Lawrence breamore...@yahoo.co.uk mailto:breamore...@yahoo.co.uk wrote: On 03/07/2014 02:17, Rita wrote: On Wed, Jul 2, 2014 at 2:46 PM, Irmen de Jong irmen.nos...@xs4all.nl

Re: TypeError expected in an augmented assignment

2014-07-03 Thread Mark Lawrence
On 03/07/2014 10:35, candide wrote: From that link: An augmented assignment expression like x += 1 can be rewritten as x = x + 1 to achieve a similar, but not exactly equal effect. In the augmented version, x is only evaluated once. Also, when possible, the actual operation is

Re: OOP with MyTime

2014-07-03 Thread kjakupak
On Wednesday, July 2, 2014 4:02:00 PM UTC-4, MRAB wrote: If you want 'between' to be an instance method of the MyTime class, it needs 'self' as well as the 2 arguments 't1' and 't2'. You can then compare the hours, minutes and seconds of self against those of t1 and t2:

Re: OOP with MyTime

2014-07-03 Thread Chris Angelico
On Thu, Jul 3, 2014 at 10:51 PM, kjaku...@gmail.com wrote: So I've now gotten this: class MyTime: def between(self, t1, t2): return (t1.hours, t1.minutes, t1.seconds) = (self.hours, self.minutes, self.seconds) and (self.hours, self.minutes, self.seconds) = (t2.hours,

Re: OOP with MyTime

2014-07-03 Thread kjakupak
On Thursday, July 3, 2014 9:01:09 AM UTC-4, Chris Angelico wrote: And what happens when you run this code? A NameError, I would expect. Do you understand how to define and call methods? ChrisA Altered the code. But yes a nameerror came up class MyTime: def __init__(self,

Re: OOP with MyTime

2014-07-03 Thread MRAB
On 2014-07-03 13:51, kjaku...@gmail.com wrote: On Wednesday, July 2, 2014 4:02:00 PM UTC-4, MRAB wrote: If you want 'between' to be an instance method of the MyTime class, it needs 'self' as well as the 2 arguments 't1' and 't2'. You can then compare the hours, minutes and seconds of self

Re: OOP with MyTime

2014-07-03 Thread Chris Angelico
On Thu, Jul 3, 2014 at 11:08 PM, kjaku...@gmail.com wrote: Altered the code. But yes a nameerror came up When that sort of thing happens, you have three basic approaches to solving the problem. 1) Read the traceback, look at the line of code it points to, and see if you can figure out what it

Re: OOP with MyTime

2014-07-03 Thread kjakupak
On Thursday, July 3, 2014 9:11:49 AM UTC-4, MRAB wrote: On 2014-07-03 13:51, kjaku...@gmail.com wrote: On Wednesday, July 2, 2014 4:02:00 PM UTC-4, MRAB wrote: If you want 'between' to be an instance method of the MyTime class, it needs 'self' as well as the 2 arguments

Re: OOP with MyTime

2014-07-03 Thread Chris Angelico
On Fri, Jul 4, 2014 at 1:21 AM, kjaku...@gmail.com wrote: I keep getting an invalid syntax on the t1 = (9, 59, 59) line, not sure why? t1 = (9, 59, 59) Two points. Firstly, as I said before, posting the entire exception helps us enormously. Secondly, with most computerized parsers, the file

Re: OOP with MyTime

2014-07-03 Thread Mark Lawrence
On 03/07/2014 16:21, kjaku...@gmail.com wrote: On Thursday, July 3, 2014 9:11:49 AM UTC-4, MRAB wrote: I'm pleased to see that you have answers. In return would you please use the mailing list https://mail.python.org/mailman/listinfo/python-list or read and action this

PEP8 and 4 spaces

2014-07-03 Thread Tobiah
Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. The sole thing you get with spaces as far as I can tell, is that someone loading the code into Notepad will still see a 4 character indent. That may be true, but that same person is going to

Re: PEP8 and 4 spaces

2014-07-03 Thread Chris Angelico
On Fri, Jul 4, 2014 at 3:31 AM, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. 1) PEP 8 is meant to be guidelines, *not* a set of hard-and-fast rules. 2) Tabs let different people display the indents at

Re: PEP8 and 4 spaces

2014-07-03 Thread Roy Smith
In article mailman.11462.1404408676.18130.python-l...@python.org, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. [...] Just need ammo for when the hammer of code unification comes down. There are so many battles to fight that

Re: PEP8 and 4 spaces

2014-07-03 Thread Peter Otten
Tobiah wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. The sole thing you get with spaces as far as I can tell, is that someone loading the code into Notepad will still see a 4 character indent. That may be true, but that same

Re: PEP8 and 4 spaces

2014-07-03 Thread Toby Shepard
On 07/03/2014 10:46 AM, Tim Chase wrote: Any evidence out there that this part of PEP8 is becoming more optional or even obsolete, as I've heard others say about the 80 char line length? Just need ammo for when the hammer of code unification comes down. I'm not sure you'll get a whole lot of

Re: PEP8 and 4 spaces

2014-07-03 Thread Paul Sokolovsky
Hello, On Fri, 4 Jul 2014 03:38:27 +1000 Chris Angelico ros...@gmail.com wrote: On Fri, Jul 4, 2014 at 3:31 AM, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. 1) PEP 8 is meant to be guidelines,

Re: PEP8 and 4 spaces

2014-07-03 Thread Grant Edwards
On 2014-07-03, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. The sole thing you get with spaces as far as I can tell, is that someone loading the code into Notepad will still see a 4 character indent.

Re: PEP8 and 4 spaces

2014-07-03 Thread Tim Chase
Any evidence out there that this part of PEP8 is becoming more optional or even obsolete, as I've heard others say about the 80 char line length? Just need ammo for when the hammer of code unification comes down. I'm not sure you'll get a whole lot of PEP8 is optional or obsolete, though

Re: PEP8 and 4 spaces

2014-07-03 Thread Tim Chase
On 2014-07-03 19:02, Grant Edwards wrote: That may be true, but that same person is going to have a difficult time editing the code. That's true with Notepad, but with dozens of other programming editors, code indented with spaces will read and edit prefectly. Not so for tab-indented

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Ned Deily
In article 17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a threading.Condition() and acquires() it! The program then registers the signal handlers

Re: PEP8 and 4 spaces

2014-07-03 Thread Toby Shepard
On 07/03/2014 12:44 PM, Simon Ward wrote: On 3 July 2014 18:31:04 BST, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. This isn't worth arguing about. How point of view changes things. Anyway, I

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Roy Smith
In article mailman.11469.1404418450.18130.python-l...@python.org, Ned Deily n...@acm.org wrote: In article 17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it

Re: PEP8 and 4 spaces

2014-07-03 Thread Simon Ward
On 3 July 2014 18:31:04 BST, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. This isn't worth arguing about. Pick a convention, it's probably going to be a compromise, get used to it. PEP8 is as good a base

Re: PEP8 and 4 spaces

2014-07-03 Thread Tobiah
On 07/03/2014 12:40 PM, Tim Chase wrote: On 2014-07-03 19:02, Grant Edwards wrote: That may be true, but that same person is going to have a difficult time editing the code. That's true with Notepad, but with dozens of other programming editors, code indented with spaces will read and edit

Re: PEP8 and 4 spaces

2014-07-03 Thread Tobiah
Anyway, I gave up the 80 char line length long ago, having little feeling for some dolt Same to you. Haha, the language was too strong. The code I'm talking about is only going to be seen by a small group of programmers. The current trio has all been here for over 20 years. I'd be more

Re: general module auditing

2014-07-03 Thread Rita
On Thu, Jul 3, 2014 at 8:36 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 03/07/2014 10:27, Rita wrote: On Thu, Jul 3, 2014 at 2:54 AM, Mark Lawrence breamore...@yahoo.co.uk mailto:breamore...@yahoo.co.uk wrote: On 03/07/2014 02:17, Rita wrote: On Wed, Jul 2, 2014 at

Re: PEP8 and 4 spaces

2014-07-03 Thread Emile van Sebille
On 7/3/2014 2:23 PM, Tobiah wrote: I think your suggestion of having GIT handle the transformations is the way we'll go. nothing to quibble or worry about. Well put spaces in the repository since it still seems to be the community's preference and I'll convert to tabs with GIT on the fly.

Re: general module auditing

2014-07-03 Thread Mark Lawrence
On 04/07/2014 00:09, Rita wrote: here is what I am doing now, egrep 'from|import' *.py | wc -l which is giving me that. But this does not give me the number of times the particular module gets called. I was thinking of adding a logging feature to all of my modules so every time they get called

Re: Get named groups from a regular expression

2014-07-03 Thread Philip Shaw
On 2014-07-01, Florian Lindner mailingli...@xgm.de wrote: Is there a way I can extract the named groups from a regular expression? e.g. given (?Ptestgrp\d) I want to get something like [testgrp]. The match object has an attribute called groupdict, so you can get the found named groups using

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Cameron Simpson
On 03Jul2014 16:43, Roy Smith r...@panix.com wrote: [...] Hmmm, I just also noticed what I think is a bug in the docs (https://docs.python.org/2/library/threading.html). It says, If a call with blocking set to True would block, return False immediately. Isn't that backwards? Doesn't that

Re: threading.Condition.wait() is not catching SIGTERM

2014-07-03 Thread Sangeeth Saravanaraj
On 04-Jul-2014, at 1:43 am, Ned Deily n...@acm.org wrote: In article 17f05a1b-44c8-4f25-afe9-5dbcffb99...@gmail.com, I have the following code which when executed waits to be interrupted by SIGINT, SIGTERM or SIGQUIT. When an object is initialized, it creates a threading.Condition() and

Re: PEP8 and 4 spaces

2014-07-03 Thread Steven D'Aprano
On Thu, 03 Jul 2014 10:31:04 -0700, Tobiah wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss want's us to unify. Point out to your boss, and your co-worker, that PEP 8 *explicitly* states that it is not compulsory except for the standard library, and

Re: PEP8 and 4 spaces

2014-07-03 Thread Chris Angelico
On Fri, Jul 4, 2014 at 11:02 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: As I understand it, Unix coders tend to prefer spaces, and Windows users tend to be more comfortable with tabs. This isn't a hard-and-fast rule, you'll find plenty of exceptions, but it seems to me that

Re: PEP8 and 4 spaces

2014-07-03 Thread Steven D'Aprano
On Thu, 03 Jul 2014 21:07:28 +0300, Paul Sokolovsky wrote: Hello, On Fri, 4 Jul 2014 03:38:27 +1000 Chris Angelico ros...@gmail.com wrote: On Fri, Jul 4, 2014 at 3:31 AM, Tobiah tshep...@rcsreg.com wrote: Coworker takes PEP8 as gospel and uses 4 spaces to indent. I prefer tabs. Boss

Re: PEP8 and 4 spaces

2014-07-03 Thread Chris Angelico
On Fri, Jul 4, 2014 at 11:21 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Summing up: if you care about other human beings, use spaces. If you don't care about other human beings, you may use tabs, but other human beings surely will take how you treat them into account ;-).

Re: PEP8 and 4 spaces

2014-07-03 Thread Roy Smith
In article mailman.11478.1404437416.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Fri, Jul 4, 2014 at 11:21 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Summing up: if you care about other human beings, use spaces. If you don't care about other

Re: PEP8 and 4 spaces

2014-07-03 Thread Demian Brecht
On Jul 3, 2014 10:31 AM, Tobiah tshep...@rcsreg.com wrote: Just need ammo for when the hammer of code unification comes down. One issue that I've encountered in the past (one of the reasons outside of pep8) that I switched to spaces is when working with libraries other than your own. If you want

Re: fixing an horrific formatted csv file.

2014-07-03 Thread flebber
I have taken the code and gone a little further, but I need to be able to protect myself against commas and single quotes in names. How is it the best to do this? so in my file I had on line 44 this trainer name. Michael, Wayne John Hawkes and in line 95 this horse name. Inz'n'out this

[issue21896] Unexpected ConnectionResetError in urllib.request against a valid website

2014-07-03 Thread Ned Deily
Ned Deily added the comment: It fails with Python 2's urllib2.urlopen as well. -- nosy: +ned.deily, orsenthil versions: +Python 2.7, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21896

[issue21909] PyLong_FromString drops const

2014-07-03 Thread Hristo Venev
New submission from Hristo Venev: PyObject* PyLong_FromString(const char *str, char **pend, int base) pend should be const char** I think casting const away when not required should be a crime punishable by imprisonment. -- messages: 222152 nosy: h.venev priority: normal severity:

[issue21909] PyLong_FromString drops const

2014-07-03 Thread Hristo Venev
Changes by Hristo Venev hri...@venev.name: -- components: +Interpreter Core type: - security versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21909 ___

[issue16117] python2.7.3 struct misaligned when returned

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Roland please accept our apologies for the delay in getting back to you. Can someone else take a look please as I know nothing about ctypes, thanks. -- nosy: +BreamoreBoy, amaury.forgeotdarc, belopolsky ___ Python

[issue16132] ctypes incorrectly encodes .format attribute of memory views

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @David please accept our apologies for the delay in getting back to you. Can someone else take a look please as I know nothing about ctypes, thanks. -- nosy: +BreamoreBoy, amaury.forgeotdarc, belopolsky versions: +Python 3.4, Python 3.5 -Python 3.3

[issue13985] Menu.tk_popup : menu doesn't disapear when main window is iconified.

2014-07-03 Thread Ned Deily
Ned Deily added the comment: As far as I can tell, the problem you are seeing with the menu not disappearing when iconifying is caused by the use of grab_release() in do_popup(). If I remove it, using an X11-based Tk 8.6, the focus stays on the menu and clicking on the iconify button causes

[issue13745] configuring --with-dbmliborder=bdb doesn't build the gdbm extension

2014-07-03 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- components: +Build type: - behavior versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13745

[issue13784] Documentation of xml.sax.xmlreader: Locator.getLineNumber() and Locator.getColumnNumber()

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @patrick please accept our apologies for the delay in getting back to you. -- nosy: +BreamoreBoy, christian.heimes versions: +Python 3.4, Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue20337] bdist_rpm should support %config(noreplace)

2014-07-03 Thread Vitaly Isaev
Vitaly Isaev added the comment: I confirm the urgent need in this feature. -- nosy: +vitalyisaev2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20337 ___

[issue15549] openssl version in windows builds does not support renegotiation

2014-07-03 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - out of date stage: - resolved status: open - closed versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15549 ___

[issue12857] Expose called function on frame object

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Note that #13672 referred to in msg156962 refers to #13855. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12857

[issue13855] Add qualname support to types.FunctionType

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Note that #13672 refers to #12857. -- nosy: +BreamoreBoy type: behavior - enhancement versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13855

[issue13672] Add co_qualname attribute in code objects

2014-07-03 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13672 ___ ___

[issue13940] imaplib: Mailbox names are not quoted

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: @Joe sorry for the delay in getting back to you. @David is this within your remit? -- nosy: +BreamoreBoy, r.david.murray versions: +Python 3.4, Python 3.5 -Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue13946] readline completer could return an iterable

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Is this a good, bad or indifferent idea? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13946 ___

[issue10031] Withdraw anti-recommendation of relative imports from documentation

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Hi, I would like to revive this issue, and have a few comments: 1. In Darren's original proposal, I suggest to say implicit (old-style) relative imports instead of old-style relative imports, because that is the term used in the Python Tutorial (the description

[issue21571] Python build should check CPATH, C_INCLUDE_PATH for module dependencies

2014-07-03 Thread Jan Kanis
Jan Kanis added the comment: I can write a patch. I haven't signed a contributor agreement but I have no problem doing so. I am not sure when I will have time to write a patch though, so it could take some time. -- ___ Python tracker

[issue10225] Fix doctest runable examples in python manual

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Hi, I would like to revive this issue and have added a review comment to issue10225-py3k.diff. Otherwise, I have reviewed the changes in both diffs and think they are good to go. Andy -- nosy: +andymaier ___ Python

[issue20069] Add unit test for os.chown

2014-07-03 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20069 ___ ___

[issue21910] File protocol should document if writelines must handle generators sensibly

2014-07-03 Thread Jan Kanis
New submission from Jan Kanis: The resolution of issue 5445 should be documented somewhere properly, so people can depend on it or not. IOBase.writelines handles generator arguments without problems, i.e. without first draining the entire generator and then writing the result in one go. That

[issue21151] winreg.SetValueEx causes crash if value = None

2014-07-03 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +steve.dower, zach.ware priority: normal - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21151 ___

[issue10536] Enhancements to gettext docs

2014-07-03 Thread Andy Maier
Andy Maier added the comment: Éric, I have reviewed the patch, and have one minor comment on it (see review page). Otherwise, I think it is good to go into v3 (The version list for this issue also shows 2.7, and the 2.7 version of this file is quite different from the v3 tip version, so a

[issue21906] Tools\Scripts\md5sum.py doesn't work in Python 3.x

2014-07-03 Thread Josh Rosenberg
Changes by Josh Rosenberg shadowranger+pyt...@gmail.com: -- nosy: +josh.rosenberg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21906 ___ ___

[issue21740] doctest doesn't allow duck-typing callables

2014-07-03 Thread Claudiu Popa
Claudiu Popa added the comment: Here's a test patch which uses inspect.unwrap. Unfortunately, I can't test with numba, so I don't know if it works for that, but any decorated function which uses `functools.update_wrapper` or `wraps` should be detected by doctest. -- keywords: +patch

[issue21911] IndexError: tuple index out of range should include the requested index and tuple length

2014-07-03 Thread Ram Rachum
New submission from Ram Rachum: Ditto for lists and any other place this could be applicable. -- components: Interpreter Core messages: 222168 nosy: cool-RR priority: normal severity: normal status: open title: IndexError: tuple index out of range should include the requested index and

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

2014-07-03 Thread Ram Rachum
Changes by Ram Rachum r...@rachum.com: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20218 ___

[issue18212] No way to check whether Future is finished?

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: What do you think about exposing this directly? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18212 ___ ___

[issue20663] Introduce exception argument to iter

2014-07-03 Thread Ram Rachum
Ram Rachum added the comment: Hey-ho... Anyone feels like implementing this? (I don't program in C so I can't.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20663 ___

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Jonas Diemer
New submission from Jonas Diemer: I was having trouble with the logging module under Jython: I was getting seemingly sporadic wierd null pointer exceptions in the logging code. The problem seemed to be related to references that were passed to the logger, e.g. logger.debug(My object: %s,

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Jonas Diemer
Jonas Diemer added the comment: Find attached a demo script that causes the erratic behavior in regular Python (2.7.5 on Windows). The log file contains two lines, both show the new name of the object, although the first debug() was called befor the name change. I think this problem could be

[issue12842] Docs: first parameter of tp_richcompare() always has the correct type

2014-07-03 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in 71a0743f36db and 06bdd7e8fffd -- nosy: +asvetlov resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.4, Python 3.5 -Python 2.7, Python 3.2, Python 3.3 ___ Python

[issue21755] test_importlib.test_locks fails --without-threads

2014-07-03 Thread R. David Murray
R. David Murray added the comment: What is the reason for using the conditional approach rather than a skip decorator? Does it not work in this context, or is it just that you copied the existing approach? It's fine either way, but I'm curious. --

[issue13940] imaplib: Mailbox names are not quoted

2014-07-03 Thread R. David Murray
R. David Murray added the comment: Yes. It will be necessary to check the RFC to figure out what should be done here. -- components: +email nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13940

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Zachary Ware
Changes by Zachary Ware zachary.w...@gmail.com: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21912 ___ ___ Python-bugs-list

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread R. David Murray
R. David Murray added the comment: The whole point of the logging API is that the message is *not* formatted unless the message is actually emitted. So this is just how logging works, not something that can be fixed, as far as I can see. -- nosy: +r.david.murray

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Jonas Diemer
Jonas Diemer added the comment: I see your point. The decision whether to log or not is actually made synchronously to the actual logging call, as far as I can tell (i.e. if self.isEnabledFor... is checked directly in debug()). So at this place, the formatting could already happen. I don't

[issue14014] codecs.StreamWriter.reset contract not fulfilled

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: On Windows 7 206 codecs tests passed and 4 skipped with the patch included. -- keywords: +patch nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 Added file: http://bugs.python.org/file35840/Issue14014.diff

[issue14076] sqlite3 module ignores placeholders in CREATE TRIGGER code

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a reply to this please as I don't understand enough about sqlite3 to comment. -- nosy: +BreamoreBoy title: sqlite3 module ignores placeholers in CREATE TRIGGER code - sqlite3 module ignores placeholders in CREATE TRIGGER code

[issue14124] _pickle.c comment/documentation improvement

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can we have a patch review on this please -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14124 ___

[issue14121] add a convenience C-API function for unpacking iterables

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Apparently not :) -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14121 ___

[issue14189] Documentation for some C APIs is missing clear specification of the type of reference they return

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: Can someone comment please as I'm not brave enough to touch the C code or docs. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14189 ___

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread R. David Murray
R. David Murray added the comment: The decision as to whether or not to pass the message along to the next stage is made at numerous points in the pipeline. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21912

[issue14287] sys.stdin.readline and KeyboardInterrupt on windows

2014-07-03 Thread Mark Lawrence
Mark Lawrence added the comment: FWIW the same occurs on Windows 7 with 3.5.0 but given there are known differences between Windows and *nix is this really an issue? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue21912] Deferred logging may use outdated references

2014-07-03 Thread Vinay Sajip
Vinay Sajip added the comment: I don't see a reason to defer the formatting to the actual output of the messages (other than the current implementation of logging). The current implementation of logging is like that for a reason, even though you may not see it - it defers doing work until

  1   2   >