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
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
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
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
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
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
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
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
James purplei...@gmail.com added the comment:
great, thanks for the info.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6205
___
___
Python
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by James Morgan jmorg1...@gmail.com:
--
status: open - closed
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8723
___
___
Python-bugs-list
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Changes by James Athey [EMAIL PROTECTED]:
Added file: http://bugs.python.org/file11622/zeroes.zip
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue3978
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
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
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
Changes by James Brotchie brotc...@gmail.com:
--
nosy: +brotchie
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4769
___
___
Python-bugs-list
Changes by James Brotchie brotc...@gmail.com:
--
nosy: +brotchie
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4768
___
___
Python-bugs-list
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
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
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
Changes by James Cooper james.coo...@solidodesign.com:
--
nosy: +jamescooper
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1856
___
___
Python
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
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
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
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
James Thomas [EMAIL PROTECTED] added the comment:
I can work on this task.
--
nosy: +jjt009
___
Python tracker [EMAIL PROTECTED]
http://bugs.python.org/issue2912
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
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
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
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
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 - 100 of 572 matches
Mail list logo