[issue8998] add crypto routines to stdlib

2010-06-17 Thread geremy condra
geremy condra added the comment: On Fri, Jun 18, 2010 at 2:39 AM, Daniel Urban wrote: > > Daniel Urban added the comment: > >>  * When I have thought about Python crypto in the stdlib, I've considered >> modeling it after hashlib, so you would get cipher = cryptolib.AES(bits=192, >> ...) etc

[issue8998] add crypto routines to stdlib

2010-06-17 Thread geremy condra
geremy condra added the comment: On Fri, Jun 18, 2010 at 2:19 AM, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > >>>   * I'd prefer if the crypto API didn't become OpenSSL specific (like the >>> SSL one is), which would theoretically allow switching in other crypto >>> provi

[issue8998] add crypto routines to stdlib

2010-06-17 Thread Daniel Urban
Daniel Urban added the comment: > * When I have thought about Python crypto in the stdlib, I've considered > modeling it after hashlib, so you would get cipher = cryptolib.AES(bits=192, > ...) etc. (Caveat: haven't thought it through.) I think there is a relevant PEP: PEP 272 -- API for Bloc

[issue8998] add crypto routines to stdlib

2010-06-17 Thread Martin v . Löwis
Martin v. Löwis added the comment: >> * I'd prefer if the crypto API didn't become OpenSSL specific (like the >> SSL one is), which would theoretically allow switching in other crypto >> provider(s). > > I agree in theory, although I'm not sure how important this is likely > to be in practic

[issue8998] add crypto routines to stdlib

2010-06-17 Thread geremy condra
geremy condra added the comment: On Thu, Jun 17, 2010 at 8:01 PM, Heikki Toivonen wrote: > > Heikki Toivonen added the comment: > > More or less random opinions on things presented before: > >  * I prefer having secure defaults to over documentation, because, well, > people don't read documen

[issue8998] add crypto routines to stdlib

2010-06-17 Thread Heikki Toivonen
Heikki Toivonen added the comment: More or less random opinions on things presented before: * I prefer having secure defaults to over documentation, because, well, people don't read documentation. * If not secure defaults, then pointing out in documentation the secure way AND providing exam

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2010-06-17 Thread Hari Krishna Dara
Hari Krishna Dara added the comment: Oops... the dict part should have been "dict(lhs=first, rhs=second)": def failUnlessEqual(self, first, second, msg=None): """Fail if the two objects are unequal as determined by the '==' operator. Argument msg could optionally include

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2010-06-17 Thread Hari Krishna Dara
Hari Krishna Dara added the comment: Changing unittest.TestCase.failUnlessEqual() to something like this will be very useful: def failUnlessEqual(self, first, second, msg=None): """Fail if the two objects are unequal as determined by the '==' operator. Argument msg coul

[issue6966] Ability to refer to arguments in TestCase.fail* methods

2010-06-17 Thread Hari Krishna Dara
Changes by Hari Krishna Dara : -- nosy: +haridsv ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9022] TypeError in wsgiref.handlers when using CGIHandler

2010-06-17 Thread David
New submission from David : The following code produces a type error, but from what I can tell it does comply with PEP333. This issue appeared using Python 3.1.1 and 3.1.2 on both Windows and Ubuntu. I have only tried the 32 bit versions. Works fine in Python 2.6.5.12 but I guess thats irrelev

[issue1731717] race condition in subprocess module

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

[issue1452] subprocess's popen.stdout.seek(0) doesn't raise an error

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

[issue3687] Popen() object stdout attribute reassignment behaviour

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

[issue9021] no copy.copy problem description

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

[issue8937] SimpleHTTPServer should contain usage example

2010-06-17 Thread anatoly techtonik
anatoly techtonik added the comment: And I am not RDM. =) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue8362] Add Misc/maintainers.rst to 2.x branch

