Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
Thanks much for the useful suggestion, and also thanks for your sympathy and understanding of my plight! Bruce Sherwood On Sun, Jul 22, 2012 at 11:50 PM, Devin Jeanpierre jeanpierr...@gmail.com wrote: On Sun, Jul 22, 2012 at 7:14 PM, Bruce Sherwood bruce.sherw...@gmail.com wrote: (2) My hand

Re: A thread import problem

2012-07-23 Thread Bruce Sherwood
have made suggestions in this forum that fed into finding a solution. I'll put in a big plug for wxPython (wxpython.org), which is a great way to do cross-platform GUI development with Python. Bruce Sherwood userpoll.py Description: Binary data wxpoll.py Description: Binary data -- http

Re: A thread import problem

2012-07-22 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 5:47 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sat, 21 Jul 2012 17:10:05 -0600, Bruce Sherwood bruce.sherw...@gmail.com declaimed the following in gmane.comp.python.general: Thanks, but the problem I need to solve does not permit putting a function like

Re: A thread import problem

2012-07-22 Thread Bruce Sherwood
On Sun, Jul 22, 2012 at 3:48 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sun, 22 Jul 2012 13:04:25 -0600, Bruce Sherwood bruce.sherw...@gmail.com declaimed the following in gmane.comp.python.general: Another way of saying this is that I'm not building an app, in which case I would

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
import A, though now that you describe this (if that's indeed what you mean) it makes sense. The original instance of A won't get past its initial import statement because the main loop won't return to it. Bruce Sherwood On Sat, Jul 21, 2012 at 2:32 AM, Dieter Maurer die...@handshake.de wrote

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
that I'm doing something wrong! Incidentally, a simple test is to execute the file ABA.py, in which case everything works. Bruce Sherwood --- testABA.py -- execute this file from ABA import * print('exec testABA') from math import sin print(sin(3.14159/6

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
Thanks much for this clear statement. I hadn't managed to find any documentation on this specific issue. Bruce Sherwood On Sat, Jul 21, 2012 at 10:26 AM, Dave Angel d...@davea.name wrote: Two of the things you mustn't do during an import: 1) start or end any threads 2) import something

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 2:53 PM, Dave Angel d...@davea.name wrote: On 07/21/2012 04:36 PM, Bruce Sherwood wrote: Thanks much for this clear statement. I hadn't managed to find any documentation on this specific issue. Bruce Sherwood On Sat, Jul 21, 2012 at 10:26 AM, Dave Angel d

Re: A thread import problem

2012-07-21 Thread Bruce Sherwood
On Sat, Jul 21, 2012 at 4:16 PM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Sat, 21 Jul 2012 10:11:30 -0600, Bruce Sherwood bruce.sherw...@gmail.com declaimed the following in gmane.comp.python.general: --- testABA.py -- execute this file from ABA import

Re: A thread import problem

2012-07-20 Thread Bruce Sherwood
environment, with the user's program running in a secondary thread. Any ideas? Bruce Sherwood On Wed, Jul 18, 2012 at 5:03 PM, Bruce Sherwood bruce.sherw...@gmail.com wrote: I'm trying to do something rather tricky, in which a program imports a module that starts a thread that exec's a (possibly altered

A thread import problem

