[issue7452] Invalid mnemonic 'fnstcw'

2009-12-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: I agree that adding the definitions of HAVE_GCC_ASM_FOR_X87 to pymacconfig.h solves the problem. [mini-rant on] This problem is another illustration of how easy it is to inadvertently introduce significant bugs in the OS X multi-architecture support,

[issue7463] PyDateTime_IMPORT() causes compiler warnings

2009-12-09 Thread Murray Cumming
New submission from Murray Cumming murr...@murrayc.com: At least in Python 2.5 and 2.6 (I haven't checked newer versions), the PyDateTime_IMPORT() macro passes string literals to a function that takes non-const char* parameters: #define PyDateTime_IMPORT \ PyDateTimeAPI =

[issue7459] Magic word incorrect in Python 3

2009-12-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think the point is more of self-documentation not being deceiving. Here someone tries to use import.c 's embedded documentation about existing magic numbers and he/she gets mystified because the actual magic number doesn't seem to correspond.

[issue7459] Magic word incorrect in Python 3

2009-12-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7459 ___ ___ Python-bugs-list

[issue7452] Invalid mnemonic 'fnstcw'

2009-12-09 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: A reply to Ned from the person who introduced this bug in the first place (sorry, folks): [Ned] 1. How to make core developers and patch contributors more aware of the special requirements of multi-architecture builds? I guess I was

[issue7451] improve json decoding performance

2009-12-09 Thread Valentin Kuznetsov
Valentin Kuznetsov vkuz...@gmail.com added the comment: I wonder if you can make a patch for 2.6 python branch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7451 ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Applied to trunk in r76276. However, when I tried to backport it to 2.6, the tests hang in test_connect for the SSL version. The hang isn't interruptible by ctl-C. Perhaps there's some SSL fix that hasn't been backported, and if so it

[issue7451] improve json decoding performance

2009-12-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I wonder if you can make a patch for 2.6 python branch. No, 2.6 doesn't have the same C accelerator in the first place. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7451

[issue7459] Magic word incorrect in Python 3

2009-12-09 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7459 ___ ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Added skipping of the SSL tests if ssl is not available in r76727. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Changes by Scott Dial sc...@scottdial.com: Added file: http://bugs.python.org/file15508/test_imaplib_issue5949-py26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___

[issue7452] Invalid mnemonic 'fnstcw'

2009-12-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Mark, I wasn't ranting at you or Ronald or anyone in particular. It's no secret that Python's build system is complex and fragile in some areas. On the other hand, the build system is ambitious, covering a wide variety of platforms and variants, and

[issue7316] Add a timeout functionality to common locking operations

2009-12-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - pitrou stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7316 ___ ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Changes by Scott Dial sc...@scottdial.com: Added file: http://bugs.python.org/file15509/test_imaplib_issue5949-py26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Changes by Scott Dial sc...@scottdial.com: Removed file: http://bugs.python.org/file15508/test_imaplib_issue5949-py26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Changes by Scott Dial sc...@scottdial.com: Removed file: http://bugs.python.org/file15509/test_imaplib_issue5949-py26.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___

[issue7464] circular reference in HTTPResponse by urllib2

2009-12-09 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson krist...@ccpgames.com: in urllib2, you will find these lines: # Wrap the HTTPResponse object in socket's file object adapter # for Windows. That adapter calls recv(), so delegate recv() # to read(). This weird wrapping allows

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Do you know which patches? It's possible they just haven't been evaluated for backport yet, and if that's so I'll see if I can take care of it. -- ___ Python tracker rep...@bugs.python.org

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: I tracked the necessary change to r73638 and issue6267. However, I am not sure it is in scope to backport all of that. The only changed actually needed from this set to make SocketServer behave correctly with a SSLSocket is: def

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: I've revised my opinion. If you extract out only the changes to SocketServer and ignore the others, then I would consider it a good backport (fixes bugs only). I have attached such a patch. BTW, with this patch, you can remove the shutdown()

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: I'll take a look at the socketserver issue, but probably not today. In the meantime, can you take a look at this port of the tests to py3k when you get a chance? The tests pass without changes to imaplib, but the imaplib code is a bit

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread Scott Dial
Scott Dial sc...@scottdial.com added the comment: It seems that on the py3k branch, the EOF situation is handled roughly in the same manner (the broken line is returned) and ultimately the IMAP4.abort exception is raised because b'* ' is an invalid response (the 'OK' having been dropped). IOW,

[issue6911] Document changes in asynchat

2009-12-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6911 ___

[issue6472] Inconsistent use of iterator in ElementTree doc diff between Py and C modules

2009-12-09 Thread flox
flox la...@yahoo.fr added the comment: Patch for the documentation. (source: upstream documentation) -- Added file: http://bugs.python.org/file15513/issue6472_upstream_docs.diff ___ Python tracker rep...@bugs.python.org

[issue7452] Invalid mnemonic 'fnstcw'

2009-12-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: Ned: the best way to ensure universal builds don't get broken is through the buildbots. AFAIK there are no buildbots that create universal binaries at the moment. Sadly enough I don't have the resources to provide one. Mark:

[issue7452] Invalid mnemonic 'fnstcw'

2009-12-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: BTW. Am I correct when I state that this issue has been fixed and can be closed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7452

[issue6834] use different mechanism for pythonw on osx

2009-12-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: FWIW: I now have a 2.7 tree with the new pythonw on my machine, open issues are: * Ensure IDLE.app gets build in such a way that the GUI works for all supported universal binaries (including a 4-way build on 10.5, where the system

[issue7154] urllib.request system proxy configuration lookup broken for OS X in Python 3

2009-12-09 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: I agree that _scproxy should be ported to the 3.x trees. Such a port should be fairly straightforward, but is harder than just copying files over due to the str/unicode changes in the 3.x tree. --

[issue6692] asyncore kqueue support

2009-12-09 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692 ___

[issue1123727] gensuitemodule.processfile fails

2009-12-09 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: -- priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1123727 ___ ___

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Unfortunately, the SocketServer patches introduced other issues (see for example issue 6381). So I'm reluctant to backport those changes, since as you say no one had reported problems. It seems like the chance of inadvertently breaking

[issue5949] IMAP4_SSL spin because of SSLSocket.suppress_ragged_eofs

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Committed to py3k in r76730 with the suggested additional test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5949 ___

[issue7459] Magic word incorrect in Python 3

2009-12-09 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r76731. Thanks. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7459 ___

[issue7465] Call to another class's constructor in unittest.TestCase.setUp returns the same instance

2009-12-09 Thread Aaron Altman
New submission from Aaron Altman aa...@tomorrowsfunction.com: Not sure if this is intended behavior. I have a baseClass I'm writing tests for. My test architecture has an instance of this baseClass assigned as a member of TestBaseClass(unittest.TestCase) in TestBaseClass.setUp. The problem

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-09 Thread David W. Lambert
New submission from David W. Lambert b49p23t...@stny.rr.com: ''' This brute [possibly a] solution to http://projecteuler.net/index.php?section=problemsid=159 causes segmentation fault. $ p3 # an AMD 64 bit build. Python 3.1.1 (r311:74480, Oct 2 2009, 12:29:57) [GCC

[issue7465] Call to another class's constructor in unittest.TestCase.setUp returns the same instance multiple times

2009-12-09 Thread Aaron Altman
Changes by Aaron Altman aa...@tomorrowsfunction.com: -- title: Call to another class's constructor in unittest.TestCase.setUp returns the same instance - Call to another class's constructor in unittest.TestCase.setUp returns the same instance multiple times

[issue7466] Segmentation fault after about 20 seconds on lenovo T500

2009-12-09 Thread David W. Lambert
David W. Lambert b49p23t...@stny.rr.com added the comment: Further isolation, following change removes segmentation fault: digital_roots = tuple(map(digital_root,factorization)) becomes digital_roots = [digital_root(factor) for factor in factorization] --

[issue7465] Call to another class's constructor in unittest.TestCase.setUp returns the same instance multiple times

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Yes, this working as intended. Consider: Python 2.7a1+ (trunk:76725, Dec 9 2009, 09:26:36) [GCC 4.4.2] on linux2 Type help, copyright, credits or license for more information. class baseClass(object): ... def __init__(self,

[issue7465] Call to another class's constructor in unittest.TestCase.setUp returns the same instance multiple times

2009-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Heh, that first b = baseClass(); del b wasn't supposed to be there and doesn't change the result, just in case you were wondering. -- ___ Python tracker rep...@bugs.python.org

[issue6692] asyncore kqueue support

2009-12-09 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - josiahcarlson nosy: +josiahcarlson priority: - normal stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6692 ___

[issue7467] The zipfile module does not check files' CRCs, including in ZipFile.testzip

2009-12-09 Thread Douglas Turk
New submission from Douglas Turk douglas.t...@depthanalysis.com: The zipfile module does not calculate the CRC of files in a zipfile as they are read as of Python 2.6. The old ZipFile.read function in Python 2.5 used to do this, and ZipFile.testzip appears to rely on ZipFile.read to check the