Re: Regular expressions, help?

2012-04-19 Thread Andy
ot of frustration. Thanks, -Andy- -- http://mail.python.org/mailman/listinfo/python-list

Re: Internet Data Handling » mailbox

2016-10-22 Thread andy
the structure constant or does > it change depending upon the content of the mbox? > > I'm a bit new to python documentation. How would a potential user of the > "mailbox" library determine these things? Or did I miss something? I would type: help(mailbox) after importing it. best regards andy -- https://mail.python.org/mailman/listinfo/python-list

Re: Internet Data Handling » mailbox

2016-10-23 Thread andy
Sat, 22 Oct 2016 19:41:45 -0400 wrote Adam Jensen: > On 10/22/2016 05:47 AM, andy wrote: >> I would type: help(mailbox) after importing it. > > I guess the output of that might be more meaningful once I understand > the underlying structures and conventions. yes - you are r

Re: how to print variable few time?

2016-11-13 Thread andy
Sat, 12 Nov 2016 04:58:20 -0800 wrote guy asor: > hello! > > this is my code: > > word=raw_input() > print word*3 > > > with this code im getting - wordwordword. > what changes i need to make to get - word word word - instead? > > thanks using python3.x: word=input() print((word+' ')*2, end

Re: how to print variable few time?

2016-11-13 Thread andy
Sun, 13 Nov 2016 15:12:01 +0100 wrote andy: > word=input() > print((word+' ')*2, end='') > print(word) > > ..but D'Apranos ' '.join(..) is far more elegant. don't know whether I really would use this form, but it works in pytho

Re: how to print variable few time?

2016-11-16 Thread andy
Sun, 13 Nov 2016 17:27:23 +0200 wrote Jussi Piitulainen: >>> word=raw_input() >>> print word*3 >>> >>> >>> with this code im getting - wordwordword. >>> what changes i need to make to get - word word word - instead? >>> >>> thanks >> >> using python3.x: >> >> word=input() >> print((word+' ')*2

printing funny symbols within spyder ide

2016-11-24 Thread andy
if it is a feature, where can I find the complete table of symbols? within bash - starting python3 - i get some ugly "unicode?" symbols, which look like a square containig tiny alphanumeric numbers. best regards andy -- https://mail.python.org/mailman/listinfo/python-list

What's the best python web-developer's editor

2005-01-20 Thread andy
Anybody like to comment on which editor they use for python web app development - for both discrete and mixed python and html code, and why? I'm comfortable with IDLE (used it for years) but of course it lacks ftp or webDAV abilities, obviously because it's not intended for that type of use.

unit test nested functions

2005-07-23 Thread Andy
testing. Andy -- http://mail.python.org/mailman/listinfo/python-list

3 weeks to go to Python-UK!

2005-04-01 Thread andy
move between tracks and learn from a world-class program on patterns, agile development, Java, C++ and C# as well as Python. Best Regards, Andy Robinson Python-UK Conference chair -- http://mail.python.org/mailman/listinfo/python-list

Ten days to go until Python-UK...

2005-04-11 Thread andy
ease register now at... https://www.accu.org/bookings/ Best Regards, Andy Robinson ACCU Python Conference Chair -- http://mail.python.org/mailman/listinfo/python-list

Nokia to speak at Python-UK next week

2005-04-14 Thread andy
.html Best Regards, Andy Robinson Python-UK conference chair -- http://mail.python.org/mailman/listinfo/python-list

Re: how to lock a file in ftp site

2005-12-19 Thread andy
[EMAIL PROTECTED] wrote: >hi all > >am trying to write some information into the file, which is located in >ftp, and this file can be updated by number of people, but if at all i >download a file from the ftp to my local machine, update it and then >upload it back to ftp, and at the same time if s

Re: problem adding list values

2005-12-22 Thread andy
David M. Synck wrote: >Hi all, > >I am fairly new to Python and trying to figure out a syntax error >concerning lists and iteration through the same. What I am trying to do is >sum a list of float values and store the sum in a variable for use later. > >The relevant code looks like this - > >def

command text parsing and hints displaying on user input.

2006-10-16 Thread Andy
Another requirment is to display useful hints when user input the command text. Example: user input:"5" -> hints: "5 minutes later/5 hours later/5 days later/every 5 minutes" user input:"fi" -> hints: "next Friday"/"first thing tommorrow" us

Re: command text parsing and hints displaying on user input.

2006-10-16 Thread Andy
Anybody have an idea on this?? Does Natural Language Processing help in this case? -- http://mail.python.org/mailman/listinfo/python-list

How do I find possible matches using regular expression?

2006-11-23 Thread Andy
I mark 'ma' as a possible match string? Thanks a lot, Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I find possible matches using regular expression?

2006-11-23 Thread Andy
The problem is the input will be much more complex than the example, it could be something like "30 minutes later" where any string starting with a number is a possible match. Paul McGuire 寫道: > "Andy" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROT

Re: How do I find possible matches using regular expression?

2006-11-23 Thread Andy
on is again how to do suggestions with the RE collection. Any thoughts on this subject? I'm not a native English speaker so...please, be mistake tolerant with my post here:-) "Fredrik Lundh 写道: " > Andy wrote: > > > The problem is the input will be much more complex

Re: How do I find possible matches using regular expression?

2006-11-23 Thread Andy
The seems good to me, I'll try it out, thanks for the posting. "Peter Otten 写道: " > Andy wrote: > > > I'm trying to do some predicting work over user input, here's my > > question: > > > > for pattern r'match me', the string '

Re: How do I find possible matches using regular expression?

2006-11-23 Thread Andy
This works well as a checking strategy, but what I want is a suggesting list... Maybe what I want is not practical at all? Thanks anyway Peter. Andy Wu Andy ��道: > The seems good to me, I'll try it out, thanks for the posting. > > > "Peter Otten 写道: > " > &

Quick and dirty dialogs?

2005-05-02 Thread andy
What's the easiest way for a script to throw up simple dialogs such as file select and alerts? I thought there was something in the standard library that didn't need TK and was cross-platform but I can't seem to get my Google-fu working well enough to find it. -- http://mail.python.org/mailman/l

Re: Quick and dirty dialogs?

2005-05-02 Thread andy
By 'not needing TK' I meant 2 things: 1. Is there a one liner/no brainer as I'm short on time and, yes, didn't want to start fiddling with anything new (normally I'd leap at the opportunity ;-) 2. I couldn't remember if TK is installed by default on a vanilla OS X install. My script is going to h

Re: Quick and dirty dialogs?

2005-05-02 Thread andy
Stopped being lazy and found the TK answer myself. (it needs some extra stuff installed. see the macpython site's faq for info). Still be interested to know if there is a sem-cross-platform solution to simple dialogs that doesn't need TK... -- http://mail.python.org/mailman/listinfo/python-list

new string function suggestion

2005-06-13 Thread Andy
ath.lchop('html/') path = path.lchop('text/') except SomeException: pass Does anyone else find this to be a common need? Has this been suggested before? Andy -- http://mail.python.org/mailman/listinfo/python-list

String formatting for complex writing systems

2007-06-27 Thread Andy
tring format function that can deal with this kind of writing properly? Any suggestion is highly appreciated. Thanks! Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: String formatting for complex writing systems

2007-07-02 Thread Andy
Thanks guys! I've used the HTML and the unicodedata suggestions, each on a different report. These worked nicely! Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: *** Watch BOMBSHELL video of Senator John Kerry admitting 911 was in INSIDE JOB ???

2007-04-24 Thread Andy
On 23 Apr 2007 21:12:45 -0700, [EMAIL PROTECTED] wrote: >http://www.911blogger.com/node/8053 > >Senator John Kerry was questioned concerning 9/11 during an appearance >at Book People in Austin, Texas. Members of Austin 9/11 Truth Now >asked Kerry about the officially unexplained collapse of WTC Bu

List objects are un-hashable

2007-04-27 Thread Andy
Hi, I'm trying to search and print any no# of Python keywords present in a text file (say - foo.txt), and getting the above error. Sad for not being able to decipher such a simple problem (I can come up with other ways - but want to fix this one FFS). Any help is appreciated. Thanks!! import keywo

Re: List objects are un-hashable

2007-04-27 Thread Andy
> What you want is something like: > > for line in inp: > lines +=1 > # a list of words > tempwords = line.split() > for k in tempwords: > if keyword.iskeyword(k): > print tempwords I think it should be: if keyword.iskeyword(k): print k

Re: List objects are un-hashable

2007-04-29 Thread Andy
Thanks Michael and Ant. -- http://mail.python.org/mailman/listinfo/python-list

Counting

2007-04-29 Thread Andy
Hi, the file below will print all the keywords in a file and also the line # of the keyword. What I couldn't figure out is to count those keywords per line. For example - "Line #1 has 3 keywords" Can I do like - total[j] = total[j] + numwords(k) "Line number %d has %d keywords" % (j, total[j]) S

Re: Counting

2007-04-29 Thread Andy
I pretty doubt about this - "c = line.count(k)" I might wanna recheck on that. - I think it would be obvious how to write this: for i,line in enumerate(linelist): line = line.split() for k in line: if keyword.iskeyword(k): c = line.count(k)

Re: Counting

2007-04-29 Thread Andy
James - I pretty doubt about this - "c = line.count(k)" You might wanna recheck on that. I think it would be obvious how to write this: for i,line in enumerate(linelist): line = line.split() for k in line: if keyword.iskeyword(k):

Re: Counting

2007-05-06 Thread Andy
.o0 -- http://mail.python.org/mailman/listinfo/python-list

Examples / Links needed

2007-05-06 Thread Andy
Gurus, I'm looking for definite examples (pardon me if I'm not clear here) on Stack class...Somewhat like this : class Stack(object): def __init__(self__) self.__contents = [] and ad hoc implementation of a class based on number system like for example somewhat like this def __

Development for dual core machine

2007-08-19 Thread Andy
ill anyway) the package should be able to use multiple CPUs. Is my understanding correct? So actually, all I have to do is just write my multi-threaded Python code as usual? And how is it decided which process and which threads go to CPU 1, CPU 2, etc.? Perhaps the BIOS? Any advice greatly appr

Re: Development for dual core machine

2007-08-19 Thread Andy
Thanks guys for the suggestions. Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: stopping a while True: with the keyboard

2007-09-25 Thread Andy
e the while loop, use the 'break' command. Andy -- http://mail.python.org/mailman/listinfo/python-list

Embedded Python - Blocking Python Function

2007-11-14 Thread andy
o call Py_EndInterpreter(thread); then I get a runtime error (presumably because the Main function is still executing). thanks, Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedded Python - Blocking Python Function

2007-11-15 Thread andy
On Nov 14, 4:20 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > Not forcibly - you need some cooperation from the Main function. Maybe > setting a global variable that Main checks periodically. Thanks. I'll give that a try! Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedded Python - Blocking Python Function

2007-11-15 Thread andy
On Nov 15, 9:43 am, [EMAIL PROTECTED] wrote: > On Nov 14, 4:20 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> > wrote: > > > Not forcibly - you need some cooperation from the Main function. Maybe > > setting a global variable that Main checks periodically. >

Redirecting sys.stdin

2007-11-15 Thread andy
Can anyone tell me what I am doing wrong with the following code? When python 2.4 is embedded it crashes because of the assignment to stdin. import sys; class RedirectB: def readline(self): return "bar"; sys.stdin = RedirectB(); Thanks! Andy -- http://mail.python.org/mailma

Re: Redirecting sys.stdin

2007-11-15 Thread andy
r"; > > sys.stdin = RedirectB(); Seems the interpreter didn't like me using one class to redirect stdout and stderr and another class to redirect stdin. Sigh. Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedded Python - Blocking Python Function

2007-11-16 Thread andy
p interpreter by sending system exit exception to it's thread PyThreadState_SetAsyncExc(thread->thread_id, PyExc_SystemExit); PyThreadState_Swap(maininterpreter); PyEval_ReleaseLock(); Andy -- http://mail.python.org/mailman/listinfo/python-list

Embedding Python - Passing by Reference

2007-11-29 Thread andy
that I am trying to wrap an existing C based API as closely as possible, so I can't return the value using return (this example is greatly simplified and I'm already using the return value for other things). Thanks! Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python - Passing by Reference

2007-11-29 Thread andy
Thanks for the replies - I see that I completely misunderstood "passing by reference" when discussing Python. It looks like wrapping the object up in a list will be the path I go down as it remains closer to the C API I am wrapping. Thanks again! Andy -- http://mail.python.org/mailma

Regression test test_site failed on current trunk

2009-02-19 Thread Andy
Hi, I checked out the python trunk (curently 2.7a0), compiled it on my linux machine and run the regression test suit. Below is the output of the failed part: test_site [14871 refs] test test_site failed -- Traceback (most recent call last): File "/mybook/storage/python_lnx/Lib/test/test_site.p

Re: Regression test test_site failed on current trunk

2009-02-19 Thread Andy
On 19 Feb., 21:47, Steve Holden wrote: > Do you mean you can't get previous lines in your Python command history > to show up? This sounds as though you may not have built the readline > support in to your experimental build. I can't remember exactly what the > deal is, but I know that readline i

Question related to wx and dynamically updating windows

2008-10-20 Thread Andy
I want to dynamically update a list of elements shown as a checkbox list. A file is used to store the elements, and elements can be added and deleted from the list. The trouble is that the window is not properly updated after deleting/adding items. I use the Detach()/Destroy() to remove the

2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Andy
Until there's a hello world that demonstrates running independent python interpreters on multiple app threads, lua will remain the clear choice over python. Python 3 needs true interpreter independence and multi-threaded support! Thanks, Andy O'Meara -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Andy
ering that (or rather, having our company hire/pay part of the python dev community to do the work). To consider that, the question becomes, how many modules are we talking about do you think? 10? 100? I confess that I'm no familiar enough with the full C python suite to have a good idea of how much work we're talking about here. Regards, Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Andy
ail me off-list if you prefer. Oh, while I'm at it, if anyone in the python dev community (or anyone that has put real work into python) is interested in our software, email me and I'll hook you up with a complimentary copy of the products that use python (music visuals for iTunes and WMP). Regards, Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Andy
re no doubt factor in to why end-user dev houses ultimately may have to pass up python in favor of another interpreted language. Bottom line: why give prospective devs any reason to turn down python-- there's just so many great things about python! Regards, Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Andy
over the years so we have good experience in house, our tools are high performance, and we only use a pretty small subset of python). Or, there's the more attractive approach to work with the python dev community and put that dev expenditure into a form everyone can benefit from. Regards, A

