Determine attributes of calling method

2011-06-03 Thread Joe
n't know how to do it :( """ print "bar" s=BlueServer() c=Client(s) print c.foo.color print c.fu.color c.foo() c.fu() Thanks for your help! Joe -- http://mail.python.org/mailman/listinfo/python-list

adodbapi integer parameters and MS Access

2011-03-13 Thread Joe
Here is my environment: Windows 7 x64 SP1 Python 3.2 adodbapi 2.4.2 MS Access Although the above environment is what I am currently using I have encountered this same problem with Python 3.1.1. It is not a problem with Python 2.x. The problem is as follows: If you are using a select statement

Multimeter USB output

2016-08-27 Thread Joe
read timeout) File "D:\Python3\Lib\site-packages\usb\backend\libusb1.py", line 936, in __read _check(retval) File "D:\Python3\Lib\site-packages\usb\backend\libusb1.py", line 595, in _check raise USBError(_strerror(ret), ret, _libusb_errno[ret]) usb.core.USBError: [Errno 10060] Operation timed out What's wrong? How to fix? Regards -- Joe -- https://mail.python.org/mailman/listinfo/python-list

Multimeter USB output

2016-08-28 Thread Joe
Am 28.08.2016 um 00:45 schrieb Terry Reedy: > On 8/27/2016 3:35 PM, Joe wrote: >> Hi, >> >> I'm using Python 3.5.1 with PyUSB 1.0 under Win 10 (64). We try to read >> the USB output of a DMM 'UT61B'. >> >> import usb.core >> i

Re: Is duck-typing misnamed?

2016-08-28 Thread Joe
Am 28.08.2016 um 00:34 schrieb Terry Reedy: On 8/26/2016 7:58 PM, ROGER GRAYDON CHRISTMAN wrote: "If it walks like a duck, quacks like a duck,... " so there is indeed precedence for this so-called 'duck typing' but wouldn't it be more Pythonic to call this 'witch typing'? "How do you know sh

Re: Multimeter USB output

2016-08-29 Thread Joe
Am 28.08.2016 um 17:22 schrieb Dennis Lee Bieber: If you can read spaghetti coded C, you might want to study https://sourceforge.net/projects/ut61/ Interesting, but... The last time I did something with c, it was with BDS-C under CM/M. Somebody remenbering this no-fp compiler from the dark ag

Re: Multimeter USB output

2016-08-29 Thread Joe
Am 29.08.2016 um 10:54 schrieb Joe: it was with BDS-C under CM/M. under CP/M, of course. -- https://mail.python.org/mailman/listinfo/python-list

Re: Multimeter USB output

2016-08-30 Thread Joe
Am 30.08.2016 um 06:24 schrieb Paul Rubin: Larry Hudson writes: with BDS-C under CP/M. Somebody remenbering this no-fp compiler from the dark age before PC und Linux? I remember it well. It's what I used to initially learn C. Source code is online here: http://www.bdsoft.com/resources/bdsc

Re: Multimeter USB output

2016-08-30 Thread Joe
Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: I remember it well. It's what I used to initially learn C. I'm a completely self-taught, hobby programmer. Been around since the MITS Altair. How many remember that beast?

Re: [OT] Altair

2016-08-30 Thread Joe
Am 30.08.2016 um 17:52 schrieb D'Arcy J.M. Cain: On Tue, 30 Aug 2016 15:56:07 +0200 Joe wrote: Am 30.08.2016 um 13:01 schrieb D'Arcy J.M. Cain: On Mon, 29 Aug 2016 21:21:05 -0700 Larry Hudson via Python-list wrote: I remember it well. It's what I used to initially

Find the number of robots needed to walk through the rectangular grid

2016-04-09 Thread Joe
How to find the number of robots needed to walk through the rectangular grid The movement of a robot in the field is divided into successive steps In one step a robot can move either horizontally or vertically (in one row or in one column of cells) by some number of cells A robot can move in one

