Re: boost.python on Debian

2006-01-16 Thread Joe bloggs
According to apt-get I have the latest (1.32.0-6) Debian boost libraries, and bjam version (3.1.10-1) correctly installed. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is a type error?

2006-07-13 Thread Joe Marshall
Marshall wrote: > > Again, I disagree: it is posible to have mutability without > pointers/identity/objects. I think you are wrong, but before I make a complete ass out of myself, I have to ask what you mean by `mutability'. (And pointers/identity/objects, for that matter.) Alan Bawden discusse

Re: Problem with "&" charater in xml.

2006-07-13 Thread Joe Kesselman
Note that any good SAX tutorial will demonstrate how to buffer the characters() events, if you don't feel like reinventing the solution yourself. -- http://mail.python.org/mailman/listinfo/python-list

Re: What is a type error?

2006-07-13 Thread Joe Marshall
Marshall wrote: > > Consider the following Java fragment: > > void foo() { > int i = 0; > int j = 0; > > // put any code here you want > > j = 1; > i = 2; > // check value of j here. It is still 1, no matter what you filled in > above. > // The assignment to i cannot be made to affec

Re: What is a type error?

2006-07-14 Thread Joe Marshall
Marshall wrote: > Joe Marshall wrote: > > Marshall wrote: > > > > > > Consider the following Java fragment: > > > > > > void foo() { > > > int i = 0; > > > int j = 0; > > > > > > // put any code here you want

Re: What is a type error?

2006-07-17 Thread Joe Marshall
Marshall wrote: > > I am having a hard time with this very broad definition of aliasing. How about this definition: Consider three variables, i, j, and k, and a functional equivalence predicate (EQUIVALENT(i, j) returns true if for every pure function F, F(i) = F(j)). Now suppose i and j are EQ

Re: pyserial to read from DS1615 temperature recorder chip

2006-07-24 Thread Joe Knapka
Grant Edwards wrote: > On 2006-07-24, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > >>>Logs of the serial traffic would be helpful. >> >>Here they are. First a log of the traffic generated by the >>T-logger GUI program, abtained with Portmon. > > > I try to avoid Windows as much as humanly

Re: HELP!!! How do I send an ACK packet in UDP?????

2006-07-24 Thread Joe Knapka
[EMAIL PROTECTED] wrote: > I need my udp server to send an ACK back to the client when it > successfully receives data from the client to let it know not to retry > the send (yes, I do know this is how TCP works but must be in UDP) > I am using this example code I found on the net for the server,

Re: HELP!!! How do I send an ACK packet in UDP?????

2006-07-24 Thread Joe Knapka
[EMAIL PROTECTED] wrote: > I need my udp server to send an ACK back to the client when it > successfully receives data from the client to let it know not to retry > the send (yes, I do know this is how TCP works but must be in UDP) > I am using this example code I found on the net for the server,

Re: Need a compelling argument to use Django instead of Rails

2006-07-25 Thread Joe Knapka
John J. Lee wrote: > The fact that "open classes" are apparently thought to be a good thing > in Ruby puzzles (and worries) me. This objection strikes me as having the same nature as, "Python's lack of strong protection for class members puzzles (and worries) me". The Pythonic answer to that obj

Re: HELP!!! How do I send an ACK packet in UDP?????

2006-07-25 Thread Joe Knapka
[EMAIL PROTECTED] wrote: > Yes, you were right it was already there (sorry, my mistake), the > bigger problem is how do I send an ack packet Look at the docs for socket.sendto(). Of course, deciding what data should be in your "ACK" packet is for you to decide. Cheers, -- JK -- http://

Re: Tkinter pack Problem

2006-07-26 Thread Joe Knapka
H J van Rooyen wrote: > Hi, > > I am struggling to get the pack method to do what I intend. > I am trying to display user input in a seperate window, along with > a little description of the field, something like this: > > Current entry > Company : entered co. name > F

Re: Threads vs Processes

2006-07-26 Thread Joe Knapka
John Henry wrote: > >>Carl, >> OS writers provide much more tools for debugging, tracing, changing >>the priority of, sand-boxing processes than threads (in general) It >>*should* be easier to get a process based solution up and running >>andhave it be more robust, when compared to a threaded sol

Re: [OT] John Salerno

2006-08-13 Thread Joe Feise
John Salerno wrote on 08/12/06 21:44: > Alan Connor wrote: > >> So. You post using three different newsservers, which no one who >> posts under the same alias all the time does. >> >> And there are virtually no Linux groups in your posting history >> for the last year. > > Wow, you need some he

Re: python html 2 image (png)

2006-10-26 Thread joe Li
class Bunch(object):    def __init__(self, **fields):     self.__dict__ = fields    p = Bunch(x=2.3, y=4.5)print p print p.__dict__I dont' understand the usage of the double * here, could anyone explain it for me? thanks. -- http://mail.python.org/mailman/listinfo/pyth

Re: python html 2 image (png)

2006-10-26 Thread joe Li
Thanks a lot.Please forgive my careless mistake, I am completely a new user^-^2006/10/26, Fredrik Lundh <[EMAIL PROTECTED]>: joe Li wrote:> **class Bunch(object):> def __init__(self, **fields): > self.__dict__ = fields>> p = Bunch(x=2.3, y=4.5)> print p>

virtual function appears in two bases

2006-10-27 Thread joe Li
I saw the following code, but I don't understand the rule for virtual function that appears in two basesCould anyone explain it for me, thanks.class Base1:    def amethod(self):    print "Base1" class Base2(Base1): passclass Base3:    def amethod(self):    print "Base3"class Derived(Base2,

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Joe Seigh
hing like it. That seems to be about STM (Software Transactional Memory). What you're describing seems to be read lock-free using what I call PDR (PCOW (Partial Copy On Write) Deferred Reclaimation). Examples of PDR are RCU (used in Linux kernel), Maged Michael's SMR hazard pointers, and

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Joe Seigh
Ross Ridge wrote: > Joe Seigh wrote: > >>Basically there's a race condition where an object containing the >>refcount can be deleted between the time you load a pointer to >>the object and the time you increment what used to be a refcount >>and is possibly some

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-07 Thread Joe Seigh
fender Problem), a form of PDR, and one using DCAS (compare and swap of two separate locations) which only exists on MC68020 and MC68030 processors. -- Joe Seigh When you get lemons, you make lemonade. When you get hardware, you make software. -- http://mail.python.org/mailman/listinfo/python-list

Re: Exploiting Dual Core's with Py_NewInterpreter's separated GIL ?

2006-11-08 Thread Joe Seigh
themselves >>sufficient to make reference counting safe." > > [...] > > The problem your describing isn't that reference counting hasn't been > made safe. What you and Joe seem to be trying to say is that atomic > increment and decrement instructions al

Re: What is Expressiveness in a Computer Language

2006-06-09 Thread Joe Marshall
Xah Lee wrote: > in March, i posted a essay "What is Expressiveness in a Computer > Language", archived at: > http://xahlee.org/perl-python/what_is_expresiveness.html > > I was informed then that there is a academic paper written on this > subject. > > On the Expressive Power of Programming Langua

Re: What is Expressiveness in a Computer Language

2006-06-19 Thread Joe Marshall
Chris Smith wrote: > > Knowing that it'll cause a lot of strenuous objection, I'll nevertheless > interject my plea not to abuse the word "type" with a phrase like > "dynamically typed". Allow me to strenuously object. The static typing community has its own set of terminology and that's fine.

Re: What is Expressiveness in a Computer Language

2006-06-19 Thread Joe Marshall
Chris Smith wrote: > Joe Marshall <[EMAIL PROTECTED]> wrote: > > > > Chris Smith wrote: > > > > > > Knowing that it'll cause a lot of strenuous objection, I'll nevertheless > > > interject my plea not to abuse the word "type&quo

Re: What is Expressiveness in a Computer Language

2006-06-20 Thread Joe Marshall
Chris Smith wrote: > Joe Marshall <[EMAIL PROTECTED]> wrote: > > > > Agreed. That is why there is the qualifier `dynamic'. This indicates > > that it is a completely different thing from static types. > > If we agree about this, then there is no need to con