Re: 2.6, 3.0, and truly independent intepreters

2008-10-22 Thread Andy
ep saying their WILLING and INTERESTED in supporting python development. And, you're exactly right: users see only their immediate problem--but that's the definition of being a user. If users saw the whole picture from the dev side, then they be developers, not users. Please consider that

How Do I think of import?

2009-04-05 Thread Andy
s 90 definitions PtLabel 54 and PtButton 11. Thanks, Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Please, I Have A Question before I get started

2006-03-15 Thread Andy
s and I'll forward the code on to you (34 KB). [EMAIL PROTECTED] Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: remove a directory with special chars

2006-03-18 Thread andy
Is there a special reason you want to use Python to do this? The Linux command shell would probably do exactly the same job (you can specify backslash-escaped characters at the command-line)... anyway to do it in python: import os os.remove("/path/to/the/file/.\177\177") Note that under Lin

Re: Can I use a conditional in a variable declaration?

2006-03-19 Thread andy
literals, it's no problem, but if they're (possibly compute-intensive) function calls, it would matter. I find the list evaluation easier to parse than the and/or equation, and in instances where that would be necessary, I will use the longhand if ... else ... structure for readability. hth, -andy -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial script doesnt execute properly

2010-03-09 Thread Andy
some free software as counterpart to your Arduino device in order to confirm the microcontroller is sending exactly what you think it is sending. In other words, is it sending to your Python program '11' or '1\n1\n'? Also to confirm other details such as parity bits, baud, etc. Cheers, Andy -- http://mail.python.org/mailman/listinfo/python-list

