What language to manipulate text files

2005-06-11 Thread ross
manipulation. The language should run on Windows 98, XP and Linux. Would Python be best, or would a macro-scripting thing like AutoHotKey work? I thought about Perl, but think I would learn bad habits and have hard to read code. Thanks, Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: What language to manipulate text files

2005-06-12 Thread ross
is it best to ask in then? Is there one where people have good knowledge of many scripting languages? Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: What language to manipulate text files

2005-06-17 Thread ross
I tried Bash on Cygwin, but did not know enough about setting up the environment to get it working. Instead I got an excellent answer from alt.msdos.batch which used the FOR IN DO command. My next job is to learn Python. Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: Filtering out non-readable characters

2005-07-19 Thread Ross
On 15 Jul 2005 17:33:39 -0700, MKoool [EMAIL PROTECTED] wrote: I have a file with binary and ascii characters in it. I massage the data and convert it to a more readable format, however it still comes up with some binary characters mixed in. I'd like to write something to just replace all

Cross-Platform Bonjour Module

2006-02-22 Thread Ross
Can anybody point me to a Python module for using the mDNSResponder stuff (http://developer.apple.com/networking/bonjour)? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

league problem in python

2009-04-01 Thread Ross
I'm new to programming and have chosen Python as my first language. I've gone through Allen Downey's Think Python book and I think I'm ready to dive into a project. The first problem I've chosen to tackle is a problem I have seen at my tennis club. Each spring/fall, the pro puts out a sheet of

possible pairings in a set

2009-04-04 Thread Ross
I'm new to python and I'm trying to come up with a function that takes a given number of players in a game and returns all possible unique pairings. Here's the code I've come up with so far, but I'm not getting the output I'd like to: def all_pairings(players): cleanlist = [] for

sharing/swapping items between lists

2009-04-10 Thread Ross
I'm trying to design an iterator that produces two lists. The first list will be a list of unique pairings and the second will be a list of items that weren't used in the first list. After each round, the items that weren't used in the round before will get put back in and the second list will be

Re: sharing/swapping items between lists

2009-04-13 Thread Ross
On Apr 11, 1:10 pm, a...@pythoncraft.com (Aahz) wrote: In article 4fd78ac3-ba83-456b-b768-3a0043548...@f19g2000vbf.googlegroups.com, Ross  ross.j...@gmail.com wrote: I'm trying to design an iterator that produces two lists. The first list will be a list of unique pairings and the second

Re: sharing/swapping items between lists

2009-04-13 Thread Ross
On Apr 13, 9:08 am, a...@pythoncraft.com (Aahz) wrote: In article c569228f-f391-4317-83a2-08621c601...@r8g2000yql.googlegroups.com, Ross  ross.j...@gmail.com wrote: I'm sorry...my example was probably a bad one. A better example of output I would like would be something like [[1,2],[3,4

Re: sharing/swapping items between lists

2009-04-14 Thread Ross
On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote: In article f64c9de2-3285-4f74-adb8-2111c78b7...@37g2000yqp.googlegroups.com, Ross  ross.j...@gmail.com wrote: On Apr 13, 9:08=A0am, a...@pythoncraft.com (Aahz) wrote: In article c569228f-f391-4317-83a2-08621c601

Re: sharing/swapping items between lists

2009-04-14 Thread Ross
On Apr 14, 10:34 am, Ross ross.j...@gmail.com wrote: On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote: In article f64c9de2-3285-4f74-adb8-2111c78b7...@37g2000yqp.googlegroups.com, Ross  ross.j...@gmail.com wrote: On Apr 13, 9:08=A0am, a...@pythoncraft.com (Aahz) wrote

Re: sharing/swapping items between lists

2009-04-14 Thread Ross
On Apr 14, 7:18 pm, Aaron Brady castiro...@gmail.com wrote: On Apr 14, 7:01 pm, Aaron Brady castiro...@gmail.com wrote: On Apr 14, 12:37 pm, Ross ross.j...@gmail.com wrote: On Apr 14, 10:34 am, Ross ross.j...@gmail.com wrote: On Apr 14, 5:57 am, a...@pythoncraft.com (Aahz) wrote

indirectly addressing vars in Python

2008-10-01 Thread Ross
]= myList[1]+1 myList [1, 7] peas 6 So I don't seem to change the value of peas as I wished. I'm passing the values of the vars into the list, not the vars themselves, as I would like. Your guidance appreciated... Ross. -- http://mail.python.org/mailman/listinfo/python-list

