[issue1122] PyTuple_Size and PyTuple_GET_SIZE return type documentation incorrect

2007-09-06 Thread Andrew Gaul
New submission from Andrew Gaul : Documentation claims int, API uses Py_ssize_t. -- components: Documentation files: pytuple_size.patch messages: 55718 nosy: gaul severity: minor status: open title: PyTuple_Size

[issue1187] pipe fd handling issues in subprocess.py on POSIX

2007-09-21 Thread Andrew Nissen
New submission from Andrew Nissen: Revision 53293 appears to have missed some of the logic inherent in the previous code. There also appears to be problems with the way that the dup2 calls are made that can result in a behavior different then intended under a number of circumstances

[issue1187] pipe fd handling issues in subprocess.py on POSIX

2007-09-21 Thread Andrew Nissen
Andrew Nissen added the comment: This patch (subprocess.fix_fileno.udiff) made against subprocess.py (Revision 55604)appears to give the desired behavior __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/

[issue1269] Exception in pstats print_callers()

2007-10-12 Thread Andrew Stromnov
New submission from Andrew Stromnov: Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import pstats >>> ps = pstats.Stats(&quo

[issue1300] subprocess.list2cmdline doesn't do pipe symbols

2007-10-18 Thread Andrew Moise
New submission from Andrew Moise: I expected subprocess.list2cmdline() to convert my list of arguments into a command line which results in behavior equivalent to the Unix exec() functions -- that is, that I can safely pass arbitrary characters to it and it'll make it such that those chara

[issue1744580] cvs.get_dialect() return a class object

2007-11-04 Thread Andrew McNamara
Andrew McNamara added the comment: Seems okay to me. I had a quick look at the examples section, and it shows a use like the one I mention, but I wonder if the section on dialects should quote the specific examples I mention? _ Tracker <[EMAIL PROTEC

[issue6560] socket sendmsg(), recvmsg() methods

2011-09-14 Thread Andrew Grover
Changes by Andrew Grover : -- nosy: -Andrew.Grover ___ Python tracker <http://bugs.python.org/issue6560> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett added the comment: Proposed solution and patch to follow. Please let me know if I am posting it in the wrong place. The main problem with shlex is that the shlex interface is inadequate to handle unicode. Specifically it is no longer feasible to provide a list of every

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett added the comment: Not to get side-tracked, but on a related note, it would be nice if there was a python module which defined sets of unicode characters corresponding to different categories (similar to the categories listed here: http://www.fileformat.info/info/unicode

[issue1170] shlex have problems with parsing unicode

2011-09-15 Thread Andrew Jewett
Andrew Jewett added the comment: > That can be done programmatically using the unicodedata module. > The regex module (that will hopefully be include in 3.3) is > also able to match characters that belongs to specific categories. Ezio: Thanks. (New to me, actually) Is this what

[issue13115] tp_as_{number, sequence, mapping} can't be set using PyType_FromSpec

2011-10-06 Thread Andrew Wilkins
New submission from Andrew Wilkins : I've written an extension using Py_LIMITED_API, and I've created a type using PyType_FromSpec with the slot "Py_sq_length" defined. The slot is not being picked up, i.e. len(MyType()) fails. I can see that tp_as_sequence has not been

[issue13653] reorder set.intersection parameters for better performance

2011-12-22 Thread Andrew Dalke
New submission from Andrew Dalke : In Issue3069, Arnaud Delobelle proposed support for multiple values to set.intersection() and set.union(), writing "Intersection is optimized by sorting all sets/frozensets/dicts in increasing order of size and only iterating over elements in the sma

[issue13653] reorder set.intersection parameters for better performance

2011-12-23 Thread Andrew Dalke
Andrew Dalke added the comment: My belief is that the people who use set.intersection with more than two terms are 1) going to pass in a list of sets, and 2) don't care about the specific order. To check the validity of my belief, I did a Google Code Search to find cases of people usin

[issue11682] PEP 380 reference implementation for 3.3

2011-06-26 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue11682> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1602133] non-framework built python fails to define environ properly

