[issue10890] IDLE Freezing

2011-01-11 Thread James
New submission from James jamgoo...@gmail.com: Recently installed Python 2.7.1 on my MacBook running OS X 10.6.6 and have not been able to use IDLE without it freezing. When I force quit it doesn't show that it's not responding. I can run scripts fine, but if I were to try to copy-paste

[issue11122] bdist_rpm fails

2011-02-04 Thread James
New submission from James purplei...@gmail.com: Hi distutils, When I run: ./setup.py bdist --formats=rpm on my source directory, I get the error: rpm -ba --define _topdir /home/james/code/scantran/build/bdist.linux-x86_64/rpm --clean build/bdist.linux-x86_64/rpm/SPECS/scantran.spec -ba

[issue11122] bdist_rpm fails

2011-02-04 Thread James
James purplei...@gmail.com added the comment: In the source for distutils it seems to attempt to use 'rpmbuild' if it exists, but otherwise falls back on regular 'rpm', however in my rpm: $ rpm --version RPM version 4.8.1 this fails as there is no -ba option. James

[issue11122] bdist_rpm fails

2011-02-05 Thread James
James purplei...@gmail.com added the comment: I'll write a docs and script patch for this next week... I'm happy to do the work, Thanks for the comments. James -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11122

[issue8955] import doesn't notice changes to working directory

2010-06-09 Thread James
New submission from James purplei...@gmail.com: Attempting to change the working directory and then import based on that change has no effect. Import seems impossible. Attached is tarball example. As seen below, bar1.py can import foo from src, however bar2.py bar3.py and bar4.py cannot

[issue6786] readline and zero based indexing

2010-08-04 Thread James
James purplei...@gmail.com added the comment: It's an incompatible change; it would definitely break my code, however I think it should be wishlisted for an API-break release like 3.5 or 4.0 or something like that. IMHO, the bindings should be pythonic, even if the underlying library isn't

[issue6786] readline and zero based indexing

2010-08-09 Thread James
James purplei...@gmail.com added the comment: I'd be writing a patch which would allow a programmer the option to explicitly use/instantiate the library in a zero-based way. This way throughout their particular program, the indexing of elements could be consistent. Not having this causes you

[issue6142] Distutils doesn't remove .pyc files

2010-04-08 Thread James
James purplei...@gmail.com added the comment: i'm fine with that and willing to contribute patches, however i would feel better if whoever upstream was, was more supportive of the idea. someone let me know. a thought: - it's true (as mentioned) that distclean isn't necessarily directly related

[issue6205] sdist doesn't include data_files

2009-06-15 Thread James
James purplei...@gmail.com added the comment: great, thanks for the info. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6205 ___ ___ Python

[issue6633] No handlers could be found for logger

2009-08-03 Thread James
New submission from James purplei...@gmail.com: I was trying to suppress the error message as shown in the title, when I found out (by searching through the source) that there is a NullHandler for precisely this purpose. http://svn.python.org/view/python/trunk/Lib/logging/__init__.py?r1=66211r2

[issue6633] No handlers could be found for logger

2009-08-05 Thread James
James purplei...@gmail.com added the comment: very well, i didn't notice the http://docs.python.org/library/logging.html#configuring-logging-for-a-library and i thank you for your time and efforts! cheers, _J -- ___ Python tracker rep

[issue6786] readline and zero based indexing

2009-08-26 Thread James
New submission from James purplei...@gmail.com: why is it that the zeroth readline history item is seemingly always none. I would expect this to support zero-based indexing in python, but perhaps I have missed some detail in readline somewhere. Cheers, _J ja...@work:~$ python Python 2.5.2

[issue6872] Support system readline on OS X 10.6

2009-09-10 Thread James
James purplei...@gmail.com added the comment: it seems to me, that any and all readline interfaces should/could standardize to the indexing scheme as used by the language; maybe i'm wrong, but since python is zero based, so could the readline interfaces. it's definitely more logical