Can 32-bit and 64-bit Python coexist in the same computer?

2010-10-26 Thread Andy
same computer. Is there anything I need to know or a better way to achieve this instead of having a double Python installation? By the way, I use Python 2.6, so it would be [Python 2.6.x 32-bit] and [Python 2.6.x 64-bit] on the same computer. Thanks! Andy -- http://mail.python.org/mailman/lis

Python Regular Expressions

2011-06-22 Thread Andy Barnes
y to see what I am trying to achieve from the above. I'd be very happy to accept assistance in automating the conversion of my ever expanding csv file, into the dot format described above. Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Regular Expressions

2011-06-22 Thread Andy Barnes
to expand. I have parsed one of the lines manually to try and break the process I'm trying to automate down. source: Theurgic Lore, Lore, n/a, 105, 70, 30, Distil Mana output: TheurgicLore [label="{ Theurgic Lore |{Lore|n/a}|{105|70|30}}"]; DistilMana -> TheurgicLore; This is the steps I would t

threads with gtk gui problem

2011-05-14 Thread Andy Baxter
character read in) ('keeper' is a global object which stores the config data and references to a few key objects). When you start the program, the thread stops either before the first print statement, or on the line which initialises the serial port ( fhan=serial.Serial(...) ). &#x

Re: threads with gtk gui problem