2011-07-17 Thread Andrew Dalke
Andrew Dalke added the comment: I confirm that under Python 2.7.2 while trying to build a 3rd-party package (from rdkit.org) I get the error Linking CXX shared library ../../lib/libRDBoost.dylib ld: warning: path '/usr/local/lib/libpython2.7.a' following -L not a directory Undefin

[issue7897] Support parametrized tests in unittest

2011-07-21 Thread Andrew Bennetts
Andrew Bennetts added the comment: You may be interested an existing, unittest-compatible library that provides this: http://pypi.python.org/pypi/testscenarios -- nosy: +spiv ___ Python tracker <http://bugs.python.org/issue7

[issue10044] small int optimization

2011-07-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue10044> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12689] IDLE crashes after pressing ctrl+space

2011-08-03 Thread Andrew Luzin
New submission from Andrew Luzin : Steps to reproduce: 1. Open IDLE 2. File -> New Window 3. Just press + 4. IDLE crashes IDLE version: 3.2 Python version: 3.2 Tk version 8.5 Thanks! -- components: IDLE messages: 141620 nosy: Andrew.Luzin priority: normal severity: normal status: o

[issue12689] IDLE crashes after pressing ctrl+space

2011-08-03 Thread Andrew Luzin
Changes by Andrew Luzin : -- type: -> crash ___ Python tracker <http://bugs.python.org/issue12689> ___ ___ Python-bugs-list mailing list Unsubscri

[issue12687] Python 3.2 fails to load protocol 0 pickle

2011-08-05 Thread Andrew Wilkins
Andrew Wilkins added the comment: In _pickle.c, the load_put function calls _Unpickler_Readline, which may prefetch data and place it after the line read in with "readline". load_put then calls PyLong_FromString, which doesn't like the trailing data after the '

[issue12850] [PATCH] stm.atomic

2011-08-31 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue12850> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12897] Support for iterators in multiprocessing map

2011-09-05 Thread andrew cooke
New submission from andrew cooke : http://stackoverflow.com/questions/7306522/combining-itertools-and-multiprocessing/7307078 suggests (and the idea itself seems reasonable) that it would sometimes be useful for multiprocessing to operate correctly (ie lazily) with lazy input (iterables

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-08-31 Thread Andrew Bennetts
New submission from Andrew Bennetts : ython 2.6.6 (r266:84292, Aug 24 2010, 21:47:18) [GCC 4.4.5 20100816 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket, ssl >&g

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-08-31 Thread Andrew Bennetts
Changes by Andrew Bennetts : -- type: -> behavior ___ Python tracker <http://bugs.python.org/issue9729> ___ ___ Python-bugs-list mailing list Unsubscri

[issue9609] make cProfile multi-stack aware

2010-09-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue9609> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9622] Allow to set profile/trace function globally

2010-09-09 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue9622> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-13 Thread Andrew Bennetts
Andrew Bennetts added the comment: Here's a conservative fix for Python 2.7. It replaces the attempts to call baseclass.method with direct calls to the decorated object (i.e. replace socket.meth(self, ...) with self._sock.meth(...)). It also corrects a bunch of incorrect arguments

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-09-14 Thread Andrew Bennetts
Andrew Bennetts added the comment: > Yes, but such a rearchitecting to the socket module is out of question > for 2.x, which is in bugfix mode. Yes of course, which is why I made the conservative fix instead :) -- ___ Python tracker

[issue7519] ConfigParser can't read files with BOM markers

2010-09-23 Thread Andrew Ziem
Changes by Andrew Ziem : -- nosy: +AndrewZiem ___ Python tracker <http://bugs.python.org/issue7519> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10018] IDLE not loading in xp pro due to tcl issue

