[issue15246] Line coverage for collectionts.abc.Set

2012-07-05 Thread James King
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

[issue15246] Line coverage for collectionts.abc.Set

2012-07-03 Thread James King
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

Re: [Tutor] Pymongo Error

2012-06-19 Thread James Reynolds
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$

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-12 Thread James Kyle
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

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
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

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
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

[issue15048] Manually Installed Python Includes System Wide Paths

2012-06-11 Thread James Kyle
James Kyle b...@jameskyle.org added the comment: Fair enough. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15048 ___ ___ Python-bugs

[issue9527] Add aware local time support to datetime module

2012-06-11 Thread James Henstridge
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

RunPy (was py2bat (was: How do I make a Python .bat executable file?))

2012-06-08 Thread James Lu
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

Re: fputs

2012-06-05 Thread Rhodri James
. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue14780] urllib.request could use the default CA store

2012-05-16 Thread James Oakley
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

[issue14780] urllib.request could use the default CA store

2012-05-16 Thread James Oakley
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

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-14 Thread james hedley
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

Re: Extracting DB schema (newbie Q)

2012-05-14 Thread james hedley
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

Re: Need to get Tags and Values from Dom

2012-05-14 Thread james hedley
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

[issue14667] No IDLE

2012-05-13 Thread James Lu
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

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
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

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
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

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-11 Thread James Oakley
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

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread James Henstridge
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

[issue12029] Catching virtual subclasses in except clauses

2012-05-11 Thread James Henstridge
Changes by James Henstridge ja...@jamesh.id.au: -- type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12029 ___ ___ Python

Uploaded package not pip installable

2012-05-10 Thread James Pic
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

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread James Oakley
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

[issue14780] SSL should use OpenSSL-defined default certificate store if ca_certs parameter is omitted

2012-05-10 Thread James Oakley
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

[issue12029] ABC registration of Exceptions

2012-05-10 Thread James Henstridge
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

Re: which book?

2012-05-09 Thread james hedley
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

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-08 Thread james hedley
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,

Re: How do I run a python program from an internet address?

2012-05-08 Thread james hedley
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

Re: pyjamas / pyjs

2012-05-04 Thread james hedley
-facto leader has jeopardised this, pretty needlessly in our opinion. James -- http://mail.python.org/mailman/listinfo/python-list

Re: pyjamas / pyjs

2012-05-04 Thread james hedley
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. --

[issue10376] ZipFile unzip is unbuffered

2012-05-01 Thread James Hutchison
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

[issue14667] No IDLE

2012-04-25 Thread James Lu
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

[issue14667] No IDLE

2012-04-24 Thread James Lu
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

[issue14478] Decimal hashing very slow, could be cached

2012-04-10 Thread James Hutchison
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

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-07 Thread James Hutchison
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

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-07 Thread James Hutchison
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

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-06 Thread James Hutchison
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

[issue4892] Sending Connection-objects over multiprocessing connections fails

2012-04-06 Thread James Hutchison
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

[issue14478] Decimal hashing very slow, could be cached

2012-04-05 Thread James Hutchison
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

[issue14478] Decimal hashing very slow, could be cached

2012-04-02 Thread James Hutchison
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

[issue14478] Decimal hashing very slow, could be cached

2012-04-02 Thread James Hutchison
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

[issue14478] Decimal hashing very slow, could be cached

2012-04-02 Thread James Hutchison
James Hutchison jamesghutchi...@gmail.com added the comment: 100x should be e100 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14478

Need Help Using list items as output table names in MsACCESS

2012-03-28 Thread Cathy James
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 +

Re: concatenate function

2012-03-13 Thread James Elford
()# [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

Re: concatenate function

2012-03-13 Thread James Elford
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

Re: Raise X or Raise X()?

2012-03-12 Thread James Elford
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

[issue14209] pkgutil.iter_zipimport_modules ignores the prefix parameter for packages

2012-03-06 Thread James Pickering
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

Re: list comprehension question

2012-02-29 Thread James Broadhead
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

[issue14024] logging.Formatter Cache Prevents Exception Format Overriding

2012-02-15 Thread James Lekas
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

Re: Help about dictionary append

2012-02-05 Thread James Broadhead
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

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-01-24 Thread James Sanders
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

[issue13842] Cannot pickle Ellipsis or NotImplemented

2012-01-23 Thread James Sanders
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

[issue13678] way to prevent accidental variable overriding

