[issue6477] Pickling of NoneType raises PicklingError

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> needs patch versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___ __

[issue5497] openssl compileerror with original source

2012-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue3849] FUD in documentation for urllib.urlopen()

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy versions: +Python 2.7 -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[issue5497] openssl compileerror with original source

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou versions: +Python 3.2, Python 3.3, Python 3.4 -Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___ __

[issue16106] antigravity tests

2012-10-01 Thread Georg Brandl
Georg Brandl added the comment: Are you serious? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue2774] ctypes documentation not effective

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch type: performance -> enhancement versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6, Python 3.0 ___ Python tracker

[issue3991] urllib.request.urlopen does not handle non-ASCII characters

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.2, Python 3.3, Python 3.4 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mail

[issue3702] test_urllib2.test_trivial fails when run from another Windows drive

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.2, Python 3.3 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue4071] ntpath.abspath fails for long str paths

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.2, Python 3.3, Python 3.4 -Python 2.6, Python 3.0 ___ Python tracker ___ ___ Python-bu

[issue4643] cgitb.html fails if getattr call raises exception

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy stage: -> test needed versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 2.6, Python 3.0 ___ Python tracker ___ _

[issue4145] tabulary entries in PDF documentation

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch versions: +Python 2.7, Python 3.3, Python 3.4 -Python 2.6, Python 3.0 ___ Python tracker ___ __

[issue15104] Unclear language in __main__ description

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy versions: +Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue3244] multipart/form-data encoding

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue6911] Document changes in asynchat

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti stage: -> patch review type: -> enhancement versions: +Python 3.3, Python 3.4 -Python 2.6, Python 3.0, Python 3.1 ___ Python tracker ___

[issue7686] redundant open modes 'rbb', 'wbb', 'abb' no longer work on Windows

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue13299] namedtuple row factory for sqlite3

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: needs patch -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Python-bu

[issue14730] Implementation of the PEP 419: Protecting cleanup statements from interruptions

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +asvetlov stage: -> patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker ___ ___ Pyth

[issue14003] __self__ on built-in functions is not as documented

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg171773 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- nosy: -stutzbach ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue16108] Include maintainer information in register/upload

2012-10-01 Thread Richard Jones
New submission from Richard Jones: The attached patch includes the maintainer information in the data sent to PyPI in a register or upload submission. -- assignee: eric.araujo components: Distutils2 files: maintainer.patch keywords: patch messages: 171774 nosy: alexis, eric.araujo, rich

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: Since heapq uses the C version of nsmallest, this micro-optimization doesn't actually help any real code. Am marking this as low priority and will come back to it at some point and will review the pure python version. Ideally, it should parallel the C ver

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue16049] Create abstract base classes by inheritance rather than a direct invocation of __metaclass__

2012-10-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue15979] Improve timeit documentation

2012-10-01 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the review! -- resolution: -> fixed stage: commit review -> committed/rejected status: open -> closed versions: +Python 3.4 ___ Python tracker

[issue15979] Improve timeit documentation

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60c831305e73 by Ezio Melotti in branch '2.7': #15979: improve timeit documentation. http://hg.python.org/cpython/rev/60c831305e73 New changeset d5a4300702c1 by Ezio Melotti in branch '3.2': #15979: improve timeit documentation. http://hg.python.org/

[issue16105] Pass read only FD to signal.set_wakeup_fd

2012-10-01 Thread Felipe Cruz
Felipe Cruz added the comment: I would not say that is a bug, but there is a write(wakeup_fd) call with ignored return code and maybe this can be improved to an output to stderr, or maybe a better solution. -- ___ Python tracker

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 991c24b8969d by R David Murray in branch '3.3': #11109: clean up docs, add whatsnew entry, and fix Justin's last name. http://hg.python.org/cpython/rev/991c24b8969d New changeset 1234300bc056 by R David Murray in branch 'default': Merge #11109: clea

[issue16104] Use multiprocessing in compileall script