2010-10-02 Thread Grant Andrew
New submission from Grant Andrew : I'm attempting to use Python for the first time and am running into issues before I'm out the door. I started with 3.2 and have worked backward installing older versions in hopes that IDLE would load on my xp pro laptop. After reading several th

[issue1191964] asynchronous Subprocess

2010-10-25 Thread Andrew Boettcher
Changes by Andrew Boettcher : -- nosy: +Andrew.Boettcher ___ Python tracker <http://bugs.python.org/issue1191964> ___ ___ Python-bugs-list mailing list Unsub

[issue10194] Add gc.remap() function to the gc module.

2010-10-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue10194> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: At Antoine's suggestion I've written a new patch for this for 3.2, adding support for both SSL on 563 and STARTTLS on a normal connection. A NNTP_SSL class supports the former and a NNTP.starttls() method supports the latter. As a side effect

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: Also, Julien: Thanks for mentioning the 563-discouraged thing. I added a note about it to the new documentation before submitting. -- ___ Python tracker <http://bugs.python.org/issue1

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: On 2 Nov 2010 at 17:05, Antoine Pitrou wrote: > * the command-line option for the SSLContext won't work, since a > context is a custom object, not a string; I would rework this part > anyway, since I don't think separate options for the &quo

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Andrew Vant
Andrew Vant added the comment: On 2 Nov 2010 at 23:22, Antoine Pitrou wrote: > I'm talking about the code under "if __name__ == '__main__'". > Specifically the "-c" option for specifying an SSL context. Now I feel silly. Partly because of the mista

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Andrew Vant
Andrew Vant added the comment: Here's a second version of the previous patch taking into account the errors Antoine noticed and some odds and ends from the other comments. Specifically: Comments fixed and tabs (I think...I hope...) all removed. Added explicit skip to test_nntplib

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Andrew Vant
Andrew Vant added the comment: On 6 Nov 2010 at 11:48, Antoine Pitrou wrote: > I would rename setreadermode to _setreadermode (there's no reason to > make it public IMO). Also, I would not explicitly check "STARTTLS" in > the capabilities. It the server doesn't

[issue1926] NNTPS support in nntplib

2010-11-06 Thread Andrew Vant
Andrew Vant added the comment: On 6 Nov 2010 at 17:23, StevenJ wrote: > As it stands, the nntplib can cause the cached capabilities to be > refreshed at certain points automatically (as it should), but I think > it should be possible for the caller of the method to also specify >

[issue1926] NNTPS support in nntplib

2010-11-09 Thread Andrew Vant
Andrew Vant added the comment: On 9 Nov 2010 at 18:59, Antoine Pitrou wrote: > I have committed the patch in r86365, and I've made usenetrc > False by default in r86366. Thanks for contributing! Woot. I thank you. Regarding usenetrc, the NNTP.login and NNTP.starttls documentati

[issue11431] Python 3.2 (r32:88452) F5 crashes

2011-03-07 Thread Andrew Lih
New submission from Andrew Lih : "Run Module" causes the IDLE to freeze when I start "Run Module" by pressing F5 on the keyboard. But clicking "Run Module" via "Run" on the menu bar have no freezing issue. Mac 10.6.6 -- components: IDLE m

[issue11431] Python 3.2 (r32:88452) F5 "Run Module" freezes IDLE

2011-03-07 Thread Andrew Lih
Changes by Andrew Lih : -- title: Python 3.2 (r32:88452) F5 crashes -> Python 3.2 (r32:88452) F5 "Run Module" freezes IDLE ___ Python tracker <http://bugs.pytho

[issue11431] Python 3.2 (r32:88452) F5 "Run Module" freezes IDLE

2011-03-07 Thread Andrew Lih
Andrew Lih added the comment: I'm using the Python 3.2 Mac OS X 64-bit/32-bit x86-64/i386 Installer. Python 3.2 (r32:88452, Feb 20 2011, 11:12:31) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin It just freezes every time I try to paste the lines u gave me. But I mange to edit the .py fil

[issue11431] Python 3.2 (r32:88452) F5 "Run Module" freezes IDLE

2011-03-07 Thread Andrew Lih
Andrew Lih added the comment: Thanks a lot Ned! My problem is solved! Awesome! -- status: pending -> closed ___ Python tracker <http://bugs.python.org/issu

[issue3080] Full unicode import system

2011-03-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue3080> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3080] Full unicode import system

