James King ja...@agentultra.com added the comment:
How about a working test instead? Let me know if it looks right.
--
Added file: http://bugs.python.org/file26267/set_abc_coverage.patch
___
Python tracker rep...@bugs.python.org
http
New submission from James King ja...@agentultra.com:
I'm working on increasing the line-coverage of the tests for the Set ABC in the
collections.abc module.
I encountered something a little funky IMO that I'm not sure is an issue or
bug... but the __and__ method passes a generator object
On Tue, Jun 19, 2012 at 1:22 AM, Ranjith Kumar ranjitht...@gmail.comwrote:
Hi all,
I tried Django with Mongodb while running manage.py syncdb I endup with
this error
note : it works fine with sqlite and mysql db
(django-1.3)ranjith@ranjith:~/
sandbox/python-box/hukkster-core-site/hukk$
James Kyle b...@jameskyle.org added the comment:
I think Ned does have some good points regarding the minimal impact a reversion
would have.
The most poignant point is that /Library/ on OS X is not a user controlled
directory whereas ~/.local is. If ~/.local exists and has packages installed
New submission from James Kyle b...@jameskyle.org:
This behavior is present on OS X 10.7 and framework builds.
In this case, the /Library/Python/version paths are included in every
install.
I would consider this behavior non-standard as in most manual python installs
only that installations
James Kyle b...@jameskyle.org added the comment:
Am I missing something or were the problems delineated in issue #4865 solvable
by simply sys.path.append(/Library/Python/2.7/site-packages)?
What would the process be for reopening this issue for discussion?
I'm not sure this is the right way
James Kyle b...@jameskyle.org added the comment:
Fair enough. Thanks!
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15048
___
___
Python-bugs
James Henstridge ja...@jamesh.id.au added the comment:
One problem I can see with using a fixed offset tzinfo for localtime is that it
might confuse people when doing date arithmetic. For example:
d = datetime.localtime() + timedelta(days=7)
While it will give a correct answer
no way
just use py2exe
1.download it and python
2.make a setup file with this replacing ? with python file name:
from setuptools import setup
setup(app=['Tic-Tac-Toe easy.py'])
james
a intermediate child programmer
--
http://mail.python.org/mailman/listinfo/python-list
.
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list
James Oakley jf...@funktronics.ca added the comment:
Ok, here's a patch with a test and documentation updates.
--
Added file:
http://bugs.python.org/file25617/cpython-urllib_urlopen_cadefault.patch
___
Python tracker rep...@bugs.python.org
http
James Oakley jf...@funktronics.ca added the comment:
Ok, perfect. I submitted a copy of the agreement.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14780
a commercial support contract (this
will help
mitigate the damage done to perceptions of credibility), publishing a commercial
use policy (one of the foundations could offer support with this I hope).
James
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, 14 May 2012 17:01:49 UTC+1, Steve Sawyer wrote:
Brand-new to Python (that's a warning, folks)
Trying to write a routine to import a CSV file into a SQL Server
table. To ensure that I convert the data from the CSV appropriately,
Im executing a query that gives me the schema (data
On Monday, 14 May 2012 01:50:23 UTC+1, TommyVee wrote:
I have a very simple XML document that I need to walk, and I'm using
xml.dom.minidom. No attributes, just lots of nested tags and associated
values. All I'm looking to do is iterate through each of the highest
sibling nodes, check
James Lu jam...@gmail.com added the comment:
thanks!
james
On Thu, Apr 26, 2012 at 1:02 AM, Brian Curtin rep...@bugs.python.orgwrote:
Brian Curtin br...@python.org added the comment:
James, since you attached a Windows executable I'll assume that's the
platform you're on.
Try
James Oakley jf...@funktronics.ca added the comment:
load_verify_locations() is not available in Python 2.x. It was added in 3.x.
Also, there is no way to load a directory-based certificate store at all in
Python 2.x, which is why the bug was opened
James Oakley jf...@funktronics.ca added the comment:
Fair enough. What about a patch to handle a directory store passed through the
ca_certs parameter? As it stands now, it's impossible to load the
distribution-supplied cert store on openSUSE
James Oakley jf...@funktronics.ca added the comment:
Something like this perhaps?
--- a/Lib/urllib/request.py Fri May 11 13:11:02 2012 -0400
+++ b/Lib/urllib/request.py Fri May 11 11:03:02 2012 -0700
@@ -135,16 +135,19 @@
_opener = None
def urlopen(url, data=None, timeout=socket
James Henstridge ja...@jamesh.id.au added the comment:
Benjamin: if you are after a use case for this feature, see
https://code.djangoproject.com/ticket/15901
In Django, there are multiple database backends, each of which currently catch
the adapter's DatabaseError and reraise it as Django's
Changes by James Henstridge ja...@jamesh.id.au:
--
type: behavior - enhancement
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12029
___
___
Python
Hello everybody,
I uploaded a couple of packages:
- http://pypi.python.org/pypi/django-cities-light/1.0
- http://pypi.python.org/pypi/django-autocomplete-light/0.1
But they are not pip installable:
10:12.00 Thu May 10 2012!~
jpic@germaine!10012 E:1 env
pip install django-autocomplete-light
New submission from James Oakley jf...@funktronics.ca:
OpenSSL provides a method, SSL_CTX_set_default_verify_paths(), for loading a
default certificate store, which is used by many distributions.
In openSUSE, the default store is not a bundle, but a directory-based store,
which
James Oakley jf...@funktronics.ca added the comment:
Here's the patch for Python 3.
--
Added file:
http://bugs.python.org/file25534/python-3.2.3-ssl_default_certs.patch
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14780
James Henstridge ja...@jamesh.id.au added the comment:
The documentation for ABCMeta.register() says that it makes the other class a
virtual subclass. That would make the ABC a virtual base class.
So whether the current behaviour is correct depends on whether you consider a
virtual base
programming; clean, readable, and idiomatic.
Plus it's fairly concise itself and emphasises the standard libraries.
If you get stuck, obviously just search, but there is a lot of good info
on Stack Overflow particularly.
James
--
http://mail.python.org/mailman/listinfo/python-list
Agreed with pretty much all of that. It's third-world politics, lurching from
one dictator to another. Risinger seems to have banned all discussion of the
subject from the list too, I'm not posting anymore because I don't want to give
him an excuse to wield his newly found banhammer.
But yeah,
What would be the best way to figure out how to do this? I looked at
Google app engine tutorial, but can't figure out how that will help we
get the code into the cloud so I can access it from any browser.
GAE is quite a good option, since it includes free hosting. You should be able
to get
-facto leader has jeopardised this,
pretty needlessly in our opinion.
James
--
http://mail.python.org/mailman/listinfo/python-list
By the way, there's a lot more to say on this, which I'll cover another time.
There are arguments for and against what's happened; at this stage I'm just
trying to flag up that there is *not* unanimity and we are not just carrying on
as normal.
--
James Hutchison jamesghutchi...@gmail.com added the comment:
See attached, which will open a zipfile that contains one file and reads it a
bunch of times using unbuffered and buffered idioms. This was tested on windows
using python 3.2
You're in charge of coming up with a file to test
James Lu jam...@gmail.com added the comment:
1,looked for python IDLE
2.NO python
#.use text editor (hard)
james
On Wed, Apr 25, 2012 at 2:17 AM, Martin v. Löwis rep...@bugs.python.orgwrote:
Martin v. Löwis mar...@v.loewis.de added the comment:
Please structure your bug report as follows
New submission from James Lu jam...@gmail.com:
No IDLE 3.26
need badly!
High prriority
--
components: IDLE
files: python.exe
messages: 159243
nosy: James.Lu
priority: normal
severity: normal
status: open
title: No IDLE
type: resource usage
versions: Python 3.2
Added file: http
James Hutchison jamesghutchi...@gmail.com added the comment:
In the patch:
This:
+except AttributeError:
+pass
should be:
+except:
everything inside except statement
Checking for the AttributeError is very slightly slower. Not by a lot, but I
think if we're going
James Hutchison jamesghutchi...@gmail.com added the comment:
@pitrou
You can just delete my original post. I'll repost an edited version here for
reference
original post with paths removed:
This is an issue for me (Python 3.2). I have a custom pool that sends arguments
for a function call
James Hutchison jamesghutchi...@gmail.com added the comment:
Shouldn't reduce_pipe_connection just be an alias for reduce_connection in unix
so that using reduce_pipe_connection would work for both win and unix? My
understanding after looking at the code is that reduce_pipe_connection isn't
James Hutchison jamesghutchi...@gmail.com added the comment:
This is an issue for me (Python 3.2). I have a custom pool that sends arguments
for a function call over a pipe. I cannot send another pipe as an argument.
Tim's workaround also does not work for me (win xp 32bit and 64bit)
From
James Hutchison jamesghutchi...@gmail.com added the comment:
err, is it possible to edit out those file paths? I didn't intend them to be in
the message. I'd appreciate it if someone with the privileges to do so could
remove them.
--
___
Python
James Hutchison jamesghutchi...@gmail.com added the comment:
I presume you mean in 3.2? Have you looked at the source code for that
decorator? It's fundamentally a try/except but with a lot more unnecessary
bloat than is needed for caching a single int result from a function with no
arguments
New submission from James Hutchison jamesghutchi...@gmail.com:
Tested on 3.2
Note that I noticed that Decimal is supposed to be faster in 3.3 but I thought
I would bring this to light just in case its still relevant
Decimal hashing is very slow, even for simple numbers. I found by caching
James Hutchison jamesghutchi...@gmail.com added the comment:
If I increase the cycles increased 10x with 3.2 I get:
int: 0.421313354492
Decimal: 24.20299983024597
CachingDecimal: 1.7809998989105225
The sample you have provided is basically what I'm using. See attached
What about worst
James Hutchison jamesghutchi...@gmail.com added the comment:
100x should be e100
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14478
Dear Python folks,
I need your help on using list items as output table names in
MsACCESS-new to Python- simple would be better:
import arcpy, os
outSpace = c:\\data\\Info_Database.mdb\\
arcpy.overwriteOutput = True
SQL = Database Connections\\SDE_ReadOnly.sde\\
inFcList = [(SDE +
()# [0, 2, 3, 5, 10]
l.append(3) # [0, 2, 3, 5, 10, 3]
James
--
View this message in context:
http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574176.html
Sent from the Python - python-list mailing list archive at Nabble.com.
--
http://mail.python.org
On 13/03/12 16:02, ferreirafm wrote:
Hi James, thank you for your replay. Indeed, the problem is qsub. And as
warned by Robert, I don't have functions properly, but just scripts.
--
View this message in context:
http://python.6.n6.nabble.com/concatenate-function-tp4574176p4574511.html
of items
l = [[Item(range(i)) for i in range(10)],
... [Item(range(i, 2*i)) for i in range(10,20)]]
l[0][9].list_field[3].is_match = True
for i in find(l):
... print(i)
3
James
--
http://mail.python.org/mailman/listinfo/python-list
New submission from James Pickering jamespi...@googlemail.com:
If you run pkgutil.iter_zipimport_modules with a prefix parameter, and the
module in question is a package, then the prefix parameter is ignored.
The most visible symptom of this is when running pkgutil.walk_packages for a
zipfile
On 29 February 2012 13:52, Johann Spies johann.sp...@gmail.com wrote:
In [82]: t.append(instansie)
t.append(instansie)
In [83]: t
t
Out[83]: ['Mangosuthu Technikon']
In [84]: t = [x.alt_name for x in lys].append(instansie)
t = [x.alt_name for x in lys].append(instansie)
In [85]: t
t
New submission from James Lekas le...@sonic.net:
logging.Formatter.format() creates a cache called exc_text with a copy of the
traceback text which it uses for all log handlers (I think). When this cache
is set, format() does not call formatException to format the
exception/traceback data
On 5 February 2012 15:13, Anatoli Hristov toli...@gmail.com wrote:
Hi there,
I`m again confused and its the dictionary. As dictionary does not support
append I create a variable list with dictionary key values and want to add
new values to it and then copy it again to the dictionary as I dont
James Sanders bistromath...@gmail.com added the comment:
I've submitted a patch that just uses save_global to pickle Ellipsis and
NotImplemented, so the resulting pickle should be unpicklable anywhere. I'm
completely new to the C API so not sure if the way I am building python strings
New submission from James Sanders bistromath...@gmail.com:
At present, the built-in constants Ellipsis (...) and NotImplemented cannot be
pickled. Perhaps there is a good reason for this, but the only discussion I
can find is at msg108957, where it is stated that these values (along
New submission from James Hutchison jamesghutchi...@gmail.com:
In python is currently there a way to elegantly throw an error if a variable is
already in the current scope?
For example:
def longfunc(self, filename):
FILE = open(filename);
header = FILE.readline();
... bunch
James Hutchison jamesghutchi...@gmail.com added the comment:
For starters, this would be most efficient implementation:
def unique(varname, value, scope):
assert(not varname in scope);
scope[varname] = value;
Usage:
unique('b', 1, locals());
print(b);
But you can't put that in a loop
James B skilletau...@gmail.com added the comment:
I have encountered this issue(python 2.7) with respect to positional arguments
that begin with a dash (linux/ bash).
In the following example, the parser requires three positional arguments. I
attempted to encase the arguments in single-quotes
-Type: text/plain
cheers
James
--
http://mail.python.org/mailman/listinfo/python-list
James C. Ahlstrom jahl...@gmail.com added the comment:
For completeness, I checked other versions of Python. The example zip file
fails in Python 3.1, but succeeds in Python 3.2.2. The patch for 3.2.2 removed
the check for correct comment length, but substituted no further check
New submission from James Classen jclas...@gmail.com:
I notice that, in versions 2.7 and 3.2 on Windows XP (haven't tested any other
versions or platforms), the following statements in the interpreter work as
documented:
'%x' % 17
'%o' % 17
and output '11' and '21' respectively, as I expect
James Classen jclas...@gmail.com added the comment:
I didn't see section 4.6.2 of the library for 3.2 documentation, only section
5.6.2 of the 2.7 docs. So this is an invalid issue.
--
resolution: - invalid
status: open - closed
___
Python tracker
James C. Ahlstrom jahl...@gmail.com added the comment:
Problem was reported on 2.7. I will check in detail this weekend. Please
stand by.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1757072
James C. Ahlstrom jahl...@gmail.com added the comment:
I grabbed a 2.7.2 zipfile.py, and my original comments stand. If there is a
garbage at end of file patch, I can't find it; please provide a line number
or a hint. The user at yale.edu reports that the patch works. Here is a diff
of my
James C. Ahlstrom ahlstro...@users.sourceforge.net added the comment:
I received a bug report from a user. He had a zip file created by Mac OS
10.5.8 that the zipfile module claimed was not a valid zip file. The traceback
went to function _EndRecData(fpin). The file had a valid comment
James Polley jamezpol...@gmail.com added the comment:
It looks like the first release that had epub support was 1.0; docs.python.org
is still using 0.6.7, according to the footer on the bottom of the page.
I suspect that this is (A) pending the upgrade to 1.0.0, which is (B) more
difficult
James Polley jamezpol...@gmail.com added the comment:
So http://bitbucket.org/birkenfeld/sphinx/issue/140/ has now been closed;
sphinx happily builds epub.
However, the python docs are still not available for download in epub format
from http://docs.python.org/download.html, which
Looks good I am going to plug twisted into this.
On Mon, Nov 21, 2011 at 9:49 PM, Bart Thate bth...@gmail.com wrote:
Hello world !! I released JSONBOT 0.80.3 .. the first in the 0.80 series ;]
about
~
JSONBOT is a chatbot that can take commands and react to events on the
network it is
You may have some issues with disk reading as the drive heads move in
different ways
On Mon, Nov 21, 2011 at 8:15 AM, nikunj.badja...@emc.com wrote:
Hi All,
** **
Just a question in general. Is it possible that we have opened one file
in r+ mode ( file1.txt ).
We have 2
James C. McPherson j...@opensolaris.org added the comment:
While using LD_LIBRARY_PATH might be ok for a quick run by hand,
it's preferable to use an RPATH when linking for more long term
usages.
--
nosy: +jmcp
___
Python tracker rep
James Burgess jamestreborburg...@gmail.com added the comment:
Can't Fix that is not true.
I've just fixed this in 2.7 with a trivial change to subprocesss.py, I think
it'd work in over versions too.
Note that type shenanigans are already in play in _get_handles, it's looking at
the types
, [ProcessName]])
-- HansM
Hello,
This worked for me:
os.execvp(./Launch.py, [python, ProcessName])
Best regards,
James
--
http://mail.python.org/mailman/listinfo/python-list
want more than one statement
executed per step was to wrap sequences of statements in a
SEQ construct. You end up indenting a long way very fast if
you aren't careful.
I'm afraid much as I love PAR, Python's dynamicism makes it
rather more 'exciting' than it was in occam.
--
Rhodri James
on that
doesn't grievously abuse at least one of the terms you are using. Could
you post some illustrative code snippets, please?
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list
a
module.
Do you mean that one of the imported modules wishes to use an instance
created in the main script? If that's the case, you're going to have
to pass the instance to the module somehow, since the module knows
nothing of what if anything has imported it.
--
Rhodri James *-* Wildebeest
On Wed, 14 Sep 2011 14:05:23 +0100, memilanuk memila...@gmail.com wrote:
Rick Xang Li are two examples of what you *don't* see (or at least I
don't) @ SO
Then you haven't been looking hard enough ;-)
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman
translating a character as a smart quote or a non breaking space
or an e-umlaut or whatever, but that doesn't make the character legal!
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list
, you'll need to write an IndentedHelpFormatter subclass that splits
the text on \n\n, textwraps the split string individually, then re-joins
them. _format_text() and format_option() look like the methods that would
need replacing.
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http
straightforward.
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list
James Y Knight f...@users.sourceforge.net added the comment:
YAGNI. Nobody has needed sys.build_platform yet. (And no, sys.platform isn't
it, since that's been fixed at linux2 approximately forever). Why do you think
people would suddenly start needing to know the build-time kernel version now
James Y Knight f...@users.sourceforge.net added the comment:
configure_linux2.python3.2.patch
It would probably be more future-proof to use linux*), not linux3) in the
case expression.
--
___
Python tracker rep...@bugs.python.org
http
some, sure -- usually for Bollywood actress pictures --
but not enough to make me worry about Opera's relatively poor newsgroup
filtering facilities. If you're getting as much as you say, it's being
injected on the mail side of the gateway somehow.
--
Rhodri James *-* Wildebeest Herder
, columns, etc) has so far
been unequaled in anything else I have looked at.
I take it you haven't looked at TeX, then? :-)
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list
James Y Knight f...@users.sourceforge.net added the comment:
Well, except maybe if you plan to write applications working only on Python
= 2.7.3? ... this version is not released yet.
No, of course I don't plan on writing new code that checks sys.platform ==
'linux2'. That's ridiculous.
I
James Y Knight f...@users.sourceforge.net added the comment:
M.A., your comments do not make sense in the context of Linux. It does not
actually require porting -- Linux 2.6.39 to Linux 3.0 is no more disruptive
than Linux 2.6.38 to Linux 2.6.39. *Except* that python ill-advisedly exported
James Y Knight f...@users.sourceforge.net added the comment:
Sure, you can compile and run Python on both versions of Linux, but
what if your application uses features that are only present in Linux
3.0 and later ?
This comment is making me think you've missed just how irrelevant kernel
James Y Knight f...@users.sourceforge.net added the comment:
I will backport the fix to 2.7 and 3.2.
Uh, wait, so does that mean you're *not* going to do the
compatibility-preserving thing and force sys.platform to stay linux2 even when
python is built (BUILT! not run!) on a machine where
be deprecated -- and eventually removed by the
ISPs, except for the few customers who choose to install it themselves.
John S James
www.replicounts.org
-- Forwarded message --
From: Ned Deily n...@acm.org
To: python-list@python.org
Date: Sat, 06 Aug 2011 15:09:39 -0700
Subject
--
John S. James
www.RepliCounts.org
--
http://mail.python.org/mailman/listinfo/python-list
James Y Knight f...@users.sourceforge.net added the comment:
Oh wow, so it depends on the *build* time major version? That's really not
useful at all for linux 2.x and 3.x; there is nothing useful anyone can
possibly do with the distinction between platform == linux2 and platform ==
linux3
upvoted can be pretty hit-and-miss.
The other thing that may affect this is that anything posted to SE is
subject to the Creative Commons license. This may be an issue for
academic purposes, I don't know. (It's certainly an issue when you come
across J*ff!)
--
Rhodri James *-* Wildebeest
Wow, why don't you find some cloud providers and write bootstrap programs.
James
On Mon, Aug 1, 2011 at 6:35 PM, Dan Stromberg drsali...@gmail.com wrote:
I've been testing my Python code on these using virtualbox and/or physical
machines (but mostly virtualbox):
CentOS 6.0
Debian
Please kindly help- i have a project where I need to plot dict results
as a histogram. I just can't get the y- axis to print right. May
someone please help? I have pulled my hair for the past two weeks, I
am a few steps ahead, but stuck for now.
def histo(his_dict = {1:16, 2:267, 3:267, 4:169,
easy-to-use core
functionality with a synchronous-like API on top of circuits.
This release also includes a number of minor bug fixes
and greater test coverage.
For more information see the PyPi page:
pypi.python.org/pypi/circuits/
cheers
James
James Mills / prologic
Developer | circuits
Dear Python Programmers,
I am a Python newby and I need help with my code: I have done parts of it
but I can't get what I need: I need to manipulate text to come up with word
lengths and their frequency:ie
how many 1-letter words in a text
how many 2-letter words in a text, etc
I believe I am
Dear All,
I looked through this forum's archives, but I can't find a way to
search for a topic through the archive. Am I missing something?
Thanks as always.
CJ.
--
http://mail.python.org/mailman/listinfo/python-list
to them.
--
Rhodri James *-* Wildebeest Herder to the Masses
--
http://mail.python.org/mailman/listinfo/python-list
Dear Python Experts,
First, I'd like to convey my appreciation to you all for your support
and contributions. I am a Python newborn and need help with my
function. I commented on my program as to what it should do, but
nothing is printing. I know I am off, but not sure where. Please
help:(
Angelico)
7. NEED HELP-process words in a text file (Cathy James)
8. Re: NEED HELP-process words in a text file (Chris Rebert)
9. Re: NEED HELP-process words in a text file (Tim Chase)
-- Forwarded message --
From: Terry Reedy tjre...@udel.edu
To: python-list@python.org
Date
I am almost there, but I need a little help:
I would like to
a) print my dogs in the format index. name: breed as follows:
0. Mimi:Poodle
1.Sunny: Beagle
2. Bunny: German Shepard
I am getting
(0, ('Mimi', 'Poodle')) . Mimi : Poodle instead-what have I done wrong?
b) I would like to append to
cool. I haven't looked at the source code yet...
There was another game very similar to this - much more basic though
and when I saw it back then I wanted to do something similar!
Nice job!
cheers
James
--
-- James Mills
--
-- Problems are solved by method
--
http://mail.python.org/mailman
gap.
On my desktop at home which runs CRUX (http://crux.nu) I use
the Terminius (1) fonts which I installed myself.
I find this font especially nice for both Terminals and Editing code.
cheers
James
1. http://terminus-font.sourceforge.net/
--
-- James Mills
--
-- Problems are solved by method
I need a jolt here with my python excercise, please somebody!! How can I
make my functions work correctly? I tried below but I get the following
error:
if f_dict[capitalize]:
KeyError: function capitalize at 0x00AE12B8
Code below:
def capitalize (s):
capitalize accepts a string parameter
901 - 1000 of 4053 matches
Mail list logo