2012-10-01 Thread Steven D'Aprano
Changes by Steven D'Aprano : -- nosy: +stevenjd ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue15979] Improve timeit documentation

2012-10-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: I copy-edited the patch just looking for minor things like punctuation, etc: +a :ref:`command-line-interface` as well as :ref:`callable ` a callable one +See also Tim Peters' introduction to the "Algorithms" chapter in the Python +Cookbook, published by O'Reil

[issue16094] Tuple extraction in a lambda isn't supported by 2to3

2012-10-01 Thread Raymond Hettinger
Raymond Hettinger added the comment: I'm not sure a semantically neutral automatic fix is possible: f = lambda (a, b), c: a + b + c # Py2.x f = lambda t, c: t[0] + t[1] + c# Py3.x The former will unpack any iterable, not just sequences: >>> def g(): yield 'a

[issue16103] Help() fails at raw_input readline (IDLE 2.7.3, Win7, pythonw)

2012-10-01 Thread Roger Serwy
Roger Serwy added the comment: Terry, I am unable to reproduce this error under Win7 Ultimate (no SP1) with either the 32-bit or 64-bit install of 2.7.3. Calling help() produces an interactive prompt in all my test cases. I launched IDLE from the start menu shortcut, with "python.exe -m idleli

[issue15979] Improve timeit documentation

2012-10-01 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: patch review -> commit review Added file: http://bugs.python.org/file27382/issue15979-2.diff ___ Python tracker ___ __

[issue16107] distutils2.version doesn't str() "1.0.post1" correctly

2012-10-01 Thread Richard Jones
New submission from Richard Jones: The attached simple patch demonstrates the problem: >>> str(NormalizedVersion('1.0.post1')) '1.0.post1.z' and includes a fix. -- assignee: eric.araujo components: Distutils2 files: post-fix.patch keywords: patch messages: 171765 nosy: alexis, eric.ara

[issue14468] Update cloning guidelines in devguide

2012-10-01 Thread Ezio Melotti
Ezio Melotti added the comment: FTR I now switched to hg share, and while I think it's a better option for committers that work on several branches on a daily basis, it might not be the same for contributors that usually prepare patches against default. --

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-01 Thread STINNER Victor
STINNER Victor added the comment: > tp_flags type is long, not int. Oh, I misunderstood what MvL wrote, sorry. I missed PyType_Spec structure. Here is an updated and more complete patch. I changed the return code of PyType_GetFlags(), instead of changing PyType_HasFeature() macro. > OTOH, a n

[issue16106] antigravity tests

2012-10-01 Thread Ezio Melotti
New submission from Ezio Melotti: The attached patch adds tests for antigravity. -- assignee: ezio.melotti components: Library (Lib) files: antigravity_tests.diff keywords: patch messages: 171762 nosy: ezio.melotti, michael.foord priority: normal severity: normal stage: patch review stat

[issue16101] Verify all imported modules at startup are needed

2012-10-01 Thread STINNER Victor
STINNER Victor added the comment: See also issues #9548 and #14057. -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16105] Pass read only FD to signal.set_wakeup_fd

2012-10-01 Thread STINNER Victor
STINNER Victor added the comment: Is it really a bug? A file descriptor is just an integer, it may be replaced later. Passed fd may be writable when set_wakeup_fd() is called, but then become read-only. -- ___ Python tracker

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-01 Thread Brett Cannon
Brett Cannon added the comment: I can't, so setting to pending so that if no one speaks up the issue will close. -- status: open -> pending ___ Python tracker ___ ___

[issue16104] Use multiprocessing in compileall script

2012-10-01 Thread Brett Cannon
Brett Cannon added the comment: This should probably use concurrent.futures instead of multiprocessing directly, but yes it would be useful. Then again, the whole module should probably be rewritten to use importlib as well. -- components: +Library (Lib) nosy: +brett.cannon priority:

[issue12069] test_signal.test_without_siginterrupt() failure on AMD64 OpenIndiana 3.x

2012-10-01 Thread STINNER Victor
STINNER Victor added the comment: I didn't see this issue recently, 'm unable to reproduce it, so I close this issue. -- resolution: -> works for me status: open -> closed ___ Python tracker _