2011-03-20 Thread Andrew Svetlov
Andrew Svetlov added the comment: As I see Victor has dropped OS/2 support from Python/import.c Perhaps file Python/dynload_os2.c should be removed also. Not sure about other dynload_* files. -- ___ Python tracker <http://bugs.python.org/issue3

[issue3080] Full unicode import system

2011-03-21 Thread Andrew Svetlov
Andrew Svetlov added the comment: Understood. Sorry. I thought Python support only Windows and posix (Linux, BSD, MacOSX etc) systems now, all other OSes are not maintained. Anyway please don't care about that. -- ___ Python tracker

[issue6715] xz compressor support

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov -Christophe Simonis ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailin

[issue6715] xz compressor support

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsub

[issue6715] xz compressor support

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +Christophe Simonis ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11236] getpass.getpass does not respond to ctrl-c or ctrl-z

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue11236> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7839] Popen should raise ValueError if pass a string when shell=False or a list when shell=True

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue7839> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5863] bz2.BZ2File should accept other file-like objects. (issue4274045)

2011-03-23 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue5863> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7443] test.support.unlink issue on Windows platform

2011-03-25 Thread Andrew Svetlov
Andrew Svetlov added the comment: As I can see cygwin's unlink_nt uses Nt* functions family (NtSetInformationFile etc) which are part of Windows DDK. Do you like to use them or prefer SDK ones (say SetFileInformationByHandle)? In second case python unlink can borrow deletion schema

[issue7443] test.support.unlink issue on Windows platform

2011-03-25 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- versions: +Python 3.3 -Python 2.7, Python 3.2 ___ Python tracker <http://bugs.python.org/issue7443> ___ ___ Python-bugs-list mailin

[issue7443] test.support.unlink issue on Windows platform

2011-04-02 Thread Andrew Svetlov
Andrew Svetlov added the comment: FYI: implementation of unlink already has multiple calls for unicode version to process symlinks. Ansi version is the simple DeleteFileA call. Now we have different behavior for unicode and ansi variants as I can see. Now I'm working on unlink implementa

[issue11742] Possible bug in Python/import.c

2011-04-02 Thread Andrew Sommerville
New submission from Andrew Sommerville : Around line 1509 in Python/import.c, function "find_module", the importer is trying to fail with "No module named...". It is possible for "fp" to be NULL and "fdp" (the return value) to be non-NULL, which call

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-04-05 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue11703> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12029] ABC registration of Exceptions

2011-05-08 Thread andrew cooke
New submission from andrew cooke : Hi, In general, registering a class with an ABC is equivalent to making it a subclass (isinstance and issubclass are patched through ABCMeta). However, this does not work for exceptions (see example below, where exception is not caught). This doesn't

[issue3709] BaseHTTPRequestHandler innefficient when sending HTTP header

2010-11-21 Thread Andrew Schaaf
Andrew Schaaf added the comment: This patch (to 86665)... * adds buffering to send_response_only * adds flush_headers and uses it in end_headers and CGIHTTPRequestHandler.run_cgi * tests {send_error,send_response_only,send_header} using a write-counting wfile * improves the docs Also, I&#x

[issue10515] csv sniffer does not recognize quotes at the end of line

2010-11-23 Thread Andrew McNamara
Changes by Andrew McNamara : -- nosy: +andrewmcnamara ___ Python tracker <http://bugs.python.org/issue10515> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10576] Add a progress callback to gcmodule