Re: Find the number of robots needed to walk through the rectangular grid

2016-04-09 Thread Joe
On Saturday, 9 April 2016 18:44:20 UTC+2, Ian wrote: > On Sat, Apr 9, 2016 at 8:18 AM, Joe wrote: > > How to find the number of robots needed to walk through the rectangular grid > > The movement of a robot in the field is divided into successive steps > > > > In one s

Re: Find the number of robots needed to walk through the rectangular grid

2016-04-09 Thread Joe
On Saturday, 9 April 2016 21:24:02 UTC+2, Mark Lawrence wrote: > On 09/04/2016 18:13, Joe wrote: > > On Saturday, 9 April 2016 18:44:20 UTC+2, Ian wrote: > >> On Sat, Apr 9, 2016 at 8:18 AM, Joe wrote: > >>> How to find the number of robots needed to walk throu

Re: Find the number of robots needed to walk through the rectangular grid

2016-04-09 Thread Joe
On Saturday, 9 April 2016 21:55:50 UTC+2, Mark Lawrence wrote: > On 09/04/2016 20:41, Joe wrote: > > > > Sorry, I was desperate > > I deleted the post > > > > You didn't. This will be showing in the archives in several places, e.g > https://mail.py

Re: Microsoft Hatred FAQ

2005-10-15 Thread joe
on-marketing) reasons. I think I missed the connection. > > MS has a strong interest in making sure it's important > > to be running on one of their OSes. > > Maybe *they* do have a point :-). Which is? Joe -- Gort, klatu barada nikto -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-15 Thread joe
*does* matter. It doesn't matter which brand makes your > graphics card, since most stick close to the reference design of the > GPU chip supplier, yet people take the brand in consideration when > they buy. I don't think that's true, at least not yet. I recently bought a Compaq Presario, which came with XP installed. I wiped the disk and installed Linux, only to find that the hardware would only work under XP. So I then had to install network, video, sound etc cards to get it working. joe -- Gort, klatu barada nikto -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-16 Thread joe
you use to run, for example, > OpenOffice. Yet people pick a certain distribution. Why? Well, one > reason is that people like to belong to a group. So even if it > really doesn't matter which OS you are going to use to access a web > application, or even which browser, people wi

Re: Microsoft Hatred FAQ

2005-10-18 Thread joe
a different impression. I don't think he's careless or stupid, so I think he said that in order to create the impression in the minds of the people listening to the interview that he's responsible for the internet. That's just what politicians do, regardless of party affiliati

Re: Microsoft Hatred FAQ

2005-10-18 Thread joe
t created the impression that he was responsible for what existed then. Yes, he deserves credit for what he did. He nevertheless created a false impression in what he said. If he hadn't created that false impression, there would not have been any jokes about him. If all he said was what he actually did, this would never have been an issue. Joe -- Gort, klatu barada nikto -- http://mail.python.org/mailman/listinfo/python-list

How to extract a part of html file

2005-10-19 Thread Joe
I'm trying to extract part of html code from a tag to a tag code begins with and ends with TD> http://whatever/some.gif";> I was thinking of using a regular expression however I having hard time getting the desired string. I use htmlSource = urllib.urlopen("http://address/";) s = htmlSource.

Re: How to extract a part of html file

2005-10-20 Thread Joe
ike Meyer wrote: > Ben Finney <[EMAIL PROTECTED]> writes: > >> Joe <[EMAIL PROTECTED]> wrote: >>> I'm trying to extract part of html code from a tag to a tag >> For tag soup, use BeautifulSoup: >> http://www.crummy.com/software/BeautifulSoup/>

Re: IDE recommendation please

2005-10-22 Thread Joe
SPE is great I suggest you take a look at it http://www.stani.be/python/spe/ [EMAIL PROTECTED] wrote: >> On the Mac, I think the XCode integration you get with PyObjC is >> probably best. I know there are plugins for Eclipse but haven't tried >> any personally, so it's hard to make suggestions

