How to undo a Python setuptools --prefix path blunder

2011-11-06 Thread Kev
When I installed Python's setuptools I absent mindedly tacked on a -- prefix path I had been using on another machine: sh setuptools-0.6c11-py2.7.egg --prefix=/opt/python2.7.2 Now after this blunder when I try to install pip I get the following error: [root@kkdev src]# easy_install pip Searching

Re: design question

2010-05-03 Thread Kev
gnificance of your queries compared with the duration of the builds. So I think the upshot is don't worry about it, or if you must, accept that you're worrying more about aesthetics than anything else (not that aesthetics aren't important). Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: UTF-EBCDIC encoding?

2013-07-15 Thread Kev Dwyer
Joel Goldstick wrote: > On Fri, Jul 12, 2013 at 3:12 PM, Skip Montanaro wrote: > >> > I can't help you. I'm astonished. Trying to imagine the work >> environment >> > where this technology would be necessary >> >> http://www.iseriespython.com/app/ispMain.py/Start?job=Home >> >> Skip >> > I rem

Re: One of my joomla webpages has been hacked. Please help.

2012-09-22 Thread Kev Dwyer
joomla cms. This is only speculation, as I don't know exactly how your web page has been "hacked", but if your page somehow exposes a database connection, and the hack involves changing the contents of the database then you should read up on SQL injection attacks and how to prevent them. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Suitable software stacks for simple python web service

2012-11-20 Thread Kev Dwyer
od WSDL support. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Suitable software stacks for simple python web service

2012-11-21 Thread Kev Dwyer
Steve Petrie wrote: > On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: >> Hello List, >> >> >> >> I have to build a simple web service which will: >> >> >> >> - receive queries from our other servers >

Re: Suitable software stacks for simple python web service

2012-11-22 Thread Kev Dwyer
t. Hello Dieter Thanks for your comment. I certainly want a lightweight solution so CGI or one of the micro-frameworks are what I am considering. Cheers Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Suitable software stacks for simple python web service

2012-11-24 Thread Kev Dwyer
Steve Petrie wrote: > On Thursday, November 22, 2012 1:42:42 AM UTC-5, Kev Dwyer wrote: >> Steve Petrie wrote: >> >> >> >> > On Wednesday, November 21, 2012 2:32:40 AM UTC-5, Kev Dwyer wrote: >> >> >> Hello List, >> >> >&g

Re: Regarding Jython support in IBM and HP platforms

2012-12-27 Thread Kev Dwyer
behaviour can be influenced by the value of the environmental variable JAVA_HOME (http://www.jython.org/docs/using/cmdline.html#environment-variables). Have you checked that $JAVA_HOME is set to a suitable value fo

Re: test failed: test_urlwithfrag

2013-01-19 Thread Kev Dwyer
1 test failed: test_urlwithfrag The bug has been fixed - see http://bugs.python.org/issue16969 Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I catch misnamed variables?

2012-02-10 Thread Kev Dwyer
John Gordon wrote: > Recently I was been bitten by some stupid errors in my code, and I'm > wondering if there's a simple way to catch them. > Pyflakes is another static checker that can catch these sorts of errors. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: log and figure out what bits are slow and optimize them.

2012-02-10 Thread Kev Dwyer
sajuptpm wrote: > Hi, > > Yes i saw profile module, > I think i have to do function call via > > cProfile.run('foo()') > > I know, we can debug this way. > > But, i need a fixed logging system and want to use it in production. > I think, we can't permanently include profile's debugging c

Re: Is there a custom fields plugin or component of django

2012-05-25 Thread Kev Dwyer
kevon wang wrote: > I want to find a plugin of django what it can custom fields in the form. > The functions include custom fields in web page and create the fields in > database. > You might have more luck getting an answer to this question on the django list (django-us...@googlegroups.com if

Re: How does python bytecode works?

2012-06-17 Thread Kev Dwyer
gmspro wrote: > We know python is written in C. > C is not portable. > So how does python work on a webserver like apache/httpd for a python > website? How does the intermediate language communicate with server > without compiling python code? Or how does python interpreted code work > with webser

Re: How can i build python3 without optimization?

2012-06-17 Thread Kev Dwyer
gmspro wrote: > I tried this: > CFLAG=-g ./configure --prefix=/home/user/localdir > > But during debugging python i get: > > (gdb)next > (gdb)print variable > (gdb)$1 = > > What should i do? > How can i get the value of a variable instead of ? > > Thanks. Maybe try: http://docs.python.org/

Re: regarding session in python

2011-06-07 Thread Kev Dwyer
ou can either use a web framework written in Python (Django is the most popular). Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: pairwise combination of two lists

2011-08-17 Thread Kev Dwyer
Hello Yingjie, This isn't exactly handy, but... >>> import itertools >>> a = ('a', 'b') >>> b = (1, 2) >>> [x + str(y) for (x, y) in itertools.product(*(a, b))] ['a1', 'a2', 'b1', 'b2'] Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: IDLE doesn't start

2011-03-11 Thread Kev Dwyer
nstalled there, and this is causing problems for your more modern Python install. You change change Windows environment variables using the instructions here: http://support.microsoft.com/kb/310519. Changing the environment variable is the documented solution for this - see http://bugs.python.org

Mutable global state and threads

2017-01-03 Thread Kev Dwyer
r: I understand that sanity, mutable global state and threads are unlikely bedfellows and so promise never to try anything like this in production code). Cheers, Kev -- https://mail.python.org/mailman/listinfo/python-list

Mutable global state and threads

2017-01-06 Thread Kev Dwyer
r: I understand that sanity, mutable global state and threads are unlikely bedfellows and so promise never to try anything like this in production code). Cheers, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: sorting a list of dicts by a computed field

2017-01-31 Thread Kev Dwyer
Larry Martell wrote: > I have a list of dicts and one item of the dict is a date in m/d/Y > format. I want to sort by that. I tried this: > > sorted(data['trends'], key=lambda k: > datetime.strptime(k['date_time'],'%m/%d/%Y')) > > But that fails with: > > Exception Type: AttributeError at > /re

Re: Why do these statements evaluate the way they do?

2016-05-07 Thread Kev Dwyer
Anthony Papillion wrote: > I'm trying to figure out why the following statements evaluate the way > they do and I'm not grasping it for some reason. I'm hoping someone can > help me. > > 40+2 is 42 #evaluates to True > But > 2**32 is 2**32 #evaluates to False > > This is an example taken from a

Re: gotta love radio buttons

2014-01-05 Thread Kev Dwyer
eneskri...@gmail.com wrote: > So, I'm having this radio button issue in tkinter: > First I assign the IntVar: > var = [] > while i < self.something: > var.append(IntVar()) > i += 2 > Later on I use them, but I get this error: > for r in var: > helper = var[r].get() > self.something

Re: Help needed with compiling python

2015-11-26 Thread Kev Dwyer
ypper python > > It installs things in /usr/lib and /usr/lib64, but nothing in > /usr/bin. So it installs libraries, but not programs. > > > By the way: I am of-course most interested to fix my system, but I > would not mind to have python compiled also, so I (can) work with the

Re: Google Maps and Python: creating a map, embedding it, adding images, videos, markers, using python

2014-12-18 Thread Kev Dwyer
ent" returns https://developers.google.com/api-client-library/python/apis/mapsengine/v1 as the first result... HTH Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: OSError: [WinError 10022] An invalid argument was supplied in udp python file

2015-01-10 Thread Kev Dwyer
)) > OSError: [WinError 10022] An invalid argument was supplied Hello, According to http://stackoverflow.com/questions/15638214/socket-error-invalid-argument-supplied, the client socket doesn't have an address at time when you call s.getsocketname. This raises an exception on Windows. Removing the 'Address before sending' line will prevent the error. As you're using Python3, you'll find that passing strings to s.sendto raises a TypeError; you'll need to encode the strings as bytes. Hope that helps, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: lxml objectify - attribute elements to list.

