Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Mon, Oct 29, 2012 at 12:00 PM, Andrew Robinson andr...@r3dsolutions.com wrote: I downloaded the source code for python 3.3.0, as the tbz; In the directory Python-3.3.0/Python, look at Python-ast.c, line 2089 ff. Python-ast.c is part of the compiler code. That's not the struct used to

Re: date and time comparison how to

2012-10-30 Thread Chris Angelico
On Tue, Oct 30, 2012 at 3:20 PM, noydb jenn.du...@gmail.com wrote: But for the user supplied date... I'm not sure of the format just yet... testing with a string for now (actual date-date might be possible, tbd later), so like '10292012213000' (oct 29, 2012 9:30pm). How would you get that

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
Hi Ian, There are several interesting/thoughtful things you have written. I like the way you consider a problem before knee jerk answering. The copying you mention (or realloc) doesn't re-copy the objects on the list. It merely re-copies the pointer list to those objects. So lets see what it

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Mon, Oct 29, 2012 at 4:39 PM, Andrew Robinson andr...@r3dsolutions.com wrote: In addition to those items you mention, of which the reference count is not even *inside* the struct -- there is additional debugging information not mentioned. Built in objects contain a line number, a column

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
On 10/29/2012 04:01 PM, Ian Kelly wrote: On Mon, Oct 29, 2012 at 9:20 AM, Andrew Robinson andr...@r3dsolutions.com wrote: FYI: I was asking for a reason why Python's present implementation is desirable... I wonder, for example: Given an arbitrary list: a=[1,2,3,4,5,6,7,8,9,10,11,12] Why

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
On 10/29/2012 10:53 PM, Michael Torrie wrote: On 10/29/2012 01:34 PM, Andrew Robinson wrote: No, I don't think it big and complicated. I do think it has timing implications which are undesirable because of how *much* slices are used. In an embedded target -- I have to optimize; and I will have

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
On 10/29/2012 11:51 PM, Ian Kelly wrote: On Mon, Oct 29, 2012 at 4:39 PM, Andrew Robinson As above, you're looking at the compiler code, which is why you're finding things like line and column. The tuple struct is defined in tupleobject.h and stores tuple elements in a tail array. If you

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Mon, Oct 29, 2012 at 7:49 PM, Chris Kaynor ckay...@zindagigames.com wrote: NOTE: The above is taken from reading the source code for Python 2.6. For some odd reason, I am getting that an empty tuple consists of 6 pointer-sized objects (48 bytes on x64), rather than the expected 3

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Mon, Oct 29, 2012 at 6:17 PM, Andrew Robinson andr...@r3dsolutions.com wrote: If you re-check my post to chris, I listed the struct you mention. The C code is what is actually run (by GDB breakpoint test) when a tuple is instantiated. When you were running GDB, were you debugging the

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Mon, Oct 29, 2012 at 5:54 PM, Andrew Robinson andr...@r3dsolutions.com wrote: I don't know of a reason why one might need to use a negative start with a positive stop, though. I've already given several examples; and another poster did too I meant that I don't know of a reason to do that

Re: Negative array indicies and slice()

2012-10-30 Thread Steven D'Aprano
By the way Andrew, the timestamps on your emails appear to be off, or possibly the time zone. Your posts are allegedly arriving before the posts you reply to, at least according to my news client. On Mon, 29 Oct 2012 12:34:24 -0700, Andrew Robinson wrote: On 10/29/2012 05:02 PM, Steven

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Tue, Oct 30, 2012 at 1:21 AM, Ian Kelly ian.g.ke...@gmail.com wrote: I'm not entirely certain why collection objects get this special treatment, but there you have it. Thinking about it some more, this makes sense. The GC header is there to support garbage collection for the object. Atomic

Re: date and time comparison how to

2012-10-30 Thread Dave Angel
On 10/30/2012 12:20 AM, noydb wrote: On Monday, October 29, 2012 11:11:55 PM UTC-4, Dave Angel wrote: On 10/29/2012 10:13 PM, noydb wrote: I guess I get there eventually! snip okay, I see. But for the user supplied date... I'm not sure of the format just yet... testing with a

Re: I need help installing pypng in Python 3.3

