pls donate acces

2023-03-01 Thread Tom
I need make an scrpit to impressive my friends   Envoyé à partir de [1]Courrier pour Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.org/mailman/listinfo/python-list

hi

2023-03-04 Thread Tom
Bonjour je suis français et je ne comprend pas comment je peux acceder a python merci de me repondre CORDIALEMENT Lilian   Envoyé à partir de [1]Courrier pour Windows   References Visible links 1. https://go.microsoft.com/fwlink/?LinkId=550986 -- https://mail.python.o

Re: Python with no significant whitespace

2005-01-25 Thread Tom
hat's probably what the Stephen was getting at. Tom. -- http://mail.python.org/mailman/listinfo/python-list

Socket Support When Compiling Python 2.3.5 On Cygwin

2005-08-25 Thread tom
Python 2.3.5? The really weird thing about this is that I also compiled Python 2.4 on this system, and the socket files were created. What's different about 2.3.5? Thanks in advance! Tom Purl -- http://mail.python.org/mailman/listinfo/python-list

Re: Socket Support When Compiling Python 2.3.5 On Cygwin

2005-08-26 Thread tom
next version. Thanks for all of the help! Tom Purl > Tom, > > On Thu, Aug 25, 2005 at 10:39:47AM -0500, [EMAIL PROTECTED] wrote: >> What do I need to do to make sure that this file will be created with >> I compile Python 2.3.5? > > Are there any error messages when the

simple problem with os.rename() parameters - path with spaces

2005-09-09 Thread Tom
on-quoted, but it always fails. The problem is not specific to os.rename. If I instead use mkdir( SrcDir ) I get the same problem. Thanks, Tom. -- http://mail.python.org/mailman/listinfo/python-list

Re: simple problem with os.rename() parameters - path with spaces

2005-09-10 Thread Tom
Peter Hansen wrote: > Tom wrote: > >>I'm having a problem using a path with spaces as a parameter to >>os.rename() in a program on WinXP. >> >>This works fine at the command line (where the folder "c:\aa bb" exists) >> >> > os.renam

Re: simple problem with os.rename() parameters - path with spaces

2005-09-10 Thread Tom
Yes, I am sure about those things. I've tried shutil.move and got the same result. Forward slash? I'll give that a try and report back here if it works. Thanks, Tom. Larry Bates wrote: > Are you sure the source directory exists and you > have rights to rename it? Because the re

Re: simple problem with os.rename() parameters - path with spaces

2005-09-10 Thread Tom
Peter Hansen wrote: > Tom wrote: > >>Drive E: is removable, so I was careful to verify that that was a factor >>in the problem. >> >>Yes, I can do the same renaming, with the same drive, at the command line. >> >>I think I put the emphasis in the wrong p

Re: rounding problem

2005-02-23 Thread tom
On Wed, 23 Feb 2005 19:04:47 -0600, Andy Leszczynski wrote: > It is on Windows, Linux, Python 2.3: > > [GCC 3.3.2 (Mandrake Linux 10.0 3.3.2-6mdk)] on linux2 Type "help", > "copyright", "credits" or "license" for more information. > >>> a=1.1 > >>> a > 1.1001 > >>> > >>> > >>> >

Re: UrlLib2 Proxy and Https

2004-12-10 Thread Tom
x27;port' : 8080 } I have no idea if this is your problem, but you are aware that https is usually on port 443, not 80 or 8080 like http? HTH Tom -- http://mail.python.org/mailman/listinfo/python-list

What's the best GUI toolkit in Python,Tkinter,wxPython,QT,GTK?

2005-03-27 Thread Tom
1) Portable to Windows, Unix-like platforms, and the Macintosh; 2) Powerful, GUI is very beautiful ; 3) Efficiency of development is high; What's the best, Tkinter, wxPython, QT, GTK or other? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

How to call a function in embeded python code in delphi?

2005-04-13 Thread Tom
delphi 7 python 2.3 win98 Python for Delphi V3.25 In Delphi: 1 Create a new Form ; 2 Drop a TMemo(Memo1) to contain python code; 3 Drop a TPythonInputOutput (PythonInputOutput1) ; 4 Drop a TPythonEngine (PythonEngine1) ; 5 Drag a PythonDelphiVar component and name it bx. Set the VarName

QA Engineering/ Python/ Contract/ Austin, TX

