Site Packages Folder Red on Clean Install

2019-12-10 Thread Timothy Coca
Hello, I have a new dell XPS, I freshly installed the latest version of Pythong (3.8.0) and pycharm. Pycharm shows the site packages folder as red, and I can not import and modules from inside of it. Pip install works to install some programs like numpy, scipy, but would not install matplotlib suc

Help please installing Python on Windows 10

2018-10-03 Thread Timothy Cowell via Python-list
Hi, Could I please ask for help installing Python on Windows 10 - I've tried twice (Version 3.7 for windows) selecting the install now option. After first attempt I uninstalled and tried again. Each time it has put 4 items in the programs list from the windows start button, all under headi

Re: Python Print Error

2016-07-28 Thread Timothy
On Thu, 28 Jul 2016 10:40:28 -0700, Cai Gengyang wrote: > How to debug this ? > print "This line will be printed." > SyntaxError: Missing parentheses in call to 'print' You are probably using Python 3, while the syntax is for Python 2. Use print("This line will be printed.") instead. -- htt

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-07 Thread Timothy Johnson
On 8/5/2015 9:06 PM, Terry Reedy wrote: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as are ap

Re: Who uses IDLE -- please answer if you ever do, know, or teach

2015-08-06 Thread Timothy Johnson
On 8/5/2015 9:06 PM, Terry Reedy wrote: There have been discussions, such as today on Idle-sig , about who uses Idle and who we should design it for. If you use Idle in any way, or know of or teach classes using Idle, please answer as many of the questions below as you are willing, and as are ap

Re: [PyQt] win32api.LoadKeyboardLayout; any solutions for OSX?

2015-03-20 Thread Timothy W. Grove
n Thu, Mar 19, 2015 at 12:20 PM, Timothy W. Grove <mailto:tim_gr...@sil.org>> wrote: A personal reply to my question sent me to the following link: http://stackoverflow.com/questions/23729704/change-osx-keyboard-layoutinput-source-programmatically-via-terminal-or-appl. I seem t

Re: win32api.LoadKeyboardLayout; any solutions for OSX?

2015-03-19 Thread Timothy W. Grove
points to a 'bug' in objc or something else which I've left out of my setup routine, but if anyone has any ideas, I would be interested to hear from you. Best regards, Timothy Grove On 05/03/2015 14:51, Timothy W. Grove wrote: I was looking for a way to ch

win32api.LoadKeyboardLayout; any solutions for OSX?

2015-03-05 Thread Timothy W. Grove
I was looking for a way to change keyboard layouts from within a Python 3 / PyQt4 application. Win32api.LoadKeyboardLayout has come to my rescue on Windows, but is anyone aware of a cross-platform or OSX specific solution for Apple Mac? Thanks for any suggestions. Best regards, Tim -- https://

Re: include "icudt53.dll, icuin53.dll, icuuc53.dll" ?

2015-01-07 Thread Timothy W. Grove
I think my answer is probably "Yes!" Anyone else interested, see http://qt-project.org/wiki/Deploying-Windows-Applications. Tim On 07/01/2015 13:09, Timothy W. Grove wrote: Does anyone have an idea of what the following .dll's are for? Cx_freeze includes them in a Python3.4-P

include "icudt53.dll, icuin53.dll, icuuc53.dll" ?

2015-01-07 Thread Timothy W. Grove
Does anyone have an idea of what the following .dll's are for? Cx_freeze includes them in a Python3.4-PyQt5 deployment adding about 23 Mb to my application. Removing them doesn't appear to make any difference on my computer, but I hesitate to distribute the application to others without them. T

Automatic Crash Reporting

2014-09-24 Thread Timothy W. Grove
Can anyone recommend a good automatic crash reporting module that would work nicely with a python3/pyqt4 application? Thanks. Tim -- https://mail.python.org/mailman/listinfo/python-list

Heartbleed and the windows distributions on python.org