Re: What is Expressiveness in a Computer Language

2006-06-21 Thread Joe Marshall
Marshall wrote: > > That's really coming home to me in this thread: the terminology is *so* > bad. I have noticed this previously in the differences between > structural > and nominal typing; many typing issues associated with this distinction > are falsely labeled as a static-vs-dynamic issues, s

Re: What is Expressiveness in a Computer Language

2006-06-22 Thread Joe Marshall
Chris Smith wrote: > Joachim Durchholz <[EMAIL PROTECTED]> wrote: > > Assume a language that > > a) defines that a program is "type-correct" iff HM inference establishes > > that there are no type errors > > b) compiles a type-incorrect program anyway, with an establishes > > rigorous semantics fo

Re: What is Expressiveness in a Computer Language

2006-06-23 Thread Joe Marshall
Marshall wrote: > Joe Marshall wrote: > > > > That's the important point: I want to run broken code. > > I want to make sure I understand. I can think of several things > you might mean by this. It could be: > 1) I want to run my program, even though I know par

Re: What is Expressiveness in a Computer Language

2006-06-23 Thread Joe Marshall
Marshall wrote: > Timo Stamm wrote: > > > > This is actually one of the most interesting threads I have read in a > > long time. If you ignore the evangelism, there is a lot if high-quality > > information and first-hand experience you couldn't find in a dozen books. > > Hear hear! This is an *exc