[issue6786] readline and zero based indexing

2009-09-10 Thread James
James purplei...@gmail.com added the comment: @mark: thanks for the comment; i suppose we should investigate why and if c readline is 1 based... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6786

[issue6786] readline and zero based indexing

2009-09-10 Thread James
James purplei...@gmail.com added the comment: i found this: http://tiswww.case.edu/php/chet/readline/history.html search for: Variable: int history_base perhaps we can set this to 0 in the python bindings. more so, perhaps someone is using 1 because they made a mistake

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread James
New submission from James purplei...@gmail.com: os.path.normpath doesn't normalize paths that start with ../ you would expect the final output line in the secpnd run to read: normpath: badnormpath.py instead of: normpath: ../tmp/badnormpath.py example: ja...@home:~$ cd tmp/ ja...@home:~/tmp

[issue7315] os.path.normpath doesn't normalize ../path/something.py

2009-11-13 Thread James
James purplei...@gmail.com added the comment: i looked at the source for normpath. i know that it doesn't look at the filesystem. assuming you're not currently sitting at the root directory, in all? cases ../xyz brings you back to where you started. we expect normpath to clean up a path string

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-21 Thread James
New submission from James: For example: Python 3.2.2 (default, Feb 10 2012, 09:23:17) [GCC 4.4.5 20110214 (Red Hat 4.4.5-6)] on linux2 Type help, copyright, credits or license for more information. class A: ... def f(*args): ... print(super().__repr__()) ... A().f

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-23 Thread James
James added the comment: I've attached a patch that I think fixes the variable arguments problem, and changes the SystemErrors that can be obtained by misusing super() into RuntimeErrors (I assume that's more appropriate?). There are three more SystemErrors I'm not sure about: super

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-24 Thread James
James added the comment: It turns out I don't really understand how frame objects work. My patch can crash python if you do this: class A: ... def f(*args): ... args = 1 ... print(super()) ... A().f() python: Objects/typeobject.c:6516: super_init: Assertion

[issue15753] No-argument super in method with variable arguments raises SystemError

2012-08-24 Thread James
James added the comment: Sorry, I wasn't very clear. super() currently works by assuming that self is the first entry in f_localsplus, which is defeated, for example, by doing: class A: ... def f(self): ... del self ... super() ... A().f() Traceback (most recent

[issue6142] Distutils doesn't remove .pyc files

2009-05-29 Thread James
New submission from James purplei...@gmail.com: Priority: 4 Keywords: patch, distutils, pyc Comment: I posted this on the distutils mailing list, and they said I should post it here instead. --- Hi, I'm certaintly new to distutils and setuptools, however I figured I'd send in this patch

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: Hi, the patch only removes them if one adds the --pyc option. I think it is a good idea to have some option or target somewhere to remove the types of files that can be regenerated because often developers want to get them out of the way. Example

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: I could agree with R. David Murray, and I think that it's fine that this be included under a dist clean command. Ultimately I'm writing an application and I'm trying to use distutils with it. I'll potentially run a: $ setup.py build_ext -i

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: ps: included is a platform independent version of the code, so that it doesn't depend on os.system() specific commands. HTH, _J -- Added file: http://bugs.python.org/file14146/clean.py.patch ___ Python

[issue6142] Distutils doesn't remove .pyc files

2009-06-01 Thread James
James purplei...@gmail.com added the comment: Antoine: Okay sorry not a mess then. I just figure that if i'm using the distutils tool for doing all the fun things to my local source directory that I potentially used to do with say a makefile, then would it not be beneficial to have a useful

[issue6142] Distutils doesn't remove .pyc files

2009-06-02 Thread James
James purplei...@gmail.com added the comment: Currently, I have (had) a make file with a clean target that would remove these files. Would you recommend keeping this file and it's associated functionality, or is the idea to be able to integrate this into distutils and be able to do away

[issue6205] sdist doesn't include data_files