2014-04-28 Thread Timothy McDonald
I am building a cherrypy app that is testing as vulnerable to the heartbleed exploit. The app is running on the 64 bit 3.3.5 Windows distribution of python. An updated version of 64 bit Python 3.3.x for Windows or an updated pyopenssl? I am kind of surprised the distribution on python.org hasen'

Re: An example of Python in action!

2014-02-25 Thread Timothy W. Grove
I'm sorry, but I don't know much more than this. If you follow the link there is a description of how the animation was created under the video. On 25/02/2014 18:47, Skip Montanaro wrote: On Tue, Feb 25, 2014 at 12:07 PM, Timothy W. Grove wrote: Here is an example of Python being

An example of Python in action!

2014-02-25 Thread Timothy W. Grove
Here is an example of Python being used with Maya for animation http://vimeo.com/72276442 (No prizes for guessing what sport and team I support!!!) Best regards, Tim Grove -- https://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-07 Thread Timothy Madden
make tabs work the way they used to would have been nice. Just my opinion, I do see other people here think otherwise... Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-07 Thread Timothy Madden
rice to be paid for relying solely on white space to delimit code blocks, like the python syntax does. And in actual practice, that has been shown to be a Good Thing. Yes, I agree, it is. It just could have been better. Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-06 Thread Timothy Madden
On 06.04.2013 17:20, Chris Angelico wrote: On Sun, Apr 7, 2013 at 12:52 AM, Nobody wrote: Historically, software and hardware which assigns a meaning to a tab character has come in two flavours: 1. Tab stops are every 8 columns; this cannot be changed. 2. Tab stops are configurable, defaulting

Re: I hate you all

2013-04-06 Thread Timothy Madden
will run all code written for the new "python 3 way", and brings back some compatibility, so it is not that bad. And some people might actually want it. Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-06 Thread Timothy Madden
when they no longer have a choice they used to have. But I hear programmers should get used to the feeling: using code that you did not write is bound to trigger that reaction every so often. Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-06 Thread Timothy Madden
On 06.04.2013 08:53, Ian Kelly wrote: On Fri, Apr 5, 2013 at 11:07 PM, Timothy Madden wrote: [...] So in other words, everybody must be forced to use 8-character tabs because you want to be able to mix tabs and spaces. People say I can use tabs all the way, just set them to the indent I

Re: I hate you all

2013-04-05 Thread Timothy Madden
he python syntax does. Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: I hate you all

2013-04-05 Thread Timothy Madden
is too much), or - drop tabs altogether The new rules may look flexible at first sight, but the net effect they have is they push me to use non-default tab size (which is not good), or drop the tabs, which I could have used before python 3 just fine. Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!

2013-03-29 Thread timothy crosley
Thanks Karim! On Friday, March 29, 2013 10:47:41 AM UTC-4, Karim wrote: > On 29/03/2013 14:53, timothy crosley wrote: > > > I apologize for the audio from the original screen cast, it was really > > sub-par. I bought a new microphone and re-recorded it: > > http:/

Re: Screencast: Creating and deploying an advanced python web application in under 15 minutes!

2013-03-29 Thread timothy crosley
I apologize for the audio from the original screen cast, it was really sub-par. I bought a new microphone and re-recorded it: http://www.youtube.com/watch?v=0L8TsmrZPLg&feature=youtu.be Thanks! Timothy On Tuesday, March 26, 2013 4:54:15 AM UTC-4, timothy crosley wrote: > Hi, > &g

Screencast: Creating and deploying an advanced python web application in under 15 minutes!

2013-03-26 Thread timothy crosley
Hi, I've created a screen cast showing how a message board with live-validation and Ajax calls written in python can be built and deployed in under 15 minutes. You can view it here: http://www.youtube.com/watch?v=ucougrZK9wI I hope some of you find it useful, Thanks! Timothy --

Re: QT Inspired web development framework for python

2013-03-20 Thread timothy crosley
tion, that will hopefully make it more obvious what the framework is about and it's advantages. These are available here: http://www.webbot.ws/Demos Thanks Again, Timothy -- http://mail.python.org/mailman/listinfo/python-list

Re: Test a list