2011-12-29 Thread James Hutchison
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

[issue13678] way to prevent accidental variable overriding

2011-12-29 Thread James Hutchison
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

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

2011-12-28 Thread James B
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

Re: text to html

2011-12-14 Thread James Mills
-Type: text/plain cheers James -- http://mail.python.org/mailman/listinfo/python-list

[issue1757072] Zipfile robustness

2011-12-14 Thread James C. Ahlstrom
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

[issue13602] format string '%b' doesn't work as expected

2011-12-14 Thread James Classen
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

[issue13602] format string '%b' doesn't work as expected

2011-12-14 Thread James Classen
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

[issue1757072] Zipfile robustness

2011-12-09 Thread James C. Ahlstrom
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

[issue1757072] Zipfile robustness

2011-12-09 Thread James C. Ahlstrom
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

[issue1757072] Zipfile robustness

2011-12-08 Thread James C. Ahlstrom
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

[issue5364] documentation in epub format

2011-12-05 Thread James Polley
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

[issue5364] documentation in epub format

2011-12-04 Thread James Polley
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

Re: JSONBOT 0.80.3 RELEASED

2011-11-21 Thread James Matthews
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

Re: Multiple Threads - I/O in Same File

2011-11-21 Thread James Matthews
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

[issue13405] Add DTrace probes

2011-11-15 Thread James C. McPherson
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

[issue1681674] subprocess.Popen fails with socket._fileobject on Windows

2011-10-28 Thread James Burgess
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

Re: Problem using execvp

2011-10-27 Thread James Housden
, [ProcessName]]) -- HansM Hello, This worked for me: os.execvp(./Launch.py, [python, ProcessName]) Best regards, James -- http://mail.python.org/mailman/listinfo/python-list

Re: Language Enhancement Idea to help with multi-processing (your opinions please)

2011-10-13 Thread Rhodri James
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

Re: Is there any way to access attributes from an imported module?

2011-10-03 Thread 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

Re: Is there any way to access attributes from an imported module?

2011-10-02 Thread Rhodri James
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

Re: stackoverflow and c.l.py

2011-09-14 Thread Rhodri James
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

Re: How do I automate the removal of all non-ascii characters from my code?

2011-09-12 Thread Rhodri James
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

Re: optionparse: how to add a line break to the help text

2011-09-10 Thread Rhodri James
, 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

Re: Create an index from a webpage [RANT, DNFTT]

2011-09-08 Thread Rhodri James
straightforward. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-19 Thread James Y Knight
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

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-19 Thread James Y Knight
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

Re: List spam

2011-08-18 Thread Rhodri James
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

Re: Word Perfect integration

2011-08-18 Thread Rhodri James
, 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

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-18 Thread James Y Knight
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

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-18 Thread James Y Knight
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

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-18 Thread James Y Knight
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

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-17 Thread James Y Knight
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

Re: Problem installing 3.2.1 on a Linux server

2011-08-14 Thread John S James
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

Problem installing 3.2.1 on a Linux server

2011-08-06 Thread John S James
-- John S. James www.RepliCounts.org -- http://mail.python.org/mailman/listinfo/python-list

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-05 Thread James Y Knight
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

Re: Community Involvement

2011-08-04 Thread Rhodri James
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

Re: test systems

2011-08-01 Thread James Matthews
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 Help with vertical histogram

2011-07-11 Thread Cathy James
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,

[ANN]: circuits 1.6 [oceans] (Lightweight Event driven Asynchronous Application Framework)

2011-06-27 Thread James Mills
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

Struggling with sorted dict of word lengths and count

2011-06-27 Thread Cathy James
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

search through this list's email archives

2011-06-23 Thread Cathy James
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

Re: doing cross platform file work

2011-06-23 Thread Rhodri James
to them. -- Rhodri James *-* Wildebeest Herder to the Masses -- http://mail.python.org/mailman/listinfo/python-list

NEED HELP-process words in a text file

2011-06-18 Thread Cathy James
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:(

print header for output

2011-06-18 Thread Cathy James
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

Of Functions, Objects, and Methods-I NEED HELP PLEASE

2011-06-08 Thread Cathy James
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

Re: announcing: dmangame: an ai game. maybe.

2011-06-06 Thread James Mills
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

Re: Programmer font

2011-06-05 Thread James Mills
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

Newby Python help needed with functions

2011-06-03 Thread Cathy James
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

<    5   6   7   8   9   10   11   12   13   14   >