2010-06-17 Thread anatoly techtonik
anatoly techtonik added the comment: Just stumbled upon this stuff. Good job. I can already see how it can be useful. -- nosy: +techtonik ___ Python tracker ___ _

[issue6543] traceback presented in wrong encoding

2010-06-17 Thread STINNER Victor
STINNER Victor added the comment: I tested the last patch on Windows: it does fix the bug, the traceback is displayed correctly in my terminal charset (cp850). I commited the fix to Python 3.1 (r82063) and 3.2 (r82059+r82061). -- resolution: -> fixed status: open -> closed _

[issue9021] no copy.copy problem description

2010-06-17 Thread anatoly techtonik
New submission from anatoly techtonik : `copy` module covers very important aspect of Python programming. However its documentation doesn't provide any intro or overview of this problem starting right from details. When people meet `copy` construction in the code - the refer to module document

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-06-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I understand that getting no response to a submission is not pleasant. I do not like it either. That is partly why I have started reviewing old issues. In the past couple of weeks, I have gotten old two orphaned patches applied by updating the headers, readin

[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Py_CHARMASK(c) = 4294967295 And I think I found the problem: from Include/Python.h /* Convert a possibly signed character to a nonnegative int */ /* XXX This assumes characters are 8 bits wide */ #ifdef __CHAR_UNSIGNED__ #define Py_CHARMASK(c) (c)

[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I traced the "infinite loop" to tokenizer.c:tok_get around line 1368: while (Py_ISALNUM(c) || c == '_') { c = tok_nextc(tok); } Adding a `printf` statement at the beginning of the loop: printf("tok_get: third while:

[issue8203] IDLE about dialog credits raises UnicodeDecodeError

2010-06-17 Thread STINNER Victor
STINNER Victor added the comment: Commited in Python 3.1 (r82058) and 3.2 (r82057). -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread R. David Murray
R. David Murray added the comment: Since it works fine on Linux, maybe you could do some bisecting on the revision history to try to identify what rev broke it on AIX? How does it behave with the head of the current 2.6 maintenance branch, by the way? -- nosy: +r.david.murray __

[issue6543] traceback presented in wrong encoding

2010-06-17 Thread STINNER Victor
STINNER Victor added the comment: Update and improve the patch: - Update the patch to py3k (replace tabs by spaces) - check if _PyUnicode_AsString() result is NULL - _Py_FindSourceFile() returns the file instead of NULL on success! - use directly "utf-8" instead of calling PyUnicode_GetDefau

[issue5115] Extend subprocess.kill to be able to kill process groups

2010-06-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: A strong +1 on adding this feature. I was wondering... what if process A runs a subprocess B which runs a subprocess C. Is C still considered a children of A and gets killed as well? Does os.setpgid() takes care of such a thing? What about Windows instead?

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: I had understood that the rule was that alternate constructors should be classmethods, for consistency with __new__. (Well, except that __new__ is actually a staticmethod, of course... ) E.g., after "class MyDecimal(Decimal): pass", MyDecimal('2.3') produces

[issue2267] datetime.datetime operator methods are not subclass-friendly

2010-06-17 Thread Brett Cannon
Brett Cannon added the comment: There is a difference between methods and overridden operators (slightly) in terms of cognitive understanding. I mean creating a new instance from a timestamp seems like an operation on the object by the object. Addition, though, seems like a creation of a new

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Brett Cannon
Brett Cannon added the comment: I would not worry about the history too much; the code has been forked and pulling it back in means there is already some history missing. Just do what is easiest. -- ___ Python tracker

[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: eval('ghjsdjhgh') too hangs, btw. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9020] 2.7: eval hangs on AIX

2010-06-17 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : I first noticed this when `test_compare_function_objects` was taking forever to run. The culprit is that the following statement just hangs forever. Note that "eval(2)", for instance, runs fine, but when a builtin object is used (eg: None, True), it han

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I am attaching datetime-sandbox-pypy.diff, a plain diff between six-year-old sandbox and pypy versions. (Plain diff is cleaner than unified diff.) You can see that the differences are trivial. I notice, however that original datetime implementation wa

[issue1726687] Bug found in datetime for Epoch time = -1

2010-06-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- priority: normal -> low stage: patch review -> unit test needed versions: +Python 3.1 -Python 2.7 ___ Python tracker ___ __

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Brett Cannon
Brett Cannon added the comment: I would simply email their developer mailing list (find it at http://pypy.org/contact.html) and say that you are willing to work on this. Maciej and I have discussed this before, so this won't be a total shock to them. As for Raymond's comment, I think he under

[issue1726687] Bug found in datetime for Epoch time = -1

2010-06-17 Thread STINNER Victor
STINNER Victor added the comment: > Is this important enough to try to get in 2.7 before rc2? I prefer to not include this patch in 2.7. I don't think that many people have this problem and it can be fixed later. It's too late for 2.7. Should it be fixed in 2.7.1 or only in 3.2 (and maybe in

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-06-17 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >> One, we should not blindly pull in the PyPy code >> without some core PyPy developer being in on this > > I concur.  Much of PyPy code is written for a restricted subset of > Python instead of clean, idiomatic modern Python. Raymond, I think you misrea

[issue3874] documentation bug: HTMLParser needs to document unknown_decl

2010-06-17 Thread jeff
jeff added the comment: On Wed, Jun 16, 2010 at 5:55 PM, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > Documentation issues should be component: documentation rather than library. > When submitting one, please at least indicate the module or class concerned. > I have never

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > Also, this should not be marked as high priority. It may be a > personal priority for you, ... Reverting priority. I thought once an issue is assigned, the priority becomes the priority that assignee places on the issue. Sorry for the confusion. ---

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've only marked this for 3.2 because I suspect there may be linux code > out there that this will break, It should be noticed that Linux-only code has absolutely no point in using normcase(), since it's a no-op there. -- nosy: +pitrou ___

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: -patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-17 Thread Ezio Melotti
Ezio Melotti added the comment: Right now posixpath returns the argument unchanged, ntpath performs a .replace(), and macpath a .lower(), so when non-string (or non-bytes) are passed to normcase the results are: posixpath: arg returned as-is; ntpath: AttributeError (object has no attribute 're

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Raymond Hettinger
Raymond Hettinger added the comment: > One, we should not blindly pull in the PyPy code > without some core PyPy developer being in on this I concur. Much of PyPy code is written for a restricted subset of Python instead of clean, idiomatic modern Python. Also, this should not be marked as

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Brett Cannon
Brett Cannon added the comment: A couple of things about all of this. One, we should not blindly pull in the PyPy code without some core PyPy developer being in on this; just common courtesy and I don't think anyone participating in this discussion is a PyPy developer (but I could be wrong).

[issue4370] warning: unknown conversion type character `z' in format

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: I agree. -- nosy: +mark.dickinson resolution: -> wont fix stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue1726687] Bug found in datetime for Epoch time = -1

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Is this important enough to try to get in 2.7 before rc2? Victor? -- components: +Extension Modules -None type: -> behavior versions: +Python 3.2 -Python 2.5, Python 3.1 ___ Python tracker

[issue5023] Segfault in datetime.time.strftime("%z")

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Since this does not seem to be reproducible anymore, I am going to close this soon. -- resolution: -> works for me status: open -> pending ___ Python tracker __

[issue4370] warning: unknown conversion type character `z' in format

2010-06-17 Thread Brett Cannon
Brett Cannon added the comment: According to http://gcc.gnu.org/releases.html, gcc 2.95.3 is about 9 years old, so we don't need to care about warnings. -- ___ Python tracker __

[issue2775] Implement PEP 3108

2010-06-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: -mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9019] wsgiref.headers.Header() does not update headers list it was created with.

2010-06-17 Thread Marcel Hellkamp
New submission from Marcel Hellkamp : The current (3.x) implementation of wsgiref.headers.Headers() does not match the documentation. Documented behaviour: "Any changes made to the new Headers object will directly update the headers list it was created with." (/Doc/library/wsgiref.rst) Actual

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

2010-06-17 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pytho

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

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in r82053. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7261] Document 2.x -> 3.x round changes in "What's New" documents.

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Applied in r82051 (py3k) and r82052 (release31-maint). -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker ___

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

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8469] struct - please make sizes explicit

2010-06-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

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

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: issue6641a.diff fixes the nits that Mark found and makes the tests robust with respect to change of timezones. Tested with all timezones avalilable on OSX including TZ="Eire". (Ever heard of Ouagadougou?) Parsing RFC 3339's HH:MM format is a separate

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread R. David Murray
R. David Murray added the comment: I don't see how "moving the import to setUp" is going to avoid having to explicitly run each set of tests twice, though. -- ___ Python tracker ___

[issue4452] Incorrect docstring of os.setpgrp

2010-06-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: The docstring "Make this process the process group leader" is proper for setpgrp. Fixed in r82047, r82048, r82049 and r82050. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Porting PyPy implementation to 2.7 was fairly easy. I am posting the patch which makes PyPy datetime.py pass regression tests when dropped in the trunk. I expect 3.x port to be uneventful as well. Raising the priority because I would like to check thi

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

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: In test_datetime: == ERROR: test_strptime (__main__.TestDateTime) -- Traceback (most recent call last): File "Lib/test/tes

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

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Hmm. Hold on a sec; I'm getting test failures... -- ___ Python tracker ___ ___ Python-bugs-list mai

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

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Doc nit: "When ``%z`` directive" -> "When the ``%z`` directive" The _strptime._strptime docstring is inaccurate: it claim to return a time struct, but actually returns tuple, int; please could you also add docstrings for _strptime_time and _strptime_datetim

[issue4452] Incorrect docstring of os.setpgrp

2010-06-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, its valid doc change request. Thought it means the same, the minor docstring improvement can be done. -- nosy: +orsenthil ___ Python tracker

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The only alternative is to manually duplicate tests, these leads to very > poor test coverage because of the average developer's laziness (json is > an example). No, here is another alternative: ==> _example.py <== def foo(): print(__name__) ==>

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > >> To avoid the wasted memory and import time, it's better to use: >> >> try: >>from _cmodule import * >> except ImportError: >>from _pymodule import * >> > > .. also this

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I looked at test_io and don't like that approach. It seems to require > subclassing each TestCase twice for C and Python. There is no > mechanism to assure that all tests are replicated that way. Subclassing /is/ the mechanism :) Furthermore, some rare test

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jun 17, 2010 at 10:32 AM, Antoine Pitrou wrote: .. >> Is there direct regrtest support for this? > > You can take a look at test_io, test_memoryio or test_heapq for inspiration. > I looked at test_io and don't like that approach. It seems to req

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Thu, Jun 17, 2010 at 10:31 AM, Marc-Andre Lemburg > wrote: > .. >> To avoid the wasted memory and import time, it's better to use: >> >> try: >>from _cmodule import * >>

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread R. David Murray
R. David Murray added the comment: I think we have no standard for this yet, though it has been discussed. If you can't find a python-dev thread about it, you should probably start a new one. As one example, heapq does: try: from _heapq import * except ImportError: pass aft

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > To avoid the wasted memory and import time, it's better to use: > > try: >from _cmodule import * > except ImportError: >from _pymodule import * > .. also this makes it harder to prototype things in Python or have mixed Python/C modules. The go

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Thu, Jun 17, 2010 at 10:31 AM, Marc-Andre Lemburg wrote: .. > To avoid the wasted memory and import time, it's better to use: > > try: >    from _cmodule import * > except ImportError: >    from _pymodule import * > Hmm, I cannot find the relevant th

[issue8857] socket.getaddrinfo needs tests

2010-06-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file17693/getaddrinfotest.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8857] socket.getaddrinfo needs tests

2010-06-17 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : Removed file: http://bugs.python.org/file17692/getaddrinfotest.patch ___ Python tracker ___ ___ Python-bugs-list

[issue8857] socket.getaddrinfo needs tests

2010-06-17 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Anyway, getaddrinfo() on FreeBSD/Qemu gives this It seems SOCK_DGRAM is always returned which, as far as I know, doesn't make sense with FTP and SSH protocols. At this point, assuming getaddrinfo() correctly binds the original C function, I'd be for jus

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Is this still the state of the art? What about parsing overhead? The io module has three modules: - io.py just imports everything from _io - _io is the default C implementation - _pyio.py must be imported explicitly to get the pure Python implementation =>

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > I would like to move this forward. The PyPy implementation at > > http://codespeak.net/pypy/dist/pypy/lib/datetime.py > > claims to be based on the original CPython datetime im

[issue7989] Add pure Python implementation of datetime module to CPython

2010-06-17 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would like to move this forward. The PyPy implementation at http://codespeak.net/pypy/dist/pypy/lib/datetime.py claims to be based on the original CPython datetime implementation from the time when datetime was a python module. I looked through the

[issue850997] mbcs encoding ignores errors

2010-06-17 Thread Tim Golden
Tim Golden added the comment: I'm unlikely to get to it soon. If there's no urgency I can look at it later. FWIW, it's not something I'm especially familiar with. On 12/06/2010 01:02, STINNER Victor wrote: > > STINNER Victor added the comment: > > Tim: are you interested in testing this patch?

[issue9018] os.path.normcase(None) does not raise an error on linux and should

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

[issue7370] BaseHTTPServer reinventing rfc822 date formatting

2010-06-17 Thread R. David Murray
R. David Murray added the comment: The HTTP RFCs reference the email RFCs for the date format, so the email package is the logical place for this function: email is the correct responsible party. In any case, the function resides in email.utils, which has no dependencies on anything else in

[issue9017] doctest option flag to enable/disable some chunk of doctests?

2010-06-17 Thread Brian Curtin
Changes by Brian Curtin : -- components: +Library (Lib) -Tests stage: -> unit test needed title: What do you think about an Option Flags to enable/disable some chunk of doctest file ? -> doctest option flag to enable/disable some chunk of doctests? type: -> feature request versions: +

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-17 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9018] os.path.normcase(None) does not raise an error on linux and should

2010-06-17 Thread R. David Murray
New submission from R. David Murray : os.path.normcase(None) raises an error on Windows but returns None on linux. os.path.abspath(None) raises an error in both cases. os.path.normcase(None) should raise an error on linux. I've only marked this for 3.2 because I suspect there may be linux co

[issue8937] SimpleHTTPServer should contain usage example

2010-06-17 Thread anatoly techtonik
anatoly techtonik added the comment: The example is really helpful. I was surprised to learn that SimpleHTTPServer can be called from command line with port argument. I thought it is only for testing. Another missed aspect is that it is possible to use SimpleHTTPRequestHandler with TCPServer,

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: That sounds like a reasonable quick fix. Here's a patch. -- keywords: +patch stage: -> commit review Added file: http://bugs.python.org/file17696/issue9011.patch ___ Python tracker

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le jeudi 17 juin 2010 à 13:22 +, anatoly techtonik a écrit : > > > That's a lot of things which others do not perceive as important or even > > desireable. Chances are you are going to have to implement them yourself > > if you really want them. In any case

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2010-06-17 Thread anatoly techtonik
anatoly techtonik added the comment: > That's a lot of things which others do not perceive as important or even > desireable. Chances are you are going to have to implement them yourself > if you really want them. In any case, just complaining won't change > anything. I am just trying to answer

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-17 Thread Alex Samuel
Alex Samuel added the comment: How about saving the original value of STR(pnum) and restoring it after calling ast_for_atom()? This is not thread-safe, but I don't understand Python's threading model well enough to know whether the GIL is held in this function. On 6/17/2010 8:40 AM, Mark Dic

[issue9010] Infinite loop in imaplib.IMAP4_SSL when used with Gmail

2010-06-17 Thread R. David Murray
R. David Murray added the comment: OK, this is out of date, then. Nosy people, sorry for the noise. -- resolution: -> out of date stage: unit test needed -> committed/rejected status: open -> closed superseder: -> IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: > pbranch is the next in my list, still do not have time to dig all these tools. > For now I have these unsolved workflow problems: > [...] That's a lot of things which others do not perceive as important or even desireable. Chances are you are going to have to

[issue9017] What do you think about an Option Flags to enable/disable some chunk of doctest file ?

2010-06-17 Thread harobed
New submission from harobed : Hi, in some doctest, I need to stop doctest from a position because the following test is a draft, not implemented. I dream something like this : >>> test_a() True >>> test_b() False #doctest: +DISABLE >>> test_c() True >>> test_d()

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-17 Thread Mark Dickinson
Changes by Mark Dickinson : -- versions: -Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Fixed in r82043 (py3k) and r82044 (release31-maint), simply by removing the relevant 'if' block. For 2.x, Antoine (on IRC) pointed out that there might well be third party code that depends on -0x8000 being an int rather than a long (32-bit machine), so

[issue9008] CGIHTTPServer support for arbitrary CGI scripts

2010-06-17 Thread anatoly techtonik
anatoly techtonik added the comment: >> Conflict resolution takes a lot of time >> and I can't afford maintaining a separate copy of Python checkout for >> every patch > > Then try various hg features such as named branches, or bookmarks, or mq, or > pbranch, etc. > (or any SVN-facing tool you

[issue6884] Impossible to include file in sdist that starts with 'build' on Win32

2010-06-17 Thread Adam Groszer
Adam Groszer added the comment: This seems to be a major flaw, noone caring about it? -- components: +Distutils nosy: +Adam.Groszer versions: +Python 2.5 ___ Python tracker ___ _

[issue8937] SimpleHTTPServer should contain usage example

2010-06-17 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, I felt the same way and that is the reason for providing extra example snippets in the same Documentation. I hope you checked that one. -- ___ Python tracker

[issue8937] SimpleHTTPServer should contain usage example

2010-06-17 Thread anatoly techtonik
anatoly techtonik added the comment: Thank you. The wording can surely be improved, but it is much better than nothing. I'd reword the first para further: > The :func:`test` function in the :mod:`SimpleHTTPServer` module is an example > of using :class:`SimpleHTTPRequestHandler` with :class

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: Results from Jython: newton:jython2.5.1 dickinsm$ ./jython Jython 2.5.1 (Release_2_5_1:6813, Sep 26 2009, 13:47:54) [Java HotSpot(TM) 64-Bit Server VM (Apple Inc.)] on java1.6.0_20 Type "help", "copyright", "credits" or "license" for more information. >>> -214

[issue9011] ast_for_factor unary minus optimization changes AST

2010-06-17 Thread Mark Dickinson
Mark Dickinson added the comment: N.B. That if block isn't pure optimization: removing it gives a minor change in behaviour: Currently (Python 2.7, on a 64-bit machine): >>> -9223372036854775808 -9223372036854775808 And with the optimization removed: >>> -9223372036854775808 -922337203685

[issue1675951] [gzip] Performance for small reads and fix seek problem

2010-06-17 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch could only be applied to 3.2 (2.7 is frozen now). But the gzip code has changed quite a bit and I would advocate creating a new patch if you are interested. Do notice that performance should also be much better in 3.2, and it is possible to wrap a g

  1   2   >