2011-05-14 Thread andy baxter
On 14/05/11 14:12, Andy Baxter wrote: Hi, I'm working on adding a Gtk GUI to a python program. Its main function is to read raw data from an arduino board over USB, and convert it to MIDI note/controller events to be sent to another program. I've had it working fine with just a co

Re: threads with gtk gui problem

2011-05-14 Thread andy baxter
On 14/05/11 14:12, Andy Baxter wrote: Hi, I'm working on adding a Gtk GUI to a python program. Its main function is to read raw data from an arduino board over USB, and convert it to MIDI note/controller events to be sent to another program. I've had it working fine with just a co

Re: regular expression i'm going crazy

2011-05-16 Thread andy baxter
On 16/05/11 17:25, Tracubik wrote: pls help me fixing this: import re s = "linka la baba" re_s = re.compile(r'(link|l)a' , re.IGNORECASE) print re_s.findall(s) output: ['link', 'l'] why? i want my re_s to find linka and la, he just find link and l and forget about the ending a. The round br

indirect assignment question

2011-05-16 Thread Andy Baxter
for key in widgetDic: ... set the variable in dic[key] to point to self.wTree.get_widget(key) somehow what I need is some kind of indirect assignment where I can assign to a variable whose name is referenced in a dictionary value. Is there a way of doing this in python? thanks, andy baxter -- http://highfellow.org -- http://mail.python.org/mailman/listinfo/python-list

