[issue8577] test_distutils fails if srcdir != builddir

2010-06-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Tarek: I'm not 100% that all my changes in Lib/distutils were backported to 3.1. This last patch definitely wasn't, but isn't also isn't relevant for 3.1. -- ___ Python tracker _

[issue9000] Provide parseable repr to datetime.timezone

2010-06-15 Thread Brett Cannon
Changes by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-06-15 Thread geremy condra
Changes by geremy condra : -- nosy: +debatem1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9005] Year range in timetuple

2010-06-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Current datetime.timetuple() implementation goes out of its way to support edge cases that produce timetuples beyond the naive datetime range: >>> t1 = datetime.min.replace(tzinfo=timezone.max) >>> t2 = datetime.max.replace(tzinfo=timezone.min) >>> pri

[issue9004] datetime.utctimetuple() should not set tm_isdst flag to 0

2010-06-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : I find the following quite misleading: >>> from datetime import datetime >>> import time >>> time.strftime('%c %z %Z', datetime.utcnow().utctimetuple()) 'Wed Jun 16 03:26:26 2010 -0500 EST' As far as I can tell, the only other function that uses the tm

[issue8943] Bug in InteractiveConsole

2010-06-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, the problem is observed in py3k. Pickle module when used via Interactive console is trying to import the class as __console__.ClassName and it is failing to see the __console__ module. _pickle.PicklingError: Can't pickle : import of module '__console__

[issue9003] urllib about https behavior

2010-06-15 Thread R. David Murray
Changes by R. David Murray : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-06-15 Thread Craig McQueen
Craig McQueen added the comment: Sorry I should have said, I'm running on Windows 2000 SP4. -- ___ Python tracker ___ ___ Python-bu

[issue1596321] KeyError at exit after 'import threading' in other thread

2010-06-15 Thread Craig McQueen
Craig McQueen added the comment: >From my limited experience using cx_Freeze 4.1.2 with Python 2.6.5, it seems >that this issue is triggered in a cx_Frozen program simply by having `import >threading` in the program. I'm not sure what cx_Freeze is doing that makes >this issue show up. --

[issue6641] datetime.strptime doesn't support %z format ?

2010-06-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Mark, I am reassigning this to you for a commit review. -- assignee: belopolsky -> mark.dickinson ___ Python tracker ___

[issue6641] datetime.strptime doesn't support %z format ?

2010-06-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17667/issue6641.diff ___ Python tracker ___ ___ Python-bugs-list mai

[issue6641] datetime.strptime doesn't support %z format ?

2010-06-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Added file: http://bugs.python.org/file17681/issue6641.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue3129] struct allows repeat spec. without a format specifier

2010-06-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On this happy note, I am closing this issue. Doc changes have been committed in r82004, test changes in r82003. For repr(timezone(..)) development, please follow issue #9000. -- status: open -> closed ___ P

[issue9003] urllib about https behavior

2010-06-15 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil resolution: -> accepted ___ Python tracker ___ ___ Python-bug

[issue9003] urllib about https behavior

2010-06-15 Thread geremy condra
New submission from geremy condra : urllib currently blindly accepts bad certificates when passed an https address. This behavior, clearly not desirable for many users, is also not documented. I propose one of two changes: 1) add mechanisms for enforcing correct behavior to urllib, or 2) chang

[issue3871] cross and native build of python for mingw32 with distutils

2010-06-15 Thread René Schümann
René Schümann added the comment: Roumen thanks for this work, but will you upload a new version? Just because i can't get it to work, i can't even patch it^^ Maybe it's the SVN Client i use (Tortoise SVN) or that i don't know how to apply this patch :D It would be nice when you help me Kind r

[issue644744] bdist_rpm fails when installing man pages

2010-06-15 Thread Thomas Vander Stichele
Thomas Vander Stichele added the comment: What do you mean, it's frozen ? Without the patch you're already breaking a third party tool, namely rpm. What other tool worth caring about that uses bdist_rpm could possibly get broken by fixing an obvious bug ? Why is it so impossible to simply fi

[issue8577] test_distutils fails if srcdir != builddir

2010-06-15 Thread Tarek Ziadé
Tarek Ziadé added the comment: As I said earlier, I am going to revert Distutils state in py3k so it's like the 3.1 branch. So the changes in distutils/ in py3k that are not backported in 3.1 will be lost. I had a lack of time lately, but I should be able to do it this week. --