2012-10-30 Thread icgwh
On Monday, October 29, 2012 3:48:09 PM UTC+1, Andrew Robinson wrote: On 10/29/2012 06:39 AM, ic...@tagyourself.com wrote: That's very kind of you but I don't think it would be particularly fitted to my needs. The program I'm trying to code creates an image as an 2D array of pixels which

exec with partial globals

2012-10-30 Thread Helmut Jarausch
Hi, I'd like to give the user the ability to enter code which may only rebind a given set of names but not all ones. This does NOT work A=1 B=2 Code=compile('A=7','','exec') exec(Code,{'A':0}) print(I've got A={}.format(A)) # prints 1 How can 'filter' the gobal namespace such that modifying 'A'

Re: exec with partial globals

2012-10-30 Thread Chris Angelico
On Tue, Oct 30, 2012 at 11:00 PM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Hi, I'd like to give the user the ability to enter code which may only rebind a given set of names but not all ones. How can 'filter' the gobal namespace such that modifying 'A' is allowed but any attempt

Re: exec with partial globals

2012-10-30 Thread Dave Angel
On 10/30/2012 08:00 AM, Helmut Jarausch wrote: Hi, I'd like to give the user the ability to enter code which may only rebind a given set of names but not all ones. This does NOT work A=1 B=2 Code=compile('A=7','','exec') exec(Code,{'A':0}) print(I've got A={}.format(A)) # prints 1 How

Re: problems with xml parsing (python 3.3)

2012-10-30 Thread jannidis
If someone comes across this posting with the same problem, the best answer seems to be: avoid Pythons xml.etree.ElementTree and use this library instead: http://lxml.de/ It works like expected and supports xpath much better. -- http://mail.python.org/mailman/listinfo/python-list

Re: exec with partial globals

2012-10-30 Thread Helmut Jarausch
On Tue, 30 Oct 2012 08:33:38 -0400, Dave Angel wrote: On 10/30/2012 08:00 AM, Helmut Jarausch wrote: Hi, I'd like to give the user the ability to enter code which may only rebind a given set of names but not all ones. This does NOT work A=1 B=2 Code=compile('A=7','','exec')

Re: exec with partial globals

2012-10-30 Thread Chris Angelico
On Tue, Oct 30, 2012 at 11:57 PM, Helmut Jarausch jarau...@igpm.rwth-aachen.de wrote: Given spreadsheet S (Source) and D (Destination) as objects (wrapping a dictionary) a possible (legal) input would be D.price= D.price-S.discount No other fields of 'D' should be modifiable. That's a bit

calling one staticmethod from another

2012-10-30 Thread Ulrich Eckhardt
Hi! I can call a staticmethod f() of class C like C.f() or with an instance like C().f(). Inside that staticmethod, I have neither the class (at least not the original one) nor do I have an instance, so I can't call a different staticmethod from the same class. The obvious solution is to

Re: exec with partial globals

2012-10-30 Thread Dave Angel
On 10/30/2012 08:57 AM, Helmut Jarausch wrote: On Tue, 30 Oct 2012 08:33:38 -0400, Dave Angel wrote: On 10/30/2012 08:00 AM, Helmut Jarausch wrote: Hi, I'd like to give the user the ability to enter code which may only rebind a given set of names but not all ones. This does NOT work A=1

Re: calling one staticmethod from another

2012-10-30 Thread Ethan Furman
Ulrich Eckhardt wrote: I can call a staticmethod f() of class C like C.f() or with an instance like C().f(). Inside that staticmethod, I have neither the class (at least not the original one) nor do I have an instance, so I can't call a different staticmethod from the same class. The obvious

Re: calling one staticmethod from another

2012-10-30 Thread Dave Angel
On 10/30/2012 08:25 AM, Ulrich Eckhardt wrote: Hi! I can call a staticmethod f() of class C like C.f() or with an instance like C().f(). Inside that staticmethod, I have neither the class (at least not the original one) nor do I have an instance, so I can't call a different staticmethod from

shannan is so good at giving head pt 22