2012-07-18 Thread Bruce Sherwood
versions of the exec statement, with respect to its global and local environment. Can anyone explain why the math import statement causes a problem? Thanks for any advice you can give. Bruce Sherwood --- The main program: from import_test import * print('exec this file

Inheriting from OrderedDict causes problem

2012-02-22 Thread Bruce Eckel
Notice that both classes are identical, except that one inherits from dict (and works) and the other inherits from OrderedDict and fails. Has anyone seen this before? Thanks. import collections class Y(dict): def __init__(self, stuff): for k, v in stuff: self[k] = v #

Re: Inheriting from OrderedDict causes problem

2012-02-22 Thread Bruce Eckel
On Feb 22, 10:10 am, Peter Otten __pete...@web.de wrote: Looks like invoking OrderedDict.__init__() is necessary: from collections import OrderedDict class X(OrderedDict): ...     def __init__(self, stuff): ...             super(X, self).__init__() ...             for k, v in stuff: ...

Python code file prototype

2012-02-17 Thread Bruce Eckel
I finally figured out how to set up the Windows explorer's right-click new so that it will create Python files. Here's how: http://superuser.com/questions/34704/windows-7-add-an-item-to-new-context-menu There's an option when you do this to insert default file contents, so I began searching the

Re: Python code file prototype

2012-02-17 Thread Bruce Eckel
        Of course, since the OP was talking Windows... the #! line is ignored no matter where it was G Yes, but I use Windows, Mac and Linux so I'm searching for something universal. -- http://mail.python.org/mailman/listinfo/python-list

Re: Automatic Type Conversion to String

2012-02-15 Thread Bruce Eckel
Could it be that you missed the fact that strings are immutable? That means that you can't change the content of the object once it is initialized. In particular, it means that you e.g. have to override __new__ instead of __init__, because the content is already fixed when the latter is

Automatic Type Conversion to String

2012-02-13 Thread Bruce Eckel
(): First draft tests are Windows-based import platform assert platform.system() == 'Windows' class test_paths(): def setUp(self): self.paths = [ (C:\\), (C:\\, Users, Bruce Eckel, Downloads, AtomicScala.zip), (C:\\, Users, Bruce Eckel, Dropbox

Re: Automatic Type Conversion to String

2012-02-13 Thread Bruce Eckel
I'm willing to subclass str, but when I tried it before it became a little confusing -- I think mostly because anytime I assigned to self it seemed like it converted the whole object to a str rather than a Path. I suspect I don't know the proper idiom for doing this -- any hints? Thanks ... --

generating unique set of dicts from a list of dicts

2012-01-10 Thread bruce
trying to figure out how to generate a unique set of dicts from a json/list of dicts. initial list ::: [{pStart1a: {termVal:1122,termMenu:CLASS_SRCH_WRK2_STRM,instVal:OSUSI, instMenu:CLASS_SRCH_WRK2_INSTITUTION,goBtn:CLASS_SRCH_WRK2_SSR_PB_SRCH,

pythoncom on Windows Server 2008

2011-11-29 Thread Nairn, Bruce
! Bruce Nairn King County Wastewater Treatment Division 201 S Jackson St., KSC-NR-0503 Seattle, WA, 98104-3855 206-263-3693 email: bruce.na...@kingcounty.govmailto:bruce.na...@kingcounty.gov -- http://mail.python.org/mailman/listinfo/python-list

[issue12632] Python 3 doesn't support cp65001 as the OEM code page

2011-09-30 Thread Bruce Ferris
Bruce Ferris bferri...@bferris.co.uk added the comment: The PYTHONIOENCODING=utf-8 setting works great if I have code page 65001 set. I haven't, however, done a complete console functionality check with that setting but, thanks for the input -- it solves the current problem I'm experiencing

libxml2dom quesiton

2011-09-14 Thread bruce
Hi. Test question. Trying to see how to insert a test node into an existing dom tree. For the test, it has a TR/TD with a td[@class=foo] that has an associated TR.. Trying to figure out how out how to insert a DIV/DIV around the tr/td in question... Curious as to how to accomplish this.

Re: [Python-ideas] allow line break at operators

2011-08-11 Thread Bruce Leban
+0 on this. I'd use it but does it really add enough convenience? --- Bruce Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] allow line break at operators

2011-08-11 Thread Bruce Leban
spliced together. --- Bruce Follow me: http://www.twitter.com/Vroo http://www.vroospeak.com -- http://mail.python.org/mailman/listinfo/python-list

[issue12632] Windows GPF with Code Page 65001

2011-07-26 Thread Bruce Ferris
Bruce Ferris bferri...@bferris.co.uk added the comment: Victor, thanks for replying and I've had a quick read of everything that went on for issue #1602. I think there's some misunderstanding in what I'm saying here. Maybe this will help clear up what I'm saying... D:\chcp Active code

[issue12632] Windows GPF with Code Page 65001

2011-07-25 Thread Bruce Ferris
Bruce Ferris bferri...@bferris.co.uk added the comment: I use code page 65001 because 1) it displays the UTF-8 characters in my text files with echo filename on the command line, and 2) that's Microsoft's official (whatever that means) code page for UTF-8, and 3) it works in cmd.exe. Setting

[issue12632] Windows GPF with Code Page 65001

2011-07-25 Thread Bruce Ferris
Bruce Ferris bferri...@bferris.co.uk added the comment: I disagree with the it's not really a GPF since it calls Abort. Consider the following cmd.exe session... Microsoft Windows [Version 6.0.6002] Copyright (c) 2006 Microsoft Corporation. All rights reserved. D:\chcp 65001 Active

[issue12632] Windows GPF with Code Page 65001

2011-07-24 Thread Bruce Ferris
New submission from Bruce Ferris bferri...@bferris.co.uk: The following scenario GPFs on Windows Vista using cmd.exe... D:\python Python 3.1.2 (r312:79149, Mar 21 2010, 00:41:52) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. ^Z

[issue12632] Windows GPF with Code Page 65001

2011-07-24 Thread Bruce Ferris
Changes by Bruce Ferris bferri...@bferris.co.uk: -- type: - crash ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12632 ___ ___ Python-bugs-list

Re: Newbie help - Programming the Semantic Web with Python

2011-07-16 Thread Bruce Whealton
those included modules would have to get compiled with the rest of the code for it to work, right? Bruce -Original Message- From: Chris Angelico Sent: Saturday, July 09, 2011 10:10 PM To: python-list@python.org Subject: Re: Newbie help - Programming the Semantic Web with Python On Sun, Jul

Re: Newbie help - Programming the Semantic Web with Python

2011-07-11 Thread Bruce Whealton
a link to where the code exists. Could someone help me figure it out please. The code is here on the site: http://semprog.com/content/the-book/ I wonder if I can also try it out from the IDLE interactive session. Thanks, Bruce On Sun, Jul 10, 2011 at 11:32 AM, Bruce Whealton br

Re: Newbie help - Programming the Semantic Web with Python

2011-07-10 Thread Bruce Whealton
don't know if I should look for Python applications, or if I'll have more luck looking for Python Libraries. Thanks, Bruce -Original Message- From: Andrew Berg Sent: Saturday, July 09, 2011 10:44 PM To: comp.lang.python Subject: Re: Newbie help - Programming the Semantic Web with Python

Newbie help - Programming the Semantic Web with Python

2011-07-09 Thread Bruce Whealton
IDLE, I can just use from simplegraph import SimpleGraph That means it is going to look for a file named simplegraph.py but where will it be looking? I guess I would have to have it in the same folder as the python interpreter or one of the PATH directories, right? Thanks, Bruce

Re: How to program in Python to run system commands in 1000s of servers

2011-04-06 Thread bruce bushby
Hi Roy Two things you can look at: func https://fedorahosted.org/func/ mcollective http://docs.puppetlabs.com/mcollective/ On Wed, Apr 6, 2011 at 2:24 AM, Roy Smith r...@panix.com wrote: In article mailman.52.1302022780.9059.python-l...@python.org, geremy condra debat...@gmail.com

python 2.7.1 serial vs pyserial

2011-03-25 Thread bruce bushby
(size=None, eol=chr(13)) . whereas I can only ser.readline() without any keywords or arguments. Thanks Bruce -- http://mail.python.org/mailman/listinfo/python-list

Re: Validating Command Line Options

2011-03-23 Thread bruce bushby
optparse? http://docs.python.org/library/optparse.html if options.a and options.b: parser.error(options -a and -b are mutually exclusive) On Wed, Mar 23, 2011 at 2:10 PM, T misceveryth...@gmail.com wrote: For a Python script with multiple command line options, what is the best way to

readline module (python: symbol 'tgetnum': can't resolve symbol)

2011-03-23 Thread bruce bushby
Hi I'm hoping the list could give me some insight into how python behaves when it has been compiled with readline. I sent the following email to the uClibc list which describes my problem, any tips or pointers would be much appreciated! Thanks Bruce Using buildroot, I am able

Re: file print extra spaces

2011-03-22 Thread bruce bushby
), to prevent the carriage return from print, but ideally you should clean up the line if it's contaminated without unexpected characters. Bruce On Wed, Mar 23, 2011 at 1:33 AM, monkeys paw mon...@joemoney.net wrote: When i open a file in python, and then print the contents line by line

Re: organizing many python scripts, in a large corporate environment.

2011-03-14 Thread bruce bushby
I'm probably going off on a tangent here..but has anybody seen any efforts to allow python to import modules via a socket ...rather then just a dir path ? On Mon, Mar 14, 2011 at 7:56 PM, eryksun () eryk...@gmail.com wrote: On Monday, March 14, 2011 9:45:51 AM UTC-4, eryksun () wrote:

embedded python 2.7.1 slow startup

2011-03-08 Thread bruce bushby
execution time. I was wondering if there is a way to prevent python from attempting to open files I know are not there? Thanks Bruce # strace -ce trace=open ./fib.py 1 1 2 3 5 8 13 21 34 55 89 144 % time seconds usecs/call callserrors syscall

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2011-01-03 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Thanks for the reassurance, Ned. I would be happy to help, but frankly I don't know my way around in IDLE very well, and I pretty much tried simply to get Polo's changes into the hopper. Presumably if you want a view of the separate

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Yes. After installation, you'll see that Python 3.1 is in /Library/Frameworks/Python.framework/Versions/3.1 Bruce Sherwood On Tue, Nov 2, 2010 at 1:45 PM, Éric Araujo rep...@bugs.python.org wrote: Éric Araujo mer...@netwok.org added

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Now I understand what you're getting at; I didn't realize that you were aiming at the possible distinction between 3 and 3.1. Yes, this is what bothered me and prompted my original posting. Python 3.1 goes into the same framework

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-11-02 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Thanks for the detailed explanation. What had not occurred to me was to read the README file that came with the installer. I made the mistake (that may be made by others) of assuming continuity with installer policy, especially since

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-10-27 Thread Bruce Sherwood
New submission from Bruce Sherwood bruce.sherw...@gmail.com: For Python 2.x on Macs, the installer added PATH code to .profile and switched /Library/Framework/Python.framework/Versions/Current to point to the newly installed version of Python. Neither of these actions is carried out

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-10-26 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Correction: distutils.get_python_lib() returns /usr/lib/python3/dist-packages (which does exist), while distutils.get_python_inc() returns /usr/include/python3.1. I don't understand the shadowy existence of some python3 files

[issue10196] distutils.get_python_lib() returns /usr/local/python3/dist-packages on Ubuntu 10.10

2010-10-25 Thread Bruce Sherwood
New submission from Bruce Sherwood bruce.sherw...@gmail.com: Using Python 3.1 installed on Ubuntu 10.10 from the package manager, distutils.get_python_lib() returns the nonexistent location /usr/local/python3/dist-packages instead of the correct location /usr/local/python3.1/dist-packages

[issue10137] Patch to IDLE for Python 2.7, at Guido's request

2010-10-18 Thread Bruce Sherwood
New submission from Bruce Sherwood bruce.sherw...@gmail.com: At Guido's request, I've carried out the same update to the IDLE distributed with Python 2.7 that I submitted for Python 3, to incorporate the work of Guilherme Polo in the Google Summer of Code 2009. Guido was concerned

[issue10137] Patch to IDLE for Python 2.7, at Guido's request

2010-10-18 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Perhaps I've used misleadingt terminology. What I meant is that I did do a diff between IDLE 2.7 and the result of Guilherme Polo's work, but the latter code started from Python 3 code and was modified as needed for 2.7 (e.g. renaming

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-18 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: At Guido's request, I've carried out the same update to the IDLE distributed with Python 2.7 that I submitted for Python 3, to incorporate the work of Guilherme Polo in the Google Summer of Code 2009. Guido was concerned

[issue10137] Patch to IDLE for Python 2.7, at Guido's request

2010-10-18 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: I've rebuilt and resubmitted this patch to Issue10079 as requested by Ned Deily. This issue (10137) can now be labeled a duplicate. -- ___ Python tracker rep...@bugs.python.org http

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-17 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: I found a couple of mistakes in the patch I submitted (places where vidle should have been idlelib, and which aren't addressed in Ned Deily's patch), so I've rebuilt the patch starting from the tag r32a3, which I assume is the version

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-14 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Thanks for catching the missing utils.py file. I can explain the missing/commented statement in IOBinding.py. I found experimentally that if that statement is present, when you open a file on Windows the first line is off the top

[issue10107] Quitting IDLE on Mac doesn't save unsaved code

2010-10-14 Thread Bruce Sherwood
New submission from Bruce Sherwood bruce.sherw...@gmail.com: It has just been discovered that at least since Python 2.6 on the Mac, quitting IDLE does not prompt to save unsaved code, which is then lost. The recently submitted diff for bringing Guilherme Polo's Google Summer of Code

[issue8900] IDLE crashes if Preference set to At Startup - Open Edit Window

2010-10-14 Thread Bruce Sherwood
Bruce Sherwood bruce.sherw...@gmail.com added the comment: Putting print statements in that part of the world shows that the reason why the list.remove fails is that while a ColorDelegator.toggle_colorize_event object is in the list, it has a different memory address than

[issue10079] idlelib for Python 3 with Guilherme Polo GSoC enhancements

2010-10-12 Thread Bruce Sherwood
New submission from Bruce Sherwood bruce.sherw...@gmail.com: It is proposed to incorporate the work of Guilherme Polo in the 2009 Google Summer of Code into idlelib. Polo's enhancements have been extensively tested for a year through being included with VPython. Here is a description from

Re: Clarification of notation

2010-09-30 Thread Bruce W.
So, this kind of notation would be different: args[0][2] verses args[[0][2]] the latter is multidimensional. Can you think of example of using this type of list? I don't know why this had me a bit confused. I've got to get into programming more... I had done more in the past. Bruce

Re: Having problem with subclass

2010-09-30 Thread Bruce Pearson
Try: import A class Bclass(A.Aclass) ...rest of code On 1/10/2010 9:54 AM, tekion wrote: All, I have file name A.py with a class name Aclass. I have a file name B.py with sub class of Aclass, like import A class Bclass(Aclass) ...rest of code When I test it, calling B.py, I am getting: class

Clarification of notation

2010-09-29 Thread Bruce Whealton
. Is this a nesting of two lists inside a a third list? I know that it would suggest that some of the arguments are optional, so perhaps if there are 2 items the first is the sub, and the second is start? Or did I read that backwards? Thanks, Bruce -- http://mail.python.org/mailman/listinfo/python-list

mysqldb - parameter issue

2010-08-11 Thread bruce
hi... using python v2.6, using the mysqldb lib the test tbl looks like: DROP TABLE IF EXISTS `functionError_TBL`; CREATE TABLE `functionError_TBL` ( `parentFunction` varchar(100) NOT NULL default '', `currentFunction` varchar(100) NOT NULL default '', `parentFunctionID` int(10) NOT NULL

Re: mysqldb - parameter issue

2010-08-11 Thread bruce
(errorStatus, CollegeID, processTime) values (%s, %s, from_unixtime(%s) ) On Wed, Aug 11, 2010 at 9:53 AM, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Wed, 11 Aug 2010 08:08:21 -0700, bruce badoug...@gmail.com declaimed the following

whitespace in a word doc

2010-07-15 Thread Bruce
I'm trying to create a word doc using win32com. I don't get the same whitespace as when printing the same stuff in the dos window. At the terminal I manage to line up the second column like apples 5 pears7 I do this by adding whitespace characters to the strings in the first

Re: whitespace in a word doc

2010-07-15 Thread Bruce
On Jul 15, 9:59 am, Tim Golden m...@timgolden.me.uk wrote: On 15/07/2010 08:45, Bruce wrote: I'm trying to create a word doc using win32com. I don't get the same whitespace as when printing the same stuff in the dos window. At the terminal I manage to line up the second column like

[issue8515] idle Run Module (F5) does not set __file__ variable

2010-06-11 Thread Bruce Frederiksen
Bruce Frederiksen dangy...@gmail.com added the comment: No, IDLE compiles the module (with the 'compile' built-in using the 'exec' option) and then does an 'exec' on the code (in PyShell.py). It has several lines of code that it runs before this exec to prepare the environment that the code

[issue4806] Function calls taking a generator as star argument can mask TypeErrors in the generator

2010-05-03 Thread Bruce Frederiksen
Bruce Frederiksen dangy...@gmail.com added the comment: I have also hit this error. I went to report it but found it already entered (good news), but not resolved from nearly a year ago (bad news). The error masked another bug that I had in my program and it took me quite awhile to figure

[issue8515] idle Run Module (F5) does not set __file__ variable

2010-04-23 Thread Bruce Frederiksen
New submission from Bruce Frederiksen dangy...@gmail.com: The python CLI always sets the __file__ variable, whether run as: $ python foobar.py or $ python -m foobar or $ python import foobar # __file__ set in foobar module The idle program sets the __file__ variable properly when you do

[issue8256] TypeError: bad argument type for built-in operation

2010-03-28 Thread Bruce Frederiksen
New submission from Bruce Frederiksen dangy...@gmail.com: I'm getting a TypeError: bad argument type for built-in operation on a print() with no arguments. This seems to be a problem in both 3.1 and 3.1.2 (haven't tried 3.1.1). I've narrowed the problem down in a very small demo program

Re: Your beloved python features

2010-02-06 Thread Bruce C. Baker
Terry Reedy tjre...@udel.edu wrote in message news:mailman.1929.1265328905.28905.python-l...@python.org... Iterators, and in particular, generators. A killer feature. Terry Jan Reedy Neither unique to Python. And then're the other killer features superfluous :s and rigid formatting! --

Re: Your beloved python features

2010-02-05 Thread Bruce C. Baker
George Sakkis george.sak...@gmail.com wrote in message news:de06116c-e77c-47c4-982d-62b48bca5...@j31g2000yqa.googlegroups.com... I'll give the benefit of doubt and assume you're joking rather than trolling. George * Not trolling,

[no subject]

2009-12-21 Thread bruce
hi... the following sample is an attempt to fetch two subsequent pages from a sameple site. (it's public) the script attempts to implement a request, using the POST method, as well as as cookies. Testing using LiveHttpHeaders/Firefox indicates that the app uses post/cookies, and it doesn't work

python - fetching, post, cookie question

2009-12-21 Thread bruce
hi... the following sample is an attempt to fetch two subsequent pages from a sameple site. (it's public) the script attempts to implement a request, using the POST method, as well as as cookies. Testing using LiveHttpHeaders/Firefox indicates that the app uses post/cookies, and it doesn't work

[issue7106] Python crashed in the middle of an argument between wx and boa_constructor

2009-10-11 Thread Bruce vanNorman
New submission from Bruce vanNorman brucevannor...@gmail.com: I don't know where this problem truly belongs, but Python did crash. - I was trying to save my boa project when the event occurred. - The software versions are correctly identified in the bugreport -- components: Extension

[issue7106] Python crashed in the middle of an argument between wx and boa_constructor

2009-10-11 Thread Bruce vanNorman
Bruce vanNorman brucevannor...@gmail.com added the comment: Roger that, and thanks. I've just started learning Python this summer. Before I retired I spent 20 years supporting maintaining a rather specialized programming language that was a component of something called EIS (Boeing

Re: Why does this group have so much spam?

2009-08-29 Thread Bruce C. Baker
casebash walkr...@gmail.com wrote in message news:7294bf8b-9819-4b6d-92b2-afc1c8042...@x6g2000prc.googlegroups.com... So much of it could be removed even by simple keyword filtering. Assuming this is a serious question: 1. comp.lang.python has relatively little spam, compared to others. 2.

Re: What python can NOT do?

2009-08-28 Thread Bruce C. Baker
qwe rty hkh00...@gmail.com wrote in message news:00a36f89-52dd-4d90-a455-cee6a0c9d...@q5g2000yqh.googlegroups.com... i know that an interpreted language like python can't be used to make an operating system or system drivers. what else can NOT be done in python? what are the limitations of

Re: python doc available in emacs info format?

2009-08-17 Thread Bruce Stephens
Colin S. Miller no-spam-thank-...@csmiller.demon.co.uk writes: [...] Ubuntu maintains a package search site, it is on http://packages.ubuntu.com/ However, there seems to be no files named python.*info (regexp) And yet there are info files in python2.5-doc:

Re: AP -- MeAmI.org Paces Google

2009-07-10 Thread Bruce C. Baker
Floetry scribe...@yahoo.com wrote in message news:803a7f06-8e43-4ff5-86a6-9fd9d2eee...@2g2000prl.googlegroups.com... On Jul 9, 8:33 pm, Bruce C. Baker b...@undisclosedlocation.net wrote: scribe...@yahoo.com wrote in message news:defacf35-6149-485a-8f03-15472d63d

Re: AP -- MeAmI.org Paces Google

2009-07-10 Thread Bruce C. Baker
Musatov marty.musa...@gmail.com wrote in message news:fe9969b0-3c6a-49f7-8f38-0ed89dc9a...@x6g2000prc.googlegroups.com... [snip-a-rooney] violator. Google could not be reached for comment. Possibly because they were laughing so hard they couldn't hear their cell phones ringing ...? --

Re: language analysis to enforce code standards

2009-07-09 Thread Bruce C. Baker
Jason S. Friedman ja...@powerpull.net wrote in message news:mailman.2927.1247192026.8015.python-l...@python.org... Hello, I administer the Informatica ETL tool at my company. Part of that role involves creating and enforcing standards. I want the Informatica developers to add comments to

Re: AP -- MeAmI.org Paces Google

2009-07-09 Thread Bruce C. Baker
scribe...@yahoo.com wrote in message news:defacf35-6149-485a-8f03-15472d63d...@a39g2000pre.googlegroups.com... ka-snip Oh, puh-LEEZ, Martin! A two-year-old wouldn't be fooled by this! -- http://mail.python.org/mailman/listinfo/python-list

Use of Unicode in Python 2.5 source code literals

2009-05-03 Thread Uncle Bruce
, in the Windows version of Python, how can I tell if it was compiled to support 16 bits of Unicode or 32 bits of Unicode? Bruce in Toronto -- http://mail.python.org/mailman/listinfo/python-list

Re: Use of Unicode in Python 2.5 source code literals

2009-05-03 Thread Uncle Bruce
On May 3, 7:37 am, Matt Nordhoff mnordh...@mattnordhoff.com wrote: Uncle Bruce wrote: snip -- I think I've figured it out! What I was trying to do was to enter the literal strings directly into the IDLE interpreter. The IDLE interpreter will not accept high codepoints directly. However, when

RE: Open source web crawler with mysql integration

2009-04-10 Thread bruce
phillip... lots of code is opened source as is!!! when you get right down to it, a good deal of open source code from sourceforge/hotscritps/freshmeat/etc.. is pretty poor, but it is open sourced. you could simply toss your code out into the open source pool, and not be worried about supporting

RE: is this possible (getting info off web page)

2009-04-09 Thread bruce
Hi Esmail. I've not looked at the site. however, i can give you some general pointers that might help you in solving your issue. first off, try to accomplish your goal, using curl, or one of the other cmdline apps that fetch page data. this allows you to quickly nail down any issues that might

Re: Ban Xah Lee

2009-03-20 Thread Bruce C. Miller
On Mar 7, 6:52 pm, Xah Lee xah...@gmail.com wrote: Of interest: • Why Can't You Be Normal? Though I doubt this will do any good, I'll offer some advice that hasn't been mentioned here and solved a lot of the problems I've had early in life with resistance to overly-emotional negative reactions

RE: Parsing/Crawler Questions - solution

2009-03-07 Thread bruce
and this solution will somehow allow a user to create a web parsing/scraping app for parising links, and javascript from a web page? -Original Message- From: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on

RE: Parsing/Crawler Questions..

2009-03-05 Thread bruce
: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of John Nagle Sent: Wednesday, March 04, 2009 10:23 PM To: python-list@python.org Subject: Re: Parsing/Crawler Questions.. bruce wrote: hi phillip... thanks for taking

RE: Parsing/Crawler Questions..

2009-03-05 Thread bruce
: Thursday, March 05, 2009 8:38 AM To: python-list@python.org Subject: Re: Parsing/Crawler Questions.. bruce wrote: hi john.. You're missing the issue, so a little clarification... I've got a number of test parsers that point to a given classlist site.. the scripts work. the issue that one faces

RE: Parsing/Crawler Questions - solution

2009-03-05 Thread bruce
Semanchuk wrote: On Mar 5, 2009, at 12:31 PM, bruce wrote: hi.. the url i'm focusing on is irrelevant to the issue i'm trying to solve at this time. Not if we're to understand the situation you're trying to describe. From what I can tell, you're saying that the target site displays

RE: Parsing/Crawler Questions - solution

2009-03-05 Thread bruce
, 2009 10:54 AM To: python-list@python.org Subject: Re: Parsing/Crawler Questions - solution Philip Semanchuk wrote: On Mar 5, 2009, at 12:31 PM, bruce wrote: hi.. the url i'm focusing on is irrelevant to the issue i'm trying to solve at this time. Not if we're to understand the situation

Parsing/Crawler Questions..

2009-03-04 Thread bruce
Hi... Sorry that this is a bit off track. Ok, maybe way off track! But I don't have anyone to bounce this off of.. I'm working on a crawling project, crawling a college website, to extract course/class information. I've built a quick test app in python to crawl the site. I crawl at the top

RE: Parsing/Crawler Questions..

2009-03-04 Thread bruce
+bedouglas=earthlink@python.org]on Behalf Of Philip Semanchuk Sent: Wednesday, March 04, 2009 6:15 PM To: python-list (General) Subject: Re: Parsing/Crawler Questions.. On Mar 4, 2009, at 4:44 PM, bruce wrote: Hi... Sorry that this is a bit off track. Ok, maybe way off track! But I don't have

RE: file locking...

2009-03-03 Thread bruce
: Subject: Re: file locking... On Sun, 1 Mar 2009 10:00:54 -0800, bruce bedoug...@earthlink.net declaimed the following in comp.lang.python: Except in my situation.. the client has no knowledge of the filenaming situation, and i might have 1000s of files... think of the FIFO, first in, first out

RE: file locking...

2009-03-02 Thread bruce
[mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Lawrence D'Oliveiro Sent: Monday, March 02, 2009 12:29 AM To: python-list@python.org Subject: RE: file locking... In message mailman.1004.1235929208.11746.python-l...@python.org, bruce wrote: using any kind of file locking

RE: file locking...

2009-03-01 Thread bruce
-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of MRAB Sent: Sunday, March 01, 2009 8:04 AM To: python-list@python.org Subject: Re: file locking... bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve

RE: file locking...

2009-03-01 Thread bruce
]on Behalf Of Nigel Rantor Sent: Sunday, March 01, 2009 2:00 AM To: koranthala Cc: python-list@python.org Subject: Re: file locking... koranthala wrote: On Mar 1, 2:28 pm, Nigel Rantor wig...@wiggly.org wrote: bruce wrote: Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking

RE: file locking...

2009-03-01 Thread bruce
Sent: Sunday, March 01, 2009 9:50 AM To: python-list@python.org Subject: Re: file locking... En Sun, 01 Mar 2009 15:39:56 -0200, bruce bedoug...@earthlink.net escribió: the issue that i'm looking at is analogous to a FIFO, where i have lots of files being shoved in a dir from different

file locking...

2009-02-28 Thread bruce
Hi. Got a bit of a question/issue that I'm trying to resolve. I'm asking this of a few groups so bear with me. I'm considering a situation where I have multiple processes running, and each process is going to access a number of files in a dir. Each process accesses a unique group of files, and

pythojn/xpath question...

2009-02-16 Thread bruce
hi... using libxml2dom as the xpath lib i've got a situation where i can have: foo=a.xpath( /html/body/table[2]/tr[45]/td) and i can get 11 as the number of returned td elements for the 45th row... this is as it should be. however, if i do: foo=a.xpath( /html/body/table[2]/tr) and then try

testing xml against xpather with firefox

2009-02-15 Thread bruce
the code/output/XPather xpath to pastebin to save space.. i can send everything i have to whoever can help!! http://pastebin.com/m26acf804 thanks! -bruce -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   >