2013-03-20 Thread timothy crosley
Hi Ana, if I understand your question correctly, all you have to do to test this is to write: if i in t: print "Test1" else: print "Test2" On Wednesday, March 20, 2013 2:15:27 PM UTC-4, Ana Dionísio wrote: > t= [3,5,6,7,10,14,17,21] > > > > Basically I want to print Test 1 when i is e

Re: QT Inspired web development framework for python

2013-03-13 Thread timothy crosley
I've added special hooks into the framework to make integration with Django projects fairly seemless, these are detailed under the django quick start guide: http://www.webbot.ws/QuickStartGuide I hope this addresses some of the questions that have come up here, Thanks! Timothy --

Re: QT Inspired web development framework for python

2013-03-01 Thread timothy crosley
Hi Ian, The intention would be to invoke WebElements at view run time, this way the developer can write code to interact with the elements and effect the produced HTML dynamically on every request Timothy -- http://mail.python.org/mailman/listinfo/python-list

Re: QT Inspired web development framework for python

2013-03-01 Thread timothy crosley
future I plan on adding even more django integration For things such as ajax abstraction. The long term vision is to be able to create apps and widgets that will run on any python framework unmodified except for calls to the database etc. Timothy Thursday, February 28, 2013 11:43:04 PM UTC-5

QT Inspired web development framework for python

2013-02-28 Thread timothy crosley
interested the main link for the widgets is http://www.webelements.in and the link for the framework overall is http://www.webbot.ws Thanks! Timothy -- http://mail.python.org/mailman/listinfo/python-list

How to write a language parser ?

2013-02-22 Thread Timothy Madden
parsers you have used for complete languages ? Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

trying to unsubscribe

2012-10-02 Thread timothy holmes
My efforts at trying to unsubscribe are not working. Could you help me with this, or take this email as a request to unsubscribe. Thanks, Timothy Holmes -- http://mail.python.org/mailman/listinfo/python-list

PyCon AU gender diversity grants for women in Python!

2011-06-26 Thread Timothy Robert Ansell
PyCon AU gender diversity grants for women in Python PyCon AU is pleased to announce that it will be offering two gender diversity delegate grants to women who wish to attend PyCon AU in 2011. These grants will *both* cover full registration cos

Securing files

2011-02-23 Thread Timothy W. Grove
Hello Folks, In a python application that I'm developing I've been asked to add security to databases that the program might create and access; the database is to be password protected by its creator. The application uses an SQLite database, which could be changed for another back-end if that

subprocess module under python 2.7