2010-11-29 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue10576> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10667] collections.Counter object in C

2010-12-10 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue10667> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10698] doctest load_tests() typo

2010-12-13 Thread Andrew Dalke
New submission from Andrew Dalke : doctest.html Section 24.2.5 "Unittest API" says: def load_tests(loader, tests, ignore): tests.addTests(doctest.DocTestSuite(my_module_with_doctests)) return test That last line should be "return tests" -- assignee: d.

[issue10740] sqlite3 module should allow DDL statements in transactions

2010-12-20 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue10740> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10809] complex() comments wrongly say it supports NaN and inf

2011-01-02 Thread Andrew Dalke
New submission from Andrew Dalke : complex("nan") raises "ValueError: complex() arg is a malformed string" while complex(float("nan")) returns (nan+0j). This was reported in http://bugs.python.org/issue2121 with the conclusion "wont fix". com

[issue10809] complex() comments wrongly say it supports NaN and inf

2011-01-02 Thread Andrew Dalke
Andrew Dalke added the comment: Well that's ... interesting. While I compiled 2.7 and was looking at the 2.7 code my tests were against 2.6. Python 2.7 (trunk:74969:87651M, Jan 2 2011, 21:58:12) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin Type "help", "copyright&quo

[issue11004] AssertionError on collections.deque().count(1)

2011-01-25 Thread Andrew Brown
Andrew Brown added the comment: This bug trigger can be simplified down, see my attached bug_simplified.py The problem seems to be in deque_count(). What's happening is that after the rotations, the 16 items reside in the last 16 slots of one block. In deque_count()'s for loop,

[issue11067] Py_LIMITED_API breaks most PySomething_Check() functions

2011-02-04 Thread Andrew Svetlov
Changes by Andrew Svetlov : -- nosy: +asvetlov ___ Python tracker <http://bugs.python.org/issue11067> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1602] windows console doesn't print or input Unicode

2011-02-11 Thread Andrew Dunbar
Changes by Andrew Dunbar : -- nosy: +hippietrail ___ Python tracker <http://bugs.python.org/issue1602> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1187] pipe fd handling issues in subprocess.py on POSIX

2008-05-13 Thread Andrew Nissen
Andrew Nissen <[EMAIL PROTECTED]> added the comment: In reference to Dustin's entry: That's the point; the expected behavior is that subprocess should write data to the named files, without the fix, it doesn't. With the subprocess module as it stands, there are a number o

[issue3277] socket's OOB data management is broken on FreeBSD

2008-07-04 Thread Andrew Azarov
Andrew Azarov <[EMAIL PROTECTED]> added the comment: tested: Python 2.5.2 (r252:60911, Jun 24 2008, 16:40:26) [GCC 4.2.1 20070719 [FreeBSD]] on freebsd7 FreeBSD tomcat 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-08-08 Thread Andrew Dalke
New submission from Andrew Dalke <[EMAIL PROTECTED]>: I wrote a buggy PNG parser which ended up doing several file.read(large value). It causes a MemoryError, which was strange because the file was only a few KB long. I tracked it down to the implementation of read(). When given

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-08-09 Thread Andrew Dalke
Andrew Dalke <[EMAIL PROTECTED]> added the comment: I tested it with Python 2.5 on a Mac, Python 2.5 on FreeBSD, and Python 2.6b2+ (from SVN as of this morning) on a Mac. Perhaps the memory allocator on your machine is making a promise it can&#

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-08-09 Thread Andrew Dalke
Andrew Dalke <[EMAIL PROTECTED]> added the comment: You're right. I mistook the string implementation for the list one which does keep a preallocated section in case of growth. Strings of course don't grow so there's no need for that. I tracked the memory allocatio

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-08-09 Thread Andrew Dalke
Andrew Dalke <[EMAIL PROTECTED]> added the comment: FreeBSD is why my hosting provider uses. Freebsd.org calls 2.6 "legacy" but the latest update was earlier this year. There is shared history with Macs. I don't know the details though. I just point out that the