2012-10-30 Thread Constantine
shannan is so good at giving head pt 22 http://www.google.com/search?hl=enq=shannan+is+so+good+at+giving+head+pt+22+site:ryurikpiroumita.blogspot.combtnI=I%27m+Feeling+Lucky -- http://mail.python.org/mailman/listinfo/python-list

Re: Nice solution wanted: Hide internal interfaces

2012-10-30 Thread andrea crotti
2012/10/30 alex23 wuwe...@gmail.com: On Oct 30, 2:33 am, Johannes Bauer dfnsonfsdu...@gmx.de wrote: I'm currently looking for a good solution to the following problem: I have two classes A and B, which interact with each other and which interact with the user. Instances of B are always created

RE: how to change os.popen4 to subprocess

2012-10-30 Thread Prasad, Ramit
Replying to skyworld because I could not find the original message from MRAB. skyworld wrote: On Oct 27, 11:02 am, MRAB pyt...@mrabarnett.plus.com wrote: On 2012-10-27 03:28, skyworld wrote: Hi, I'm new to python and I'm trying to porting some scripts from v0.96 to v2.0.1. A piece of

Float to String %.7e - diff between Python-2.6 and Python-2.7

2012-10-30 Thread andrew . mackeith
When formatting a float using the exponential format, the rounding is different in Python-2.6 and Python-2.7. See example below. Is this intentional? Is there any way of forcing the Python-2.6 behavior (for compatibility reasons when testing)? c:\python26\python

Re: Float to String %.7e - diff between Python-2.6 and Python-2.7

2012-10-30 Thread Duncan Booth
andrew.macke...@3ds.com wrote: When formatting a float using the exponential format, the rounding is different in Python-2.6 and Python-2.7. See example below. Is this intentional? Is there any way of forcing the Python-2.6 behavior (for compatibility reasons when testing)? It isn't

Re: Float to String %.7e - diff between Python-2.6 and Python-2.7