Re: What is Expressiveness in a Computer Language

2006-06-26 Thread Joe Marshall
Marshall wrote: > > I stand corrected: if one is using C and writing self-modifying > code, then one *can* zip one's pants. Static proofs notwithstanding, I'd prefer a dynamic check just prior to this operation. I want my code to be the only self-modifying thing around here. -- http://mail.pyt

Re: What is Expressiveness in a Computer Language

2006-06-26 Thread Joe Marshall
David Hopwood wrote: > > Joe Marshall wrote: > >> > >>I do this quite often. Sometimes I'll develop `in the debugger'. I'll > >>change some piece of code and run the program until it traps. Then, > >>without exiting the debugger, I&#x

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Joe Marshall
Marshall wrote: > > Yes, an important question (IMHO the *more* important question > than the terminology) is what *programs* do we give up if we > wish to use static typing? I have never been able to pin this > one down at all. It would depend on the type system, naturally. It isn't clear to me

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Joe Marshall
Marshall wrote: > Joe Marshall wrote: > > Looking back in comp.lang.lisp, I see these examples: > > > > (defun noisy-apply (f arglist) > > (format t "I am now about to apply ~s to ~s" f arglist) > > (apply f arglist)) > > > > (def

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Joe Marshall
QCD Apprentice wrote: > Joe Marshall wrote: > > Marshall wrote: > >> > >> The real question is, are there some programs that we > >> can't write *at all* in a statically typed language, because > >> they'll *never* be typable? > > >

Re: What is Expressiveness in a Computer Language

2006-06-27 Thread Joe Marshall
David Hopwood wrote: > Joe Marshall wrote: > > > (defun blackhole (argument) > > (declare (ignore argument)) > > #'blackhole) > > This is typeable in any system with universally quantified types (including > most practical systems with parametric poly

Re: What is Expressiveness in a Computer Language

2006-06-28 Thread Joe Marshall
David Hopwood wrote: > Joe Marshall wrote: > > > > The point is that there exists (by construction) programs that can > > never be statically checked. > > I don't think you've shown that. I would like to see a more explicit > construction of a dy

Re: What is Expressiveness in a Computer Language [correction]

2006-06-28 Thread Joe Marshall
Andreas Rossberg wrote: > >~/> ocaml -rectypes > Objective Caml version 3.08.3 > ># let rec blackhole x = blackhole;; >val blackhole : 'b -> 'a as 'a = > > The problem is, though, that almost everything can be typed once you > have unrestricted recursive types (e.g. missing a

Re: Computer Language Popularity Trend

2006-09-27 Thread Joe Marshall
Xah Lee wrote: > Computer Language Popularity Trend > > This page gives a visual report of computer languages's popularity, as > indicated by their traffic level in newsgroups. This is not a > comprehensive or fair survey, but does give some indications of > popularity trends. Suggestions: Prov

Possible to assure no "cyclic"/"uncollectible" memory leaks?

2006-12-01 Thread Joe Peterson
hey written in such a way that it is not possible to create a cyclic reference? Thanks, Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: text adventure question

2006-12-03 Thread Joe Peterson
of my web pages, so you can play the games on-line: http://www.skyrush.com/explore/ -Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression

2006-12-23 Thread Joe Kesselman
Reminder: anything crossposted across this many newsgroups, especially asking an inherently bogus question, is probably just trolling. If it's equally on topic everywhere, that means it's on topic nowhere. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail

extra a column from a 2-D array?

2005-05-10 Thread Joe Wong
Hello,    Suppose I have a python array as follow:       s=[ [1,3,5],   [2,4,6],       [9,8,7]]   what is the quickest way to extract the second colum from all rows? That is: [3,4,8] in this example.   Best regards,   - Joe No virus found in this outgoing message. Checked by AVG

Re: How to use protocols.msn.FileSend and protocols.msnFileReceive

2005-05-23 Thread Joe Francia
yamadora1999 wrote: > How to use protocols.msn.FileSend and FileReceive? > Please show me a example. Excellent example here: http://catb.org/~esr/faqs/smart-questions.html -- Soraia: http://www.soraia.com Better than a smack in the teeth -- http://mail.python.org/mailman/listinfo/python-list

Re: What are OOP's Jargons and Complexities?

2005-05-24 Thread Joe Smith
Xah Lee wrote: > The Rise of Classes, Methods, Objects 1) Most of the information you posted was incomplete and much of it is just plain wrong. 2) What you posted was not perl related. Are you deliberately trying to make yourself a laughingstock? -- http://mail.python.org/mailman/listinfo/