Re: Cartoonify Myself

2011-05-17 Thread andy baxter
On 17/05/11 20:26, Chris M. Bartos wrote: Hi, Is there a Python module that can "cartoonify" a picture of myself? There's got to be an algorithm out there somewhere, right? If there is a way to cartoon a single picture, could you cartoonify a video, too? Thanks for your help. Chris You

The split() function of Python's built-in module has changed in a puzzling way - is this a bug?

2021-04-22 Thread Andy AO
Upgrading from Python 3.6.8 to Python 3.9.0 and executing unit tests revealed a significant change in the behavior of re.split(). but looking at the relevant documentation — Changelog and re - Regular expression operations - Python 3.9.4 documen

PEP 572 implementation for Python

2018-07-22 Thread Andy Valencia
lf.count += 1) > PROBLEM: ... In the interests of orthogonality, I did *not* add code to disable places where some expressions--but not these new ones--could be used. Go ahead and say: a := 1 at the top level if that's what floats your boat. Regards, Andy Valencia -- https://mail.python.org/mailman/listinfo/python-list

pdb which handles threads

2018-11-19 Thread Andy Valencia
nly one involved with the keyboard. All others wait politely. "fg " To switch to a different thread. I welcome comments (it's for Python 2), under: http://sources.vsta.org/ Regards, Andy Valencia -- https://mail.python.org/mailman/listinfo/python-list

TurboGears /.-ed, >new == True< or >new == "True"

2005-10-11 Thread Andy Leszczynski
watch this: http://www.turbogears.org.nyud.net:8090/docs/wiki20/20MinuteWiki.mov or read this: http://www.turbogears.org.nyud.net:8090/docs/wiki2 0/page4.html should not it be: 2 def save(self, pagename, data, submit, new): 3 hub.begin() 4 if new == True: 5 page = Page(pagename=pagename, dat

piping out binaries properly

2005-10-11 Thread Andy Leszczynski
I have got following program: import sys import binascii from string import * sys.stdout.write(binascii.unhexlify("41410A4141")) when I run under Unix I got: $ python u.py > u.bin $ od -t x1 u.bin 000 41 41 0a 41 41 and under Windows/Cygwin following: $ python u.py > u.bin $ od -t x1 u.bi

Re: piping out binaries properly

2005-10-11 Thread Andy Leszczynski
Mike Meyer wrote: > It's not normal to write binary content to stdout - you normally write Well, I grew up in the Unix world and it is normal over there. I am still curious which layer adds that 0xd. Is it python, cygwin, windows ... Thx for reply, Andy -- http://mail.python.org

Re: TurboGears /.-ed, >new == True< or >new == "True"

2005-10-12 Thread Andy Leszczynski
Sybren Stuvel wrote: > Andy Leszczynski enlightened us with: > >>should not it be: >> >>2 def save(self, pagename, data, submit, new): >>3 hub.begin() >>4 if new == True: >>5 page = Page(pagename=pagename, data=data) >>6 else: >>7 pag

creating/altering the OpenOffice spredsheet docs

2005-10-26 Thread Andy Leszczynski
Any idea how to do that the way ActiveX would be used on M$? A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python vs Ruby

2005-10-26 Thread Andy Leszczynski
Steven D'Aprano wrote: > > Every line = more labour for the developer = more cost and time. > Every line = more places for bugs to exist = more cost and time. > The place I work at the creation rate is not a problem - we could crank out in the team 1000s lines a week. Most time we spend is on m

Re: Python vs Ruby

2005-10-26 Thread Andy Leszczynski
Amol Vaidya wrote: > Hi. I am interested in learning a new programming language, and have been > debating whether to learn Ruby or Python. How do these compare and contrast > with one another, and what advantages does one language provide over the > other? I would like to consider as many opinio

pickle - recursion - stack size limit - MS windows

2005-11-05 Thread Andy Leszczynski
I need to pickle quite complex objects and first limitation was default 200 for the recursion. sys.setrecursionlimit helped, but still bigger objects fail to be pickled because of XP stack size limitation. Any idea how to get around the problem ... A. -- http://mail.python.org/mailman/listinfo/p

Re: python + ODBC + Oracle + MySQL - money

2005-11-10 Thread rios . andy
r know that you got recommend this approach by a Graduate of the University of Toronto with a degree in Computre Engineering. :-P So, hope this helps, feel free to ask more questions, hopefully others will have some more ideas to share. My two cents, Andy -- http://mail.python.org/mailman/listinfo/python-list

[OT] Oracle 9i client for Linux

2005-11-29 Thread Andy Leszczynski
Where can I find such? I can download from Oracle whole thing but no the client itself. Any insight? Thanks, A. -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] Oracle 9i client for Linux