Managing timing in Python calls

2008-12-15 Thread Ross
some feedback on whether that's a logical path forward, or if there are some nicer constructs into which I might look? Thanks for any suggests... Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: Managing timing in Python calls

2008-12-15 Thread Ross
on loading images - gives me some guts to just give it a try without threading it and see how it goes. I appreciate the quick input :) Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: Managing timing in Python calls

2008-12-17 Thread Ross
to proceed. I do want to know more about the 'with' command tho' so I'll look into that. Thx again. Ross. cmdrrickhun...@yaho.com wrote: I believe WxTimerEvent is handled using the event queue, which isn't going to do what you want. An event which goes through the queue does not get

Custom C Exception Subclasses

2008-12-24 Thread Ross
For a project that I am doing, it would be useful to have an exception class that stores some additional data along with the message. However, I want to be able to store a couple pointers to C++ classes, so I can't just use an exception created with PyExc_NewException. If I were to subclass the

Re: Custom C Exception Subclasses

2008-12-24 Thread Ross
On Dec 24, 9:24 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: In fact you can, you could store those pointers as attributes of the exception object, using a PyCObject. Excellent. I was not aware of the PyCObject type. Accessing those attributes isn't as easy as doing exc-field, but I

get method

2008-12-29 Thread Ross
I am teaching myself Python by going through Allen Downing's Think Python. I have come across what should be a simple exercise, but I am not getting the correct answer. Here's the exercise: Given: def histogram(s): d = dict() for c in s: if c not in d: d[c] = 1

Re: get method

2008-12-29 Thread Ross
On Dec 29, 8:07 pm, Scott David Daniels scott.dani...@acm.org wrote: Ross wrote: ... Use get to write histogram more concisely. You should be able to eliminate the if statement. def histogram(s):    d = dict()    for c in s:            d[c]= d.get(c,0)    return d This code

formatted 'time' data in calculations

2009-01-07 Thread Ross
for anything you can offer) -Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: formatted 'time' data in calculations

2009-01-07 Thread Ross
Thanks Chris and Diez for the quick pointers... Very helpful Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: formatted 'time' data in calculations

2009-01-08 Thread Ross
Scott David Daniels wrote: Ross wrote: There seems to be no shortage of information around on how to use the time module, for example to use time.ctime() and push it into strftime and get something nice out the other side, but I haven't found anything helpful in going the other way

Re: formatted 'time' data in calculations

2009-01-08 Thread Ross
Thanks Chris and Diez for the quick pointers... Very helpful Ross. -- http://mail.python.org/mailman/listinfo/python-list

My Python / wxPython app crashing - suggestions?

2009-11-27 Thread Ross
that precipitate it. Regards, Ross. -- http://mail.python.org/mailman/listinfo/python-list

unpacking vars from list of tuples

2009-09-15 Thread Ross
that? I can imagine the obvious one of myList = [] for a in k: myList.append(a[1]) But I'm guessing Python has something that will do that in one line... Any suggestion is appreciated... Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: unpacking vars from list of tuples

2009-09-15 Thread Ross
On Sep 15, 6:00 pm, Andre Engels andreeng...@gmail.com wrote: On Tue, Sep 15, 2009 at 11:51 PM, Ross ros...@gmail.com wrote: I'm inexperienced with some of the fancy list slicing syntaxes where python shines. If I have a list of tuples:   k=[(a, bob, c), (p, joe, d), (x, mary, z

Re: unpacking vars from list of tuples

2009-09-15 Thread Ross
Thanks Tim, That's actually the stuff I was trying to remember. my_list = [name for _, name, _ in k] I recalled using some underscores for nice dense unnamed variable unpacking before, but couldn't recall the process. Thanks for that. Ross. On 15-Sep-09, at 6:33 PM, Tim Chase wrote

Re: unpacking vars from list of tuples