downloading web images

2005-10-22 Thread Joe
I'm just wandering if I'm doing this correct way I'm trying to download an image and store it into a file this does the job, but created file does not apear to be an image, it works fine and I can open image, I'm just wandering if there is a better way of doing this. htmlSource=urllib.urlopen("ht

how to count and extract images

2005-10-23 Thread Joe
I'm trying to get the location of the image uisng start = s.find('Save File', start) fileName = s[start:stop] and then construct the url with the filename to download the image which works fine as cause every image has the Save File link and I can count number of images easy the problem is when

Re: Microsoft Hatred FAQ

2005-10-24 Thread joe
going to use? The way this seems to work in practice strikes me as questionable at best. Perhaps not illegal (IANAL so I don't know that) but certainly one-sided. For one example, see http://www.netcraft.com.au/geoffrey/toshiba.html joe -- Gort, klatu barada nikto -- http://mail.python.org/mailman/listinfo/python-list

Re: Microsoft Hatred FAQ

2005-10-25 Thread joe
ne worth worrying about, the MS business agreements are so draconian? Why would a company come up with such heavy handed agreements if it wasn't worried about competition? Yes, I know, they can do whatever they want, it's not a crime, etc. However when they use their market position to

Re: Microsoft Hatred FAQ

2005-10-25 Thread joe
Steven D'Aprano <[EMAIL PROTECTED]> writes: > On Tue, 25 Oct 2005 09:56:28 -0500, joe wrote: > > > Yes, I know, they can do whatever they want, it's not a crime, > > etc. However when they use their market position to disallow > > competition, it sounds to

PY2EXE => Is there a way to go backwards? EXE2PY

2005-07-13 Thread Joe
I have the executable of a script that I wrote, that has been erased. Is there any way to retrieve the uncompiled python script from the executable that was created with py2exe? Thank you, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Splitting on a word

2005-07-13 Thread Joe
# string s simulating an html file s='ffy: ytrty python fyt wx dtrtf' p=re.compile(r'\bhref\b',re.I) list=p.split(s) #<<<<<<<<<<<<<<<<< gets you your final list. good luck, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: PY2EXE => Is there a way to go backwards? EXE2PY

2005-07-13 Thread Joe
Thank you, Peter. Your point is well taken. We a control system, but I just never got around to using it. I think now I'll get a round to it. :) Thanks again, Joe -- http://mail.python.org/mailman/listinfo/python-list

Bug Report / Patch (1159139 cgi.py invalid REQUEST_METHOD set)

2005-07-26 Thread Joe
Back in March I submitted a patch for cgi.py to sourceforge to fix a problem with the handling of an invalid REQUEST_METHOD. I thought I followed all the steps to properly submit the bug and patch but the patch is still sitting there in limbo. This is the first patch I have submitted for Python

Re: Bug Report / Patch (1159139 cgi.py invalid REQUEST_METHOD set)

2005-07-26 Thread Joe
gi.py is going to handle that situation of a invalid REQUEST_METHOD by actually reading the values from sys.stdin (it already does this part) it should store them too (especially since it does store the values in the other two methods). Does that explain the issue more clearly? "Reinhold

Re: Jargons of Info Tech industry

2005-08-12 Thread joe
omeone stumbles across > > Xah's > > masterpieces in the future: > > Xah is very well known as the resident troll in many NGs and his > > 'contributions' are less then useless. > > He sent a lovely one to some of the language groups the other day, > explaining why Jonathan Swift was a poor writer. That's remarkable, considering he doesn't realize "jargon" is a collective noun. Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-25 Thread joe
and good reasons behind it. I don't see why it should be viewed as some kind of discussion ending dogmatism. Although it might not be bad if this discussion ended :-) Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-08-25 Thread joe
this thread or I'm misunderstanding some of it. If what the OP was trying to suggest was a more confined form of html, say, something that doesn't allow links, I'd consider that a good thing. I doubt anyone will use it though, I think MS wants all the bells and whistles, and all the e

Re: Big development in the GUI realm

2005-02-08 Thread Joe
ssue by specifying whether making use of a GPLed program _in any way_ requires the calling program to be GPLed as well, or if there are cases where the EXE can remain closed-source. I'm fine with TT's intentions, though. Joe (no, I don't want whatever stuff I post on the Net to possi

Re: ZoDB's capabilities

2005-02-28 Thread Joe
On Mon, 28 Feb 2005 23:31:27 +0100, Almad <[EMAIL PROTECTED]> wrote: >I'm going to write a custom CMS. I'd like to use some odbms, as code is then >much more cleaner... You should go ask for pratical infos on ZODB here: http://www.zope.org/Products/StandaloneZODB Joe. --

What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-02 Thread Joe
I'm using Python 2.4 on Windows XP SP2. I'm trying to receive a command line argument that is a newline (\n) Here is the command line to use sample.py "\n" Here is a sample.py script import sys c = sys.argv[1] # when run c is set to \\n instead of \n. I created a test batch file echo %1 t

mx.ODBC 2.0.7 bug?

2005-03-02 Thread Joe
Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, '[Microsoft][ODBC Microsoft Access Driver] String data, right truncated on column number 3 (Expr1002)', 3326) I believe that have found a bug

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-02 Thread Joe
Steve, THANKS! That is exactly what I was looking for but unable to find. Joe "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe wrote: >> It appears that Python treats the comand line string as a raw string. >> >> what is

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-03 Thread Joe
d interpreter to allow a multiline command line as you described. Your solution was exactly what I need. I had an escape sequence entered on the command line and needed to decode the string so that Python used it as an escape sequence, in fact the sequence really is part of the output that the pr

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-03 Thread Joe
Antoon, I tested the batch file :-) The one line batchfile does prove it because it prints out and not . See other post, decode is exactly what was needed to fix the problem. Regards, Joe "Antoon Pardon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >

Re: mx.ODBC 2.0.7 bug?

2005-03-03 Thread Joe
would be considered a bug or not? I would have expected that the converter hook would have also modified the description info to match what the converter hook did. Thanks again for your assistance. Regards, Joe > This is a very nice piece of deduction, and I am copying this message to &g

Re: What is the best way to handle a command line argument that includes an escape sequence like \n?

2005-03-03 Thread Joe
Hey no fair changing last names in the middle of a thread :-) Thanks to BOTH Steve's. > In fairness it was Steven Bethard's solution that gave you the solution > you needed. As long as ytour problem is solved, that's fine, and it > appears that you've solved it in a reasonably cross-platform w