[issue8577] test_distutils fails if srcdir != builddir

2010-06-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: This should be fixed in r82005, this passes all tests both with and without srcdir==builddir -- ___ Python tracker ___ ___

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Reopening. I think it would be nice to provide the appropriate convenience function(s) as part of the ssl module, even if the user has to call them explicitly. -- assignee: janssen -> nosy: +pitrou resolution: rejected -> status: closed -> open vers

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It is possible to backport this to future of Python 2.7? No. -- ___ Python tracker ___ ___ Python

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread anatoly techtonik
anatoly techtonik added the comment: Good job. Thanks for working on this. It is possible to backport this to future of Python 2.7? -- ___ Python tracker ___ ___

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: Suggestion for one line: “The *dt* argument must be aware with ``tzinfo`` set to ``self``.” “The *dt* argument must be an aware datetime, with ``tzinfo`` set to ``self``.” If there is a reST construct for aware datetime, use it. Since “self” is not special, perha

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file17676/issue5094h.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: How to specify offset range horse got its beating above. See msg107554. The current wording is the best compromise between verbosity and precision. Replacing the patch with one that fixes other nits. -- Added file: http://bugs.python.org/file1

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: .. method:: datetime.utcoffset() Return ``None`` if :attr:`tzinfo` is ``None``, else else return ... That said, to keep diffs readable, perhaps stick with the existing convention know, and later a PEP 257 compliance diff can be made. -- _

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: What about """ .. method:: datetime.utcoffset() If :attr:`tzinfo` is ``None``, returns ``None``, else returns ... """ Should this use "return" too? -- ___ Python tracker

[issue9002] Add a pointer on where to find a better description of PyFile_FromFd arguments

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Same resolution as in #9001. Thanks again. -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9001] PyFile_FromFd wrong documentation

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you! This was committed in r82000, and I improved other text a bit in r82001. -- nosy: +pitrou resolution: -> fixed status: open -> closed ___ Python tracker __

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: +1 for replacing math range notation with English. Much easier for non-math people that do Python :) One more nit: Your docstrings use verb forms like “Returns” where PEP 257 advises to use “Return”: “[the docstring] prescribes the function or method's effect a

[issue8998] add crypto routines to stdlib

2010-06-15 Thread geremy condra
geremy condra added the comment: On Tue, Jun 15, 2010 at 9:49 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Le mardi 15 juin 2010 à 14:49 +, geremy condra a écrit : >> The goals of the library are simplicity and ease of use. I've >> frequently found that out of fear o

[issue8577] test_distutils fails if srcdir != builddir

2010-06-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: Sigh. test.test_distutils behaves different when run through regrtest than when run directly. I have a fix, but am running an extended test cycle before committing (that is, both with and without srcdir==builddir) -- ___

[issue1368368] prompt_user_passwd() in FancyURLopener masks 401 Unauthorized error page

2010-06-15 Thread Senthil Kumaran
Senthil Kumaran added the comment: The reason the the password is prompted is because, on 401 authentication failure, there is a retry logic by default. When the authentication is retried, it is prompted for username:password using getpass. When using GUI modules it is desired to override the

[issue8998] add crypto routines to stdlib

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le mardi 15 juin 2010 à 14:49 +, geremy condra a écrit : > The goals of the library are simplicity and ease of use. I've > frequently found that out of fear of making incorrect choices, people > will simply decide not to use crypto at all, or that they make

[issue9002] Add a pointer on where to find a better description of PyFile_FromFd arguments

2010-06-15 Thread Ezio Melotti
Changes by Ezio Melotti : -- dependencies: +PyFile_FromFd wrong documentation stage: -> patch review ___ Python tracker ___ ___ Python

[issue9002] Add a pointer on where to find a better description of PyFile_FromFd arguments

2010-06-15 Thread Renato Cunha
New submission from Renato Cunha : Even though the "File Objects" section in py3k documentation makes it clear that the functions there listed are just wrappers over the io module, it took me a bit to find which function PyFile_FromFd was wrapping. So, what about making it clear that PyFile_Fr