2015-02-08 Thread Kev Dwyer
trib['VenueName']] > ------- > AttributeErrorTraceback (most recent call > last) in () > > 1 names = [p.text for p in root.Track.attrib['Ven

Re: Google app engine database

2014-02-23 Thread Kev Dwyer
access the data by adding the proprties back to the model or (maybe) by loading a different model definition in the remote shell, but this is not something that you would want to rely on in a production environment. tl,dr: it's ok to add new properties to you models, but don't remove or rename properties. Hope that helps, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: extract from json

2014-03-07 Thread Kev Dwyer
u'http://bl.ocks.org/mbostock/9234731', u'date': u'dateplaceholder', u'title': u'titleplaceholder'}, {u'url': u'http://bl.ocks.org/mbostock/9232962', u'date': u'dateplaceholder', u'title': u't

Re: Sorting list alphabetically

2014-04-27 Thread Kev Dwyer
http://stackoverflow.com/questions/19709026/how-can-i-list-all-available- windows-locales-in-python-console https://mail.python.org/pipermail/python-list/2009-February/525427.html Cheers, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: Sorting list alphabetically

2014-04-27 Thread Kev Dwyer
Terry Reedy wrote: > On 4/27/2014 6:40 AM, Kev Dwyer wrote: >> Igor Korot wrote: >> >>> Hi, ALL, >>> I need to perform a subj. >>> Looking at the Google I found following thread with explanation: >>> >>> http://stackoverflow.com/qu

Re: Sorting list alphabetically

2014-04-28 Thread Kev Dwyer
Terry Reedy wrote: > On 4/28/2014 2:33 AM, Kev Dwyer wrote: > >> Hello Terry, >> >> Regarding your second point, my mistake in not checking the link: >> I'd seen a similar one elsewhere and assumed they were the same. >> >> This link should w

Re: téléchaegement

2015-03-14 Thread Kev Dwyer
. Cordialement. Essayez pyt...@aful.org - python-list en francais si vous ne peut pas ecrire en anglais. (et excusez ma francais pauvre, s'il vous plait) Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: GAE environment differences

2015-05-02 Thread Kev Dwyer
ng. Apparently the user module has > no meaning, but there is a users module? I guess I'll need to keep > patching reportlab when GAE users find these glitches. For what it's worth, we use reportlab on GAE to generate a simple pdf and the above error is the only one that I've encountered. For us it was enough to trap the ImportError. Thanks for all your work on reportlab, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: SSL Socket Error

2015-05-09 Thread Kev Dwyer
e included but you should ## generate your own. ## If left blank the default included cert/key will be used #certfile=/etc/apache2/ssl/server.crt #keyfile=/etc/apache2/ssl/server.key certfile= keyfile= So I think you need to start by examining the config file on your server. Good luck, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: mutual coaching

2015-06-25 Thread Kev Dwyer
r list too: https://mail.python.org/mailman/listinfo/tutor Good luck! Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: No Content-Length header, nor length property

2015-07-07 Thread Kev Dwyer
page content, or you could consider the getheader method to check for a Content- Length header. Hope that helps, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: No Content-Length header, nor length property

2015-07-07 Thread Kev Dwyer
consider the getheader method to check for a Content- Length >> header. >> >> Hope that helps, >> >> Kev > > Kev, did you mean? > > import urllib.request > > url = 'http://radio.hrt.hr/prvi-program/aod/download/118467/' > site

Re: Cannot create a virtualenv

2015-09-14 Thread Kev Dwyer
paul.hermeneu...@gmail.com wrote: > - I downloaded and installed Python 3.5 64-bit onto a Windows 7 64-bit > machine. - Using `pip install virtualenv` worked fine. > - Now, it is time to create a virtualenv, but it is not working fine. > - I had to add Python 3.5 to the PATH. > - Any suggestions?

Re: PyPi bug?

2015-10-22 Thread Kev Dwyer
Nagy László Zsolt wrote: > Today I have tried to register and upload a new package by executing > > setup.py register > > > I was asked if I want to save the creditentials in a .pypirc file and I > answered yes. > > Next I wanted to run > > setup.py upload > > and I got this error: > > > T

Re: login: optional

2014-07-30 Thread Kev Dwyer
ug=True) Are you sure that there's nothing in your code or environment that could be causing the authentication challenge? Cheers, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: Google Appengine Proxy Post method error

2014-09-22 Thread Kev Dwyer
le-proxy githubpage lists a twitter account for support contact - http://twitter.com/labnol - so you could try asking there for more help. Also check the docs for webapp2 and and Google App Engine (http://developers.google.com/appengine). Have fun, Kev -- https://mail.python.org/mailman/listinfo/python-list

Re: parse html:what is the meaning of "//"?

2011-09-16 Thread Kev Dwyer
/tr[@valign='top']//td") > > i want to know why the "//" make output different? This is an XPATH question, not really Python-related. See http://www.w3schools.com/xpath/xpath_syntax.asp Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Fwd: os.statvfs bug or my incompetence ?

2011-10-15 Thread Kev Dwyer
Peter G. Marczis wrote: Hello Peter, Welcome to the list. Have you tried calling statvfs from a C program? What happens if you do? Best regards, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Bug in multiprocessing.reduction?

2011-12-18 Thread Kev Dwyer
cessing module, so I won't speculate about bugs ;) however I can tell you that your code works with error on my machine: kev@pluto:~> python mtest.py [DEBUG/MainProcess] created semlock with handle 140252275732480 [DEBUG/MainProcess] created semlock with handle 140252275728384 [DEBUG/Main

Re: how to run python-script from the python promt? [absolute newbie]

2011-12-18 Thread Kev Dwyer
the myscript code. N.B. when you import/reload your script the interpreter will immediately execute any code that is not enclosed in a function or class definition. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: About instance.name look up order

2011-12-29 Thread Kev Dwyer
named "x". When the attribute c.x is requested, Python finds an attribute "x" in the instance and returns it; the method "x" is found in the class, but the attribute lookup does not proceed this far. Try looking at C.__dict__ and c.__dict__ in the interpreter to see how the attributes are stored. See also http://docs.python.org/reference/datamodel.html#customizing-attribute-access Cheers Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: problem:emulate it in python with mechanize

2012-01-15 Thread Kev Dwyer
nr=0) > br.form['kw']='http://v.163.com/movie/2008/10/O/Q/M7F57SUCS_M7F5R3DOQ.html' > print br.submit().read() > > why?? Hello, I think the page uses javascript to submit the form, so mechanize may not work with it directly. See http://stackoverflow.com/questi

Re: Interesting list() un-optimization

2013-03-06 Thread Kev Dwyer
ot unheard of to call list() on iterables, perhaps the library designers should either optimise the __len__() method, or document the performance implications of calling list on the queryset? Anyway, thanks for this thought-provoking post. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: splinter web browser simulator causing constant BSODs

2013-04-13 Thread Kev Dwyer
list on Google Groups (https://groups.google.com/forum/?fromgroups#!forum/splinter-users). I expect they might like to see some sopecifics on the BSOD too. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with invoking standard mail app in windows

2009-12-18 Thread Kev Dwyer
an, Your code executes without error for me on Win98 (!) with Python 2.5 or XP with Python 2.6. It would help people to help you if you could provide the *exact* console output from when you try to execute the code, *including* the traceback. That way we can work out which line of code is hitting the exception. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Help with invoking standard mail app in windows

2009-12-18 Thread Kev Dwyer
On Sat, 19 Dec 2009 06:36:32 +1100, Astan Chee wrote: > Kev Dwyer wrote: >> Hello Astan, >> >> Your code executes without error for me on Win98 (!) with Python 2.5 or >> XP with Python 2.6. >> >> It would help people to help you if you could provide the *exa

Re: Help with invoking standard mail app in windows

2009-12-19 Thread Kev Dwyer
On Sat, 19 Dec 2009 06:36:32 +1100, Astan Chee wrote: > Kev Dwyer wrote: >> Hello Astan, >> >> Your code executes without error for me on Win98 (!) with Python 2.5 or >> XP with Python 2.6. >> >> It would help people to help you if you could provide the *exa

Re: Importing bitly.py in twitter-gedit.py

2009-12-31 Thread Kev Dwyer
On Thu, 31 Dec 2009 10:28:55 +0530, Vikash Dhankar wrote: > Hi, > I am newbie in the python, I am stuck into a small problem. > > Me and my friend are working on the gedit based Twitter plugin. > http://code.google.com/p/gedit-twitter-plugin/ > > Now I want to add the tiny URL thing into this. I

Re: Python Will Not Send Email!!

2009-11-19 Thread Kev Dwyer
? If so, start a new interpreter session and try import email - is the email module imported from the stdlib? If these steps don't help, it might be useful if you can tell us which Linux distribution you are using. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Will Not Send Email!!

2009-11-20 Thread Kev Dwyer
On Fri, 20 Nov 2009 07:58:55 -0500, Victor Subervi wrote: > On Thu, Nov 19, 2009 at 5:01 PM, Kev Dwyer > wrote: > >> On Thu, 19 Nov 2009 11:28:37 -0400, Victor Subervi wrote: >> >> Hello Victor, >> >> There are some pages on the internet that suggest

Re: Python Will Not Send Email!!

2009-11-20 Thread Kev Dwyer
On Fri, 20 Nov 2009 11:58:00 -0400, Victor Subervi wrote: Hello Victor, Carsten's well-specified instruction has identified your problem. >[r...@13gems globalsolutionsgroup.vi]# python -c "import email; print >email" > There is a file named email.pyc, most likely in your current directory, th

Re: Problem w/ smtplib

2009-11-21 Thread Kev Dwyer
need to view an older version). Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem w/ smtplib

2009-11-21 Thread Kev Dwyer
2009/11/21 Victor Subervi > On Sat, Nov 21, 2009 at 12:04 PM, Kev Dwyer wrote: > >> On Sat, 21 Nov 2009 08:19:52 -0500, Victor Subervi wrote: >> >> Hello Victor, >> >> The information that you have sent comes from the client side of the >> transaction, s

Re: "Nim" game being created, no GUI used... Need tips...

2010-02-06 Thread Kev Dwyer
python tutorial at http://docs.python.org/tutorial/index.html for more on "while" and "for" statements. Use functions to break up the code into related sections. Check out the tutorial material for functions too. This skeleton should give you a starting structure for your program. Have fun :) Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Checking the coding style

2010-02-07 Thread Kev Dwyer
llo Pablo, The pep8 package (http://pypi.python.org/pypi/pep8) can do this, though I have never used it myself. PyLint is a customisable static analysis program that checks style among other things. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Configuring apache to execute python scripts using mod_python handler

2010-02-12 Thread Kev Dwyer
ction in your item (2)). Is it on the python path used by the webserver? See for example the last post at http://forums.devshed.com/apache-development-15/installing-python-on-apache-42184.html which shows how you can set up the path. Cheers, Kev -- http://mail.python.org/mailman/lis

Re: Python 2.6 and modules dbi AND odbc

2010-03-11 Thread Kev Dwyer
recation of dbi (though "import dbi" will provide a useful warning message). Pyodbc is a possible alternative. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Is it possible to use re2 from Python?

2010-03-14 Thread Kev Dwyer
On Sun, 14 Mar 2010 08:57:36 -0700, _wolf wrote: > > how can i use re2 from Python? > Hello Wolf, There's a recent thread about this on the python-dev list, Unfortunately it seems to suggest that there are no Python bindings at present. Cheers, Kev -- http://mail.pyth

Re: Is it possible to use re2 from Python?

2010-03-15 Thread Kev Dwyer
On Sun, 14 Mar 2010 14:40:34 -0700, _wolf wrote: >> There's a recent thread about this on the python-dev list, > > pointers? i searched but didn’t find anything. http://mail.python.org/pipermail/python-dev/2010-March/098354.html -- http://mail.python.org/mailman/listinfo/python-list

Re: If/then style question

2010-12-17 Thread Kev Dwyer
actory object instead, but at least it isn't cluttering up your business logic any longer. Trying to write an OO-style program without using any if statements in the business logic can be an interesting exercise, albeit not a terribly realistic one. Apologies if your choice of a method fo

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Kev Dwyer
port=None, strict=None) The constructor doesn't take a complete URL as an argument. Also, shouldn't you be using httplib.HTTPConnection? The docs state that httplib.HTTP is for backward compatibility only. Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: **** httplib.InvalidURL: nonnumeric port ****