[issue13572] import _curses fails because of UnicodeDecodeError('utf8' codec can't decode byte 0xb5 ...') on ARM Ubuntu 3.x

2012-10-01 Thread STINNER Victor
STINNER Victor added the comment: What is the status of this issue? Is anyone able to reproduce it? If not, I would like to close it. -- ___ Python tracker ___ _

[issue15766] _imp.load_dynamic() does crash with non-ASCII path and uses the wrong encoding

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f3ed5e211fcc by Victor Stinner in branch 'default': Close #15766: Catch exceptions while raising the ImportError in imp.load_dynamic() http://hg.python.org/cpython/rev/f3ed5e211fcc -- resolution: -> fixed stage: -> committed/rejected stat

[issue15609] Format string: add more fast-path

2012-10-01 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue15609] Format string: add more fast-path

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 559a430e563c by Victor Stinner in branch 'default': Issue #15609: Optimize str%args for integer argument http://hg.python.org/cpython/rev/559a430e563c -- nosy: +python-dev ___ Python tracker

[issue16105] Pass read only FD to signal.set_wakeup_fd

2012-10-01 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Eli Bendersky
Eli Bendersky added the comment: Thank you, Antoine, for looking into this. I wish I could participate in a meaningful way, but alas it will be days or weeks before I can recreate a suitable setup to get back hacking on Python. -- ___ Python tracker

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset f9224f23f473 by Antoine Pitrou in branch '3.3': Sanitize and modernize some of the _elementtree code (see issue #16089). http://hg.python.org/cpython/rev/f9224f23f473 New changeset 9fb0a8fc5d79 by Antoine Pitrou in branch 'default': Sanitize and mod

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'll still commit my cleanup patch in the meantime :-) -- ___ Python tracker ___ ___ Python-bugs-lis

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset 484a4b9349af by Stefan Krah in branch '3.3': Issue #15599: Increase the switch interval. Several systems cannot handle http://hg.python.org/cpython/rev/484a4b9349af -- ___ Python tracker

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Example of this is the following code in treebuilder_handle_start: if (this != Py_None) { if (element_add_subelement((ElementObject*) this, node) < 0) goto error; (note the overly optimistic cast) but this is really a pervasive problem,

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, the problem is that _elementtree.TreeBuilder expects to receive _elementtree.Element instances, but simpleTAL's element_factory instead gives _ElementInterface instances. In other words, TreeBuilder is completely broken. -- __

[issue16034] bz2 module appears slower in Python 3.x versus Python 2.x

2012-10-01 Thread Nadeem Vawda
Nadeem Vawda added the comment: Ah, nice - I didn't think of that optimization. Neater and faster. I've committed this patch [e6d872b61c57], along with a minor bugfix [7252f9f95fe6], and another optimization for readline()/readlines() [6d7bf512e0c3]. [merge with default: a19f47d380d2] If you

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: By the way, the crash involves an _ElementInterface subclass named SimpleElementTreeVar: #0 0x00524c0f in visit_decref (op=Traceback (most recent call last): File "/home/antoine/cpython/33/python-gdb.py", line 1298, in to_string pyop = PyObjectPt

[issue16105] Pass read only FD to signal.set_wakeup_fd

2012-10-01 Thread Felipe Cruz
New submission from Felipe Cruz: It's possible to set a read only FD to signal.set_wakeup_fd(fd) Since write call[1] inside 'trip_signal' return code is ignored, no error will be raised. An untested solution is to call fcntl in this FD to check presence of write flags. 1 - http://hg.python.

[issue16104] Use multiprocessing in compileall script

2012-10-01 Thread Daniel Holth
New submission from Daniel Holth: compileall would benefit approximately linearly from additional CPU cores. There should be an option. The noisy output would have to change. Right now it prints "compiling" and then "done" synchronously with doing the actual work. -- messages: 171744

[issue16103] Help() fails at raw_input readline (IDLE 2.7.3, Win7, pythonw)

2012-10-01 Thread Terry J. Reedy
New submission from Terry J. Reedy: Problem is only 2.7.3 (not 3.2.3, 3.3.0), tested on Windows Command Line Window >>> help() ... help> _ The _ is blinking, waiting for input. IDLE Shell >>> help() ... help> Traceback (most recent call last): File "", line 1, in help() File "C:\Prog

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: More assorted celementtree cleanups. -- Added file: http://bugs.python.org/file27378/ctree2.patch ___ Python tracker ___ ___

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-10-01 Thread Stefan Krah
Stefan Krah added the comment: I can't reproduce it either even on the machine that magically caught every problem in #15781. FWIW, the Gentoo bot also had a completely isolated segfault in test_ssl lately. Antoine, are you OK with setting the switch interval to 1e-5 for all platforms? Otherw

[issue15599] test_circular_imports() of test_threaded_import fails on FreeBSD 9.0

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, are you OK with setting the switch interval to 1e-5 for > all platforms? Otherwise we'll probably have many platform specific > workarounds. Yes, I'm ok with it. -- ___ Python tracker

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a collection of assorted small fixes for celementtree. There are probably other problems lurking (the coding style there is quite old). I cannot say anything about the crasher until there's a simple reproducer :) -- nosy: +pitrou Added file: ht

[issue16089] _elementtree causes segfault in GC

2012-10-01 Thread Georg Brandl
Georg Brandl added the comment: Let's make sure this gets into 3.3.1. -- priority: critical -> release blocker ___ Python tracker ___

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-10-01 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In 3.2 repr(xml.etree.ElementTree.Element) is "". In 3.3 repr(xml.etree.ElementTree.Element) is "". -- versions: +Python 3.4 ___ Python tracker __

[issue16102] uuid._netbios_getnode() is outdated

2012-10-01 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Function uuid._netbios_getnode() in Lib/uuid.py is not properly ported from Python 2. At least it uses indexing on map result. Perhaps there are other errors. The function obviously not been tested for years. -- components: Library (Lib), Windows m

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: > tp_flags type is long, not int. Indeed, and PyType_Spec.flags is int, not long. -- ___ Python tracker ___ __

[issue16079] list duplicate test names with patchcheck

2012-10-01 Thread Xavier de Gaye
Changes by Xavier de Gaye : Added file: http://bugs.python.org/file27376/std_lib_duplicates.txt ___ Python tracker ___ ___ Python-bugs-list ma

[issue16079] list duplicate test names with patchcheck

2012-10-01 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached script, named duplicate_code_names.py, takes a file name list as argument and prints duplicate code names found in these files ordered by function, class, method and nested class or function. The script output on the whole std lib (see the result in

[issue16101] Verify all imported modules at startup are needed

2012-10-01 Thread Brett Cannon
New submission from Brett Cannon: It's probably time to examine what modules are imported at startup and whether they are necessary or if some can be trimmed off so as to avoid the overhead. -- messages: 171733 nosy: brett.cannon priority: normal severity: normal status: open title: Ver

[issue16000] test_curses should use unittest

2012-10-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Ed, yes, switching all of test_curses to using unittest patterns is the eventual goal of this issue, though this may be done in more than one stage. As I said in my previous comment, I limited the first patch to focus on the proper setUp(), tearDown(), etc th

[issue16076] xml.etree.ElementTree.Element is no longer pickleable

2012-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- priority: normal -> high stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue16000] test_curses should use unittest

2012-10-01 Thread Chris Jerdonek
Chris Jerdonek added the comment: Ed, yes, switching all of test_curses to using unittest patterns is the eventual goal of this issue, though this may be done in more than one stage. As I said in my previous comment, I limited the first patch to focusing on the proper setUp(), tearDown(), etc

[issue16100] Compiling vim with Python 3.3 support fails

2012-10-01 Thread R. David Murray
R. David Murray added the comment: Well, that looks like a bug in VIM, not Python. Though if that order of calls is required and it is not documented, that would be a doc bug (especially if it used to work in the other order in python2.) -- ___ Pyt

[issue16100] Compiling vim with Python 3.3 support fails

2012-10-01 Thread Sascha
Sascha added the comment: Actually I'd have no problem using 3.2 Though with 3.2 I got the problem described here: https://groups.google.com/forum/?fromgroups=#!topic/vim_dev/5MYb23t9ZBM I was hoping this is fixed in 3.3, but now I can't even compile it -- ___

[issue12322] ElementPath 1.3 expressions documentation

2012-10-01 Thread Mike Hoy
Mike Hoy added the comment: Here is a link to our docs page with the info that needs to be changed: http://docs.python.org/py3k/library/xml.etree.elementtree.html#supported-xpath-syntax I was going to work on a patch but in irc we decided to wait to see what people had to say about this. Also

[issue16100] Compiling vim with Python 3.3 support fails

2012-10-01 Thread R. David Murray
R. David Murray added the comment: We don't currently support mingw, and I don't think any of our active developers have experience with it. If this actually worked in 3.2 then the fix *might* be relatively easy. Hopefully you or someone else will be interested enough to work out a patch. -

[issue16097] Minor fix in comment in codecs.py

2012-10-01 Thread Tim Golden
Tim Golden added the comment: Committed in bb77400af434. Thanks -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue16097] Minor fix in comment in codecs.py

2012-10-01 Thread Roundup Robot
Roundup Robot added the comment: New changeset bb77400af434 by Tim Golden in branch '3.3': Issue16097 Fix small typo in comment (patch by Wael Al Jishi) http://hg.python.org/cpython/rev/bb77400af434 New changeset cbf651ab3e21 by Tim Golden in branch 'default': Issue16097 Fix small typo in commen

[issue15897] zipimport.c doesn't check return value of fseek()

2012-10-01 Thread Felipe Cruz
Felipe Cruz added the comment: Hello! Just sent the Contributor Agreement Form. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-01 Thread STINNER Victor
STINNER Victor added the comment: tp_flags type is long, not int. Le 1 oct. 2012 16:42, "Martin v. Löwis" a écrit : > > Martin v. Löwis added the comment: > > What matters is that precompiled stay compatible; in addition, existing > source code should continue to compile unmodified. > > In the

[issue16100] Compiling vim with Python 3.3 support fails

2012-10-01 Thread Sascha
New submission from Sascha: Hello there, I hope I'm right here. I tried to compile vim with Python 3.3 32bit support. OS: Windows 7 64bit Compiler: MinGW Compiling vim with Python 3.2 32bit support works! The error message: obj/if_python3.o:if_python3.c:(.text+0x739): undefined reference to `_

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2012-10-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: What matters is that precompiled stay compatible; in addition, existing source code should continue to compile unmodified. In the specific case, the flags type also shows up in PyType_Spec. As a consequence, the actual TPFLAGS_ values *do* constitute a part o

[issue8800] add threading.RWLock

2012-10-01 Thread Charles-François Natali
Charles-François Natali added the comment: > The page also mentions a seqlock which looks interesting to me as > it's fast for few writers with lots of readers. A seqlock is suitable for consistent views of simple data structures (e.g. a counter in the Linux kernel), but it won't fly for a high

[issue16097] Minor fix in comment in codecs.py

2012-10-01 Thread Tim Golden
Changes by Tim Golden : -- assignee: -> tim.golden nosy: +tim.golden ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-01 Thread Christian Heimes
Christian Heimes added the comment: We have a team that mentors new contributors. If you are interested to get your patch into Python 3.4, please read http://pythonmentors.com/ . The people are really friendly and will help you with every step of the process. -- keywords: +easy -gsoc

[issue8800] add threading.RWLock

2012-10-01 Thread Sebastian Noack
Sebastian Noack added the comment: Thanks, but as I already said there are a lot of implementations for shared/exclusive lock that can be acquired from different threads. But we need with threading as well as with multiprocessing. And by the way POSIX is the standard for implementing UNIX-like

[issue8800] add threading.RWLock

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > A RW lock is part of POSIX threads [1]. It's usually a good idea to > either use POSIX functions or to mimic their behavior. After all POSIX > is an industry standard. We've already departed from that. Our Lock is nothing like a mutex, for example (it's more o

[issue8800] add threading.RWLock

2012-10-01 Thread Christian Heimes
Christian Heimes added the comment: A RW lock is part of POSIX threads [1]. It's usually a good idea to either use POSIX functions or to mimic their behavior. After all POSIX is an industry standard. Boost and Java have several lock and rw lock implementations. Wikipedia [2] is a good startin

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-01 Thread Nikolay Bogoychev
Nikolay Bogoychev added the comment: Okay, sorry didn't know that (: Here's the same patch (Same functionality) for python3 Feedback is welcome, as always (: -- Added file: http://bugs.python.org/file27374/robotparser.patch ___ Python tracker

[issue8800] add threading.RWLock

2012-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: On the naming front: shorthands like "Shrd" and "Excl" are a bit frown upon. Since "SharedExclusiveLock" is on the long side, I would suggest calling the API "SELock". -- ___ Python tracker

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger, stutzbach stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8800] add threading.RWLock

2012-10-01 Thread Sebastian Noack
Sebastian Noack added the comment: I would love to see how other people would implement a shared/exclusive lock that can be acquired from different processes. However it really seems that nobody did it before. If you know a reference implementation I would be more than happy. There are plenty

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-01 Thread Christian Heimes
Christian Heimes added the comment: Thanks for the patch. New features must be implemented in Python 3.4. Python 2.7 is in feature freeze mode and therefore doesn't get new features. -- keywords: +gsoc nosy: +christian.heimes stage: -> test needed versions: +Python 3.4 -Python 2.7 ___

[issue16099] robotparser doesn't support request rate and crawl delay parameters

2012-10-01 Thread Nikolay Bogoychev
New submission from Nikolay Bogoychev: Robotparser doesn't support two quite important optional parameters from the robots.txt file. I have implemented those in the following way: (Robotparser should be initialized in the usual way: rp = robotparser.RobotFileParser() rp.set_url(..) rp.read ) cr

[issue8800] add threading.RWLock

2012-10-01 Thread Christian Heimes
Christian Heimes added the comment: I wonder, why are you creating your own algorithm here? There must be plenty of reference implementations that are already used in production code. Don't be a shamed to copy a Java implementation! :) The entire threading module is a rip-off of the Java threa

[issue8800] add threading.RWLock

2012-10-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: My previous comment applied to Sebastian's first patch. The second seems to fix the issue. -- ___ Python tracker ___ _

[issue8800] add threading.RWLock

2012-10-01 Thread Richard Oudkerk
Richard Oudkerk added the comment: I think Sebastian's algorithm does not correctly deal with the non-blocking case. Consider the following situation: * Thread-1 successfully acquires exclusive lock. Now num_got_lock == 1. * Thread-2 blocks waiting for shared lock. Will block until (num_g

[issue16000] test_curses should use unittest

2012-10-01 Thread Ed Campbell
Ed Campbell added the comment: I'd suggest using unittest.TestCase.assertRaises() as a context manager to remove some try-excepts. For example I think function test_userptr_without_set() on line 245 could use: with self.assertRaises(curses.panel.error): p.userptr() I could create a patch

[issue16098] Bisect optimization in heapq.nsmallest is never used

2012-10-01 Thread Will Haldean Brown
nents: Library (Lib) files: heapq-use-bisect.20121001.patch keywords: patch messages: 171706 nosy: haldean priority: normal severity: normal status: open title: Bisect optimization in heapq.nsmallest is never used type: performance versions: Python 3.4 Added file: http://bugs.python.org/file27372/heap

[issue16097] Minor fix in comment in codecs.py

2012-10-01 Thread Wael Al Jishi
New submission from Wael Al Jishi: Minor fix to a comment in the read() function definition in codecs.py Diff attached. -- components: None files: comment-codecs-fix.patch keywords: patch messages: 171705 nosy: Wael.Al.Jishi priority: normal severity: normal status: open title: Minor fix

  1   2   >