2009-06-05 Thread James
New submission from James purplei...@gmail.com: Hi, I have shown the output from my terminal below, since it will be easier to follow for explaining the bug. ja...@computer:~/testsetup$ ls helloworld2.py image1.jpg setup.py ja...@computer:~/testsetup$ cat setup.py #!/usr/bin/python import

[issue6260] os.utime should allow None values for ATIME or MTIME

2009-06-10 Thread James
New submission from James purplei...@gmail.com: Hi, in using os.utime, it's nice that you can specify `None' for the second argument. However it would be even `nicer' to be able to specify None for either (or potentially both) values for the argument in the tuple. to emulate this, i've been

[issue6260] os.utime should allow None values for ATIME or MTIME

2009-06-12 Thread James
James purplei...@gmail.com added the comment: very well, this is a good point. i'm guessing nobody would every accept a patch for upstream utime? (in c) thanks for your comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue22691] A Better Help File

2014-10-21 Thread James
New submission from James: Just the General Help that is in Python, doesn't really help. Here's what would help, if every Module, had an example in code of how it was used instead of the Trees. I mean, word trees, well that's what the writing reminds me of, is word trees like you'd produce

[issue22691] A Better Help File

2014-10-21 Thread James
James added the comment: Just the General Help that is in Python, doesn't really help. Here's what would help, if every Module, had an example in code of how it was used instead of the Trees. I mean, word trees, well that's what the writing reminds me of, is word trees like you'd produce

[issue22692] Problems with Python's help()

2014-10-22 Thread James
New submission from James: Hello, I really think that Microsoft’s last release of Quick Basic 4.5 really had the ultimate of all help files. Here’s why, you could cut and copy the code to the program you were working on, and then alter it to your program. It was one of the nicer things

[issue22694] The help file issue I'm having.

2014-10-22 Thread James
New submission from James: Hello, Now, I really want you to think about the hunt and pick method of programming and learning how to program. Being self taught, isn’t something that can happen unless, the authors of the software want people to learn how to use it. Help files

[issue22691] A Better Help File

2014-10-23 Thread James
James added the comment: I've written several languages, I'm no novice but, I also know when to brush up.Its just how I started, it looks like an opening for others. -Original Message- From: R. David Murray Sent: Wednesday, October 22, 2014 6:25 AM To: geek.mo...@gmail.com Subject

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-25 Thread James
James added the comment: When I start the interpreter with the -S switch, the problem goes away. Thanks for looking into it, and I apologize for the false alarm! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-25 Thread James
Changes by James james.triv...@gmail.com: -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24035

[issue24035] When Caps Locked, Shift + alpha-character still displayed as uppercase

2015-04-22 Thread James
New submission from James: Referring to Python 2.7 running on Windows (7/8): At the interactive interpreter, if either 1) Caps are Locked OR 2) Shift is held while an alpha-character is selected, the character is output and displayed as uppercase, as one would expect. However, in Python 2.7

[issue20825] containment test for ip_network in ip_network

2015-07-07 Thread James
James added the comment: What is the status of these changes? Apparently they were slated for inclusion in 3.5 but it looks as though they haven't hit yet - is there a reason for this, or was it just forgotten? -- nosy: +JamesGuthrie ___ Python

[issue25167] THE SCORCH TRIALS OF MAZE RUNNER DISFACTION LOGGIC

2015-09-18 Thread james
New submission from james: http://www.thebigidea.co.nz/profile/james/65456 http://www.cyclefish.com/hebucoho/ https://soundation.com/user/MazeRunnerTheScorchTrials https://issuu.com/mazerunnerthescorchtrials http://poputka.ua/user-profile-39591.aspx http://www.pikore.com/mazerunnerthescorch

[issue26752] Mock(2.0.0).assert_has_calls() raise AssertionError in two same calls

2016-04-14 Thread James
New submission from James: >>> import mock >>> print mock.__version__ 2.0.0 >>> = test.py from mock import Mock,call class BB(object): def __init__(self):pass def print_b(self):pass def print_bb(self,tsk_id):pass bMock = Mock(return

[issue30806] netrc.__repr__() is broken for writing to file

2017-06-29 Thread James
New submission from James: Have any valid .netrc file. For testing purposes you can use this: machine abc.xyz login myusername password mypassword The documentation for netrc.__repr__() states that it "dumps the class data as a string in the format of a netrc file". However, wh

[issue39407] Bitfield Union does not work for bit widths greater than 8 bits

2020-01-21 Thread James
New submission from James : Creating a Bitfield from a ctypes union and structure results in unexpected behaviour. It seems when you set the bit-width of a structure field to be greater than 8 bits it results in the subsequent bits being set to zero. class BitFieldStruct

[issue1731717] race condition in subprocess module

2010-11-27 Thread James Lamanna
James Lamanna jlama...@gmail.com added the comment: stubbing out subprocess._cleanup does not work around the problem from this example on 2.6.5: import subprocess, signal subprocess._cleanup = lambda: None signal.signal(signal.SIGCLD, signal.SIG_IGN) subprocess.Popen(['echo','foo']).wait

[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2007-09-19 Thread James Antill
James Antill added the comment: So I think this is all the places integer overflow checking is needed in imageop.c and rbgimgmodule.c. There might be checks here which can't be exploited anyway, and I haven't checked any other files yet. Feel free to comment. Ps. This is against the 2.5

[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2007-09-19 Thread James Antill
Changes by James Antill: __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1179 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python

[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2007-09-19 Thread James Antill
James Antill added the comment: Guido: It's true that that len can be slightly bigger than x*y, the big thing is that it can't be smaller so we can malloc(len) and use upto x*y (which was my main focus). I first looked at any of this code today, but I didn't see any reason that having len

[issue1179] [CVE-2007-4965] Integer overflow in imageop module

2007-12-19 Thread James Antill
James Antill added the comment: I've applied the last patch I posted to recent RHEL and Fedora releases, and it doesn't seem to break anything ... and from what I could see it fixed the problem. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1179

[issue1339] smtplib starttls() should ehlo() if it needs to

2008-01-12 Thread James Henstridge
James Henstridge added the comment: From RFC 2487 section 5.2: The client MUST discard any knowledge obtained from the server, such as the list of SMTP service extensions, which was not obtained from the TLS negotiation itself. The client SHOULD send an EHLO command as the first command after

[issue1722344] Thread shutdown exception in Thread.notify()

2008-02-05 Thread James Cooper
James Cooper added the comment: Though these exceptions while shutting down are mostly harmless, they are very noisy and must be squelched in a production application. Here is the patch which we at Solido Design (www.solidodesign.com) are using to hide the exceptions. Note that this doesn't

[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-19 Thread James Henstridge
New submission from James Henstridge [EMAIL PROTECTED]: When I want to use valgrind to check for leaks in a Python program (or test suite), I generally want pymalloc disabled. When not running valgrind I generally want it enabled. Attached is a patch that automatically bypasses the pymalloc

[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-19 Thread James Henstridge
Changes by James Henstridge [EMAIL PROTECTED]: Added file: http://bugs.python.org/file9781/disable-pymalloc-on-valgrind-v3.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2422

[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-19 Thread James Henstridge
Changes by James Henstridge [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file9780/disable-pymalloc-on-valgrind-v2.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2422

[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-23 Thread James Henstridge
James Henstridge [EMAIL PROTECTED] added the comment: Here's the updated version of my patch (the obmalloc.c bits applied without conflicts to the newer source tree). The configure changes are a bit different to Lauro's ones, in that they check for the existence of the valgrind/valgrind.h

[issue2422] Automatically disable pymalloc when running under valgrind

2008-03-26 Thread James Henstridge
James Henstridge [EMAIL PROTECTED] added the comment: An updated version of the patch. The previous ones were missing the valgrind check, resulting in the pymalloc code paths being executed (which in turn cause unintialised read warnings from valgrind). Added file: http://bugs.python.org

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
New submission from James Morgan jmorg1...@gmail.com: Hi, For some reason I have recently lost the ability to open IDLE for python 2.6.2. I was able to open it for 2.5 without issue. I reinstalled 2.6.2 several times, removed 2.5, tried 2.6.5 instead, still cannot load IDLE. I can load

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Thanks for the reply. I have used idle before on this system without issue, and since 2.5 worked I figured there was some difference between 2.5 and 2.6 which was causing the issue. I have found since that the issue is likely not with idle

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
James Morgan jmorg1...@gmail.com added the comment: Sorry, I guess I misunderstood the function as I saw some issues which appeared similar in style to my own. Never mind this then I will seek help elsewhere. Thankyou. -- ___ Python tracker rep

[issue8723] IDLE won't start import os error

2010-05-15 Thread James Morgan
Changes by James Morgan jmorg1...@gmail.com: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8723 ___ ___ Python-bugs-list

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-06-15 Thread James Teh
Changes by James Teh ja...@nvaccess.org: -- nosy: +jteh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8959 ___ ___ Python-bugs-list mailing list

[issue9243] sndhdr erroneously detects files as vox

2010-07-13 Thread James Lee
New submission from James Lee j...@jbit.net: http://svn.python.org/view/python/branches/py3k/Lib/sndhdr.py?r1=56957r2=56987 seems to have broken sndhdr as it incorrectly detects files as voc (all that time ago and nobody has noticed...): [j...@miku]~$ xxd test.wav | head -n 1 000: 5249

[issue9243] sndhdr erroneously detects files as vox

2010-07-13 Thread James Lee
James Lee j...@jbit.net added the comment: Thanks for the update... The link was actually just a diff to previous of the changelist that caused the problem (r56987), sorry for the confusion. :) Attached is a quick and dirty unittest complete with some test files. It only tests the format

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
New submission from James Tatum jta...@gmail.com: ConfigParser defines a number of exception classes which all ultimately derive from ConfigParser.Error. ConfigParser.Error, however, only derives from Exception. These should all derive from StandardError. -- components: Library (Lib

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Removed file: http://bugs.python.org/file18237/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Added file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Removed file: http://bugs.python.org/file18238/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue9406] ConfigParser exceptions do not subclass StandardError

2010-07-28 Thread James Tatum
Changes by James Tatum jta...@gmail.com: Added file: http://bugs.python.org/file18239/ConfigParser.StandardError.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9406

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee j...@jbit.net added the comment: Right now if you have any moderately complex Python based application (or extension set) the only way to easily debug it on windows is by building Python yourself, which is a horrible solution since it means you may end up with a subtly different

[issue1303434] Please include pdb with windows distribution

2010-08-01 Thread James Lee
James Lee j...@jbit.net added the comment: Ah, sorry, I see what you mean now... I thought the request for patch was to modify the installer itself, but it meant just make the msi.py script generate a separate zip file alongside the .msi installer. I'll take a look at providing a patch

[issue1303434] Please include pdb with windows distribution

2010-08-03 Thread James Lee
James Lee j...@jbit.net added the comment: Attached is a simple patch against msi.py from the py3k branch. It generates a .zip file containing all the PDB files (minus a select few) in the PCbuild directory. I imagine most people only want python31.pdb, but it is very frustrating when you

[issue7501] python -m unittest path_to_suite_function errors

2010-08-20 Thread James Westby
James Westby jw+deb...@jameswestby.net added the comment: Hi, I think this was misdiagnosed: from unittest.py in 2.6, loadTestFromName: elif hasattr(obj, '__call__'): test = obj() if isinstance(test, TestSuite): return test elif

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-08 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: tested python 3.1.2 Man = multiprocessing.Manager(); d = man.dict(); d['l'] = list(); d['l'].append(hey); print(d['l']); [] using debugger reveals a KeyError. Extend also does not work. Only thing that works is += which means you

[issue9803] IDLE closes with save while breakpoint open

2010-09-08 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: I have multiple versions of python - 2.6.1 and 3.1.2. 2.6.1 is the primary install (i.e., right click on a file and edit with IDLE brings up 2.6), and was installed first. This issue occurs on 3.1.2, Windows XP 32-bit If I

[issue9847] Binary strings never compare equal to raw/normal strings

2010-09-13 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: Tested on Python 3.1.2 Windows XP 32-bit Binary strings (such as what is returned by filereader.readline()) are never equal to raw or normal strings, even when both strings are empty if(b == ): print(Strings are equal

[issue9801] Can not use append/extend to lists in a multiprocessing manager dict

2010-09-23 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: Is there a way to get this so it behaves more intuitively? You'd think adding a managed list to a managed dictionary (or another managed list) or making a deep copy would work but it still doesn't. When you get an item from a managed

[issue10150] Local references not released after exception

2010-10-19 Thread James Bowman
New submission from James Bowman bowmana...@gmail.com: import sys def foo(): x = [o] * 100 raise ArithmeticError o = something print sys.getrefcount(o) try: foo() except ArithmeticError: pass print sys.getrefcount(o) --- Gives: 4 104

[issue10332] Multiprocessing maxtasksperchild results in hang

2010-11-05 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: v.3.2a3 If the maxtasksperchild argument is used, the program will just hang after whatever that value is rather than working as expected. Tested in Windows XP 32-bit test code: import multiprocessing def f(x): return 0

[issue10376] ZipFile unzip is unbuffered

2010-11-09 Thread James Hutchison
New submission from James Hutchison jamesghutchi...@gmail.com: The Unzip module is always unbuffered (tested v.3.1.2 Windows XP, 32-bit). This means that if one has to do many small reads it is a lot slower than reading a chunk of data to a buffer and then reading from that buffer. It seems

[issue10376] ZipFile unzip is unbuffered

2010-11-09 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: I should clarify that this is the zipfile constructor I am using: zipfile.ZipFile(filename, mode='r', allowZip64=True); -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue3978] ZipFileExt.read() can be incredibly slow

2008-09-26 Thread James Athey
New submission from James Athey [EMAIL PROTECTED]: I've created a patch that improves the decompression performance of zipfile.py by up to two orders of magnitude. In ZipFileExt.read(), decompressed bytes waiting to be read() sit in a string buffer, self.readbuffer. When a piece of that string

[issue3978] ZipFileExt.read() can be incredibly slow

2008-09-26 Thread James Athey
Changes by James Athey [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11622/zeroes.zip ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3978

[issue4005] pydoc in web server mode tails at initial request

2008-10-01 Thread James Mills
New submission from James Mills [EMAIL PROTECTED]: Trying to use pydoc in it's webserver mode fails: $ pydoc3.0 -p 8000 pydoc server ready at http://localhost:8000/ Exception happened during processing of request from ('127.0.0.1', 42939) Traceback (most

[issue3978] ZipFileExt.read() can be incredibly slow

2008-10-01 Thread James Athey
James Athey [EMAIL PROTECTED] added the comment: Why not include this in 2.6.1 or 3.0.1? The patch fixes several bugs; it does not provide any new functionality. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3978

[issue3978] ZipFileExt.read() can be incredibly slow; patch included

2008-12-05 Thread James Athey
Changes by James Athey [EMAIL PROTECTED]: -- title: ZipFileExt.read() can be incredibly slow - ZipFileExt.read() can be incredibly slow; patch included ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3978

[issue4769] b64decode should accept strings or bytes

2009-01-01 Thread James Brotchie
Changes by James Brotchie brotc...@gmail.com: -- nosy: +brotchie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4769 ___ ___ Python-bugs-list

[issue4768] email.generator.Generator object bytes/str crash - b64encode() bug?

2009-01-01 Thread James Brotchie
Changes by James Brotchie brotc...@gmail.com: -- nosy: +brotchie ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4768 ___ ___ Python-bugs-list

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-01-27 Thread James Cooper
James Cooper james.coo...@solidodesign.com added the comment: Our company recently rediscovered this bug in 2.5.2. After a couple hours of debugging, we realized the error message was incorrect and found the bug in the destinsrc function. This may not be a show-stopping bug, but it's non

[issue2422] Automatically disable pymalloc when running under valgrind

2009-02-03 Thread James Henstridge
James Henstridge ja...@jamesh.id.au added the comment: Attached is an updated version of the patch against trunk (2.7). It simply fixes the conflicts that have occurred since the previous patch. Added file: http://bugs.python.org/file12935/disable-pymalloc-on-valgrind-py27.patch

[issue7912] Error in additon of decimal numbers

2010-02-11 Thread James Sparenberg
New submission from James Sparenberg linuxre...@gmail.com: Python produces rounding errors when adding decimals. ython 2.6.4 (r264:75706, Dec 7 2009, 18:43:55) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. 13.04 + 158.00 171.03 13 +158 171

[issue1856] shutdown (exit) can hang or segfault with daemon threads running

2010-04-13 Thread James Cooper
Changes by James Cooper james.coo...@solidodesign.com: -- nosy: +jamescooper ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1856 ___ ___ Python

[issue2422] Automatically disable pymalloc when running under valgrind

2008-04-01 Thread James Henstridge
James Henstridge [EMAIL PROTECTED] added the comment: There are probably a few other performance optimisations that would be good to turn off when running under valgrind. A big one is the tuple cache: if there are tuple reference counting issues, they won't necessarily be seen by valgrind

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-11 Thread James Henstridge
James Henstridge [EMAIL PROTECTED] added the comment: Is repeating a test with the same TestCase instance ever safe? It'd be better to create a new instance and run that. If any of the variables in test.globs are changed by the test (e.g. appending to a list), then rerunning the test

[issue2604] doctest.DocTestCase fails when run repeatedly

2008-04-11 Thread James Henstridge
James Henstridge [EMAIL PROTECTED] added the comment: If I create a test case with a command like: test = DocFileSuite('foo.txt', globs={'somelist': [42]}) The doctest isn't doing anything wrong if it modifies somelist. Furthermore, Glyph has said he thinks the current --until-failure

[issue2793] Dictionary fails to index when adding list when in a deeply nested loop

2008-05-08 Thread James Nadir
New submission from James Nadir [EMAIL PROTECTED]: Python fails to correctly add 'lists' into a 'dictionary' in nested loop. The attached py file has two examples; the first is the failing example, the seond is the passing example. This might be a known issue. If so, please accept my

[issue2912] let platform.uname try harder

2008-06-06 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: I can work on this task. -- nosy: +jjt009 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2912

[issue2912] let platform.uname try harder

2008-06-06 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: i'm looking at the source and there doesn't appear to be a function uname within os.py. are we just considering the uname function in platform.py? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org

[issue2912] let platform.uname try harder

2008-06-06 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: much handling code already seems to exist under the line except AttributeError: in platform.py (function uname(), lines 1101-1161 platform.py) i'm not too familiar with the Python codebase (i just began developing with Python a few days back

[issue2912] let platform.uname try harder

2008-06-10 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: Alright, that makes things much clearer. I'm looking at this code snippet in platform.py: if system == 'unknown': system = '' if node == 'unknown': node = '' if release == 'unknown': release

[issue2912] let platform.uname try harder

2008-06-10 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: Ah, ok, the code under except AttributeError: gives me some good ideas. Should I use the methods utilized there to extract information from the system? ___ Python tracker [EMAIL PROTECTED] http

[issue2912] let platform.uname try harder

2008-06-11 Thread James Thomas
James Thomas [EMAIL PROTECTED] added the comment: Here is the patch (apply to platform.py) -- keywords: +patch Added file: http://bugs.python.org/file10594/platform.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2912

  1   2   3   4   5   6   >