2010-12-20 Thread Kev Dwyer
connection to make a PUT or GET request: conn.request('PUT', url, body, headers) Please read the documentation for the httplib module, and perhaps some basic material on how HTTP requests work. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: pyWin32 attempted installation; Error message: Skipping exchdapi: No library 'Ex2KSdk'

2011-01-02 Thread Kev Dwyer
ons/4476764/pywin32-support-trouble-while-building-syntax-error Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: question about pdb assignment statements

2010-08-16 Thread Kev Dwyer
s may be the issue raised in bug 5215 (http://bugs.python.org/issue5215), committed in r71006. Displaying a changed variable using the "p" command reverts the variable to its previous value. If you try pdb.set_trace() def main(): xm = 123 print("Hello,world!")

Re: question about pdb assignment statements

2010-08-16 Thread Kev Dwyer
On Mon, 16 Aug 2010 08:17:20 -0700, Steve Ferg wrote: > In this little script: > > > import pdb > pdb.set_trace() > def main(): > xm = 123 > print("Hello,world!") > main() > > > When I run this, I use pdb to step through it until I reach the point in > main() where the xm varia

Re: my recursive function call is wrong?

2009-08-16 Thread Kev Dwyer
paths through your code. Cheers, Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: XPath support?

2009-08-16 Thread Kev Dwyer
; > What I'm trying to do is to read-in a large XML string, and parse it > into an object from which I can extract nodes matching selectors that > include such predicates. > > Any suggestions would be greatly appreciated. > > TIA! > > kynn Have you tried lxml (http

Re: logger module : Question about log message format

2009-09-04 Thread Kev Dwyer
ogger1 > > Do you know why? > > Many thanks. See http://docs.python.org/library/logging.html#formatter-objects Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: Making logging.getLogger() simpler

2010-09-19 Thread Kev Dwyer
ndler will be created on the root logger and your logger inherits the StreamHandler. So you can avoid the "No handlers..." warning by calling logging.basicConfig() before your program does any logging. I don't know why getLogger() doesn't so something similar when it's c

Re: develop for Windows on GNU/Linux, using Python

2010-09-19 Thread Kev Dwyer
ows (or cross-platform code) I think you need to bite the bullet and get access to a Windows (virtual) machine. Cheers, Kev PS - You might be able to get away with using an emulator like WINE, but given the ubiquity of Windows in business/home computing I think you're better of testing on the real thing. -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple logging example doesn't work!

2010-10-18 Thread Kev Dwyer
helpful, but it's late here. Cheers (apologetically), Kev -- http://mail.python.org/mailman/listinfo/python-list

Re: What people are using to access this mailing list

2010-11-06 Thread Kev Dwyer
On Wed, 03 Nov 2010 11:17:32 +, Steven D'Aprano wrote: > On Wed, 03 Nov 2010 08:02:29 +, John Bond wrote: > >> Hope this isn't too O/T - I was just wondering how people read/send to >> this mailing list, eg. normal email client, gmane, some other software >> or online service? > > Usenet

Re: python test frameworks

2010-11-07 Thread Kev Dwyer
escriptions? 'Test framework' means widely different things in > different contexts. Any explanations/tutorials around? > > [Disclaimer: I was educated a couple of decades before the TDD rage] Hello, You could start with http://pycheesecake.org/wiki/PythonTestingToolsTaxo

Re: python test frameworks

2010-11-08 Thread Kev Dwyer
On Sun, 07 Nov 2010 09:01:42 -0800, rustom wrote: > On Nov 7, 7:09 pm, Kev Dwyer wrote: >> On Sun, 07 Nov 2010 10:56:46 +0530, Rustom Mody wrote: >> > There are a large number of test frameworks in/for python.  Apart >> > from what comes builtin with python t

Re: cross python version randomness

2017-03-20 Thread Kev Dwyer
Robin Becker wrote: > Is there a way to get the same sequences of random numbers in python 2.7 > and python >= 3.3? > > I notice that this simple script produces different values in python 2.7 > and >=3.3 > > C:\code\hg-repos\reportlab>cat s.py > import sys, random > print(sys.version) > random.

Re: AttributeError: 'module' object has no attribute 'urlretrieve' in window subsystem ubuntu bash for tensorflow

2017-05-20 Thread Kev Dwyer
Ho Yeung Lee wrote: > i use window subsystem ubuntu > and install python 3 and tensorflow > > then when try deep learning > > https://www.tensorflow.org/tutorials/wide_and_deep > > got error when urlretrieve local directory in ubuntu in window > > tried urllib3 still have error > > import tem