2005-11-29 Thread Andy Leszczynski
Bernard Delmée wrote: > Look into the Oracle Instant Client: > > (might require a -free- OTN registration) It is version 10, would it be compatible with 9i servers? > Be sure to download the smallish "sdk" if you want

Re: Embedding a restricted python interpreter

2005-01-05 Thread Andy Gross
Check out http://mail.python.org/pipermail/python-dev/2003-January/031851.html for a historical thread on rexec.py's vulnerabilities. Right now, the answer for people who want restricted execution is usually "wait for pypy", due to the number of tricks that can subvert the rexec model. There

Re: a new Perl/Python a day

2005-01-09 Thread Andy Gross
On Jan 10, 2005, at 12:11 AM, Scott Bryce wrote: No. Perl may have some interesting idiosyncrasies, especially for a programmer with little or no Unix experience, but I find it neither frustrating, inane nor incompetent. The more I use it, the more I like it. I don't see what UNIX experience has

Re: Problem in importing MySQLdb

2005-01-20 Thread Andy Dustman
Gurpreet Sachdeva wrote: > Is there any problem in library files?? Do I need to install anything > I have installed MySQL-shared-3.23.54a-1.i386.rpm, > MySQL-devel-5.0.2-0.i386.rpm, MySQL-client-5.0.2-0.i386.rpm, > MySQL-server-5.0.2-0.i386.rpm You should recheck those version numbers carefully.