[issue3550] Socket Python 3k Documentation failure OR Unicode string is not supported with socket.send

2008-08-13 Thread Andrew R.
New submission from Andrew R. <[EMAIL PROTECTED]>: I am confused by the socket docs for Python 3000. It says to pass a string through socket.send or socket.sendall, however, it does not seem to account for the ASCII to Unicode transition. Trying to send an ordinary Python 3k string t

[issue3550] Socket Python 3k Documentation mistake OR Unicode string is not supported with socket.send

2008-08-13 Thread Andrew R.
Andrew R. <[EMAIL PROTECTED]> added the comment: http://docs.python.org/dev/3.0/library/socket.html The examples at the bottom also add to the confusion. Also, changed title to be friendlier (failure? Mistake, more likely) and changed type to no selection. -- title: Socket Pyt

[issue1424152] urllib/urllib2: HTTPS over (Squid) Proxy fails

2008-08-14 Thread Andrew Trick
Andrew Trick <[EMAIL PROTECTED]> added the comment: Mercurial will not work for anyone in a large company without this fix. I appreciate the patch, but hope its released soon. I did try the patch with Mercurial, but now I'm getting different error. I'm not sure if its related

[issue2271] msi installs to the incorrect location (C drive)

2008-08-15 Thread Andrew Dalke
Andrew Dalke <[EMAIL PROTECTED]> added the comment: I also have this problem. (2.5 msi installer under Win2K with a non- admin account granted admin privs). Python installs just fine under C:\ (instead of C:\Python25) but then I run into problems installing the win32 extensions. Sea

[issue2271] msi installs to the incorrect location (C drive)

2008-08-18 Thread Andrew Dalke
Andrew Dalke <[EMAIL PROTECTED]> added the comment: Yes, that installed Python 2.6 into the correct location (C:\Python26 instead of into the root directory). ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3756] re.escape() does not work with bytes()

2008-09-01 Thread Andrew McNamara
New submission from Andrew McNamara <[EMAIL PROTECTED]>: In python 2, re.escape() works with either str or unicode, but in python 3, re.escape() no longer works correctly with the bytes type. -- components: Regular Expressions messages: 72309 nosy: andrewmcnamara severity:

[issue3756] re.escape() does not work with bytes()

2008-09-01 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: The attached "re_escape.py" is a (somewhat crappy) fix for re.escape() Added file: http://bugs.python.org/file11340/re_escape.py ___ Python tracker <[EMAIL PROTECTED]> <http://

[issue3747] Fix caching in ABCMeta.__subclasscheck__

2008-09-01 Thread Andrew McNamara
Changes by Andrew McNamara <[EMAIL PROTECTED]>: -- nosy: +andrewmcnamara ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue3747> ___ _

[issue3756] re.escape() does not work with bytes()

2008-09-02 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: Will do, although I'm slightly concerned that my "bytes" version of the function is about 50% slower than the "str" version. I can see why, I just can't think of a way to do it any faster. There's

[issue3756] re.escape() does not work with bytes()

2008-09-02 Thread Andrew McNamara
Changes by Andrew McNamara <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file11352/re_escape-patch ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue3756] re.escape() does not work with bytes()

2008-09-04 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: On further testing, sometimes the str version is faster, sometimes the bytes version is faster. Never more than about 50% one way or the other, so probably not worth worrying about, although I still don't really like the imp

[issue3756] re.escape() does not work with bytes()

2008-09-07 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: I don't think it's possible to say whether it's preformance critical - I can certainly image use cases such as parser generators where its speed could be noticed. I tried building a version using regular expressio

[issue3756] re.escape() does not work with bytes()