2012-10-30 Thread Dave Angel
On 10/30/2012 10:47 AM, andrew.macke...@3ds.com wrote: When formatting a float using the exponential format, the rounding is different in Python-2.6 and Python-2.7. See example below. Is this intentional? Is there any way of forcing the Python-2.6 behavior (for compatibility reasons when

Re: calling one staticmethod from another

2012-10-30 Thread Ian Kelly
On Tue, Oct 30, 2012 at 7:41 AM, Ethan Furman et...@stoneleaf.us wrote: class Spam(): @staticmethod def green(): print('on a train!') @staticmethod def question(): print('would you, could you', end='') Spam.green() It can be a pain if you change

Re: calling one staticmethod from another

2012-10-30 Thread Ulrich Eckhardt
Am 30.10.2012 14:47, schrieb Dave Angel: I'd think the obvious solution is to move both the functions outside of the class. I haven't figured out the justification for staticmethod, except for java or C++ converts. Although I come from a C++ background, I think static functions have solid

Re: Immutability and Python

2012-10-30 Thread rusi
On Oct 29, 8:20 pm, andrea crotti andrea.crott...@gmail.com wrote: snipped Any comments about this? What do you prefer and why? Im not sure how what the 'prefer' is about -- your specific num wrapper or is it about the general question of choosing mutable or immutable types? If the latter I

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Tue, Oct 30, 2012 at 10:14 AM, Ethan Furman et...@stoneleaf.us wrote: File a bug report? Looks like it's already been wontfixed back in 2006: http://bugs.python.org/issue1501180 -- http://mail.python.org/mailman/listinfo/python-list

Re: calling one staticmethod from another

2012-10-30 Thread Jean-Michel Pichavant
- Original Message - [snip] I haven't figured out the justification for staticmethod, http://en.wikipedia.org/wiki/Namespace + Namespaces are one honking great idea -- let's do more of those! Someone may successfully use only modules as namespaces, but classes can be used as well.

Splitting large packages with distutils

2012-10-30 Thread Joost Molenaar
Hello list, suppose I have three packages like this: ingredients-base/ ingredients/ __init__.py setup.py -- this one only references package ingredients ingredients-spam/ ingredients/ __init__.py spam/ __init__.py recipe.py

Re: Immutability and Python

2012-10-30 Thread Neal Becker
rusi wrote: On Oct 29, 8:20 pm, andrea crotti andrea.crott...@gmail.com wrote: snipped Any comments about this? What do you prefer and why? Im not sure how what the 'prefer' is about -- your specific num wrapper or is it about the general question of choosing mutable or immutable types?

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
On 10/30/2012 11:02 AM, Ian Kelly wrote: On Tue, Oct 30, 2012 at 10:14 AM, Ethan Furmanet...@stoneleaf.us wrote: File a bug report? Looks like it's already been wontfixed back in 2006: http://bugs.python.org/issue1501180 Thanks, IAN, you've answered the first of my questions and have been a

Re: calling one staticmethod from another

2012-10-30 Thread Mark Lawrence
On 30/10/2012 12:25, Ulrich Eckhardt wrote: Hi! I can call a staticmethod f() of class C like C.f() or with an instance like C().f(). Inside that staticmethod, I have neither the class (at least not the original one) nor do I have an instance, so I can't call a different staticmethod from the

Re: Negative array indicies and slice()

2012-10-30 Thread Ethan Furman
Andrew Robinson wrote: I can see that the slice() function can pass in arbitrary arguments. I'm not sure for lists, which is what the range is applied to, why an argument like a would be part of a slice. Well, in my dbf.py Record class you can use the names of fields as the slice arguments,

Re: Negative array indicies and slice()

2012-10-30 Thread Mark Lawrence
On 30/10/2012 18:02, Ian Kelly wrote: On Tue, Oct 30, 2012 at 10:14 AM, Ethan Furman et...@stoneleaf.us wrote: File a bug report? Looks like it's already been wontfixed back in 2006: http://bugs.python.org/issue1501180 Absolutely bloody typical, turned down because of an idiot. Who the

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Tue, Oct 30, 2012 at 3:33 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/10/2012 18:02, Ian Kelly wrote: On Tue, Oct 30, 2012 at 10:14 AM, Ethan Furman et...@stoneleaf.us wrote: File a bug report? Looks like it's already been wontfixed back in 2006:

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Tue, Oct 30, 2012 at 8:21 AM, Andrew Robinson andr...@r3dsolutions.com wrote: D'Apriano mentioned the named values, start, stop, step in a slice() which are an API and legacy issue; These three names must also be stored in the interpreter someplace. Since slice is defined at the C level as

Re: Negative array indicies and slice()

2012-10-30 Thread Chris Angelico
On Wed, Oct 31, 2012 at 8:47 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Oct 30, 2012 at 3:33 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/10/2012 18:02, Ian Kelly wrote: On Tue, Oct 30, 2012 at 10:14 AM, Ethan Furman et...@stoneleaf.us wrote: File a bug report? Looks

Re: Negative array indicies and slice()

2012-10-30 Thread Ian Kelly
On Tue, Oct 30, 2012 at 3:55 PM, Ian Kelly ian.g.ke...@gmail.com wrote: On Tue, Oct 30, 2012 at 8:21 AM, Andrew Robinson andr...@r3dsolutions.com wrote: D'Apriano mentioned the named values, start, stop, step in a slice() which are an API and legacy issue; These three names must also be

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
On 10/30/2012 01:17 AM, Steven D'Aprano wrote: By the way Andrew, the timestamps on your emails appear to be off, or possibly the time zone. Your posts are allegedly arriving before the posts you reply to, at least according to my news client. :D -- yes, I know about that problem. Every time I

Re: Negative array indicies and slice()

2012-10-30 Thread Mark Lawrence
On 30/10/2012 21:47, Ian Kelly wrote: On Tue, Oct 30, 2012 at 3:33 PM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 30/10/2012 18:02, Ian Kelly wrote: On Tue, Oct 30, 2012 at 10:14 AM, Ethan Furman et...@stoneleaf.us wrote: File a bug report? Looks like it's already been wontfixed

Re: Negative array indicies and slice()

2012-10-30 Thread Mark Lawrence
On 30/10/2012 15:47, Andrew Robinson wrote: I would refer you to a book written by Steve Maguire, Writing Solid Code; Chapter 5; Candy machine interfaces. The book that took a right hammering here http://accu.org/index.php?module=bookreviewsfunc=searchrid=467 ? -- Cheers. Mark Lawrence.

Re: Immutability and Python

2012-10-30 Thread rusi
On Oct 31, 1:45 am, Neal Becker ndbeck...@gmail.com wrote: rusi wrote: On Oct 29, 8:20 pm, andrea crotti andrea.crott...@gmail.com wrote: snipped Any comments about this? What do you prefer and why? Im not sure how what the 'prefer' is about -- your specific num wrapper or is it about

Re: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
On 10/30/2012 04:48 PM, Mark Lawrence wrote: On 30/10/2012 15:47, Andrew Robinson wrote: I would refer you to a book written by Steve Maguire, Writing Solid Code; Chapter 5; Candy machine interfaces. The book that took a right hammering here

Re: Obnoxious postings from Google Groups

2012-10-30 Thread Robert Miles
On 9/16/2012 8:18 AM, Ben Finney wrote: Νικόλαος Κούρας nikos.gr...@gmail.com writes: Iam sorry i didnt do that on purpose and i dont know how this is done. Iam positng via google groups using chrome, thats all i know. It is becoming quite clear that some change has happened recently to

Re: Obnoxious postings from Google Groups

2012-10-30 Thread Robert Miles
On 9/16/2012 10:44 AM, pandora.ko...@gmail.com wrote: Whaen i tried to post just now by hitting sumbit, google groups told me that the following addresssed has benn found in this thread! i guess is used them all to notify everything! cdf072b2-7359-4417-b1e4-d984e4317...@googlegroups.com

RE: Negative array indicies and slice()

2012-10-30 Thread Andrew Robinson
Ian, Looks like it's already been wontfixed back in 2006: http://bugs.python.org/issue1501180 Absolutely bloody typical, turned down because of an idiot. Who the hell is Tim Peters anyway? I don't really disagree with him, anyway. It is a rather obscure bug -- is it worth increasing

Re: Negative array indicies and slice()

2012-10-30 Thread Michael Torrie
On 10/30/2012 09:47 AM, Andrew Robinson wrote: Let's not confound an issue here -- I am going to implement the python interpreter; and am not bound by optimization considerations of the present python interpreter -- There are things I can do which as a python programmer -- you can't. I

Re: Obnoxious postings from Google Groups

2012-10-30 Thread Robert Miles
On 9/16/2012 8:14 PM, alex23 wrote: On Sep 17, 10:55 am, Roy Smith r...@panix.com wrote: They didn't buy the service. They bought the data. Well, they really bought both, but the data is all they wanted. I thought they'd taken most of the historical data offline now too? Some of it, but

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: Serhiy Storchaka wrote: This can be done in compile time. Something like: if ((uid_t)-1 0) ... Ah, neat. I would have expected that to issue a compiler warning, though, because the comparison is always true if the type is unsigned, but at least gcc

[issue16362] _LegalCharsPatt in cookies.py includes illegal characters

2012-10-30 Thread Simon Blanchard
New submission from Simon Blanchard: _LegalCharsPatt = r[\w\d!#%'~_`@,:/\$\*\+\-\.\^\|\)\(\?\}\{\=] The above regex in cookies.py includes the the comma character but RFC 6265 https://tools.ietf.org/html/rfc6265 section 4.1.1 says: cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B /

[issue16363] super cannot invoke descriptors

2012-10-30 Thread Ronny Pfannschmidt
New submission from Ronny Pfannschmidt: this means its much harder to have a mixin to change the behaviour of a property instead of super(Mixin, self).prop = foo the code is super(Mixin, type(self)).prop.__set__(self, foo) which is way harder to understand the attached file demonstrates the

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Matti Mäki, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: Well, the first difference that jumps out is that with python 2.7, the protocol used is SSLv2, whereas it's bare SSL on Python 3.3.0. But another interesting thing is the presence, in Python 2.3, of many extenstions (elliptic_curves, heartbeat,

[issue16330] Use surrogate-related macros

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks. Issue #16330: Fix compilation on Windows Oh, how could I miss this? -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue14625] Faster utf-32 decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know any application using UTF-32-LE or UTF-32-BE. So I don't want to waste Python memory/code size with a heavily optimized decoder. The patch A looks to be enough. Agree. I had the same doubts. That's why I proposed two patches for your

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11566 ___ ___

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Mark Dickinson
Mark Dickinson added the comment: Enhance error messages of struct.pack and struct.pack_into You probably should have used the word 'fix' rather than 'enhance' here: else it smells like you're putting new features into a maintenance release. :-) --

[issue16335] Integer overflow in unicode-escape decoder

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (b'\\N{WHITE SMILING FACE' + b'x' * 2**32 + '}').decode('unicode-escape') may pass on platform with 32-bit int and more than 32-bit size_t if there is enough memory. I don't have so much memory. -- ___ Python

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: You probably should have used the word 'fix' rather than 'enhance' here: else it smells like you're putting new features into a maintenance release. :-) Ah, true. But unfixable now :( -- ___ Python tracker

[issue15478] UnicodeDecodeError on OSError on Windows with undecodable (bytes) filename

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue16074. The patch changes also os.link(), os.rename() and os.replace() to use the source, not the destination, in the error message. It is maybe a mistake because these functions can also fail in the directory of the destination does not

[issue16306] Multiple error line for unknown command line parameter

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Hieu Nguyen, can you please submit a contributor form? http://python.org/psf/contrib/contrib-form/ http://python.org/psf/contrib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Matti Mäki
Matti Mäki added the comment: I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14897 ___

[issue16322] time.tzname on Python 3.3.0 for Windows is decoded by wrong encoding

2012-10-30 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: -serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16322 ___ ___

[issue14897] struct.pack raises unexpected error message

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: Matti Mäki wrote: I filled up the contributor form and gave it to Petri Lehtinen 2012-10-22 Yeah, and I posted it (along with 14 other contributor forms received at PyCon Finland) to the PSF last week. They just seem to be a bit slow to process them.

[issue16310] zipfile: allow surrogates in filenames

2012-10-30 Thread Stefan Holek
Stefan Holek added the comment: It's possible to distribute Python packages with non-ASCII filenames. Well, it wasn't until very recently (distribute 0.6.29): https://bitbucket.org/tarek/distribute/issue/303/no-support-for-unicode-manifest-files Unless we are not talking about the same thing,

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Mark Dickinson
Mark Dickinson added the comment: I think there's something generally smelly about the way hypot is handled; this isn't the only hypot-related build issue that's turned up. I'm wondering whether the code can be reworked to deal with hypot in the same way that functions like log1p, etc. are

[issue11566] hypot define in pyconfig.h clashes with g++'s cmath

2012-10-30 Thread Václav Šmilauer
Václav Šmilauer added the comment: Just for the record: a workaround (mentioned at http://boost.2283326.n4.nabble.com/Boost-Python-Compile-Error-s-GCC-via-MinGW-w64-td3165793.html#a3166760) is to always include cmath before Python.h. -- ___ Python

[issue16306] Multiple error line for unknown command line parameter

2012-10-30 Thread Hieu Nguyen
Hieu Nguyen added the comment: Serhiy, actually I have submitted my contributor form to Petri Lehtinen in a sprint here in Finland. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16306

[issue16330] Use surrogate-related macros

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: Oh, how could I miss this? The code does compile with error on Linux with GCC. I don't understand how. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16330

[issue16310] zipfile: allow surrogates in filenames

2012-10-30 Thread STINNER Victor
STINNER Victor added the comment: If I am the only one to think this is wrong, then so be it. Our current workaround is to disallow surrogates in the manifest. /me shrugs. You are not alone, that's why there are 3 open issues. But someone should finish the different proposition and write a

[issue16330] Use surrogate-related macros

2012-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was a rhetorical question. This code compiled only if Py_UNICODE_SIZE == 2. But I should be more careful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16330

[issue16364] datetime.strftime and locale.getdefaultlocale conflict on Windows ?

2012-10-30 Thread jamesf
New submission from jamesf: on windows(windows 7), python 2.7.3 compiled with VS 2008 and code page cp936. locale.getdefaultlocale call Win32 API GetACP and return cp936, but a small test program return C from 'getlocale' CRT function. I am not sure if this behaviour is expected or bug? It

[issue16364] datetime.strftime and locale.getdefaultlocale conflict on Windows ?

2012-10-30 Thread jamesf
jamesf added the comment: i just found that locale.getlocale does return (None, None), maybe defaultlocale just return the DEFAULT, which is the hints. i will use locale.setlocale in my app, so close this issue. -- status: open - closed ___ Python

[issue16363] super cannot invoke descriptors

2012-10-30 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: -Python 3.1, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16363 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-30 Thread Christian Heimes
Christian Heimes added the comment: AFAIK C89 doesn't specify integer overflows: If an exceptional condition occurs during the evaluation of an expression (that is, if the result is not mathematically defined or not in the range of representable values for its type), the behavior is

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Jyrki Pulliainen added the comment: Yeah, I tried figuring out something more clever, as this, in the current form, has a bit too hackish feeling in it, but I couldn't find a proper tool for the job. Anyway, attached a patch with the getattr removed. -- Added file:

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file27793/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Added file: http://bugs.python.org/file27795/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Added file: http://bugs.python.org/file27794/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file27677/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Jyrki Pulliainen
Changes by Jyrki Pulliainen jy...@dywypi.org: Removed file: http://bugs.python.org/file27794/issue9351.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___

[issue2005] posixmodule expects sizeof(pid_t/gid_t/uid_t) = sizeof(long)

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: Christian Heimes wrote: AFAIK C89 doesn't specify integer overflows: Casting a signed integer to an unsigned integer is always defined, if that's what you're talking about. See http://flash-gordon.me.uk/ansi.c.txt, section 3.2.1.2. If you're talking about

[issue9351] argparse set_defaults on subcommands should override top level set_defaults

2012-10-30 Thread Petri Lehtinen
Petri Lehtinen added the comment: LGTM. Steven? -- stage: needs patch - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9351 ___ ___

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Ramchandra Apte
Ramchandra Apte added the comment: Unless Python's grammar is translated into other languages I'm -1 on this. I don't see any use of this. You anyway have to know English to understand the docs and Python's grammar is English. @Ezio melotti In some places (like my country, public schools),

[issue16362] _LegalCharsPatt in cookies.py includes illegal characters

2012-10-30 Thread R. David Murray
R. David Murray added the comment: This is a pragmatic choice. Try searching the tracker for 'cookie comma', and read about the lack of adherence to cookie RFCs by the major browsers. Specifically, I think issue 1210326 is relevant here, and am closing this as a duplicate of that issue. If

[issue16363] super cannot invoke descriptors

2012-10-30 Thread R. David Murray
R. David Murray added the comment: I believe this is a duplicate of issue 14965. If you agree please add yourself to nosy there and review the proposed patch and/or make your own proposal. If you think your issue is different you can reopen this one. -- nosy: +r.david.murray

[issue16261] Fix bare excepts in various places in std lib

2012-10-30 Thread Ramchandra Apte
Changes by Ramchandra Apte maniandra...@gmail.com: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16261 ___ ___

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: Schools put a priority on English but not on native languages. Languages must be preserved because they contain culture Of course, but the main goal of a language is to communicate. As it stand, English is the language which is the most likely to

[issue16338] pysnmp/asyncore - timeout ineffective?

2012-10-30 Thread Charles-François Natali
Charles-François Natali added the comment: It's a little too vague :-) You should probably report this on pysnmp mailing list. If you want to debug this, you should perform a tcpdump/wireshark capture while running your script, and see what happens (according to your description, it may

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-10-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10966 ___ ___

[issue10966] eliminate use of ImportError implicitly representing SkipTest

2012-10-30 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10966 ___ ___

[issue16361] HTTPS/TLS Problem in Python 3.3

2012-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Your script works for me under Linux with Python 3.2, 3.3 and 3.4. Perhaps the problem has to do with the version of OpenSSL that we package Windows binaries with? My OpenSSL version here (as given by ssl.OPENSSL_VERSION) is 'OpenSSL 1.0.0d 8 Feb 2011'.

[issue16344] Traceback Internationalization Proposal

2012-10-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: It'll get tricky if in a couple months, we start getting bug reports with traceback in Finnish or French... That is another reason to *always* output the standard English message first. I think this was discussed a couple of years ago on PyDev, or maybe

  1   2   >