case/switch statement?

2005-06-11 Thread Joe Stevenson
-else statements. Joe -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5.1 broken os.stat module

2007-05-31 Thread Joe Salmeri
I just upgraded from Python 2.4.2 to Python 2.5.1 and have found some unexpected behavior that appears to be a bug in the os.stat module. My OS is Windows XP SP2 + all updates. I have several programs that have worked flawlessly on all previous Python versions for years and they are now produc

Re: Python 2.5.1 broken os.stat module

2007-05-31 Thread Joe Salmeri
ccess_match_count) print 'Did NOT Match Access Date: %s' % (access_no_match_count) print print 'Matched Write Date : %s' % (write_match_count) print 'Did NOT Match Write Date : %s' % (write_no_match_count) print "Tony Meyer" <[EMAIL

Re: getmtime differs between Py2.5 and Py2.4

2007-05-31 Thread Joe Salmeri
plorer and cmd.exe to return incorrect results. Even if that was the case, it would not explain how when I manually set the 3 timestamps for a file to 01/02/2003 12:34:56 that Windows and Python 2.4.2 display the correct date and time but Python 2.5.1 displays the wrong one. Thanks for your assist

Re: Python 2.5.1 broken os.stat module

2007-06-01 Thread Joe Salmeri
up Windows Explorer also confirms that the times are still 01/02/2003 12:34:56. My text editor has a was to display the file names and timestamp info just like a dir command Let's see what it says: h: joe.txt0 1/02/03 12:34 \ The text editor

Re: Python 2.5.1 broken os.stat module

2007-06-01 Thread Joe Salmeri
Hi Terry, > If, when discussion is concluded here, you still think there is a bug, > file > a report on SF. Make a concise summary in the comments section and attach > a file with the output from your experiments. You may have to submit the > attachment separately after first submitting the rep

Re: getmtime differs between Py2.5 and Py2.4

2007-06-01 Thread Joe Salmeri
displayed, with the exception of python 2.5.1. Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5.1 broken os.stat module

2007-06-02 Thread Joe Salmeri
> It's not clear whether it's an error, however, localtime() does > something different from what dir does. Hi Martin, First off thank you for spending your time to investigate this bug with me. Thanks for pointing out the issue with Windows XP caching the access timestamps, I was not aware of

Re: Python 2.5.1 broken os.stat module

2007-06-03 Thread Joe Salmeri
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> The short explaination of this issue is that the timestamp shown when >> you do a dir on a file that is on an NTFS volume changes by an hour >> when DST starts and also when DST ends, even though the file has NOT >>

Re: Python 2.5.1 broken os.stat module

2007-06-03 Thread Joe Salmeri
o a different > | > time zone. > > Joe, read the last sentence again. Most of your reply shows that you have > missed this basic point. My reply specifically indicated that I was referring to the textual presentation that Windows is showing. I understand that a DST change and a ti

Re: Python 2.5.1 broken os.stat module

2007-06-03 Thread Joe Salmeri
> Please understand that it is *extremely* tedious to follow your > messages. It would have been much better if they had been short and > to the point. Sometimes it seems that it is impossible to please people. When messages are short then people complain that they did not get sufficient details

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Joe Salmeri
""Martin v. Löwis"" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >> It appears that you may have missed part of my tests. Sorry it was such >> a >> long reply but I was trying to provide a lot of detail so that others had >> a >> clear understanding of what was going on. > > Ple

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Joe Salmeri
There is a conflict with the answers that you and Terry have given. The original issue I raised was that I Python 2.5.1 and Windows did not have the same textual represenation for a localize date. You have stood true to the statements that Python 2.5.1 is correct and that previous versions were

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Joe Salmeri
Perspective is often the source of problems with communication. You view timezones and DST as offsets from GMT. I understand and respect that perspective. When I think of timezones and DST I think of the timezone setting and the DST setting in Windows. These settings are two separate settings

Re: Python 2.5.1 broken os.stat module

2007-06-04 Thread Joe Salmeri
I have tried (unsuccessfully) to get you to view things from the end user perspective. I wish that you would consider looking at what the end user sees because that is what really matters. Without end users we would not need to develop software would we? This entire conversation was VERY nicel

Re: Embedding Python in C

2007-06-05 Thread Joe Riopel
This seems like a pretty good resource, although I didn't read it all yet: http://www.ibm.com/developerworks/edu/l-dw-linux-pythonscript-i.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.5.1 broken os.stat module

2007-06-05 Thread Joe Salmeri
> But that perspective is not directly relevant to *your* topic line. When > you make a claim that os.stat is 'broken' and bugged, you are making a > claim about the *programmer* experience -- in particular, experiencing a > discrepancy between performance and reasonable expectation based on the >

Re: PATH or PYTHONPATH under Windows ???

2007-06-05 Thread Joe Salmeri
Modify the PATHEXT environment variable to include .py; For example the default one on Windows XP is: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH; Modify it so it says: PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.py Now you can run python programs from your c

Re: VIM editor question

2007-06-09 Thread Joe Riopel
I use vim on both Windows and UNIX/Linux, and found this vimrc file. http://darksmile.net/software/.vimrc.html It's pretty good and has good comments. You might want to take a look at that and customize it. Plus this is great: http://www.usf.uni-osnabrueck.de/infoservice/doc/localhtml/vim/if_pyth

Re: SimplePrograms challenge

2007-06-14 Thread Joe Riopel
How about this one for recursion and control flow: >>> def hcd(m,n): ... r = m % n ... if( r > 0 ): ... hcd(n, r) ... else: ... print "hcd = %d" % (n,) ... >>> hcd(119, 544) hcd = 17 >>> It calculates the highest common denominator for m and n. Plus it's E1 in

Re: Want to learn Python

2007-06-15 Thread Joe Riopel
I am still learning and this is a great resource: http://diveintopython.org/index.html You can buy it or read it online for free. -- http://mail.python.org/mailman/listinfo/python-list

Re: DFW Pythoneers Meeting THIS Saturday

2007-06-20 Thread Joe Riopel
> Precisely what? You complained that the OP didn't provide the location > of the event, which he did. Well, where is DFW? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Info.

2007-06-26 Thread Joe Riopel
On 6/26/07, kaens <[EMAIL PROTECTED]> wrote: > It was like being slapped with the mid-90s That was awesome. > On 6/26/07, Stefan Behnel <[EMAIL PROTECTED]> wrote: > > Brandon wrote: > > > Check it out: www.BrandonsMansion.com That is horrible. -- http://mail.python.org/mailman/listinfo/python-lis

Re: Tuple vs List: Whats the difference?

2007-07-11 Thread Joe Riopel
On 7/11/07, Shafik <[EMAIL PROTECTED]> wrote: > I am an experienced programmer, but very new to python (2 days). I > wanted to ask: what exactly is the difference between a tuple and a > list? I'm sure there are some, but I can't seem to find a situation > where I can use one but not the other. Th

Re: Copy List

2007-07-18 Thread Joe Riopel
On 7/18/07, Robert Rawlins - Think Blue <[EMAIL PROTECTED]> wrote: > What's the best way to create a copy of a list? I am pretty new to python but this works: >>> list_one = [0,1,2,3,4,5,6,7,8,9] >>> list_two = [i for i in list_one] >>> print list_two [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> -- http:/

Re: Copy List

2007-07-18 Thread Joe Riopel
I forgot to mention that you can go here for a little more of an explanation: http://diveintopython.org/native_data_types/mapping_lists.html -- http://mail.python.org/mailman/listinfo/python-list

Re: The Modernization of Emacs: exists already

2007-07-18 Thread Joe Riopel
Sorry, I don't understand why this is still on the python mailing list. :wq -- http://mail.python.org/mailman/listinfo/python-list

test

2007-05-11 Thread Joe Eagar
sorry just a test. Joe -- http://mail.python.org/mailman/listinfo/python-list

pyodbc data corruption problem

2007-05-18 Thread Joe Salmeri
dummy data 4. Run the broke.py script to show the problem. The issue is when the data value is > 2048 bytes. The size in the createtable.py is 2046 bytes plus 3 bytes at the end that contain "JOE" for a total of 2049 bytes. If you change it from 2046 to 2045 (or less) then the pro

pyodbc.Error Crash

2007-05-18 Thread Joe Salmeri
I believe this bug is also related to the other problem I just reported. OS = Windows XP SP2 DB = Microsoft Access XP PROBLEM: When you use + (or &) to concatenation columns together and the columns are of type text and the combined length exceed 255 this causes pyodbc to fail and python to cras

cgi.py bug submitted to source_forge - Martin v. L�wis

2007-05-18 Thread Joe Salmeri
time to look at the patch. Joe -- http://mail.python.org/mailman/listinfo/python-list

Re: pyodbc data corruption problem

2007-05-18 Thread Joe Salmeri
Thank you for your response but this is not an Access problem. The exact same code using mx.ODBC or using the old odbc.py that comes with the win32 files works fine. It only fails with pyodbc. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On May 18, 6:46 pm, &qu

Re: pyodbc.Error Crash

2007-05-19 Thread Joe Salmeri
Thanks, I reported them there first and then posted here in case they monitor the forum more frequently and so others would be aware of the problems found. Joe "Gabriel Genellina" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > En Fri, 18 May 2007 20:48:49

Re: pyodbc data corruption problem

2007-05-24 Thread Joe Salmeri
ata, followed by 4868 bytes of nulls. I did a second test where the actual data size was 11,109 bytes. In that case pyodbc returned a value that was 22,218 bytes long. The first 11,109 bytes are the real data, followed by 11,109 null bytes. This seems to confirm the bug. "Joe Salmeri&

os.path.walk not pruning descent tree (and I'm not happy with that behavior?)

2007-05-27 Thread Joe Ardent
is method: "The visit function may modify names to influence the set of directories visited below dirname, e.g. to avoid visiting certain parts of the tree. (The object referred to by names must be modified in place, using del or slice assignment.)" So... What am I missing? Any hel

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-30 Thread Joe Riopel
Using camel case instead of the under_score means less typing. I am lazy. fooBar foo_bar -- http://mail.python.org/mailman/listinfo/python-list

Re: Off Topic: What is the good book to learn Python ?

2007-05-30 Thread Joe Riopel
I am new to Python but these 2 have been great resources, so far: http://diveintopython.org/toc/index.html http://docs.python.org/tut/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Is PEP-8 a Code or More of a Guideline?

2007-05-31 Thread Joe Riopel
> Each requires exactly the same number of key strokes when I do the > math. (Too lazy to explain further...) foo_bar f, o, o, shift + underscore, b, a, r = 8 fooBar f, o, o, shift + b, a, r = 7 -- http://mail.python.org/mailman/listinfo/python-list

Configure apache to run python scripts

2007-07-22 Thread joe jacob
I need to configure apache to run python scripts. I followed the steps mentioned in this site (http://www.thesitewizard.com/archive/ addcgitoapache.shtml). But I am not able to run python scripts from Firefox, I got a forbidden error "you do not have permission to access the file in the server

Re: Configure apache to run python scripts

2007-07-23 Thread joe jacob
On Jul 23, 4:42 pm, Bruno Desthuilliers wrote: > joe jacob a écrit : > > > I need to configure apache to run python scripts. I followed the steps > > mentioned in this site (http://www.thesitewizard.com/archive/ > > addcgitoapache.shtml). But I am not able to run python

Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread joe jacob
I configured apache to execute python scripts using mod_python handler. I followed below mentioned steps to configure apache. 1. In http.conf I added AddHandler mod_python .py PythonHandler mptest PythonDebug On 2. Then I added the line "LoadModule python_module modules/ mod_python.s

Re: Configuring apache to execute python scripts using mod_python handler

2007-08-13 Thread joe jacob
On Aug 13, 9:44 pm, 7stud <[EMAIL PROTECTED]> wrote: > On Aug 13, 5:16 am, joe jacob <[EMAIL PROTECTED]> wrote: > > > > > I configured apache to execute python scripts using mod_python > > handler. I followed below mentioned steps to configure a

Re: How can I work on VIM for python code such as cscope for C code?

2007-09-12 Thread Joe Riopel
On 9/12/07, Evan <[EMAIL PROTECTED]> wrote: > Hi, guys ~~ > > How can i work on VIM for python code? I use cscope plugin on VIM for > C code before, it helps me to different function and search C > variable where it is defined. Change to the top level directory that contains your python source f

newbee: Simple Backend Python Script Question

2007-09-14 Thread joe shoemaker
If not then the connection will be opened forever? Joe -- http://mail.python.org/mailman/listinfo/python-list

A question on python performance.

2007-09-26 Thread Joe Goldthwaite
Hi everyone, I'm a developer who's been using python for a couple of years. I wrote a fairly large application using it but I was learning the language at the same time so it most of the code kind of sucks. I've learned a lot since then and I've been going through my code trying to organize it b

RE: A question on python performance.

2007-09-27 Thread Joe Goldthwaite
[EMAIL PROTECTED] wrote: >Makes perfect sense to me! Think about it: > >method 1: looks up the method directly from the object (fastest) >method 2: looks up __class__, then looks up __dict__, then gets the >element from __dict__ >method 3: looks up caller, looks up __class__, looks up __dict__, ge

Re: pytz has so many timezones!

2007-10-08 Thread Joe Holloway
On 10/8/07, Sanjay <[EMAIL PROTECTED]> wrote: > 2. Mapping the timezones to countries is a nice idea. Any idea how to > go about it - I mean whether I have to collect the data manually and > do it, or some better way is available - will help me a lot. You might find some good information by brushi

Re: Problem of Readability of Python

2007-10-10 Thread Joe Riopel
On 10/10/07, Kevin <[EMAIL PROTECTED]> wrote: > Am I missing something, or am I the only one who explicitly declares > structs in python? > For example: > FileObject = { > "filename" : None, > "path" : None, > } > > fobj = FileObject.copy() > fobj["filename"] = "passwd" > fobj["path"] =

Re: Best Python Linux distribution

2007-10-17 Thread Joe Riopel
On 10/17/07, Anthony Perkins <[EMAIL PROTECTED]> wrote: > Hi everyone, > > What is the best GNU/Linux distribution (or the most preferred) for > developing Python applications? Ideally I would like one with both > Python *and* IDLE included on the install media (neither Ubuntu nor SUSE > have IDLE

Re: Best Python Linux distribution

2007-10-17 Thread Joe Riopel
On 10/17/07, Joe Riopel <[EMAIL PROTECTED]> wrote: > IDLE and Python came installed on Slackware 12, I am not 100% sure > about previous versions. Also, I am sure a lot of it (with most distributions) depends on the packages you select during the installation. -- http://mai

Re: C++ version of the C Python API?

2007-10-19 Thread Joe Riopel
On 10/19/07, Robert Dailey <[EMAIL PROTECTED]> wrote: > Is there a C++ version of the C Python API packaged with python 2.5? > It would be nice to have a OOP approach to embedding python in C++. It > would also be a bonus if this C++ Python API cleaned up a lot of the > messy code involved in embed

Re: Which persistence is for me?

2007-11-01 Thread Joe Riopel
This might be worth a look: http://www.sqlalchemy.org/docs/04/ormtutorial.html -- http://mail.python.org/mailman/listinfo/python-list

Re: http question

2007-11-08 Thread Joe Riopel
On Nov 8, 2007 11:02 AM, steven depret <[EMAIL PROTECTED]> wrote: > I get a lot of stuff in my output, but simply NOT the a=xx and the b = yy. > What the heck am I doing wrong ? What kind of stuff are you getting? Are you getting all the contents of the HTTP response and/or HTML? -- http://mail

Re: Python IDE

2007-11-10 Thread Joe Riopel
On Nov 3, 2007 10:28 AM, BartlebyScrivener <[EMAIL PROTECTED]> wrote: > Try the free trial of Komodo > > http://www.activestate.com/Products/komodo_ide/ Komodo Edit is free http://www.activestate.com/Products/komodo_edit/ Open Komodo is free and open source: http://www.openkomodo.com/ -- http://

Pythonic tee for subprocess module.

2007-11-13 Thread Joe Blow
I'd like to use the subprocess module to create a pipeline with a fork. For example, what if I wanted a "cat" process to send a file to both an "md5sum" process and a "gzip" process. In bash, I'd do something like this: > cat source_file | tee >(md5sum > source_file.md5sum) | gzip -c > > source

Python web frameworks

2007-11-20 Thread joe jacob
There are a lot of web frameworks for python like django, mod_python, spyce, turbo gears, Zope, Cherrypy etc. Which one is the best in terms of performance and ease of study. -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   >