Changes by James Tatum jta...@gmail.com:
--
nosy: +James.Tatum
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11623
___
___
Python-bugs-list
James Hutchison jamesghutchi...@gmail.com added the comment:
Yes and no, I can give you a single process single child example that just
shows that python 3.2 uses binary output while python 3.1 used system default
when piping, but trying to reproduce the multiprocessing output inconsistencies
New submission from James Hutchison jamesghutchi...@gmail.com:
In windows, 64-bit, python *mostly* writes only a \n to stdout even though it's
mode is 'w'. However it sometimes writes a \r\n on certain print statements and
erratically when I have multiple processes writing to stdout.
Output
James Hutchison jamesghutchi...@gmail.com added the comment:
Sorry there isn't more info but I'm really busy right now
In fact a workaround would be appreciated if known.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11990
James Hutchison jamesghutchi...@gmail.com added the comment:
Nevermind, I have a workaround that didn't require rewriting all the print
statements but its in the C# code not the python code
--
___
Python tracker rep...@bugs.python.org
http
James Whisnant jwhisn...@gmail.com added the comment:
Varnish on the sourceforge server has been upgraded and/or reconfigured
(yesterday) to fix the issue that was happening with this file (and others).
Just an FYI that you will no longer be able to re-create the triggering error.
'content
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:
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 Y Knight f...@users.sourceforge.net added the comment:
Show your speed test? Looks 2.5x faster to me. But I'm running this on python
2.6, so I guess it's possible that the re module's speed was decimated in Py3k.
python -m timeit -s $(printf import re\ndef escape(s):\n return
re.sub
James Y Knight f...@users.sourceforge.net added the comment:
Right you are, it seems that python's regexp implementation is terribly slow
when doing replacements with a substitution in them. (fixing the broken test,
as you pointed out changed the timing to 97.6 usec vs the in-error-reported
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
James Y Knight f...@users.sourceforge.net added the comment:
I just ran into the impl of escape after being surprised that '/' was being
escaped, and then was completely amazed that it wasn't just implemented as a
one-line re.subn. Come on, a loop for string replacement
James Eric Pruitt eric.pru...@gmail.com added the comment:
Also, why is the result put in parens?
Without them, something like 'eval(100 * + repr(imaginary))' would not work
properly.
--
nosy: +ericpruitt
___
Python tracker rep...@bugs.python.org
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
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 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 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
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 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
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
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
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:
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 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 William Pye x...@jwp.name added the comment:
Would it be possible to require the embedding application to define the
Py_FatalError symbol?
Admittedly, it would be nice to not have the callback installation code. =\
--
___
Python tracker rep
James William Pye x...@jwp.name added the comment:
I guess it seemed so unlikely that (C) extensions should be installing the
callback that installation should be restricted pre-Py_Initialize(); the area
completely controlled by the embedding app.
However, I have no strong attachment
Changes by James William Pye jw...@users.sourceforge.net:
--
nosy: -jwpye
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1195571
___
___
Python
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 Y Knight f...@users.sourceforge.net added the comment:
The reason it's a problem is because a device is everything other than a
socket, pipe, slave-side of tty, or file. That is, /dev/null, /dev/zero,
/dev/tty, psuedo-tty masters from openpty (e.g. for running subprocesses), etc.
I find
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
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
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 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
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 Cooper james.coo...@solidodesign.com:
--
nosy: +jamescooper
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1856
___
___
Python
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
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
New submission from James G. sack (jim) jgs...@users.sourceforge.net:
With -r 76870, on Fedora 11, amd x80_64, regrtest of test_format fails
when the -j option is combined with the -v option. It happens whether
testing everything or just the one test.
./python -Ebb Lib/test/regrtest -j3
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
test_commands test_getstatus also fails on linux with SELinux enabled
On gnu/linux, info ls reports:
Following the file mode bits is a single character that specifies
whether an alternate access method
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
It seems that on my Fedora 11 AMD X86_64, the problem still exists. In
test_codecs.UTF32Test, test_handlers() seems to run forever, gobbling
memory to 99+% and then activating swap until it fills up swap.
tested by
svn up
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
Clarification of my last message (msg96468):
The test_handler in the current revision (76850) also exhibits the same
memory-gobbling behavior. I only refered to -r 74869 because that's where
the test was introduced
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
On my Fedora 11 AMD x86_64 system, it appears the deadlock still occurs
(up to the limit of my patience, ie: several minutes). If I reduce to say
3, I can get the test to succeed sometimes.
Observed in: trunk
-r 76850
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
Thanks, it seems to work now.
My test method uses the command format
./python -Ebb Lib/test/regrtest.py -s test_calendar
Sorry for the delayed response, I discovered problems with
test_bz2
test_codecs
which I wanted
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
Update: I was doing something wrong and getting false failures.
I forgot to do ./configure and make after major revision-switches so the
failures I was seeing in bz2 and codecs (and others, :-[ ) was bogus.
Repeating
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
IMPORTANT Correction: Please disregard msg96472.
I was forgetting to do .configure and make, and evidently getting bogus
failures.
test_bz2 works fine now, ..sorry for the false alarm.
~jim
James G. sack (jim) jgs...@users.sourceforge.net added the comment:
IMPORTANT Correction: Please disregard msg 96468 96470.
I was forgetting to do ./configure and make, and evidently getting bogus
failures.
test_codecs works fine now, ..sorry for the false alarm.
~jim
New submission from James G. sack (jim) jgs...@users.sourceforge.net:
file Lib/tests/regrtest.py
Evidently rev 76260 (trunk) / 76261 (py3k)
broke code at
rev 76324 line 655 (py3k)
rev 76321 line 620 (trunk)
which is
if tests[0] == alltests[i]
because tests was rebound from a list
New submission from James Lingard j...@aristanetworks.com:
def f((x)=0): pass
gives the following incorrect error message:
SyntaxError: non-default argument follows default argument
def f((x)): pass is treated exactly the same as def f(x): pass, so
it would seem sensible for the same
New submission from James Lingard j...@aristanetworks.com:
The following python file:
lambda a, a: 0
when executed gives the following backtrace:
File /tmp/test.py, line 0
SyntaxError: duplicate argument 'a' in function definition
Note that the line number is 0, not 1. (It's always
New submission from James Henstridge ja...@jamesh.id.au:
The documentation for the weakref module contains an example that uses
WeakValueDictionary to implement a id2obj() lookup function that doesn't
store strong references to those objects.
This example implicitly assumes that the id
James Henstridge ja...@jamesh.id.au added the comment:
Forgot to include a link to the documentation I was talking about:
http://docs.python.org/library/weakref#example
This example also appears in the 2.7a0 and 3.2a0 documentation
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
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:
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:
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:
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 Abbatiello abb...@gmail.com added the comment:
Further investigation shows that MS asctime() doesn't like leap seconds
and causes an assertion when passing (2008, 12, 31, 23, 59, 60, 2, 366,
-1) - 'Wed Dec 31 23:59:60 2008'.
Given that and since asctime() is such a simple function I think
James Abbatiello abb...@gmail.com added the comment:
In what case(s) do you propose the output to be encoded in UTF-8? If
output is to a terminal and that terminal is set to Latin-1 or cp437 or
whatever then outputting UTF-8 in that case will only show garbage
characters to the user.
If output
James Abbatiello abb...@gmail.com added the comment:
Since there's no good way to disable the assertion (see issue4804),
checking the validity of the argument beforehand looks like an option.
The checking that's currently being done in the strftime()
implementation looks useful
New submission from James Abbatiello abb...@gmail.com:
test_print_function_option is failing on Windows. Patch attached.
Output of failure:
C:python test.py
test_all_project_files (lib2to3.tests.test_all_fixers.Test_all) ...
snip\2to3\lib2to3\refactor.py:194: DeprecationWarning
James Abbatiello abb...@gmail.com added the comment:
The --no-diffs option was recently added which looks like a good workaround.
Here's an attempt at a solution. If sys.stdout has an encoding set then
use that, just as is being done now. If there is no encoding (implying
ascii) then use
James Broadhead jamesbroadh...@gmail.com added the comment:
+1 to the above.
(imo, this is a bugfix, not a new feature)
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1424152
James William Pye x...@jwp.name added the comment:
Seeing this in 3.1 when I try to compile with mingw32 under wine:
error: Unable to find vcvarsall.bat
--compiler=mingw32 works in 3.0. I assume it's related to this bug?
--
nosy: +jwp
versions: +Python 3.1
New submission from James Abbatiello abb...@gmail.com:
Start a process with os.popen() and then try to get its exit code by
closing the resulting file handle. The value returned is inconsistent
between 2.x and 3.x. Example:
Python 2.6.2 (r262:71605, Apr 14 2009, 22:40:02) [MSC v.1500 32 bit
Alex James ac.ja...@shaw.ca added the comment:
Your test prints:
'(1p1\nF1.#INF\naF-1.#INF\naF-1.IND\na.'
[inf, -inf, nan]
My installation is Python 2.6.2 as currently distributed.
Specifying protocol 1 or 2 does circumvent the error.
Thank you.
--
components: +Documentation
Changes by Alex James ac.ja...@shaw.ca:
--
components: +Library (Lib) -Documentation, Extension Modules, Windows
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6290
Alex James ac.ja...@shaw.ca added the comment:
I have now pinpointed the error to a list of infinities (see attached).
When using pickle.py to read the cPickle'd data we get a different, and
more, informative error:
ValueError: invalid literal for float(): 1.#INF
--
Added file: http
James purplei...@gmail.com added the comment:
great, thanks for the info.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue6205
___
___
Python
James Abbatiello abb...@gmail.com added the comment:
Raymond, I've updated peephole.c to allow code to terminate with any of
RETURN_VALUE, END_FINALLY or RAISE_VARARGS [0-3]. I also added tests to
test_peepholer.py to make sure the peepholer still works in these cases
New submission from Alex James ac.ja...@shaw.ca:
When using cPickle to pickle / unpickle an object instance whose
__dict__ contains a dictionary of NumPy Arrays (on a windows32 system),
some of the array elements have the wrong type raising a ValueError:
could not convert string to float
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
James Eric Pruitt eric.pru...@gmail.com added the comment:
Hello, I am working on this patch and some additional features for my
Google Summer of Code project (subdev.blogspot.com) and will eventually
attempt to get the code committed to Python 3.1 or 3.2 and Python 2.7. I
will have the unit
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
New submission from James Abbatiello abb...@gmail.com:
Python currently emits bytecode for code that is unreachable (e.g.
following a return statement). This doesn't hurt anything but it takes
up space doing nothing.
This patch attempts to avoid generating any bytecode in this situation
New submission from James Abbatiello abb...@gmail.com:
The file Lib/test/doctest_aliases.py is used by test_doctest to check
the handling of duplicate removal. The g = f line in this file is one
indent too far to the right so instead of creating an alias for f called
g it is just unreachable
New submission from James Abbatiello abb...@gmail.com:
test_unittest fails on Windows with:
==
FAIL: test_find_tests_with_package (test.test_unittest.TestDiscovery
New submission from James Abbatiello abb...@gmail.com:
test_winreg fails with:
==
ERROR: testLocalMachineRegistryWorks (test.test_winreg.WinregTests
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 Abbatiello abb...@gmail.com:
regrtest.py test__locale fails with:
test__locale
test test__locale crashed -- type 'exceptions.ImportError': cannot
import name
RADIXCHAR
1 test failed:
test__locale
The attached patch backports the fix from issue5643
New submission from James Abbatiello abb...@gmail.com:
test_float fails on Windows with:
==
FAIL: test_format_testfile (test.test_float.IEEEFormatTestCase
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
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
401 - 500 of 572 matches
Mail list logo