2010-07-27 Thread Timothy W. Grove
I am using the following code to hide the console window when launching a subprocess under Windows. startupinfo = subprocess.STARTUPINFO() startupinfo.dwFlags |= subprocess.STARTF_USESHOWWINDOW startupinfo.wShowWindow = subprocess.SW_HIDE self.mplayer = Popen(args,

Serialization, save type information in file and restore them

2010-06-18 Thread Timothy Wu
to write string like "attribute = int(value)" into a file. But how do I get the value back? I want the "int(value)" string to be loaded into the program and be executable so I can actually create the instance variable in the class. Any help appreciated, thanks. Timothy -- http

RE: Picking a license

2010-05-20 Thread Delaney, Timothy (Tim)
From: Ben Finney > This thread is already off-topic and too long. I'm conflicted about my role in that; > I have endeavoured only to address falsehoods that IMO were not otherwise being addressed. > > So I'll try to keep this brief. > > Ethan Furman writes: > >> This doesn't make sense to me, but

RE: Re: Super() function

2010-03-29 Thread Delaney, Timothy (Tim)
Gabriel Genellina write: > En Sun, 28 Mar 2010 21:58:07 -0300, Delaney, Timothy (Tim) > escribió: >>> Gabriel Genellina wrote: >>>> Alan Harris-Reid escribió: >>>> >>>>> Using Python 3.1, I sometimes use the super() function to call the &g

RE: Re: Super() function

2010-03-28 Thread Delaney, Timothy (Tim)
> Gabriel Genellina wrote: >> Alan Harris-Reid escribió: >> >>> Using Python 3.1, I sometimes use the super() function to call the >>> equivalent method from a parent class, for example >>> >>> def mymethod(self): >>> super().mymethod() >>> some more code... >>> >>> Is there any way of wr

Re: Interesting talk on Python vs. Ruby and how he would like Python to have just a bit more syntactic flexibility.

2010-02-23 Thread Timothy N. Tsvetkov
On Feb 16, 10:41 pm, Andrej Mitrovic wrote: > On Feb 16, 7:38 pm, Casey Hawthorne > wrote: > > > Interesting talk on Python vs. Ruby and how he would like Python to > > have just a bit more syntactic flexibility. > > >http://blog.extracheese.org/2010/02/python-vs-ruby-a-battle-to-the-de... > > --

Python User Group near Cheltenham, UK ?

2010-02-08 Thread Timothy W. Grove
Anyone know of an 'active' Python User Group near Cheltenham, UK? I spotted one in Birmingham (http://www.pywm.eu), but would like one a little closer ... :-) Tim -- http://mail.python.org/mailman/listinfo/python-list

Re: Python and Ruby

2010-02-03 Thread Timothy N. Tsvetkov
On Jan 28, 2:29 am, Jonathan Gardner wrote: > On Jan 27, 5:47 am, Simon Brunning wrote: > > > > > I think Python is a little cleaner, but I'm sure you'd find Ruby fans > > who'd argue the complete opposite. > > Are you sure about that? > > There's a lot of line noise in Ruby. How are you supposed

Python and lost files

2009-09-30 Thread Timothy W. Grove
Recently I purchased some software to recover some files which I had lost. (A python project, incidentally! Yes, I should have kept better backups!) They were nowhere to found in the file system, nor in the recycle bin, but this software was able to locate them and restore them. I was just wond

Re: Debugging with gdb: pystack macro for gdb to show python stack trace

2009-09-17 Thread Timothy Madden
Timothy Madden wrote: Hello [...] Can I get the python stack trace working under gdb ? [...] Ok I found some other gdb macros on linked from the wiki page and I had to change them to get the stack trace work. I had to change the symbol PyEval_EvalFrame to PyEval_EvalFrameEx and then I

Debugging with gdb: pystack macro for gdb to show python stack trace

2009-09-16 Thread Timothy Madden
, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing a thread-safe class

2009-09-12 Thread Timothy Madden
bal Interpreter Lock, or [...] I find that hard to believe, but I will look into it. Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Writing a thread-safe class

2009-09-11 Thread Timothy Madden
attribute, or deletes one, in the same time with my lookup for self.lock, than the lookup is compromised. How do people create thread-safe classes in python ? Thank you, Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: Re: Distutils - can user designate install directory for windows installer?

2009-09-09 Thread Timothy W. Grove
Mark Hammond wrote: On 9/09/2009 1:57 AM, Timothy W. Grove wrote: I have successfully built a windows installer for my python program using distutils, (python setup.py bdist_wininst), but is there a way to do it that will allow a user ('user' == 'boss', in this cas

Distutils - can user designate install directory for windows installer?

2009-09-08 Thread Timothy W. Grove
I have successfully built a windows installer for my python program using distutils, (python setup.py bdist_wininst), but is there a way to do it that will allow a user ('user' == 'boss', in this case!) to designate the installation directory, rather than being forced to install into /Python/Li

Re: Is "#!/usr/bin/env python" the better shebang line ?

2009-09-06 Thread Timothy Madden
Ned Deily wrote: In article <4aa3bfdf$0$282$14726...@news.sunsite.dk>, Timothy Madden wrote: My questions is if I should use #!/usr/bin/env python as the shebang line in a portable and open python script and if it does help with portability and usage. This question came up recen

How to debug a forked process with pdb ?

2009-09-06 Thread Timothy Madden
. Thank you, Timothy Madden --- #!/usr/bin/env python import sys, os, signal, time from pikantBlueServer import PIDFile as PIDFile, pid_file as pid_file serverRunning = False def serverRunningSignal(usrSignal, stackFrame): global serverRunning if (usrSignal == signal.SIGUSR1

Re: How to access ODBC databases ?

2009-09-06 Thread Timothy Madden
Martin P. Hellwig wrote: Timothy Madden wrote: [...] It has been a couple of years, but I remember vaguely that back in the days of PossgreSQL 6, if you want ODBC support you needed to compile PG a bit different then normal, I am not really sure what options those where and if this still

Is "#!/usr/bin/env python" the better shebang line ?

2009-09-06 Thread Timothy Madden
/env ? Thank you Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: How to refer to data files without hardcoding paths?

2009-09-06 Thread Timothy Madden
load icons from its various subdirectories. Still I would like to know why it works in imported scripts, since the doc page says sys.path[0] is the path to the script that caused the interpreter to launch. What would that mean ? Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

Re: How to access ODBC databases ?

2009-09-05 Thread Timothy Madden
Martin P. Hellwig wrote: Timothy Madden wrote: Martin P. Hellwig wrote: Timothy Madden wrote: >>> conn = pyodbc.connect('DRIVER={PostgreSQL Unicode};Servername=127.0.0.1;UID=pikantBlue;Database=pikantBlue') Traceback (most recent call last): File "", lin

Re: How to access ODBC databases ?

2009-09-04 Thread Timothy Madden
Martin P. Hellwig wrote: Timothy Madden wrote: >>> conn = pyodbc.connect('DRIVER={PostgreSQL Unicode};Servername=127.0.0.1;UID=pikantBlue;Database=pikantBlue') Traceback (most recent call last): File "", line 1, in pyodbc.Error: ('0', '[0]

How to access ODBC databases ?

2009-09-04 Thread Timothy Madden
*pyodb* module, which is another module for ODBC access, but pyodb does not have query parameters and all the functions in the DB api, it is only meant the be a simple way to acccess ODBC. Do you know why my *pyodbc* module would not connect, when others will ? Do you know other modules to use O

Re: What python can NOT do?

2009-08-29 Thread Timothy N. Tsvetkov
On Aug 29, 4:26 am, qwe rty wrote: > On Aug 29, 3:14 am, Tim Chase wrote: > > > > > > > >> what else can NOT be done in python? what are the limitations of the > > >> language? > > > > I understand there's a little trouble getting Python to prove > > > that P=NP  You'll also find that it only com

RE: missing 'xor' Boolean operator

2009-07-26 Thread Delaney, Timothy (Tim)
Mark Dickinson wrote: >> Since the 'and' and 'or' already return objects (and objects >> evaluate to true or false), then 'xor' should behave likewise, IMO. >> I expect that would be the case if it were ever added to the >> language. > > I'm not so sure. Did you ever wonder why the any() and al

Unpack Expects the Wrong Number of Bytes

2009-07-18 Thread Timothy Crone
Hello, I have noticed that for certain format strings, struct.unpack expects the wrong number of bytes. For example, this works fine header = "4si4s4si2h2i3h4s" data = list(unpack(header,f.read(42))) however, this header = "4si4s4si2h2i3h4si" data = list(unpack(header,f.read(46))) returns the

Re: python3 module for dbus ?

2009-05-21 Thread Timothy Madden
Aahz wrote: In article <4a1281ef$0$90271$14726...@news.sunsite.dk>, Timothy Madden wrote: [...] Do you know if I can get dbus bindings for python3 and glib bindings for python3 ? Or could I use them otherwise (like without the modules) ? Sorry, no answers to your questions off-han

python3 module for dbus ?

2009-05-19 Thread Timothy Madden
bindings for python3 and glib bindings for python3 ? Or could I use them otherwise (like without the modules) ? Thank you Timothy Madden -- http://mail.python.org/mailman/listinfo/python-list

RE: with open('com1', 'r') as f:

2009-04-06 Thread Delaney, Timothy (Tim)
Lawrence D'Oliveiro wrote: > In message , > Terry Reedy wrote: > >> Lawrence D'Oliveiro wrote: >> >>> All Python objects are reference-counted. >> >> Nope. Only in CPython, and even that could change. > > Why should it? Because Guido has said it might some time in the future. >>> Once the f

RE: Python Goes Mercurial

2009-04-05 Thread Delaney, Timothy (Tim)
Sorry - it's early and I didn't force Outlook to not top-post. Unfortunately, I get asked to top-post here at work ... Tim Delaney -- http://mail.python.org/mailman/listinfo/python-list

RE: Python Goes Mercurial

2009-04-05 Thread Delaney, Timothy (Tim)
As someone who has to use ClearCase UCM at work (damned politics!) I can tell you that I very much prefer creating a separate view (directory) for each branch as I used to do in Base ClearCase. All too often you end up having to deliver multiple activities together because someone else made a cha

RE: Introducing Python to others

2009-03-26 Thread Delaney, Timothy (Tim)
Rhodri James wrote: > On Thu, 26 Mar 2009 09:35:55 -, Paddy O'Loughlin > wrote: > >> Because of this, I was thinking of making sure I included exceptions >> and handling, the richness of the python library and a pointing out >> how many modules there were out there to do almost anything one

RE: Is python worth learning as a second language?

2009-03-19 Thread Delaney, Timothy (Tim)
Aahz wrote: > In article <49b58b35$0$3548$426a7...@news.free.fr>, > Bruno Desthuilliers wrote: >> Tomasz Rola a écrit : >>> >>> I may not be objective (tried Java, hated it after 6 years). >> >> Arf - only took me 6 months !-) > > That long? It only took me six minutes. I was young and fool

RE: Is python worth learning as a second language?

2009-03-09 Thread Delaney, Timothy (Tim)
ZikO wrote: > I am a C++ programmer and I am thinking of learning something else > because I know second language might be very helpful somehow. I have > heard a few positive things about Python but I have never writen any > single line in python so I do not know this language at all. > > Do you t

Re: speeding up reading files (possibly with cython)

2009-03-08 Thread Timothy N. Tsvetkov
> > If that's the problem, the solution is: get more memory. > Or maybe think about algorithm, which needs less memory... My experience tells me, that each time when you want to store a lot of data into dict (or other structure) to analyze it then, you can find a way not to store so much amount of

RE: Peculiar swap behavior

2009-02-23 Thread Delaney, Timothy (Tim)
Tim Chase wrote: > # swap list contents...not so much... > >>> m,n = [1,2,3],[4,5,6] > >>> m[:],n[:] = n,m > >>> m,n > ([4, 5, 6], [4, 5, 6]) > > > The first two work as expected but the 3rd seems to leak some > internal abstraction. It seems to work if I force content-copying: > > >>> m[:

RE: Python binaries with VC++ 8.0?

2009-02-10 Thread Delaney, Timothy (Tim)
bearophileh...@lycos.com wrote: > Paul Rubin: >> Gideon Smeding of the University of >> Utrecht has written a masters' thesis titled "An executable >> operational semantics for Python". > > A significant part of Computer Science is a waste of time and money. The same can be said for any research

RE: Ordered dict by default

2009-02-08 Thread Delaney, Timothy (Tim)
bearophileh...@lycos.com wrote: > I have missed another example: It may be possible to create a sorting > routine that's not stable but is faster than the current stable > timsort (for example in C++ STL you have both sorting routines, and > the unstable one is a variant of introsort that is faste

RE: spam on the list - how are things now?

2009-01-21 Thread Delaney, Timothy (Tim)
s...@pobox.com wrote: > We've been running SpamBayes on the news-to-mail gateway on > mail.python.org for a couple weeks now. To me it seems like the > level of spam leaking onto the list has dropped way down but I'd like > some feedback from people who read the python-list@python.org mailing > l

RE: Does Python really follow its philosophy of "Readability counts"?

2009-01-20 Thread Delaney, Timothy (Tim)
Terry Reedy wrote: >> The compiled code differs. > > I *strongly* doubt that. Properties are designed to be transparent to > user code that access atrributes through the usual dotted name > notation precisely so that class code can be changed from >x = ob > to >x = property(get_x, set_x,

Re: best python unit testing framwork

2008-11-12 Thread Timothy Grant
On Wed, Nov 12, 2008 at 5:16 PM, Roy Smith <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, > "Timothy Grant" <[EMAIL PROTECTED]> wrote: > >> I wanted to like unittest but couldn't. So I started using py.test. I >> even wrote a p

Re: best python unit testing framwork

2008-11-12 Thread Timothy Grant
tarted using py.test. I even wrote a plugin for TextMate to interface with py.test. If I had known about Nose I would likely have used it instead because it is built on top of the standard module. Now I have many thousands of lines of py.test code so am not likely to make the change. -- Stand Fa

RE: Commercial Products in Python

2008-10-21 Thread Delaney, Timothy (Tim)
Paulo J. Matos wrote: > Question cleared: > http://wiki.python.org/moin/DistributionUtilities Another option that we've used in the past was to write the "sensitive" bits in Pyrex/Cython. These get compiled to executable code (a .pyd/DLL on Windows, .so on Unix-like systems). They are tied to the

RE: I want to release the GIL

2008-10-20 Thread Delaney, Timothy (Tim)
Piotr Sobolewski wrote: > Hello, > I have such program: > > import time > import thread > def f(): >     global lock >     while True: >         lock.acquire() >         print thread.get_ident() >         time.sleep(1) >         lock.release() > lock=thread.allocate_lock() > thread.start_new_thre

Re: chomp?

2008-10-17 Thread Timothy Grant
, right or wrong,' is a thing that no patriot would think of > saying. It is like saying, 'My mother, drunk or sober.'" > > -- G.K. Chesterton > -- > http://mail.python.org/mailman/listinfo/python-list > a ',' on the end of your print should suppress the newline. >>> def x(): ...print 'foo', ...print 'bar' ... >>> x() foo bar -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: Selecting random elements from a list.

2008-10-13 Thread Timothy Grant
gt; > -- > http://mail.python.org/mailman/listinfo/python-list > > I would start here http://docs.python.org/library/random.html you are likely interested in choice or sample. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: how to set the time of a directory?

2008-10-10 Thread Timothy Grant
ath, (atime, mtime)) utime(path, None) Set the access and modified time of the file to the given values. If the second form is used, set the access and modified times to the current time. >>> os.utime('test', None) >>> ^D ([EMAIL PROTECTED]) ls

Re: how to find the directory where python is installed ?

2008-10-02 Thread Timothy Grant
.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/usr/local/lib/wxPython-unicode-2.8.8.0/lib/python2.5', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC'] >>> -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: PLEASE HELP ME WITH THIS ASSIGNMENT...PLEASE....

2008-09-11 Thread Timothy Grant
epress.com/putitdown > -- > http://mail.python.org/mailman/listinfo/python-list > I find it impossible to take anyone asking others to do their school work for them seriously no matter how or what they are willing to pay. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding the pythonic way: why a.x = 1 is better than a.setX(1) ?

2008-09-04 Thread Timothy Grant
very interested in reading past > discussion on it, if they are available. > > Regards > Marco I think the most obvious solution to the problem is effective unit tests. If you type "a.y =1" and have a test that asserts a.x == 1 then you would quite quickly discover that you made a typo. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

RE: Numeric literal syntax

2008-09-03 Thread Delaney, Timothy (Tim)
Steven D'Aprano wrote: > On Thu, 04 Sep 2008 01:22:22 +0100, Alexander Schmolck wrote: > >> It seems to me that the right choice for thousands seperator is the >> apostrophe. > > You mean the character already used as a string delimiter? Hey - I just found a new use for the backtick! 123`456`7

Re: Command lime code

2008-08-29 Thread Timothy Grant
ing us to divine what you're looking for based on next-to-no content in your question is a bit much. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: Ensure only single application instance.

2008-08-29 Thread Timothy Grant
> http://mail.python.org/mailman/listinfo/python-list > Why not look at the process list, and if you find two entries kill the one that is just starting? -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-29 Thread Timothy Grant
On Fri, Aug 29, 2008 at 12:48 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: > Timothy Grant a écrit : >> >> On Thu, Aug 28, 2008 at 1:40 AM, Alexis Boutillier >> <[EMAIL PROTECTED]> wrote: >>> >>> Timothy Grant a écrit : >>>> >&

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-28 Thread Timothy Grant
On Thu, Aug 28, 2008 at 1:40 AM, Alexis Boutillier <[EMAIL PROTECTED]> wrote: > Timothy Grant a écrit : >> >> On Wed, Aug 27, 2008 at 2:49 AM, Alexis Boutillier >> <[EMAIL PROTECTED]> wrote: >>> >>> Hi, >>> >>> I have a stran

Re: Wild Card String Comparison

2008-08-27 Thread Timothy Grant
On Wed, Aug 27, 2008 at 10:00 PM, W. eWatson <[EMAIL PROTECTED]> wrote: > Timothy Grant wrote: >> >> On Wed, Aug 27, 2008 at 8:49 PM, W. eWatson <[EMAIL PROTECTED]> >> wrote: >>> >>> Is it possible to do a search for a wild card string in anoth

Re: Wild Card String Comparison

2008-08-27 Thread Timothy Grant
", "copyright", "credits" or "license" for more information. >>> x = 'the quick brown fox' >>> 'the' in x True >>> 'qui' in x True >>> 'jumped' in x False >>> If that doesn't meet your needs you may want to look at the re module. But if you can avoid re's your likely better off. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: no string.downer() ?

2008-08-27 Thread Timothy Grant
x27;m > going with the third. > > -- > http://mail.python.org/mailman/listinfo/python-list > I was going to go with not particularly strong in English. To someone not familiar with English, downer() could very well be the obvious converse of upper(). I'm usually quick to think "troll" but this time I didn't. Maybe I'm just naive. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax error in ".py" file and globals variable values not available.

2008-08-27 Thread Timothy Grant
n me this behaviour ? > > > Thanks. > -- > Boutillier Alexis > Methodology engineer > > Arteris SA > The Network-on-Chip Company TM > www.arteris.net > > 6 par Ariane Immeuble Mercure > 78284 Guyancourt Cedex > France > Office: (+33) 1 61 37 38 71 >

Re: Getting references to obect instances into a list

2008-08-27 Thread Timothy Grant
x27;, 'b', 'c']] >>>> > > > How come q is not updated after I deleted p? > > This is my point. > -- > http://mail.python.org/mailman/listinfo/python-list > Because the list still has a reference to the object formerly known as p. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

