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

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

Trying to Download PygameZero

2020-10-10 Thread Tom Hedge via Python-list
I am in a 8 grade coding class at the moment and my teacher asked me to download a script called pgzero. I can not seem to download pgzer or pygame when i try it shoots me a error message:  ERROR: Command errored out with exit status 1:     command: 'c:\program files\python39\python.exe' -c 'imp

Re: absolute path to a file

2019-08-21 Thread tom arnall
Thanks. Hope you found a solution to the problem. On Tue, Aug 20, 2019, 2:51 AM Cameron Simpson wrote: > Please remember to CC the list. > > On 19Aug2019 22:06, Paul St George wrote: > >On 19/08/2019 14:16, Cameron Simpson wrote: > [...] > >>There's a remark on that web page I mentioned that su

Re: Writing a C extension - borrowed references

2018-03-20 Thread Tom Evans via Python-list
RMAT_PERSISTENT); into ctypes compatible syntax, when I can simply adapt the working C code to Python. :) Plus, there is the library static initialisation to manage, the issues of distributing the C libraries if I do a C wrapper to call from ctypes. This way, it can be distributed from our devpi very

[OT] Re: Style Q: Instance variables defined outside of __init__

2018-03-20 Thread Tom Evans via Python-list
WD and automatic transmission are more expensive options than FWD and manual transmissions, and most cars are FWD and manual. At least most cars I can afford.. Cheers Tom -- https://mail.python.org/mailman/listinfo/python-list

Re: Writing a C extension - borrowed references

2018-03-20 Thread Tom Evans via Python-list
a few functions. Cheers Tom -- https://mail.python.org/mailman/listinfo/python-list

Writing a C extension - borrowed references

2018-03-20 Thread Tom Evans via Python-list
ated to my use of the thing I borrowed it from? Is this cargo cult advice (sometimes the gods need this structure, and so to please the gods it must be everywhere), sensible belt and braces or needless overkill? Cheers Tom [1] http://pythonextensionpatterns.readthedocs.io/en/latest/refcount.htm

Application Error

2017-08-15 Thread Alhassan Tom Alfa
corrected? I really need to use this application Thank you in anticipation for a quick response Best Regards, Tom <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail&utm_term=icon> Virus-free. www.avast.com <https:

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: > >

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-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

@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: pyinstaller

2016-07-26 Thread Tom Brown
I used pyinstaller quite a bit 3 years ago. I could brush off the cobwebs and see if I can help if you have not solved it already. What is the issue you are having? -Tom On Jun 21, 2016 16:57, "Larry Martell" wrote: > Anyone here have any experience with pyinstaller? I am tryin

Re: Help

2016-03-04 Thread Tom P
On 02/29/2016 01:53 PM, tomwilliamson...@gmail.com wrote: Thanks. If a word appears more than once how would I bring back both locations? for i, str in enumerate(l): . . . . -- https://mail.python.org/mailman/listinfo/python-list

Re: problem with dateutil

2016-02-14 Thread Tom P
On 02/13/2016 09:45 PM, Gary Herron wrote: On 02/13/2016 12:27 PM, Tom P wrote: On 02/13/2016 07:13 PM, Gary Herron wrote: On 02/13/2016 09:58 AM, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if

Re: problem with dateutil

2016-02-14 Thread Tom P
On 02/13/2016 10:01 PM, Mark Lawrence wrote: On 13/02/2016 17:58, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is

Re: problem with dateutil

2016-02-13 Thread Tom P
On 02/13/2016 07:13 PM, Gary Herron wrote: On 02/13/2016 09:58 AM, Tom P wrote: I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is

problem with dateutil

2016-02-13 Thread Tom P
I am writing a program that has to deal with various date/time formats and convert these into timestamps. It looks as if dateutil.parser.parse should be able to handle about any format, but what I get is: datetimestr = '2012-10-22 11:22:33' print(dateutil.parser.parse(datetimestr)) result: date

Re: Nearest neighbours of points

2015-10-31 Thread Tom P
On 10/24/2015 10:05 PM, Poul Riis wrote: I have N points in 3D, organized in a list. I want to to point out the numbers of the two that have the smallest distance. With scipy.spatial.distance.pdist I can make a list of all the distances, and I can point out the number of the minimum value of th

Re: Downloading Python

2015-10-06 Thread Tom Hodder
Hi Sharon, > Sharon MOrine wrote: > I am new to programming and the website is confusing and my eyesight isn't that great. Welcome to Python! Announcement mailing lists, like this one, are typically used by python package maintainers to publicize the availability of new versions of their softwa

Installing Python 3.5 fails