2011-09-26 Thread TOM
Tom Gugger Independent Recruiter tgug...@bex.net US Citizens or Greencard On Site QA Engineering/ Python/ Contract/ Austin, TX This is an immediate start, such as next week. I need three contractors for a 4--6 month contract in Austin, TX for Quality Assurance Engineers. The location is Austin

Inotify on netfilter socket

2006-11-17 Thread tom
eate a tangible file which i can hook in to the netfilter socket? I was using python-inotify and the ipqueue module. Any suggestions welcome, or do you guys think that this would be better on the iptables/netfilter mailing lists? Cheers, Tom -- http://mail.python.org/mailman/listinfo/python-list

Re: Having trouble converting popen2 to subprocess

2006-11-18 Thread tom
Daniel Klein wrote: > Here's a c routine that prints a single line : > > #include > main() > { > printf ("Hello World!\n"); > } > > And now the Python program (called 'po.py') that uses 'popen2' : > > import popen2 > (fin, fout) = popen2.popen2(r'c:\home\hw.exe', -1, 't') > print fin.readline()

Re: basic python questions

2006-11-18 Thread tom
[EMAIL PROTECTED] wrote: > I have taken the coments and think I have implemented most. My only > question is how to use the enumerator. Here is what I did, I have tried > a couple of things but was unable to figure out how to get the line > number. > > Try this in the interpreter, l = [5,4,3,2,

Re: basic python questions

2006-11-18 Thread tom
tom wrote: > [EMAIL PROTECTED] wrote: > >> I have taken the coments and think I have implemented most. My only >> question is how to use the enumerator. Here is what I did, I have tried >> a couple of things but was unable to figure out how to get the line >> numbe

Re: [Zopyrus] A python IDE for teaching that supports cyrillic i/o

2006-11-18 Thread tom
Oleg Broytmann wrote: > On Sat, Nov 18, 2006 at 09:01:04PM +0200, Kirill Simonov wrote: > >> Could anyone suggest me a simple IDE suitable for teaching Python as a >> first programming language to high school students >> which operating system would this concern? IDLE which you might find

Re: print with variable justification (with *)

2006-11-18 Thread tom
Why Tea wrote: > print format % values > An optional minimum width of the conversion, specified using one or > more digits or an asterisk (*), which means that the width is taken > from the next item in values > > That's from one of O'reilly's books. But there is no example and I > couldn't get it

Re: syntax error in sum(). Please explicate.

2006-11-18 Thread tom
Michael Press wrote: > I have not written python codes nor run any. I saw this > code posted and decided to try it. It fails. I read the > tutorial and the entry for the built in function sum, > but still do not see the problem. The code was cut and > paste. Please help. Thanks. > > ___

Re: print with variable justification (with *)

2006-11-18 Thread tom
John Machin wrote: > tom wrote: > >> Why Tea wrote: >> >>> print format % values >>> An optional minimum width of the conversion, specified using one or >>> more digits or an asterisk (*), which means that the width is taken >>> f

Re: Dealing with marketing types...

2005-06-11 Thread tom
On Fri, 10 Jun 2005 21:57:40 -0700, fuzzylollipop wrote: > I was completely serious, he is _NOT_ going to win this one. He has > already lost. I have been on both sides of this scenario, the "new guys" > were brought in and will win since they are the new "experts from out of > town". Not only do

RE: Dealing with marketing types...

2005-06-11 Thread tom
On Sat, 11 Jun 2005 10:27:26 -0700, bruce wrote: > i don't know what the original thread is/was... > > but.. if you are part of an initial project.. get in writing what your role > is if you're as a partner, get it in writing... if you're as a hired > gun.. get it in writing... if you can't g

getting rid of leading zeros in float expotential

2007-06-03 Thread tom
Hi! I'm wondering whether there's an easy way to remove unnecessary leading zeros from my floating point number. realS = float(-1.25e-5) imgS = float(-7.6e4) print complex(realS, imgS) >> (-1.25e-005-76000j) I would like it to look like (-1.25e-5-76000j) -- http://mail.python.org/mailman/lis

NoneType object not iterable

2007-07-13 Thread tom
Hi! My code is > db = {} > > def display(): > keyList = db.keys() > sortedList = keyList.sort() > for name in sortedList: > line = 'Name: %s, Number: %s' % (name, db[name]) > print line.replace('\r', '') And it gives following error: > for name in sortedList: >

keyword checker - keyword.kwlist

2007-05-10 Thread tom
Hi I try to check whether a given input is keyword or not. However this script won't identify keyword input as a keyword. How should I modify it to make it work? #!usr/bin/env python import keyword input = raw_input('Enter identifier to check >> ') if input in keyword.kwlist: print input

Re: keyword checker - keyword.kwlist

2007-05-10 Thread tom
> > Hmm... I tried, and identify it. > Try to change the 'input' variable name with other... > Changed input variable to myInput, but the result is still the same. for example, 'else' isn't identified as a keyword by the script though it exists in keyword.kwlist. -- http://mail.python.org/mail

Re: keyword checker - keyword.kwlist

2007-05-10 Thread tom
Still no go. I just can't get it right. My current script: #!usr/bin/env python import keyword myInput = raw_input('Enter identifier to check >> ') if myInput in keyword.kwlist: print myInput, "is keyword" else: print myInput, "is not keyword" print keyword.kwlist print keyword.__file

Re: keyword checker - keyword.kwlist

2007-05-10 Thread tom
Hamilton, William kirjoitti: >> From: [EMAIL PROTECTED] >> F:\Ohjelmat\Python25\Lib\keyword.pyc > > That's your problem. Rename keyword.py to keywordcheck.py, and delete > keyword.pyc in this directory, and it should work fine. > > --- > -Bill Hamilton I tried the trick but the error stays. I re

Re: keyword checker - keyword.kwlist

2007-05-12 Thread tom
Gabriel Genellina kirjoitti: > En Thu, 10 May 2007 17:03:13 -0300, <[EMAIL PROTECTED]> escribió: > my_input = raw_input("...").strip() > > as Peter Otten suggested before > > --Gabriel Genellina > Ok, it seems to work with strip(). Thanks for your help. Do you guys have any clue why mine previo

Re: keyword checker - keyword.kwlist

2007-05-12 Thread tom
[EMAIL PROTECTED] kirjoitti: > Gabriel Genellina kirjoitti: >> En Thu, 10 May 2007 17:03:13 -0300, <[EMAIL PROTECTED]> escribió: >> my_input = raw_input("...").strip() >> >> as Peter Otten suggested before >> >> --Gabriel Genellina >> > Ok, it seems to work with strip(). Thanks for your help. > >

Can Epydoc exclude wxPython?

2007-03-05 Thread tom
ion package -- I chose Epydoc because it included clickable inheritance trees in the docs. Is there another package that does this? I installed Epydoc using epydoc-3.0beta1.win32.exe on Windows XP and am using Python 2.4.3. Thanks for any help, Tom P.S. - I haven't found any other group or m

Stack experiment

2007-04-03 Thread tom
Hi! Im new to Python and doing exercise found from internet. It is supposed to evaluate expression given with postfix operator using Stack() class. class Stack: def __init__(self): self.items = [] def push(self, item): self.items.append(item) def pop(self):

Re: Stack experiment

2007-04-03 Thread tom
Ok, I got it running. Thank you! I removed the space and top of that I had foul indentation in return statement. I'll try the approaches you suggest. -- http://mail.python.org/mailman/listinfo/python-list

Simple integer comparison problem

2007-04-14 Thread tom
Hi! I ran in problem with simple exercise. I'm trying to get program to return grade when given points but no matter what, I always get F. def grader(): print "Insert points: " points = raw_input('> ') int(points) if points > 89 and points <= 100: return "A" eli

Re: Simple integer comparison problem

2007-04-14 Thread tom
Thanks for help! -- http://mail.python.org/mailman/listinfo/python-list

The smallest and largest values of numeric types

2007-04-17 Thread tom
Hi! How can I determine the smallest and largest values of numeric types (for example int) possible in my system? I think there exists a function for this task but I don't know it. -- http://mail.python.org/mailman/listinfo/python-list

Re: The smallest and largest values of numeric types

2007-04-17 Thread tom
Thank you for your answers. Seems like the limits of numeric values aren't considered as important in Python as in C ;) -- http://mail.python.org/mailman/listinfo/python-list

Memory Leak after Py_Finalize()

2009-03-26 Thread Tom
Hi, I have ported Python, numarray and numpy to the PharLap Embedded Operating System. Python 2.5.2 numpy 1.3.0b1 My problem is the massive memory loss coming back after Py_Finalize() when using numpy. I have seen similar posts but am unclear how to proceed. Here are my symptomns:- Py_Initialize()

some jordan shoes and something for wholesale

2008-06-21 Thread tom
would you want to buy cheap something?welcome to www.wholenikee.cn -- http://mail.python.org/mailman/listinfo/python-list

httplib HTTP: Logging request message

2008-06-27 Thread tom
With module httplid, I can do conn.request("POST", "/target", params, headers) Now, I want to log the request message that is sent by the request method. I don't don't see a method for that task. Any suggestion? For a response, I can log the response message by using the call method. Though, I

Re: httplib HTTP: Logging request message

2008-07-01 Thread tom
I guess the easies way to do it is to copy and modify the httplib module to log both outgoing and incoming messages. -- http://mail.python.org/mailman/listinfo/python-list

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread tom
W. eWatson wrote: The other night I surveyed a site for astronomical use by measuring the altitude (0-90 degrees above the horizon) and az (azimuth, 0 degrees north clockwise around the site to 360 degrees, almost north again) of obstacles, trees. My purpose was to feed this profile of obstacle

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-23 Thread tom
W. eWatson wrote: tom wrote: W. eWatson wrote: The other night I surveyed a site for astronomical use by measuring the altitude (0-90 degrees above the horizon) and az (azimuth, 0 degrees north clockwise around the site to 360 degrees, almost north again) of obstacles, trees. My purpose was

Re: Filling in Degrees in a Circle (Astronomy)

2008-08-24 Thread tom
http://matplotlib.sourceforge.net/ I'm using Python 2.4. The install looks pretty complicated for Windows. It doesn't seem like matplotlib is a module. Maybe going with the enthought edition would be easiest for you as it is a very complete set of tools all in one package. It's at http:

Re: Do I have to use threads?

2010-01-13 Thread Tom
ecause that might've put too many demands on the website, not a nice > thing to do!) A fair few of my scripts require multiple uploads and downloads, and I always use threads to do so. I was using an API which was quite badly designed, and I got a list of UserId's from one API call then had to query another API method to get info on each of the UserId's I got from the first API. I could have used twisted, but in the end I just made a simple thread pool (30 threads and an in/out Queue). The result? A *massive* speedup, even with the extra complications of waiting until all the threads are done then grouping the results together from the output Queue. Since then I always use native threads. Tom -- http://mail.python.org/mailman/listinfo/python-list

python replace/sub/wildcard/regex issue

2010-01-18 Thread tom
derivations of name=re.sub("]*\">"," foo ",name) but i'm missing something... thoughts... thanks tom -- http://mail.python.org/mailman/listinfo/python-list

RE: python replace/sub/wildcard/regex issue

2010-01-18 Thread tom
d what would line be? thanks -Original Message- From: python-list-bounces+bedouglas=earthlink@python.org [mailto:python-list-bounces+bedouglas=earthlink@python.org]on Behalf Of Chris Rebert Sent: Monday, January 18, 2010 8:32 PM To: tom Cc: python-list@python.org Subject: Re: python re

Vote to Add Python Package "pubsub" to the Python Standard Library

2010-05-26 Thread Tom
I vote for adding the Python package "pubsub" to the Python standard library. It has recently been added to wxpython (replacing the old wx.lib.pubsub package), but it has application to non-gui programs as well. For more information see: . -- http://mail.python.o

Re: how to iterate over several lists?

2009-06-05 Thread Tom
On Fri, 5 Jun 2009 04:07:19 + (UTC), kj wrote: > > >Suppose I have two lists, list_a and list_b, and I want to iterate >over both as if they were a single list. E.g. I could write: > >for x in list_a: >foo(x) >for x in list_b: >foo(x) > >But is there a less cumbersome way to achieve

waling a directory with very many files

2009-06-14 Thread tom
i can traverse a directory using os.listdir() or os.walk(). but if a directory has a very large number of files, these methods produce very large objects talking a lot of memory. in other languages one can avoid generating such an object by walking a directory as a liked list. for example, in c, p

Re: waling a directory with very many files

2009-06-14 Thread tom
On Jun 14, 1:35 pm, Tim Golden wrote: > > If you're on Windows, you can use the win32file.FindFilesIterator > function from the pywin32 package. (Which wraps the Win32 API > FindFirstFile / FindNextFile pattern). thanks, tim. however, i'm not using windows. freebsd and os x. -- http://mail.pyth

Removing newlines from string on windows (without replacing)

2009-07-25 Thread Tom
know how to get this working on Windows? Thanks! :D --print "Tom" -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing newlines from string on windows (without replacing)

2009-07-26 Thread Tom
ndows and posix on linux) Thanks for the help, and sorry for slow response and lack of detail, I'm still trying to get used to this usenet thing :P -- print "Tom" -- http://mail.python.org/mailman/listinfo/python-list