2008-09-07 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: I meant "I can certainly imagine use cases..." In case it's not clear, I think the implementation in the patch is "good enough" (unless someone can suggest any obvious optimisations). If someone can prove

[issue3756] re.escape() does not work with bytes()

2008-09-10 Thread Andrew McNamara
Andrew McNamara <[EMAIL PROTECTED]> added the comment: >Looks fine, except I used frozenset for the _alphanum* variables and >reverted to double quotes like the rest of the file. Submitted as r66366. All good. Thankyou. ___ Python tracker <[

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-11 Thread Andrew Dalke
Andrew Dalke <[EMAIL PROTECTED]> added the comment: I'm still undecided on if this is a bug or not. The problem occurs even when I'm not reading "data from a file of an unknown size." My example causes a MemoryError on my machine even though the file I'm

[issue3867] What's New in 2.6 doesn't mention stricter object.__init__

2008-09-14 Thread Andrew Bennetts
New submission from Andrew Bennetts <[EMAIL PROTECTED]>: http://bugs.python.org/issue1683368 changed object.__init__ so that rejects args/kwargs. This change should be mentioned in the "What's New in Python 2.6" document, probably under the "Porting to Python 2.6&

[issue4113] functools.partial(), no __name__; wrong __doc__

2008-10-13 Thread Andrew Stribblehill
New submission from Andrew Stribblehill <[EMAIL PROTECTED]>: When I partially apply a function using functools.partial(), the resultant function doesn't have the same name as the original function (it has no __name__) and its docstring is that of functools.partial() rather than

[issue7777] Support needed for AF_RDS family

2010-01-24 Thread Andrew Grover
New submission from Andrew Grover : RDS is a reliable datagram protocol used by Oracle clusters for inter-process communication. It is in the Linux kernel, and has a defined address family number. Its use is identical to UDP, except the address family is 21, and the type is SOCK_SEQPACKET

[issue7792] Errors registering non-classes with ABCs

2010-01-26 Thread andrew cooke
New submission from andrew cooke : There are two related issues here. The first is, I think, a simple bug: When I try to register a function as a subclass of an ABC I get the error: TypeError: issubclass() arg 2 must be a class or tuple of classes Looking at the code - http

[issue7823] multiplying a list of dictionaries

2010-01-31 Thread Andrew Hays
New submission from Andrew Hays : [{}]*3 should produce a list of dictionaries that are 3 length long, which it does. However, one would expect that if you assign something to the keyword 'abc' in the first dicitonary (e.g., x[0]['abc'] = 'def') that the other d

[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2010-01-31 Thread Andrew Dalke
New submission from Andrew Dalke : In Python 2.6 and Python 2.7a2+, I can't socket.recv_into(a byte array instance). I get a TypeError which complains about a "pinned buffer". I have only an inkling of what that means. Since an array.array("b") works there, and

[issue7823] multiplying a list of dictionaries

2010-01-31 Thread Andrew Hays
Andrew Hays added the comment: Ah, my apolgogies, I didn't realize that. I suppose I didn't look deeply enough into the situation. I just realized that it worked that way with dictionaries, but by the same right, x=[[]]*3 would create [[], [], []] and if I said x[0][0]=1 then it

[issue7827] recv_into() argument 1 must be pinned buffer, not bytearray

2010-02-01 Thread Andrew Dalke
Andrew Dalke added the comment: Since I see the change to "test needed", I've attached a diff against Python 2.6's test_socket.py. I would have generated one against the 2.7 version in subversion but that test doesn't exit. -- keywords: +patch Added fil

[issue7846] Fnmatch cache is never cleared during usage

2010-02-03 Thread Andrew Clegg
New submission from Andrew Clegg : The fnmatch module has a cache of translation between glob patterns and compiled regular expressions. However this cache is never emptied; only added to. I am writing a python program which as part of its execution checks millions of unique globs - this

<    1   2   3   4   5   6   7   8   9   10   >