2015-09-30 Thread Tom Barnett
I do have a fresh successful install of Visual Studio 2015 Redistributables installed. Then I reinstalled Python 3.5 and still now joy. What am I missing? Tom Tom Barnett Senior Systems Administrator Prime, inc. 2740 N. Mayfair Springfield, MO 65803 Ph. 417.866.0001 Fax 417.521.6863

Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Tom P
On 08/14/2015 03:15 PM, Jason Swails wrote: On Aug 14, 2015, at 3:18 AM, Tom P wrote: Thanks for the reply but that is not what the documentation says. http://unidata.github.io/netcdf4-python/#section8 "Remote OPeNDAP-hosted datasets can be accessed for reading over http if a UR

Re: problem with netCDF4 OpenDAP

2015-08-14 Thread Tom P
On 08/13/2015 05:55 PM, Jason Swails wrote: On Thu, Aug 13, 2015 at 6:32 AM, Tom P mailto:werot...@freent.dd>> wrote: I'm having a problem trying to access OpenDAP files using netCDF4. The netCDF4 is installed from the Anaconda package. According to their changelog,

problem with netCDF4 OpenDAP

2015-08-13 Thread Tom P
aa.gov/pub/data/cmb/ersst/v3b/netcdf/ersst.201507.nc' nc = netCDF4.Dataset(url) I get the error - netCDF4/_netCDF4.pyx in netCDF4._netCDF4.Dataset.__init__ (netCDF4/_netCDF4.c:9551)() RuntimeError: NetCDF: file not found However if I download the same file, it works - url = '/hom

Re: want to learn python

2015-04-24 Thread Tom P
On 04/21/2015 12:57 PM, pm05...@gmail.com wrote: Hello everyone, I am willing to learn Python from scratch.Please he me to learn.Although I hv knowledge of c and object oriented programming. Apart from the various tutorials you might want to look at the on-line courses offered by Coursera a

AssertionError (3.X only) when calling Py_Finalize with threads

2015-01-08 Thread Tom Kent
arting Basic-- --Basic Complete-- --Starting With Thread-- Exception ignored in: Traceback (most recent call last): File "C:\Python34-32\Lib\threading.py", line 1289, in _shutdown assert tlock.locked() AssertionError: --With Thread Complete-- --output-- The order of the

Re: Python code in presentations

2014-09-30 Thread Tom P
On 30.09.2014 13:50, Jean-Michel Pichavant wrote: Hello list, I'm currently writing a presentation to help my co-workers ramp up on new features of our tool (written in python (2.7)). I have some difficulties presenting code in an efficient way (with some basic syntax highlights). I need to b

zipimport limited to 65536 files?

2014-05-01 Thread Tom Graves
hook # zipimport: found 65452 names in pyspark.jar Is this a known limitation or is this perhaps fixed in newer version or is there a work around? Note, I'm not subscribed to the mailing list so please copy me in response if possible. Thanks, Tom -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert numpy array to single number

2014-04-29 Thread Tom P
On 28.04.2014 15:04, mboyd02...@gmail.com wrote: I have a numpy array consisting of 1s and zeros for representing binary numbers: e.g. >>> binary array([ 1., 0., 1., 0.]) I wish the array to be in the form 1010, so it can be manipulated. I do not want to use built in binary con

numpy masked array puzzle