2009-09-17 Thread Ross
Cool - Now that would be some seriously dense, efficient code! Will have to play with numpy sometime. R. On 17-Sep-09, at 12:25 PM, Chris Colbert wrote: if you have numpy installed: ln[12]: import numpy as np In [13]: k = np.array([('a', 'bob', 'c'), ('p', 'joe', 'd'), ('x', 'mary',

Not this one the other one, from a dictionary

2009-09-18 Thread Ross
? - Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: Not this one the other one, from a dictionary

2009-09-18 Thread Ross
Thanks Tim (and Ishwor) for the suggestions, those are structures that somewhat new to me - looks good! I'll play with those.At this rate I may soon almost know what I'm doing. Rgds Ross. On 18-Sep-09, at 1:19 PM, Tim Chase wrote: Learning my way around list comprehension a bit. I

Plain simple unix timestamp with an HTTP GET

2010-06-03 Thread Ross
someone else is already doing that? My googling has fallen flat. Any suggestions. Thanks in advance! -Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: Plain simple unix timestamp with an HTTP GET

2010-06-03 Thread Ross
No - it's not really a python specific need, it's just what I'm using just now, and can't think of where else to ask. It's also my fav test- bed, as it's so easy. Your curl example is using grep and date which I don't have available. I have no fancy libraries, just core parsing capability. I

Re: Plain simple unix timestamp with an HTTP GET

2010-06-04 Thread Ross
On Jun 3, 11:20 pm, livibetter livibet...@gmail.com wrote: This? hwclock --utc --set --date=$(datestr=$(curlhttp://208.66.175.36:13/ 2/dev/null | cut -d \  -f 2-3) ; echo ${datestr//-//}) Only hwclock, curl, cut, and Bash. PS. I didn't know I can set the time via hwclock, learned from

unicode compare errors

2010-12-10 Thread Ross
get past this? How do I make such comparisons be True? Thanks in advance for any suggestions Ross. -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode compare errors

2010-12-10 Thread Ross
On Dec 10, 2:51 pm, Ross ros...@gmail.com wrote: Initially I was simply doing:   currs = [u'$', u'£', u'€', u'¥']   aFile = open(thisFile, 'r')   for mline in aFile:              # mline might be £5.50      if item[0] in currs:           item = item[1:] Don't you love it when someone

Re: unicode compare errors

2010-12-13 Thread Ross
On Dec 10, 4:09 pm, Nobody nob...@nowhere.com wrote: On Fri, 10 Dec 2010 11:51:44 -0800, Ross wrote: Since I can't control the encoding of the input file that users submit, how to I get past this?  How do I make such comparisons be True? On Fri, 10 Dec 2010 12:07:19 -0800, Ross wrote: I

Removing items from a list simultaneously

2009-04-20 Thread Ross
Is there a quick way to simultaneously pop multiple items from a list? For instance if i had the list a = [1,2,3,4,5,6,7] and I wanted to return every odd index into a new list, my output would be new_list = [2,4,6] or similarly if I wanted to return each index that was one away from the midpoint

complementary lists?

2009-04-28 Thread Ross
If I have a list x = [1,2,3,4,5,6,7,8,9] and another list that is a subset of x: y = [1,4,7] , is there a quick way that I could return the complementary subset to y z=[2,3,5,6,8,9] ? The reason I ask is because I have a generator function that generates a list of tuples and I would like to

list comprehension question

2009-04-30 Thread Ross
If I have a list of tuples a = [(1,2), (3,4), (5,6)], and I want to return a new list of each individual element in these tuples, I can do it with a nested for loop but when I try to do it using the list comprehension b = [j for j in i for i in a], my output is b = [5,5,5,6,6,6] instead of the

yet another list comprehension question

2009-05-02 Thread Ross
I'm trying to set up a simple filter using a list comprehension. If I have a list of tuples, a = [(1,2), (3,4), (5,None), (6,7), (8, None)] and I wanted to filter out all tuples containing None, I would like to get the new list b = [(1,2), (3,4),(6,7)]. I tried b = [i for i in a if t for t in i

Re: yet another list comprehension question

2009-05-02 Thread Ross
On May 2, 7:21 pm, Chris Rebert c...@rebertia.com wrote: On Sat, May 2, 2009 at 7:13 PM, Ross ross.j...@gmail.com wrote: I'm trying to set up a simple filter using a list comprehension. If I have a list of tuples, a = [(1,2), (3,4), (5,None), (6,7), (8, None)] and I wanted to filter out all

Code works fine except...

2009-05-03 Thread Ross
For the past couple weeks, I've been working on an algorithm to schedule tennis leagues given court constraints and league considerations (i.e. whether it's a singles or a doubles league). Here were my requirements when I was designing this algorithm: -Each player plays against a unique opponent

Re: Code works fine except...

2009-05-04 Thread Ross
On May 3, 10:16 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 3, 11:29 pm, Chris Rebert c...@rebertia.com wrote: Probably not the cause of the problem, but where did the magic numbers 1.072 and 1.08 come from? It is perhaps not the most direct cause of the problem, in the sense

Re: Code works fine except...

2009-05-04 Thread Ross
On May 4, 7:01 am, Ross ross.j...@gmail.com wrote: On May 3, 10:16 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 3, 11:29 pm, Chris Rebert c...@rebertia.com wrote: Probably not the cause of the problem, but where did the magic numbers 1.072 and 1.08 come from

Re: Code works fine except...

2009-05-04 Thread Ross
On May 3, 8:29 pm, John Machin sjmac...@lexicon.net wrote: On May 4, 12:36 pm, Ross ross.j...@gmail.com wrote: For the past couple weeks, I've been working on an algorithm to schedule tennis leagues given court constraints and league considerations (i.e. whether it's a singles

Re: Code works fine except...

2009-05-04 Thread Ross
On May 4, 12:15 pm, a...@pythoncraft.com (Aahz) wrote: In article 8d4ec1df-dddb-469a-99a1-695152db7...@n4g2000vba.googlegroups.com, Ross  ross.j...@gmail.com wrote: def test_round_robin(players, rounds, courts, doubles = False):    players = range(players)    for week in round_robin

Re: Code works fine except...

2009-05-04 Thread Ross
On May 4, 7:59 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 4, 10:01 am, Ross ross.j...@gmail.com wrote: The magic numbers that everyone is wondering about are indeed used for spreading out the bye selection and I got them by simply calculating a line of best fit when plotting

Re: Code works fine except...

2009-05-04 Thread Ross
On May 4, 7:33 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 4, 8:56 pm, Ross ross.j...@gmail.com wrote: Anyways, you're right that seq[0] is always evaluated. That's why my algorithm works fine when there are odd numbers of players in a league. It doesn't work fine for all odd

Re: Code works fine except...

2009-05-05 Thread Ross
On May 5, 12:32 am, John Yeung gallium.arsen...@gmail.com wrote: On May 5, 1:12 am, John Yeung gallium.arsen...@gmail.com wrote: [...] the problem may require bigger guns (either much better math or much more sophisticated programming). Yes, I'm responding to myself. Well, I went ahead

Re: Code works fine except...

2009-05-05 Thread Ross
On May 5, 1:33 pm, MRAB goo...@mrabarnett.plus.com wrote: Ross wrote: On May 5, 12:32 am, John Yeung gallium.arsen...@gmail.com wrote: On May 5, 1:12 am, John Yeung gallium.arsen...@gmail.com wrote: [...] the problem may require bigger guns (either much better math or much more

Re: Code works fine except...

2009-05-05 Thread Ross
On May 5, 10:33 am, MRAB goo...@mrabarnett.plus.com wrote: Ross wrote: On May 5, 12:32 am, John Yeung gallium.arsen...@gmail.com wrote: On May 5, 1:12 am, John Yeung gallium.arsen...@gmail.com wrote: [...] the problem may require bigger guns (either much better math or much more

Re: Code works fine except...

2009-05-06 Thread Ross
On May 6, 3:14 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 6, 3:29 am, MRAB goo...@mrabarnett.plus.com wrote: I have the feeling that if the number of rounds is restricted then the difference between the minimum and maximum number of byes could be 2 because of the requirement

Re: Code works fine except...

2009-05-06 Thread Ross
On May 6, 3:14 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 6, 3:29 am, MRAB goo...@mrabarnett.plus.com wrote: I have the feeling that if the number of rounds is restricted then the difference between the minimum and maximum number of byes could be 2 because of the requirement

Re: Code works fine except...

2009-05-06 Thread Ross
On May 6, 3:14 pm, John Yeung gallium.arsen...@gmail.com wrote: On May 6, 3:29 am, MRAB goo...@mrabarnett.plus.com wrote: I have the feeling that if the number of rounds is restricted then the difference between the minimum and maximum number of byes could be 2 because of the requirement

Re: Code works fine except...

2009-05-07 Thread Ross
On May 7, 1:11 am, John Yeung gallium.arsen...@gmail.com wrote: On May 7, 12:30 am, Ross ross.j...@gmail.com wrote: If I were to set up a dictionary that counted players used in the bye list and only allowed players to be added to the bye list if they were within 2 of the least used

slice iterator?

2009-05-08 Thread Ross
I have a really long list that I would like segmented into smaller lists. Let's say I had a list a = [1,2,3,4,5,6,7,8,9,10,11,12] and I wanted to split it into groups of 2 or groups of 3 or 4, etc. Is there a way to do this without explicitly defining new lists? If the above problem were to be

[issue2271] msi installs to the incorrect location (C drive)

2008-03-10 Thread Ross
New submission from Ross [EMAIL PROTECTED]: When installing Python using any of the following stand-alone installers: python-2.5.2.amd64.msi python-2.5.1.amd64.msi python-2.5.2.msi all the files and folders are installed in C:\ instead of C:\Python25\ as specified in the installer. Creating C

[issue2271] msi installs to the incorrect location (C drive)

2008-03-11 Thread Ross
Ross [EMAIL PROTECTED] added the comment: log now attached Added file: http://bugs.python.org/file9655/python.zip __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2271

[issue2271] msi installs to the incorrect location (C drive)

2008-03-24 Thread Ross
Ross [EMAIL PROTECTED] added the comment: Checking Progress. This is a big of a show-stopper as it prevents me from using a number of python dependent packages. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2271

[issue2271] msi installs to the incorrect location (C drive)

2008-03-24 Thread Ross
Ross [EMAIL PROTECTED] added the comment: using Orca, I modified the .msi file and python now appears to be working. I made the following change: Property - SecureCustomProperty Changed value from REMOVEOLDSNAPSHOT;REMOVEOLDVERSION to REMOVEOLDSNAPSHOT;REMOVEOLDVERSION;TARGETDIR;DLLDIR

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Ross
New submission from Ross rossmclen...@tamu.edu: It would be most helpful if a method could be included in the TarFile class of the tarfile module and the ZipFile class of the zipfile module that would remove a particular file (either given by a name or a TarInfo/ZipInfo object) from the archive

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Ross
Changes by Ross rossmclen...@tamu.edu: -- components: +IO ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6818 ___ ___ Python-bugs-list mailing list

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-01 Thread Ross
Ross rossmclen...@tamu.edu added the comment: Slight change to: Such a method should probably only apply to archives that are in append mode as write mode would erase the original archive and read mode should render the archive immutable. The method should probably still apply to an archive

[issue6818] remove/delete method for zipfile/tarfile objects

2009-09-02 Thread Ross
Ross rossmclen...@tamu.edu added the comment: In light of Lars's comment on the matter, perhaps this functionality could be added to zip files only. Surely it can be done, considering that numerous utilities and even Windows Explorer provide such functionality. I must confess that I am

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-01-01 Thread Ross
New submission from Ross: If convert_charrefs is set to true the final data section is not return by feed(). It is held until the next tag is encountered. --- from html.parser import HTMLParser class MyHTMLParser(HTMLParser): def __init__(self): HTMLParser.__init__(self

[issue23144] html.parser.HTMLParser: setting 'convert_charrefs = True' leads to dropped text

2015-01-01 Thread Ross
Ross added the comment: That would make sense. Might also be worth mentioning the difference in behaviour with convert_charrefs = True/False as that was what led me to think this was a bug. -- ___ Python tracker rep...@bugs.python.org http

virtualenv doesn't see my compiled tensorflow

2017-09-01 Thread ross
With the prebuilt version of tensorflow, I did: virtualenv --system-site-packages ~/tensorflow and somehow got it working with keras. Now I've compiled tensorflow in another shell/directory, where to start with I did: virtualenv --system-site-packages . and I got it running with keras

Re: virtualenv doesn't see my compiled tensorflow

2017-09-01 Thread ross
Solution: remember to run the 'activate' script: % source ~/tf_compile/tensorflow/bin/activate On Friday, September 1, 2017 at 2:39:33 PM UTC-7, ro...@cgl.ucsf.edu wrote: > With the prebuilt version of tensorflow, I did: > >virtualenv --system-site-packages ~/tensorflow > > and

parakeet 0.1.0 - web-based reporting for PyKota

2006-12-30 Thread Andrew Ross
Parakeet is a TurboGears (http://www.turbogears.org) application intended to provide a rich web interface for reporting on print quotas managed by PyKota (http://www.pykota.org) and CUPS (http://www.cups.org). The 0.1.0 release is aimed solely at developers already familiar with PyKota, LDAP and

short python talk available from osbootcamp.org

2008-09-06 Thread Andrew Ross
Hi All, Open Source Bootcamp (osbootcamp) teaches skills with open source. We recently had a python talk which we've recorded and made freely available from the osbootcamp.org videos section. Enjoy! Andrew http://osbootcamp.org -- http://mail.python.org/mailman/listinfo/python-announce-list

what happens when the file begin read is too big for all lines to be read with readlines()

2005-11-19 Thread Ross Reyes
HI - Sorry for maybe a too simple a question but I googled and also checked my reference O'Reilly Learning Python book and I did not find a satisfactory answer. When I use readlines, what happens if the number of lines is huge?I have a very big file (4GB) I want to read in, but I'm sure

Re: what happens when the file begin read is too big for all lines tobe?read with readlines()

2005-11-20 Thread Ross Reyes
when the file begin read is too big for all lines tobe?read with readlines() Ross Reyes [EMAIL PROTECTED] wrote: Sorry for maybe a too simple a question but I googled and also checked my reference O'Reilly Learning Python book and I did not find a satisfactory answer. The Python

Re: question on regular expressions

2004-12-03 Thread Sean Ross
Darren Dale [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm stuck. I'm trying to make this: file://C:%5Cfolder1%5Cfolder2%5Cmydoc1.pdf,file://C %5Cfolderx%5Cfoldery%5Cmydoc2.pdf (no linebreaks) look like this: ./mydoc1.pdf,./mydoc2.pdf my regular expression abilities are

Re: built-in 'property'

2004-12-30 Thread Sean Ross
Steven Bethard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] For this reason, I usually suggest declaring properties like[1]: py class E(object): ... def x(): ... def get(self): ... return float(self._x) ... def set(self, x): ...

Re: Getting rid of self.

2005-01-07 Thread Sean Ross
BJörn Lindqvist [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thank you for your replies. But they don't deal with my original question. :) I have read the thousands of posts all saying self is good and they are right. But this time I want to be different m-kay? I figure that there

Re: Jargons of Info Tech industry

2005-10-12 Thread Ross Bamford
than POP3, but you would be surprised at the weight of an accepted standard I think. -- Ross Bamford - [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: Jargons of Info Tech industry

2005-10-13 Thread Ross Bamford
drinker in a college town can tell you a hundred ways to get sufficient fake ID to get around that. See also: http://www.ahbl.org/funny/response1.php I'll let others here fill in the blanks. :) :) :) -- Ross Bamford - [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

How do I pass args using Python Windows

2005-10-17 Thread Ross Reyes
Hi - I wonder if someone might be able to lend a quick answer to this. I have a python script that I normally run from the command line on Solaris. i.e. %pythonscript filein fileout I decided to try IDLE on Windows to do some debugging with the debugger (which I unfortunately dont'

Re: Newbie question: Explain this behavior

2005-07-14 Thread Ross Wilson
is skipped. Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: How to connect to UNIX machine from windows box

2005-08-08 Thread Ross Wilson
I want to connect to unix machine using ssh to run some commands . I have not tried this, but it might be useful. http://www.lag.net/paramiko/ HTH, Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: list insertion

2005-08-24 Thread Ross Wilson
with output and how that is not what you expect. Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4.2 using msvcrt71.dll on Win and compatibility issues

2006-02-08 Thread Ross Ridge
Martin v. Löwis wrote: In general, the only Microsoft-supported strategy is that you must use only a single msvcrt in the entire application. So either recompile PostGres, or recompile Python. If you want a compiled version of Python that already uses MSVCRT then you try using pyMingGW:

Re: Replacing curses

2006-02-09 Thread Ross Ridge
Ian Ward wrote: I'll have to deal with that anyway, since I'm doing all my own wrapping, justification and clipping of text. In general it's impossible to know how many display positions some random Unicode character might use. For example, Chinese characters normally take two display

Re: Legality of using Fonts

2006-02-10 Thread Ross Ridge
in most outline fonts, which are considered computer programs. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Legality of using Fonts

2006-02-11 Thread Ross Ridge
copied only the first part, they'd be doing nothing illegal. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a way to build python without 'posixmodule' ?

2006-02-21 Thread Ross Ridge
mrstephengross wrote: I'm working on building python 2.4.2 with the mingw compiler (on cygwin). Try following the instructions on the pyMinGW site: http://jove.prohosting.com/iwave/ipython/pyMinGW.html Ross Ridge -- http://mail.python.org

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Steve Holden wrote: Wider than UTF-16 doesn't make sense. It makes perfect sense. Ross Ridge -- http://mail.python.org/mailman/listinfo/python-list

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Steve Holden wrote: Wider than UTF-16 doesn't make sense. Ross Ridge wrote It makes perfect sense. Alan Kennedy wrote: UTF-16 is a Unicode Transcription Format, meaning that it is a mechanism for representing all unicode code points, even the ones with ordinals greater than 0x, using

Re: Pure python implementation of string-like class

2006-02-25 Thread Ross Ridge
Xavier Morel wrote: Not if you're still within Unicode / Universal Character Set code space. Akihiro Kayama in his original post made it clear that he wanted to use a character set larger than entire Unicode code space. Ross Ridge -- http

Re: Pure python implementation of string-like class

2006-02-26 Thread Ross Ridge
Ross Ridge wrote: Akihiro Kayama in his original post made it clear that he wanted to use a character set larger than entire Unicode code space. Xavier Morel wrote: He implies that ... He explictly said that character set he wanted to use wouldn't fit in UTF-16. ... but in later messages he

Python's use in RAD

2005-04-15 Thread Ross Cowie
could highlight some of the features that make it suitable for RAD. Like the use of dinamic binding. Your healp would be appreciated. Hope to hear from you soon. Ross -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Memory Manager

2008-02-20 Thread Ross Ridge
. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

Re: How about adding rational fraction to Python?

2008-02-26 Thread Ross Ridge
for a long time. If the slash (/) operator had always been defined as floating point division then I would've gotten used to it. Now however, there's no compelling reason for me to try to adjust to this new behaviour. Ross Ridge -- l/ // Ross Ridge

Re: How about adding rational fraction to Python?

2008-02-26 Thread Ross Ridge
arithmetic with natural numbers is more natural numbers. D'Arcy said nothing about natural numbers, and bringing them up adds nothing to this discussion. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http

Re: How about adding rational fraction to Python?

2008-02-26 Thread Ross Ridge
Ross Ridge [EMAIL PROTECTED] writes: D'Arcy said nothing about natural numbers, and bringing them up adds nothing to this discussion. Paul Rubin http://[EMAIL PROTECTED] wrote: The numbers D'Arcy is proposing to operate on that way are natural numbers whether he says so

Re: time.time() strangeness

2008-02-26 Thread Ross Ridge
returned by time.time() only has 24 bits of precision, which for current time values, only gives you an accuracy of a hundred seconds or so. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http

Re: time.time() strangeness

2008-02-27 Thread Ross Ridge
an effect on low end configurations. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

Re: How about adding rational fraction to Python?

2008-02-27 Thread Ross Ridge
with the behviour of the slash (/) operator changing. Ross Ridge -- l/ // Ross Ridge -- The Great HTMU [oo][oo] [EMAIL PROTECTED] -()-/()/ http://www.csclub.uwaterloo.ca/~rridge/ db // -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   8   >