Re: Mac OS and MySQLdb

2005-01-28 Thread Andy Dustman
The source is for all platforms. Use the Source, Luke. If 1.1.9 does not compile on Mac OS X, file a bug. -- http://mail.python.org/mailman/listinfo/python-list

Re: An mysql-python tutorial?

2005-01-29 Thread Andy Dustman
It's a pretty good tutorial, thought I would recommend you forget about the fetchone() example. The example below demonstrates three additional features that will make your life easier: MySQL option files, tuple unpacking, and cursors as iterators (fourth feature: the default host is localhost; thi

Re: An mysql-python tutorial?

2005-01-30 Thread Andy Dustman
It definitely looks like an access control problem; recheck your grants. -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb - Tuples

2005-02-02 Thread Andy Dustman
#33 #! /usr/bin/env python import MySQLdb db=MySQLdb.connect(host='localhost', db='photum_0_6_2', user='root', passwd='thkhgfgd') c=db.cursor() c.execute('select person from persons order by person') for (person,) in c: # or c.fetchall() (may be more portable

Re: Install MySQL-python-0.9.1

2005-06-21 Thread Andy Dustman
Cathy Hui wrote: > I am trying to install MySQL-Python 0.9.1 on my Solaris 8 system. The > system has Python 2.3.3 and Mysql 4.0.21 installed. You're wasting your time. Use MySQL-python-1.2.0. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to connect python and Mysql?

2005-06-29 Thread Andy Dustman
Post your question here: http://sourceforge.net/forum/forum.php?forum_id=70461 -- http://mail.python.org/mailman/listinfo/python-list

Re: Python, mysql, floating point values question

2005-07-03 Thread Andy Dustman
Use DECIMAL columns with MySQLdb-1.2.0 and Python-2.4 and you should get values back using Python's new decimal type. http://docs.python.org/whatsnew/node9.html This avoids floating point inaccuracies. -- http://mail.python.org/mailman/listinfo/python-list

Berkely DB – many writers, many rea ders

2005-07-07 Thread Andy Leszczynski
I need to now option I open the Berkley DB (both db and env) to have configuration for multiple writers and multiple readers. Via multiple processes and multiple threads. No trx needed. A. -- http://mail.python.org/mailman/listinfo/python-list

Re: Cursor navigation

2005-07-19 Thread Andy Dustman
TA wrote: > Hi, > > This might be a silly question, but I was wondering how you would navigate > backwards in a PostgreSQL cursor when the Python DB-API 2.0 allows records > to be fetched in a forward-only manner? This is untrue: cursor.scroll() is an optional DB-API 2.0 extension. http://www.pyt

>time.strftime %T missing in 2.3

2005-08-04 Thread Andy Leszczynski
Python 2.2/Unix >>time.strftime("%T") '22:12:15' >>time.strftime("%X") '22:12:17' Python 2.3/Windows >>time.strftime("%X") '22:12:47' >> time.strftime("%T") '' Any clues? A. -- http://mail.python.org/mailman/listinfo/python-list

Re: >time.strftime %T missing in 2.3

2005-08-04 Thread Andy Leszczynski
Robert Kern wrote: > Andy Leszczynski wrote: > >> Python 2.2/Unix >> >> >>time.strftime("%T") >> '22:12:15' >> >>time.strftime("%X") >> '22:12:17' >> >> Python 2.3/Windows >> &

Re: Berkely DB – many writers, many readers

2005-08-06 Thread Andy Leszczynski
Eric S. Johansson wrote: > Andy Leszczynski wrote: > >> >> I need to now option I open the Berkley DB (both db and env) to have >> configuration for multiple writers and multiple readers. Via multiple >> processes and multiple threads. No trx needed. > &g

Python supports LSP, does it?

2005-08-09 Thread Andy Leszczynski
wikipedia (http://en.wikipedia.org/wiki/Python_programming_language#Object-oriented_programming) says: """ Python's support for object oriented programming paradigm is vast. It supports polymorphism [...] fully in the Liskov substitution principle-sense for all objects. """ Just wondering if

  1   2   3   4   >