python -i (interactive environment)

2005-03-06 Thread Joe
When you run "python -i scriptname.py" after the script completes you left at the interactive command prompt. Is there a way to have this occur from a running program? In other words can I just run scriptname.py (NOT python -i scriptname.py) and inside of scriptname.py I decide that I want to f

Re: python -i (interactive environment)

2005-03-06 Thread Joe
in message news:[EMAIL PROTECTED] > Very simple is you're on UNIX ... > > You juste have to put at the beginnin of your file : > > #!/usr/bin/python -i > > And it juste does what you want :) > > Pierre > > Joe a écrit : >> When you run "python

Re: python -i (interactive environment)

2005-03-06 Thread Joe
ECT'] = '1' "Michael Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe wrote: > >> I want the script to decide whether to fall back to the interactive >> prompt. You solution makes it ALWAYS fall back to the interactive p

Re: python -i (interactive environment)

2005-03-06 Thread Joe
Reinhold, Interesting. A key difference between the two is that PYTHONINSPECT will allow you access to the prompt at the end of your program (assuming no sys.exit or raise SystemExit) but code.interact() allows you to jump into the program at any point. "Reinhold Birkenfeld" <[EMAIL PROTECTE

Re: python -i (interactive environment)

2005-03-06 Thread Joe
or you could invoke it whenever you wanted too. This has the advantage that you can even trap SystemExit if you want too. Thanks again to everyone! "Michael Hoffman" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe wrote: > > Actually I would do that

Re: python -i (interactive environment)

2005-03-08 Thread Joe
Found that out :-( You can use the local=locals() option so at least you have access to the local variables, which in the case of debugging, is exactly what I needed. Since -i gives you control at the end of the program the locals are already gone. Seems like both approaches have their advanta

Re: python -i (interactive environment)

2005-03-08 Thread Joe
Right, but only one namespace. Would be nice if there was a way to give it both the global and the local namespaces. In my case though the local namespace was sufficient. "Just" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > code.interact() has a namespace argument ('local'), s

cgi.py bug

2005-03-08 Thread Joe
While debugging a problem I was having I found a bug in the cgi.py module. When the environment does not have a correctly set REQUEST_METHOD cgi.py prompts for key=value pairs by reading from sys.stdin. After the values are read from sys.stdin they are never stored in the FieldStorage.list attr

Re: python -i (interactive environment)

2005-03-08 Thread Joe
ide the function (globals() == locals()) the changes stuck. (started as gv=1, changed to gv=2 in interactive session, stuck as gv=2 back in main). "Steve Holden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Michael Hoffman wrote: >> Joe wrote: >>

Re: python -i (interactive environment)

2005-03-08 Thread Joe
Steve, Thanks, I knew about that but my question is why is it not working consistently? Joe "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe wrote: >> Isn't this a bug? >> >> Here's the test program: >>

Re: python -i (interactive environment)

2005-03-08 Thread Joe
Thanks I thought that was also true for globals() but I now see that it is not. "Steven Bethard" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Joe wrote: >> Thanks, I knew about that but my question is why is it not working >> consistently? >

Re: Working on a log in script to my webpage

2005-03-11 Thread Joe
specified directories, the user will be prompted by their browser for the user / pswd and as long as the directories they access are using the same authentication the user will not be prompted again until they close their session. It's pretty easy to setup. Joe "Pete." <

Re: Web framework

2005-03-13 Thread Joe
e it's stuck in the ZODB. Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Web framework

2005-03-14 Thread Joe
source code under source control if it's stuck in the ZODB? Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Web framework

2005-03-14 Thread Joe
system. What is stuck in >the ZODB would be the instances of those products. Right, but it's still a pain. Incidently, this is the reason for Zope-inspired frameworks like CherryPy, ie. Zope with ol' fashioned dev tools. Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Web framework

2005-03-15 Thread Joe
On Tue, 15 Mar 2005 00:07:34 -0500, Benji York <[EMAIL PROTECTED]> wrote: >That's not entirely true of Zope 2, and not true at all for Zope 3. All >code for Zope 3 is loaded from the file system. Great news :-) I'll go check it out. Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-17 Thread Joe
t this point, I haven't found any that doesn't fall short on any of the points above (probably because the work involved is underevaluated, and just not doable without a constant and sufficient revenue stream.) Just my opinion, Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python like VB?

2005-03-18 Thread Joe
oping small side-projects in VB.Net to master this new language/tool, and once 80% of hosts have the .Net framework, it'll be time to check which route seems more promising. Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python/wxPython Reducing memory usage.

2005-04-09 Thread Joe
u don't care about non-Windows platforms, you'll probably save a lot of RAM and file footprint. Joe. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Unicode handling wins again -- mostly

2013-12-02 Thread joe
How would a grapheme library work? Basic cluster combination, or would implementing other algorithms (line break, normalizing to a "canonical" form) be necessary? How do people use grapheme clusters in non-rendering situations? Or here's perhaps here's a better question: does anyone know any non-l

Indentation/whitespace

2005-12-23 Thread Joe
Is Python going to support s syntax the does not use it's infamous whitespace rules? I recall reading that Python might include such a feature. Or, maybe just a brace-to-indentation preprocessor would be sufficient. Many people think Python's syntax makes sense. There are strong feelings both ways

Re: Indentation/whitespace

2005-12-24 Thread Joe
My original post was based on reading on Pythons developer list that it was seriously considering some alternate grouping scheme, just because "so many people keep asking". But, it seems that never happened. As for me, I'm not suggesting that braces are better than indentation. In fact, requiring

What About Next Laptop Computers?

2006-10-21 Thread Joe
L International Reveals Plans for High-Tech Next-Generation Laptop Computer Systems L International Computers Inc. "L" renowned manufacturer of high-performance computers and personal/business technologies, revealed plans for its next generation high-end laptop and ultra-portable computer systems.

MySQL InterfaceError

2007-06-04 Thread Joe
I still consider myself a newbie, and being new to the list I request that you take it easy on me. ;) We're running a RHEL LAMP server with the mod_python publisher interpreter. The MySQLdb module seems to be giving me more problems than I had hoped for. With a fresh restart of apache, all pro

RE: MySQL InterfaceError

2007-06-04 Thread Joe
Sorry, forgot some valuable information. If you couldn't tell from the traceback, the error will be thrown during the first executed query that the program runs into (no matter what that query is). Jough _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Joe

RE: MySQL InterfaceError

2007-06-06 Thread Joe
>File "build/bdist.linux-i686/egg/MySQLdb/cursors.py", line 147, in execute >charset = db.character_set_name() > >InterfaceError: (0, '') We got it working. It was caused by passing a database connection to a module: import MySQLdb import module_name connection = MySQLdb.connect(

RE: MySQL InterfaceError

2007-06-07 Thread Joe
> Try passing the cursor and not the connection - Unfortunately this provided the same InterfaceError. It was one of the first options we had tried in correcting the situation. Is there any way to check on the status of a database connection (like an isOpen() method)? It appeared as though the

RE: MySQL InterfaceError

2007-06-07 Thread Joe
> Huh the only thing I can find on InterfaceError is "Errors related to > the database interface and not the database itself." You might be able > to get some info from connection.info() . . . Yeah, I wish there was more documentation about this type of error. The only thing info() tells me is th

Case-Insensitive Sorting of Multi-Dimensional Lists

2007-06-08 Thread Joe
I have a list of lists that I would like to sort utilizing a certain index of the nested list. I am able to successfully use: Import operator list = [["Apple", 1], ["airplane", 2]] list.sort(key=operator.itemgetter(0)) But, unfortunately, this will be case sensitive (Apple will come befo

RE: Case-Insensitive Sorting of Multi-Dimensional Lists

2007-06-08 Thread Joe
> Try: > > list.sort(key=lambda el: el[0].lower()) Thanks! Worked like a charm :) > BUT - it's not a good idea to use list as a name, 'cos list is a > built-in, and you're obscuring it. Oh, don't worry. That was strictly my portrayal of the problem. Thanks again! Jough -- http://mail.pyth

RE: Case-Insensitive Sorting of Multi-Dimensional Lists

2007-06-08 Thread Joe
> Try: > > list.sort(key=lambda el: el[0].lower()) Now, I would like to be able to specify which index to sort by. I am not able to pass in external variables like: List.sort(key=lambda el: el[indexNumber].lower()) I am new to lambda and have searched for a few hours this morning, coming up em

RE: Case-Insensitive Sorting of Multi-Dimensional Lists

2007-06-08 Thread Joe
> > Now, I would like to be able to specify which index to sort by. I am > not > > able to pass in external variables like: > > > > List.sort(key=lambda el: el[indexNumber].lower()) > > Why ever not? Sorry, I should have written back with my findings. I had run into the problem described in thi

Invitation for Python at the Southern California Linux Expo

2009-01-14 Thread joe
thern California area, and would like to set up a booth, I encourage you to apply. Any questions, please do not hesitate to ask. Thanks for your time! Joe Smith http://scale7x.socallinuxexpo.org/conference-info/call-for-dotorg-exhibitors -- http://mail.python.org/mailman/listinfo/python-list

Python at the SoCal Linux Expo

2009-02-10 Thread joe
! Joe Smith Southern California Linux Expo [1] https://socallinuxexpo.org/reg7/ -- http://mail.python.org/mailman/listinfo/python-list

no module named error

2009-12-08 Thread Joe
I am trying to write/run a python script which imports from another script which is located in my /usr/lib64/python2.6/site-packages/ dir, but getting the following error. $ python ./mytest.py Traceback (most recent call last): File "./mytest.py", line 45, in from moda import * Fi

Re: no module named error

2009-12-08 Thread Joe
> But it's searching for _moda.*, most probably a binary extension. Does that > exist, and if yes, has it the proper architecture or is it maybe 32 bit? I'm just going by an example script. moda is a package I was given that is written in C and has some python bindings and does run 64-bit. I'm on

Re: no module named error

2009-12-08 Thread Joe
Diez B. Roggisch wrote: > Joe wrote: > >>> But it's searching for _moda.*, most probably a binary extension. Does >>> that exist, and if yes, has it the proper architecture or is it maybe 32 >>> bit? >> I'm just going by an example script. moda is

Re: no module named error

2009-12-08 Thread Joe
> > Please verify that it exists and has the proper architecture. > Ah, ok, I thought those were one in the same. But I do have that file in another directory elsewhere and I have that directory in my LD_LIBRARY_PATH var. Shouldn't that be enough to do it? -- http://mail.python.org/mailman

Re: no module named error

2009-12-08 Thread Joe
Just to clarify, I have "_moda.la" sitting in another directory which is included in my LD_LIBRARY_PATH. And it is built for the 64bit arch. -- http://mail.python.org/mailman/listinfo/python-list

Re: no module named error

2009-12-10 Thread Joe
> No, the import-mechanism of python doesn't take LD_LIBRARY_PATH into > account, and even if it did - _moda.la is a simple archive-file, not a > shared library. It can't be dynamically loaded. Something in your > build-process is not working. So how should my stuff find these libs? Here's what I

Re: no module named error

2009-12-10 Thread Joe
> Your installation process is botched (no idea why, you don't show us > setup.py or anything else I asked for). Sorry, but I do know how it's currently installed is exactly the way I need it to be installed. > > > All that is missing is what I've asked you now several times before: > _moda.so

Python 3.1.1 bytes decode with replace bug

2009-10-24 Thread Joe
The Python 3.1.1 documentation has the following example: >>> b'\x80abc'.decode("utf-8", "strict") Traceback (most recent call last): File "", line 1, in ? UnicodeDecodeError: 'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte >>> b'\x80abc'.decode("utf-8

Re: Python 3.1.1 bytes decode with replace bug

2009-10-24 Thread Joe
Thanks for your response. > Please provide more information > > > The Python 3.1.1 documentation has the following example: > > Where? I could not find them http://docs.python.org/3.1/howto/unicode.html#unicode-howto Scroll down the page about half way to the "The String Type" section. The exa

Re: Python 3.1.1 bytes decode with replace bug

2009-10-24 Thread Joe
> For the reason BK explained, the important difference is that I ran in > the IDLE shell, which handles screen printing of unicode better ;-) Something still does not seem right here to me. In the example above the bytes were decoded to 'UTF-8' with the replace option so any characters that were

Re: Python 3.1.1 bytes decode with replace bug

2009-10-26 Thread Joe
Thanks Benjamin for solving the mystery of where the cp437 usage was coming from. So b'\x80abc'.decode("utf-8", "replace") was working properly but then when the interactive prompt tried to print it, it was basically taking the results and doing a encode('cp437', 'strict') which failed because of

Re: Python 3.1.1 bytes decode with replace bug

2009-10-26 Thread Joe
Thanks Mark, that is a great suggestion! > You can also replace the Unicode replacement character U+FFFD with a valid > cp437 character before displaying it: > > >>> b'\x80abc'.decode('utf8','replace').replace('\ufffd','?') > > '?abc' > -- http://mail.python.org/mailman/listinfo/python-list

Differences of "!=" operator behavior in python3 and python2 [ bug? ]

2013-05-12 Thread Mr. Joe
I seem to stumble upon a situation where "!=" operator misbehaves in python2.x. Not sure if it's my misunderstanding or a bug in python implementation. Here's a demo code to reproduce the behavior - """ # -*- coding: utf-8 -*- from __future__ import unicode_literals, print_function class DemoClass

Re: Debugging difficulty in python with __getattr__, decorated properties and AttributeError.

2013-05-14 Thread Mr. Joe
Sorry for digging this old topic back. I see that my "'property' does not play well with polymorphic code" comment generated some controversy. So here's something in my defense: Here's the link to stackoveflow topic I am talking about: http://stackoverflow.com/questions/237432/python-properties-a

Re: Debugging difficulty in python with __getattr__, decorated properties and AttributeError.

2013-05-15 Thread Mr. Joe
On Wed, May 15, 2013 at 12:15 PM, dieter wrote: > > If Python would automatically redecorate overridden methods in a derived > class, I would have no control over the process. What if I need > the undecorated method or a differently decorated method (an > uncached or differently cached met

Compiler Error for build Python -3.3.0 (Suggestions)

2012-10-22 Thread Joe Davis
The version of Python I have on my old Solaris boxes is old and isn't supported and dosn't have all the modules that I need.I have downloaded the new 3.3 version and have been trying to compile it and have no luck: After running the ./configure command I run "make" and it gives me the foll

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-18 Thread random joe
On Feb 18, 12:34 pm, Rick Johnson wrote: > Louie-the-loose-screw Said: "I'll give you $15 if you'll give me $15!" $15 dolla too beau coup! 5 dolla each! -- http://mail.python.org/mailman/listinfo/python-list

Re: import os or import os.path

2011-09-06 Thread Joe Riopel
On Tue, Sep 6, 2011 at 5:25 PM, Jabba Laci wrote: > Hi, > > If I want to use the 'os.path' module, it's enought to import 'os': > > import os > if os.path.isfile('/usr/bin/bash'): >    print 'got it' > > In other source codes I noticed that people write 'import os.path' in > this case. Which is be

Re: Validating Command Line Options

2011-03-23 Thread Joe Riopel
On Wed, Mar 23, 2011 at 10:10 AM, T wrote: > For a Python script with multiple command line options, what is the > best way to go about validating that only certain options are used > together?  For example, say -s, -t, and -v are all valid options, but > should never be used together (i.e. -s -t

FBI wants public help solving encrypted notes from murder mystery

2011-03-30 Thread Joe Snodgrass
FBI cryptanalysis hasn’t decrypted notes from 1999 murder mystery http://tinyurl.com/4d56zsz The FBI is seeking the public's help in breaking the encrypted code found in two notes discovered on the body of a murdered man in 1999. The FBI says that officers in St. Louis, Missouri discovered the

Re: FBI wants public help solving encrypted notes from murder mystery

2011-03-31 Thread Joe Snodgrass
On Mar 30, 10:18 pm, "Stretto" wrote: > "Joe Snodgrass" wrote in message > > news:c37e8e0b-a825-4ac5-9886-8828ab1fa...@x8g2000prh.googlegroups.com... > > > > > > > FBI cryptanalysis hasn’t decrypted notes from 1999 murder mystery > >

Re: FBI wants public help solving encrypted notes from murder mystery

2011-04-02 Thread Joe Snodgrass
On Apr 1, 10:54 am, David Bernier wrote: > haha doh wrote: > > On Mar 31, 3:15 pm, Joe Snodgrass  wrote: > > [...] > > > > >> As to which crime was being committed, I'm going with numbers running > >> or loan sharking.  There's no reason for

  1   2   3   4   5   6   >