[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2011-08-10 Thread Alex Leon
Alex Leon ael...@gmail.com added the comment: It could have a 2 phase regex match. We match the first one, and if it fails, match the second and produce a warning. I think producing a warning is a good idea, as it allows the programmer to know that the implementation of basic auth they are

[issue12541] Accepting Badly formed headers in urllib HTTPBasicAuth

2011-08-10 Thread shevegen
shevegen sheve...@linuxmail.org added the comment: I think a warning would be quite nice to have. -- nosy: +shevegen ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12541 ___

[issue10744] ctypes arrays have incorrect buffer information (PEP-3118)

2011-08-10 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10744 ___ ___ Python-bugs-list

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: It works as expected for me: vinay@eta-jaunty:~/projects/python/2.7$ python2.7 Python 2.7.2+ (2.7:7d5a37ce42d5, Aug 10 2011, 09:20:30) [GCC 4.3.3] on linux2 Type help, copyright, credits or license for more information. import

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-10 Thread Hynek Schlawack
New submission from Hynek Schlawack h...@ox.cx: While working on #12715 I noticed that the tests of shutil aren't exactly consistent concerning reading and writing files. There were no less than two function to read files (one of them not being used at all) and two methods to write them.

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-10 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- hgrepos: +58 resolution: - accepted stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12687 ___

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-10 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file22872/6394321ef4ec.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12687 ___

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Александр
Александр alexandr.s@gmail.com added the comment: Install rpdb2 or winpdb for you python. And install django to you python path. Create empty djnago-project: django-admin createproject bbbtest Add line LOGGING_CONFIG = 'logging.config.dictConfig' to setting.py for use python

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-08-10 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file22873/78fb1181787a.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10181 ___

[issue10181] Problems with Py_buffer management in memoryobject.c (and elsewhere?)

2011-08-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I thought it might be productive to switch to documentation/test driven development for PEP-3118 in general. So I updated the documentation, trying to spell out the responsibilities of both exporter and consumer as clearly as possible.

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2011-08-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This should be fixed with the ManagedBuffer implementation from #10181. -- dependencies: +Problems with Py_buffer management in memoryobject.c (and elsewhere?) nosy: +skrah ___ Python tracker

[issue8305] memoview[0] creates an invalid view if ndim != 1

2011-08-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The crash is fixed in the features/pep-3118 repo: from numpy import array y=array([ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]) y.shape = 3,4 view=memoryview(y) view2 = view[0] Traceback (most recent call last): File stdin,

[issue7433] MemoryView memory_getbuf causes segfaults, double call to tp_releasebuffer

2011-08-10 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: This should be fixed in features/pep-3118. -- dependencies: +Problems with Py_buffer management in memoryobject.c (and elsewhere?) nosy: +skrah ___ Python tracker rep...@bugs.python.org

[issue10746] ctypes c_long c_bool have incorrect PEP-3118 type codes

2011-08-10 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- nosy: +skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10746 ___ ___ Python-bugs-list

[issue12722] Link to heapq source from docs.python.org not working

2011-08-10 Thread Senthil Kumaran
New submission from Senthil Kumaran sent...@uthcode.com: http://mail.python.org/pipermail/docs/2011-August/005336.html I see that it is a problem with viewvc software which is not handling unicode text in HTML markup properly. Probably we can reference the text version of that module till the

[issue12722] Link to heapq source from docs.python.org not working

2011-08-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9f482b957d77 by Senthil Kumaran in branch '2.7': Fix closes Issue12722 - link heapq source in the text format in the documentation. http://hg.python.org/cpython/rev/9f482b957d77 -- nosy: +python-dev

[issue1492704] distinct error type from shutil.move()

2011-08-10 Thread Gennadiy Zlobin
Gennadiy Zlobin gennad.zlo...@gmail.com added the comment: This patch should fix the issue -- nosy: +gennad Added file: http://bugs.python.org/file22874/1492704.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1492704

[issue12714] argparse.ArgumentParser.add_argument() documentation error

2011-08-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: optionals only means the same thing as options only, but 'optionals' is what argparse calls them (as contrasted with positionals). 'optionals' is only used two places in the doc and isn't defined, but its meaning is implied by the

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Vinay: you want to mark importer as a static method anyway, otherwise it won't work with pypy. I don't know why this would show up on CPython, though. -- nosy: +r.david.murray ___ Python

[issue12608] crash in PyAST_Compile when running Python code

2011-08-10 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I have verified that the code checked in for issue12575 keep the test case from this issue from crashing the interpreter: [meadori@motherbrain cpython]$ ./python test.py Traceback (most recent call last): File test.py, line 14, in module

[issue12723] tkSimpleDialog.askstring shouldn't allow empty string input

2011-08-10 Thread Matthew Hemke
New submission from Matthew Hemke mghe...@gmail.com: tkSimpleDialog.askstring allows empty input. The attached patch adds validation to the input to ensure it is not empty. -- components: Tkinter files: askstring.patch keywords: patch messages: 141868 nosy: rabbidous priority: normal

[issue12723] tkSimpleDialog.askstring shouldn't allow empty string input

2011-08-10 Thread Matthew Hemke
Changes by Matthew Hemke mghe...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12723 ___ ___ Python-bugs-list

[issue12608] crash in PyAST_Compile when running Python code

2011-08-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/8/10 Meador Inge rep...@bugs.python.org: Meador Inge mead...@gmail.com added the comment: I have verified that the code checked in for issue12575 keep the test case from this issue from crashing the interpreter:

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: @Александр: It still works for me without winpdb/rpdb2, so you should probably report this there. Can you confirm that it works as expected when you do python manage.py help? vinay@eta-natty:/tmp$ virtualenv -p python2.7 bbbenv Running

[issue1621] Do not assume signed integer overflow behavior

2011-08-10 Thread deadshort
deadshort cploo...@gmail.com added the comment: Since this is still dribbling along I'll point out intobject.c:int_pow() and: prev = ix; /* Save value for overflow check */ if (iw 1) { ix = ix*temp; if (temp == 0) break; /*

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-08-10 Thread Alexis Metaireau
Alexis Metaireau ale...@notmyidea.org added the comment: I see two different things here: 1) the fact that getlocale() doesn't return (None, None) on some python versions 2) the fact that having it returning (None, None) by default is a bit misleading as users may think that getlocale() is

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: BTW I just tested on PyPy. The following program: import logging.config import sys d = { 'version': 1, 'disable_existing_loggers': False, 'handlers': { 'console': { 'level': 'DEBUG', 'class':

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12718 ___ ___

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-10 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: Added file: http://bugs.python.org/file22876/fac0421cb7b2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12687 ___

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: @alanjds: Why do you add Python 2.7 version to this issue? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528 ___

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: @Victor it doesn't really matter why since it is an incorrect classification. This issue in no way involves Python 2.7 since we will not backport any modules to Python 2.7. -- versions: +Python 3.3 -Python 2.7, Python 3.2

[issue12715] Add symlink support to shutil functions

2011-08-10 Thread Hynek Schlawack
Hynek Schlawack h...@ox.cx added the comment: JFTR, my implementation is ready, but I can't/don't want to start writing tests, as long as #12721 is open. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12715

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Alan Justino
Alan Justino alan.just...@yahoo.com.br added the comment: @haypo: Because it affects version 2.7 too. @Victor: Even since we will not backport any modules to Python 2.7, is not worth to sign that this affects it too? Even wontfix or rejected, it affects, does not? Have I made something

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Alan Justino
Alan Justino alan.just...@yahoo.com.br added the comment: (noticed a typo at the start of my last msg: @Victor should be @brett.cannon) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9528

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Александр
Александр alexandr.s@gmail.com added the comment: As I understand, you created importer as a class attribute, so we can opportunity set import function to importer when inheritance new class from BaseConfigurator(# We might want to use a different one, e.g. importlib)? As example importer

[issue9528] Add pure Python implementation of time module to CPython

2011-08-10 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alan Justino wrote: I am getting a hard time trying to do some BDD with c-based datetime because I cannot mock it easily to force datetime.datetime.now() to return a desired value, making almost impossible to test time-based code, like

[issue8713] multiprocessing needs option to eschew fork() under Linux

2011-08-10 Thread Matt M
Changes by Matt M numbernine.pyt...@complexnumber.net: -- nosy: +numbernine ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8713 ___ ___

[issue10588] imp.find_module raises unexpected SyntaxError

2011-08-10 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10588 ___ ___

[issue12718] Logical mistake of importer method in logging.config.BaseConfigurator

2011-08-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: Okay, the problem occurs because builtin functions and Python functions are handled differently. This is how you need to set a Python importer: vinay@eta-natty:~$ python Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24) [GCC 4.5.2] on

[issue12608] crash in PyAST_Compile when running Python code

2011-08-10 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: OK, I am marking this as fixed then. If someone decides to fix this in 3.2 or 3.7, then they can reopen the issue. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed

[issue4841] io's close() not handling errors correctly

2011-08-10 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4841 ___ ___

[issue10588] imp.find_module raises unexpected SyntaxError

2011-08-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: The reason for this is that file_module tries to detect the encoding of the file to set the encoding for the opened file. IMO, it should just return a file in binary mode. -- nosy: +benjamin.peterson, haypo

[issue12613] itertools fixer fails

2011-08-10 Thread Meador Inge
Changes by Meador Inge mead...@gmail.com: -- nosy: +meador.inge ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12613 ___ ___ Python-bugs-list

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-10 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: First, the patch calls PyOS_strtol while a Py_ssize_t should be decodable. However, the dump phase (in memo_put) coerces the memo size to long as well, so this shouldn't be a problem in real life. Second, the patch needs a test. Also, please

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-10 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I can add a test, using the data attached to the ticket, but like the marshal case we discussed before, it might be several KB of data, which I would incorporate into the tests using a similar approach to the one I used for marshal. (This

[issue12724] Add Py_RETURN_NOTIMPLEMENTED

2011-08-10 Thread Brian Curtin
New submission from Brian Curtin br...@python.org: Would anyone be opposed to adding the following simple macro, which would be the same as the one we have for Py_RETURN_NONE. I recently found myself doing the Py_INCREF/return dance several times and ended up leaving an incref out in a few

[issue12723] tkSimpleDialog.askstring shouldn't allow empty string input

2011-08-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: But what if the empty string is valid input? This change would be backward incompatible. I think this should instead be a feature request for exposing _QueryDialog so that you can subclass it and provide your own getresult function.

[issue12724] Add Py_RETURN_NOTIMPLEMENTED

2011-08-10 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: +1 -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12724 ___

[issue10087] HTML calendar is broken

2011-08-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9fc7ef60ea06 by Senthil Kumaran in branch '3.2': Fix closes Issue10087 - fixing the output of calendar display in the html format. Patch by Chris Lambacher. Test Contributed by catherine.

[issue6203] 3.x locale does not default to C, contrary to the documentation and to 2.x behavior

2011-08-10 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes a new issue would be more appropriate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6203 ___

[issue12724] Add Py_RETURN_NOTIMPLEMENTED

2011-08-10 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 77a65b078852 by Brian Curtin in branch 'default': Add Py_RETURN_NOTIMPLEMENTED macro. Fixes #12724. http://hg.python.org/cpython/rev/77a65b078852 New changeset d0b0fcbb40db by Brian Curtin in branch 'default':

[issue12724] Add Py_RETURN_NOTIMPLEMENTED

2011-08-10 Thread Brian Curtin
Changes by Brian Curtin br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12724 ___

[issue12725] Docs: Odd phrase floating seconds in socket.html

2011-08-10 Thread Cris Simpson
New submission from Cris Simpson cri...@gmail.com: In http://docs.python.org/library/socket.html, the description for socket.setdefaulttimeout(timeout) reads: Set the default timeout in *floating seconds* for new socket objects. [occurs two other times on that page] floating seconds is a

[issue12613] itertools fixer fails

2011-08-10 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I see two problems that cause the posted test cases to fail: 1. The 'next' fixer runs before the 'itertools' fixer and strips out a 'power' node. This keeps the 'itertools' fixer from matching. 2. The 'itertools' fixer does not