[issue8577] test_distutils fails if srcdir != builddir

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks like this just broke the 3.x buildbots. == FAIL: test_get_python_inc (distutils.tests.test_sysconfig.SysconfigTestCase) --

[issue9001] PyFile_FromFd wrong documentation

2010-06-15 Thread Renato Cunha
New submission from Renato Cunha : PyFile_FromFd has a wrong argument cound and, consequently, a wrong description in py3k docs. The "errors" is never mentioned. -- assignee: d...@python components: Documentation files: correct-py3k-c-api-doc.diff keywords: patch messages: 107879 nosy:

[issue8577] test_distutils fails if srcdir != builddir

2010-06-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've fixed this issue for the 3.2 branch in r81999. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9000] Provide parseable repr to datetime.timezone

2010-06-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Merged issue5094 nosy list. -- nosy: +ajaksu2, akira, brett.cannon, doerwalter, durban, ezio.melotti, gagenellina, kawai, l0nwlf, mark.dickinson, merwok, pitrou, r.david.murray, rafe, techtonik, tim_one ___ P

[issue9000] Provide parseable repr to datetime.timezone

2010-06-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- dependencies: +datetime lacks concrete tzinfo implementation for UTC versions: +Python 3.2 ___ Python tracker ___

[issue9000] Provide parseable repr to datetime.timezone

2010-06-15 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : Recently added datetime.timezone class does not have a custom repr, so one gets >>> timezone.utc instead of parseable datetime.timezone(datetime.timedelta(0)) This is inconsistent with the way other classes in datetime module behave. -- ass

[issue8442] Broken zipfile with python 3.2 on osx

2010-06-15 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is no longer a problem, I cannot reproduce the issue with the current trunk. -- resolution: -> invalid status: open -> closed ___ Python tracker ___

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue5094] datetime lacks concrete tzinfo implementation for UTC

2010-06-15 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Reopening to add some minor fixes to tests and documentation. See issue5094h.diff. Ezio, thanks for finding these issues. -- status: closed -> open Added file: http://bugs.python.org/file17676/issue5094h.diff __

[issue2504] Add gettext.pgettext() and variants support

2010-06-15 Thread Nils Philippsen
Changes by Nils Philippsen : -- nosy: +nils ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8998] add crypto routines to stdlib

2010-06-15 Thread Damjan Georgievski
Damjan Georgievski added the comment: AFAIK, what the stdlib needs is a high-level crypto module, analogous to hashlib -- nosy: +gdamjan ___ Python tracker ___ __

[issue8998] add crypto routines to stdlib

2010-06-15 Thread geremy condra
geremy condra added the comment: On Tue, Jun 15, 2010 at 9:21 AM, Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > I've taken a quick look at the source tree (there doesn't seem to be any > separate docs) and here is my opinion: > - the evp.py API is too low-level (it's a one-t

[issue8645] PyUnicode_AsEncodedObject is undocumented

2010-06-15 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I'm not really clear on what PyUnicode_AsEncodedObject does (as opposed to PyUnicode_AsEncodedString). Someone already familiar with those two functions would have a much easier time writing a documentation patch. -- __

[issue8646] PyUnicode_EncodeDecimal is undocumented

2010-06-15 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Yes, though it may be a while before I find time to do so. -- ___ Python tracker ___ ___ Python-bu

[issue8647] PyUnicode_GetMax is undocumented

2010-06-15 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Yes, though it may be a while before I find time to do so. -- ___ Python tracker ___ ___ Python-bu

[issue8998] add crypto routines to stdlib

2010-06-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've taken a quick look at the source tree (there doesn't seem to be any separate docs) and here is my opinion: - the evp.py API is too low-level (it's a one-to-one mapping to the OpenSSL C API); we would want at least some kind of object-oriented abstraction

[issue8998] add crypto routines to stdlib

2010-06-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8940] *HTTPServer need a summary page with API inheritance table

2010-06-15 Thread R. David Murray
Changes by R. David Murray : -- status: open -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue8940] *HTTPServer need a summary page with API inheritance table

2010-06-15 Thread anatoly techtonik
anatoly techtonik added the comment: 1. No time 2. Looks complicated -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue8940] *HTTPServer need a summary page with API inheritance table