Globalize all variables in function without knowing names.

2009-07-26 Thread Tom
Does anyknow know how to do this? The reason I'm asking is because I'm trying to make a mini-programming language for fun, and need to work with variables. The user types 'set NAME "DATA" ' or whatever else the variable is going to be called/contain. I have: def variablework(varname, varset):

Re: Removing newlines from string on windows (without replacing)

2009-07-26 Thread Tom
> (Even if it so happens sauce > will only ever have LFs at the end, it's still better to use the > method that is closest to your intended meaning.) Oh, you're right. I'll change that now. I suppose removing all endlines will be better, incase, somehow, endlines in the middle of the line arrises.

Re: Globalize all variables in function without knowing names.

2009-07-26 Thread Tom
Ah, thanks for that Dennis. I have a system already figured out where the user manually pre-enters all the variables into a .py file, which obviously isn't very efficient. The language isn't going to be used much except by me, so I suppose I'll just work with that until I look more into dictionarie

Re: Globalize all variables in function without knowing names.

2009-07-27 Thread Tom
> Dictionaries are fundamental to Python and very useful. Not learning > about them before starting to write code is like not learning about the > accelerator pedal before starting to drive a car. Heh, I just looked at the actual tutorial for Dictionaries and I have to say they are very useful. Ba

@lru_cache on functions with no arguments

2017-07-31 Thread tom
As part of the Python 3 cleanup in Django there are a fair few uses of @functools.lru_cache on functions that take no arguments. A lru_cache isn't strictly needed here, but it's convenient to just cache the result. Some examples are here: https://github.com/django/django/pull/8825/files I did s

Re: @lru_cache on functions with no arguments

2017-08-01 Thread tom
Hello all, Thank you for the replies! So, here is the context: 1. The functions Django wants to cache require Django to be initialized and the settings loaded. This means the return values are not available at definition time. (Matt Wheeler hits it on the head). 2. Django has a long-standing no

Re: @lru_cache on functions with no arguments

2017-08-01 Thread tom
> _sentinel = object() > _val = _sentinel > def val(): > if _val is _sentinel: > # Calculate _val > return _val > > seems entirely sufficient for this case. Write a custom decorator if you use > the idiom often enough to make it worth the effort. I did some timings with this as p

Re: @lru_cache on functions with no arguments

2017-08-03 Thread tom
On Thursday, 3 August 2017 16:37:22 UTC+1, Ian wrote: > On Thu, Aug 3, 2017 at 8:35 AM, Paul Moore ...@gmail.com> wrote: > > On Tuesday, 1 August 2017 15:54:42 UTC+1, t...@tomforb.es wrote: > >> > _sentinel = object() > >> > _val = _sentinel > >> > def val(): > >> > if _val is _sentinel: > >

Google App Engine dev_appserver and pdb?

2013-05-30 Thread Tom P
Is there a way to use pdb to debug Google apps written in Python? When I start the development system to run the app "test" like this - './google_appengine/dev_appserver.py' './test' - I'd like to send the program into debug. I couldn't see anything in the documentation how to do this. If I do

Custom build of Python

2012-06-20 Thread KACVINSKY Tom
documentation for this. Any help on this matter would be appreciated. Thanks, Tom This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or privileged. If you are not one of the named recipients or have

RE: Custom build of Python

2012-06-20 Thread KACVINSKY Tom
Terry, At this stage, I don't want or need an MSI. I just want something that will bundle the executables/dynamic load libraries + compiled Python files and stick them into a compliant directory structure. Regards, Tom -Original Message- From: python-list-bounces+tk

bdist_wininst [was: Custom build of Python]

2012-06-21 Thread KACVINSKY Tom
8\lib\distutils\command\build_ext.py", line 340, in run self.build_extensions() File "setup.py", line 167, in build_extensions raise ValueError("No source directory; cannot proceed.") ValueError: No source directory; cannot proceed. Does anyone know of a way to g

distutils that supports msvc10 and that can be backfitted into Python 2.6

2012-06-26 Thread KACVINSKY Tom
Hi, I have need for a distutils that supports msvc10, and which can be back-fitted into Python 2.6. Is there such a beast? Thanks in advance, Tom This email and any attachments are intended solely for the use of the individual or entity to whom it is addressed and may be confidential and/or

Help: PYMALLOC_DBUG and PIL

2012-07-04 Thread tom z
Hi~ all, I encounter a odd problem, when i compile Python with PYMALLOC_DEBUG, the PIL module can't work fine, it always make core-dump like this [Switching to Thread 182897301792 (LWP 16102)] 0x004df264 in PyObject_Malloc (nbytes=64) at Objects/obmalloc.c:804 804 if ((pool

Re: Help: PYMALLOC_DBUG and PIL

2012-07-05 Thread tom z
Thanks Roman. of course, i use PYMALLOC_DEBUG with PYMALLOC. -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie question on python programming

2012-07-21 Thread Tom P
On 07/21/2012 02:30 AM, Ian Kelly wrote: On Fri, Jul 20, 2012 at 5:38 PM, Chris Williams wrote: Hello I hope this is the right newsgroup for this post. I am just starting to learn python programming and it seems very straightforward so far. It seems, however, geared toward doing the sort of p

looking for a neat solution to a nested loop problem

2012-08-06 Thread Tom P
consider a nested loop algorithm - for i in range(100): for j in range(100): do_something(i,j) Now, suppose I don't want to use i = 0 and j = 0 as initial values, but some other values i = N and j = M, and I want to iterate through all 10,000 values in sequence - is there a neat py

Re: looking for a neat solution to a nested loop problem

2012-08-06 Thread Tom P
On 08/06/2012 06:18 PM, Nobody wrote: On Mon, 06 Aug 2012 17:52:31 +0200, Tom P wrote: consider a nested loop algorithm - for i in range(100): for j in range(100): do_something(i,j) Now, suppose I don't want to use i = 0 and j = 0 as initial values, but some other val

Re: looking for a neat solution to a nested loop problem

2012-08-06 Thread Tom P
On 08/06/2012 06:03 PM, John Gordon wrote: In Tom P writes: consider a nested loop algorithm - for i in range(100): for j in range(100): do_something(i,j) Now, suppose I don't want to use i = 0 and j = 0 as initial values, but some other values i = N and j = M,

Re: looking for a neat solution to a nested loop problem

2012-08-06 Thread Tom P
On 08/06/2012 08:29 PM, Grant Edwards wrote: On 2012-08-06, Grant Edwards wrote: On 2012-08-06, Tom P wrote: On 08/06/2012 06:18 PM, Nobody wrote: On Mon, 06 Aug 2012 17:52:31 +0200, Tom P wrote: consider a nested loop algorithm - for i in range(100): for j in range(100

Beautiful Soup Table Parsing

2012-08-08 Thread Tom Russell
[u'21'] [u'26'] [u'27'] [u'New highs'] [u'10'] [u'12'] [u'29'] [u'New lows'] [u'4'] [u'7'] [u'13'] [u'Adv. volume*'] [u'2,365,755'] [u'5,581,737'] [u'11,992,771'] [u'Decl. volume*'] [u'4,935,335'] [u'4,619,515'] [u'15,944,286'] [u'Total volume*'] [u'7,430,052'] [u'10,835,106'] [u'28,152,571'] [u'Closing tick'] [u'+32'] [u'+24'] [u'+24'] [u'Closing Arms (TRIN)\x86'] [u'1.63'] [u'0.64'] [u'1.12'] [u'Block trades*'] [u'75'] [u'113'] [u'171'] [u'NYSE Arca'] [u'Latest close'] [u'Previous close'] [u'Week ago'] [u'Issues traded'] [u'1,188'] [u'1,205'] [u'1,176'] [u'Advances'] [u'580'] [u'825'] [u'423'] [u'Declines'] [u'562'] [u'361'] [u'730'] [u'Unchanged'] [u'46'] [u'19'] [u'23'] [u'New highs'] [u'17'] [u'45'] [u'42'] [u'New lows'] [u'5'] [u'25'] [u'12'] [u'Adv. volume*'] [u'72,982,336'] [u'140,815,734'] [u'73,868,550'] [u'Decl. volume*'] [u'58,099,822'] [u'31,998,976'] [u'185,213,281'] [u'Total volume*'] [u'146,162,965'] [u'175,440,329'] [u'260,075,071'] [u'Closing tick'] [u'+213'] [u'+165'] [u'+83'] [u'Closing Arms (TRIN)\x86'] [u'0.86'] [u'0.73'] [u'1.37'] [u'Block trades*'] [u'834'] [u'1,043'] [u'1,593'] What I want to do is only be getting the data for NYSE and nothing else so I do not know if that's possible or not. Also I want to do something like: If cell.contents[0] == "Advances": Advances = next cell or whatever??---> this part I am not sure how to do. Can someone help point me in the right direction to get the first data point for the Advances row? I have others I will get as well but figure once I understand how to do this I can do the rest. Thanks, Tom -- http://mail.python.org/mailman/listinfo/python-list

Problem with subprocess.call and windows schtasks

2012-11-18 Thread Tom Borkin
"test"', '/TR "run_alert.py"', '/ST 07:50'] cmd = [pgm] cmd.extend(args) subprocess.Popen(cmd, stdout=subprocess.PIPE).communicate()[0] but got this error: ERROR: Invalid argument/option - <> If I use the other args list I get this error: ERROR: Invalid argument/option - '/SC ONCE' so apparently it liked the first argument. Please advise. TIA, Tom -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with subprocess.call and windows schtasks

2012-11-20 Thread Tom Borkin
reate', '/SC', 'ONCE', '/TN', '"test"', '/TR', path, '/ST', '23:50']) subprocess.call(['SchTasks', '/Create', '/SC', 'ONCE', '/TN', '"test"', '/

Re: Problem with subprocess.call and windows schtasks

2012-11-21 Thread Tom Borkin
On Wed, Nov 21, 2012 at 6:01 AM, Tim Golden wrote: > subprocess.call([ > 'SchTasks', '/Create', > '/SC', 'ONCE', > '/TN', 'test', > '/TR', path, > '/ST', '23:50' > ]) > Th

Why Doesn't This MySQL Statement Execute?

2012-12-18 Thread Tom Borkin
execute. If I copy and paste the sql into the mysql command line it does execute without warnings or errors. What gives? TIA, Tom -- http://mail.python.org/mailman/listinfo/python-list

Re: Why Doesn't This MySQL Statement Execute?

2012-12-18 Thread Tom Borkin
No (lol). It returns a date as a string: "2012-12-12" for example. Tom On Tue, Dec 18, 2012 at 6:02 PM, Wayne Werner wrote: > On Tue, 18 Dec 2012, Tom Borkin wrote: > > Hi; >> I have this test code: >> >> if i_id == "1186": >> s

Re: Why Doesn't This MySQL Statement Execute?

2012-12-18 Thread Tom Borkin
ns values(Null, %s, "Call Back", %s)""" % (i_id, date_plus_2)) and no cigar :( Tom -- http://mail.python.org/mailman/listinfo/python-list

Windows subprocess.call problem

2013-01-21 Thread Tom Borkin
Hi; I have this code: #!/Python27/python import os, subprocess, sys lyrics_path = "/Users/Tom/Documents/lyrics" os.chdir(lyrics_path) songs = ['livin-la-vida-loca', 'whos-that-lady'] for song in songs: subprocess.call(['notepad.exe', '%s.txt

Re: Uniquely identifying each & every html template

2013-01-21 Thread Tom P
On 01/21/2013 01:39 PM, Oscar Benjamin wrote: On 21 January 2013 12:06, Ferrous Cranus wrote: Τη Δευτέρα, 21 Ιανουαρίου 2013 11:31:24 π.μ. UTC+2, ο χρήστης Chris Angelico έγραψε: Seriously, you're asking for something that's beyond the power of humans or computers. You want to identify that

Re: Windows subprocess.call problem

2013-01-21 Thread Tom Borkin
nob...@nowhere.com had an excellent suggestion that worked right off the bat and achieved exactly what I was after. Thanks all! Tom On Mon, Jan 21, 2013 at 9:04 AM, Dave Angel wrote: > On 01/21/2013 06:25 AM, Tom Borkin wrote: > >> Hi; >> I have this code: >> &g

problem python

2012-06-06 Thread Tom King
hi im new in python and i have a problem about when i type python in my command line console i get an error message  'import site' failed; use -v for traceback Python 2.4.3 (#1, May  5 2011, 18:44:23) [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2 Type "help", "copyright", "credits" or "lice

Need to build Python 2.6 with Microsoft Visual Studio 2010

2012-06-06 Thread Tom Kacvinsky
to vcbuild not being available. Will this be as simple as getting the project/solution files up to date for MSVC 2010, or am I going to have to patch a lot of code? Any and all help is much appreciated Thanks in advance, Tom -- http://mail.python.org/mailman/listinfo/python-list

Decorator Pattern with Iterator

2012-06-11 Thread Tom Harris
Greetings, I have a class that implements the iterator protocol, and tokenises a string into a series of tokens. As well as the token, it keeps track of some information such as line number, source file, etc. for tokens in Tokeniser(): do_stuff(token) What I want is to be able to wrap the toke

Installing numpy over an older numpy

2012-06-15 Thread Tom Kacvinsky
Any ideas on how to install a newer version over an older version? Thanks, Tom -- http://mail.python.org/mailman/listinfo/python-list

pthreads in C++ with embedded Python

2011-06-07 Thread Tom Brown
I've tried several different APIs without any success. This is my first attempt at embedding Python. So, what is correct way to do this? Any suggestions will be appreciated. Thanks! Tom -- http://mail.python.org/mailman/listinfo/python-list

Re: pthreads in C++ with embedded Python

2011-06-08 Thread Tom Brown
On Wed, Jun 8, 2011 at 2:11 PM, Jason Tackaberry wrote: > On 11-06-07 07:29 PM, Tom Brown wrote: > >> Any suggestions will be appreciated. >> > > Why are you calling PyEval_ReleaseLock() in the CmdThread constructor? > This looks suspicious. > > Also, I don&

Re: Python getting stuck

2011-02-27 Thread Tom Zych
f it's some kind of Unix, are you using a text console, or X? If X, what window manager? -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: I'm happy with Python 2.5

2011-02-27 Thread Tom Zych
n00m wrote: > Am I turmoiling your wishful thinking? > You may nourish it till the end of time. Let us cease to nourish those fabled ones who dwell under bridges. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/

Re: python3.2m installed as (additional) binary

2011-02-27 Thread Tom Zych
diff /usr/local/bin/python3.2 /usr/local/bin/python3.2m > pl6 Python-3.2: It looks like they're hard links of each other. Try: ls -li /usr/local/bin/python3.2* Are the inode numbers the same? I suspect the "m" name is what gets built and the "no m" is an ali

Re: python3.2m installed as (additional) binary

2011-02-27 Thread Tom Zych
Tom Zych wrote: > andrew cooke wrote: >> -rwxr-xr-x 2 root root 7368810 2011-02-27 13:03 /usr/local/bin/python3.2 >> -rwxr-xr-x 2 root root 7368810 2011-02-27 13:03 /usr/local/bin/python3.2m > I suspect the "m" name is what gets built and the "no m" is an al

Lumberjack Song

2011-02-28 Thread Tom Zych
as much for those unfamiliar with Runescape...) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
f strict statically typed functional > langauges like Ocaml and Haskell. Hmm, if we abused this guy enough for his heresy, do you think he'd say he didn't expect the Spanish Inquisition? Then we could riff on that theme for days :-D -- Tom Zych / freethin...@pobox.com Quidquid lati

Re: Python 3.2 is excellent, but

2011-03-01 Thread Tom Zych
jmfauth wrote: > Well, Python (as 3.2) has never reached this level of excellence, but > __pycache__, no, not for me. > > (I feel better now, after I wrote it.) Could you be more specific? :) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum vidit

Re: OT: Code Examples

2011-03-01 Thread Tom Zych
geremy condra wrote: > Ah, so you're looking for an argument. This is abuse, you want room > 12A just down the hall. They have comfy chairs there. No one expects it. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailm

Re: I am not able to open IDLE in python on Vista.

2011-03-01 Thread Tom Zych
Andrea Crotti wrote: > Best solution would be to avoid Windows Vista. s/Vista// There, fixed that for ya. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   >