2013-11-17 Thread Tom P
I have two numpy arrays, xx and yy - (Pdb) xx array([0.7820524520874, masked, masked, 0.3700476837158, 0.7252384185791, 0.6002384185791, 0.6908474121094, 0.7878760223389, 0.6512288818359, 0.1110143051147, masked, 0.716205039978, 0.546038

[solved]Re: Python PDB conditional breakpoint

2013-11-06 Thread Tom P
On 06.11.2013 16:14, Tom P wrote: ok I figured it. ID is a tuple, not a simple variable. The correct test is ID[0]==11005 I can't get conditional breakpoints to work. I have a variable ID and I want to set a breakpoint which runs until ID==11005. Here's what happens -

Python PDB conditional breakpoint

2013-11-06 Thread Tom P
I can't get conditional breakpoints to work. I have a variable ID and I want to set a breakpoint which runs until ID==11005. Here's what happens - -> import sys ... (Pdb) b 53, ID==11005 Breakpoint 1 at /home/tom/Desktop/BEST Tmax/MYSTUFF/sqlanalyze3.py:53 (Pdb) b Num Type

Re: Can I trust downloading Python?

2013-09-10 Thread Tom P
On 10.09.2013 11:45, Oscar Benjamin wrote: On 10 September 2013 01:06, Steven D'Aprano wrote: On Mon, 09 Sep 2013 12:19:11 +, Fattburger wrote: But really, we've learned *nothing* from the viruses of the 1990s. Remember when we used to talk about how crazy it was to download code from untr

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

HTTPServer again

2013-04-22 Thread Tom P
Hi, a few weeks back I posed a question about passing static data to a request server, and thanks to some useful suggestions, got it working. I see yesterday there is a suggestion to use a framework like Tornado rather than base classes. However I can't figure achieve the same effect using To

Re: The SOLUTION HTTPserver: how to access variables of a higher class

2013-04-06 Thread Tom P
On 04/05/2013 01:02 PM, Tom P wrote: ok, after much experimenting it looks like the solution is as follows: class MyWebServer(object): def __init__(self): # self.foo = "foo" delete these from self # self.bar = "bar" myServer = HTTPServer

Re: HTTPserver: how to access variables of a higher class?

2013-04-06 Thread Tom P
On 04/05/2013 02:27 PM, Dylan Evans wrote: On 05/04/2013 9:09 PM, "Tom P" wrote: First, here's a sample test program: import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyRequestHandler(BaseHTTPRequestHandler, object): def do_GET(self):

Re: HTTPserver: how to access variables of a higher class?

2013-04-05 Thread Tom P
On 04/05/2013 01:54 PM, Dave Angel wrote: On 04/05/2013 07:02 AM, Tom P wrote: First, here's a sample test program: import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyRequestHandler(BaseHTTPRequestHandler, object): def do_GET(self): top_self =

Re: HTTPserver: how to access variables of a higher class?

2013-04-05 Thread Tom P
On 04/05/2013 01:54 PM, Dave Angel wrote: On 04/05/2013 07:02 AM, Tom P wrote: First, here's a sample test program: import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyRequestHandler(BaseHTTPRequestHandler, object): def do_GET(self): top_self =

Re: HTTPserver: how to access variables of a higher class?

2013-04-05 Thread Tom P
On 04/05/2013 02:27 PM, Dylan Evans wrote: On 05/04/2013 9:09 PM, "Tom P" wrote: First, here's a sample test program: import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyRequestHandler(BaseHTTPRequestHandler, object): def do_GET(self):

HTTPserver: how to access variables of a higher class?

2013-04-05 Thread Tom P
First, here's a sample test program: import sys from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler class MyRequestHandler(BaseHTTPRequestHandler, object): def do_GET(self): top_self = super(MyRequestHandler, self) # try to access MyWebServer instance self.send_re

Re: The usage of -m option of python

2013-03-27 Thread Tom P
On 03/18/2013 10:17 PM, Peng Yu wrote: Hi, I don't quite understand how -m option is used. And it is difficult to search for -m in google. Could anybody provide me with an example on how to use this option? Thanks! -m module-name Searches sys.path for the named module and

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

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

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: 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

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

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: 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

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"', '/

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

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

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

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 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

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: 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

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

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

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

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

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

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

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

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

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

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

Re: [TIP] Anyone still using Python 2.5?

2011-12-21 Thread Tom Davis
On Dec 21, 2011, at 2:15 AM, Chris Withers wrote: > Hi All, > > What's the general consensus on supporting Python 2.5 nowadays? > > Do people still have to use this in commercial environments or is everyone on > 2.6+ nowadays? For those of us living the nightmare of AppEngine *and* working

回复: Columnize in module "cmd"

2011-12-19 Thread Tom Zhou
___ 发件人: Ian Kelly 收件人: Tom Zhou 抄送: "python-list@python.org" 发送日期: 2011年12月19日, 星期一, 下午 7:35 主题: Re: Columnize in module "cmd" On Mon, Dec 19, 2011 at 7:53 PM, Tom Zhou wrote: > Hi~ alls > recently, i focus on the module "cmd", and find some conf

Columnize in module "cmd"

2011-12-19 Thread Tom Zhou
nd out the maxlen str in list, and use its length as the standard size to format the list. Ok, maybe i ignore something, so please give me some hints. --- thanks tom-- http://mail.python.org/mailman/listinfo/python-list

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

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&

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

Off to Europython?

2011-04-12 Thread Tom Christie
7;s hugely important that the web APIs we're building ought to also be Web browse-able and self-documenting. (and how that's almost entirely not the case at the moment) I've given the talk to small audiences before but it'd be awesome to give it at EuroPython. Anyways, thank

Re: encoding hell - any chance of salvation ?

2011-03-07 Thread Tom Zych
y > object to accept what is in essence a binary file ? Glancing at the docs, it appears you want to use 'c', 'b', or 'B' instead of 'u' when creating array. -- Tom Zych / freethin...@pobox.com "Would you like a lovely fluffy little white rabbit, l

Re: I'm happy with Python 2.5

2011-03-06 Thread Tom Zych
depends on whether you care about execution speed or > development speed. s/care/care more/. People generally care about both to /some/ extent. (Probably being over-pedantic again...) -- Tom Zych / freethin...@pobox.com "Would you like a lovely fluffy little white rabbit, little girl

Re: Generate PDF with Tamil font problem

2011-03-05 Thread Tom Zych
hereas for character 'ப' is > printed as it is. > I am struggling to figure out the issue. Any help would see me on track. Something similar came up on stackoverflow recently, though that was with tkinter. Might shed some light. http://stackoverflow.com/questions/5166488/ -- Tom

Re: question about endswith()

2011-03-04 Thread Tom Zych
or filename.endswith('d') or > filename.endswith('f') or filename.endswith('5') > > and then both .hdf and .hdf5 files will get matched. Score:5, Insightful. "Oh, I'm sorry, this is Python. Slashdot is room 12A, next door." -- Tom Zych / freethin..

Re: making a class callable

2011-03-04 Thread Tom Zych
dude wrote: >>> f = foo("wow") ... >>> However, I always get the "module not callable" error. ... > That was the problem. I was using: > import ohYeah To get that error, I think you must have been importing a module named "foo" as well. Or yo

Re: Strange occasional marshal error

2011-03-03 Thread Tom Zych
k in this, I'm just speculating based on a bug I had in a C program years ago. I have no idea how CPython handles these things. -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking against NULL will be eliminated?

2011-03-03 Thread Tom Zych
liable, but full of surprises. Python is generally low in surprises. Using "if " is one place where you do have to think about unintended consequences. -- Tom Zych / freethin...@pobox.com Q: I'm having problems with my Windows software. Will you help me? A: Yes. Go to a DOS prom

Re: Checking against NULL will be eliminated?

2011-03-02 Thread Tom Zych
Steven D'Aprano wrote: > Do you realise that "PEP 4000" was Tom Zych being sarcastic? There is no > PEP 4000: Eh, well, maybe 10% sarcastic, 90% facetious. Wasn't trying to give Carl a hard time. -- Tom Zych / freethin...@pobox.com Q: I'm having problems with my

Re: Checking against NULL will be eliminated?

2011-03-02 Thread Tom Zych
ded. Hmm, no, I don't think that will fly. We're stuck with it :( Fortunately there are work-arounds for the cases that matter, as we've seen. Yay Python :) -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

Re: AES Encryption of byte array

2011-03-01 Thread Tom Zych
> using Python 2.6, can anyone recommend a toolkit or module? I haven't used it, but it looks like this does what you want: http://www.dlitz.net/software/pycrypto/ -- Tom Zych / freethin...@pobox.com Quidquid latine dictum sit, altum viditur. -- http://mail.python.org/mailman/listinfo/python-list

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

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: 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
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

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: 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

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: 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: 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

Help: python unicode

2011-02-17 Thread tom z
Hi all~ My script can't work.I've changed my defaultencoding from 'ascii' to 'utf-8',but Python also raises a 'UnicodeEncodeError' error. the error likes this: >>> s=u'La Pe\xf1a' >>>print s UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position 5: ... And in my script, the

Wing in mod_python vs wsgi?

2011-02-08 Thread Tom Stambaugh
for any other Python IDE I've tried. Does Wing do better in mod_wsgi? Is it time for me to migrate from mod_python to mod_wsgi? Has anybody tried to do this (mod_wsgi and apache) in a Windoze environment? Thx, Tom S. -- Tom Stambaugh 63 Boston Ave Somerville, MA 02144 617-776-8934 (land

Re: Perl Hacker, Python Initiate

2011-02-02 Thread Tom Boland
sted. If this is an excercise in just trying to do a straight port of your program, and you're not interested in doing it in a nicer fashion, then I would see the simple response from Carl Banks, however, you should really have posted the python code you're trying instead! Cheers.

Nothing to repeat

2011-01-09 Thread Tom Anderson
rn as '(spa|m)*'. But what i neglected to mention above is that i'm actually generating patterns from structures of objects (representations of XML DTDs, as it happens), and as it stands, patterns like this are a possibility. Any thoughts on what i should do? Do i have to bite the bulle

Re: efficient way of splitting a list in to lists where the sum of the values in each does not exceed n

2010-11-24 Thread Tom Boland
Thanks for the reply Ian, I've looked in to the bin-packing problem in a general sense now, and I think my ugly algorithm is actually not too bad (although not too efficient either!) :) It was only for a quick job any how. Thanks again. Tom. On 24/11/10 16:16, Ian Kelly wrote: O

efficient way of splitting a list in to lists where the sum of the values in each does not exceed n

2010-11-24 Thread Tom Boland
way of doing this beautifully :) Many thanks. Tom. -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   6   7   >