RE: exception handling in complex Python programs

2008-08-24 Thread Delaney, Timothy (Tim)
Lie wrote: > Ah... now I understand what the Zen is talking about when it said: > "Now is better then never, although never is often better than *right* > now." If you don't have all the necessary resources to fix an > exception right now, don't try to fix it, instead let it propagate, > and allow

Re: Could anyone point me to a good site for pearl compiler download

2008-08-21 Thread Timothy Grant
; read the dubious Wikipedia article: > > http://en.wikipedia.org/wiki/Pearl > > Mike > -- > http://mail.python.org/mailman/listinfo/python-list > Maybe he meant Pearl Jam compilation download. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Query: Related to locking a resource in a multithreaded environment

2008-08-18 Thread Timothy Grant
tp://mail.python.org/mailman/listinfo/python-list > Does making it a class level instead of instance level variable not work? -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

Re: for x,y in word1, word2 ?

2008-08-11 Thread Timothy Grant
On Mon, Aug 11, 2008 at 12:13 PM, Dave Webster <[EMAIL PROTECTED]> wrote: > Thanks, Timothy. I'm pretty sure that there is no such thing as a "beautiful" > implementation of double-metaphone but I would personally like to have a copy > of your python implementa

Re: for x,y in word1, word2 ?

2008-08-11 Thread Timothy Grant
do the same here. I have a horribly ugly version of the double-metaphone algorithm in python that does work, and may be of some use in solving this problem. -- Stand Fast, tjg. [Timothy Grant] -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   5   >