2010-06-15 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue8999] Add Mercurial support to patchcheck

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: Adding nosy from the other patchcheck bug, hope it doesn’t annoy anyone. -- nosy: +belopolsky, brett.cannon, mark.dickinson, pitrou ___ Python tracker

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-15 Thread James Teh
Changes by James Teh : -- nosy: +jteh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: and your proposed refactoring sounds fine to me. I can't really see any backwards compatibility concerns. -- ___ Python tracker ___ __

[issue8865] select.poll is not thread safe

2010-06-15 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: -d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: Answering as a rather infrequent user of 'make patchcheck', but someone who vows to use it more often in future... :) (1) Well, it would be awkward to use grep or wc on Windows, so it's convenient not to need external tools. (2) +1 to a more detailed report,

[issue8865] select.poll is not thread safe

2010-06-15 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8865] select.poll is not thread safe

2010-06-15 Thread Christian Schubert
Christian Schubert added the comment: added a patch which fixes both issues before releasing the GIL we take a copy of the ufds pointer and its len, erasing the ufds pointer in the poll object (to make sure nobody else fiddles with it); when we're done we either but it back into the object (w

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: Another one: I’d like to move the file name filtering from the worker functions into the main function. With that change, looping over all file names to get only the C files would be written and run only once, even if there are four functions that operate on the

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the helpful reviews. I have fixed the trailing whitespace check with “line[-2:-1].isspace()”, but I have a bug with my file counting. Before I go further, I’d like feedback from people using patchcheck: 1) Reindenting Python is a task best handled by

[issue7936] sys.argv contains only scriptname

2010-06-15 Thread Tom Zych
Tom Zych added the comment: The problem went away by itself after a while. I suspect a Windows update. -- ___ Python tracker ___ ___ P

[issue8940] *HTTPServer need a summary page with API inheritance table

2010-06-15 Thread Georg Brandl
Georg Brandl added the comment: May I ask why? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file17673/patchcheck-pep7.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8999] Add Mercurial support to patchcheck

2010-06-15 Thread Éric Araujo
New submission from Éric Araujo : I got bored of manually changing the svn status command to hg status when testing my patch for #8912, so I made a proper patch once and for all. (Did I already say yay for Mercurial Queues?) -- components: Demos and Tools files: hg-support.diff keyword

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: s/actually//g -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: Sorry to be nitpicky, but: (a) the line[-2] produces "IndexError: string index out of range" on empty lines, and (b) this won't detect trailing whitespace on the last line of a file, if there's no newline at the end of the file. Actually, it might also be wo

[issue8469] struct - please make sizes explicit

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the additional suggestions and patch. I've implemented most of them in revisions r81992 through r81995. I've left the note about 'native size and alignment': native alignment *is* determined using sizeof, and I think this is important information

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: s/readling/readline/ s/readline/iterating over the file/ -- ___ Python tracker ___ ___ Python-bugs-list

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Éric Araujo
Éric Araujo added the comment: Forgot readling kept the line end, thanks for catching. Updated (yay for Mercurial Queues!) -- Added file: http://bugs.python.org/file17673/patchcheck-pep7.diff ___ Python tracker __

[issue8903] Add module level now() and today() functions to datetime module

2010-06-15 Thread anatoly techtonik
anatoly techtonik added the comment: Raymond mention your reasons please. I may need them one day for describing development process. -- ___ Python tracker ___ _

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Éric Araujo
Changes by Éric Araujo : Removed file: http://bugs.python.org/file17672/patchcheck-pep7.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8998] add crypto routines to stdlib

2010-06-15 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue8940] *HTTPServer need a summary page with API inheritance table

2010-06-15 Thread anatoly techtonik
anatoly techtonik added the comment: No. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: Similarly, isn't line[-1].isspace() always going to be true (well, except possibly at the end of the file), thanks to the line-ending character? -- ___ Python tracker

[issue8912] `make patchcheck` should check the whitespace of .c/.h files

2010-06-15 Thread Mark Dickinson
Mark Dickinson added the comment: Nitpick: shouldn't that len(line) > 79 be len(line) > 80 ? Either that, or strip the line ending from the line before computing its length. -- nosy: +mark.dickinson ___ Python tracker

[issue6543] traceback presented in wrong encoding

2010-06-15 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: In issue3343, we chose to mark this function as private. -- ___ Python tracker ___ ___ Python-