mx as dependency tox throws GCC error

2015-02-25 Thread Albert-Jan Roskam
st = true [testenv] deps = setuptools nose gocept.testing numpy cython # egenix-mx-base # --> mx tox gcc: error: mx/DateTime/mxDateTime/mxDateTime.c: No such file or directory install_command = pip insta

locale getlocale returns None on OSX

2014-03-12 Thread Albert-Jan Roskam
'horrible hack' solution on OS have any drawbacks? I like it better because it is not needed to set the LC_ALL environment variable prior to starting the Python program. Regards, Albert-Jan ~~ All right, but apar

Re: locale getlocale returns None on OSX

2014-03-12 Thread Albert-Jan Roskam
> > From: Albert-Jan Roskam >To: Python >Sent: Wednesday, March 12, 2014 1:22 PM >Subject: locale getlocale returns None on OSX > > >Hi, > >locale.getlocale() sometimes returns (None, None) under OSX (Python 2, not >sure abo

Re: Question about Source Control

2014-03-22 Thread Albert-Jan Roskam
former is for common tasks that are not common enough to remember right away. The latter is for reference. I only have experience with git and subversion. I like git much better. But any SCM is better than none at all.   Regards, Albert-Jan ~

Re: Question about Source Control

2014-03-23 Thread Albert-Jan Roskam
> From: Dave Angel >To: python-list@python.org >Sent: Sunday, March 23, 2014 3:18 AM >Subject: Re: Question about Source Control > > >Albert-Jan Roskam Wrote in message: >> > >In addition to posting in html format,  you have

Re: Martijn Faassen: The Call of Python 2.8

2014-04-15 Thread Albert-Jan Roskam
uld be able to unpack > a tarball and 'make xxx'. True, but in Debian Linux (so probably also Linux) one needs to install some zlib packages and some other stuff (https related IIRC) before compiling Python (at least with 3.3). So glad that pip (and setuptools too?) is part of th

Re: Why Python 3?

2014-04-19 Thread Albert-Jan Roskam
- Original Message - > From: Chris Angelico > To: > Cc: "python-list@python.org" > Sent: Saturday, April 19, 2014 3:42 PM > Subject: Re: Why Python 3? > Right. It's not the magic line that fixes everything; if it were, > Python 3 wouldn't be a big deal at all. Go Py3 if you can, bu

shebang & windows: call an extensionless git hook

2014-05-22 Thread Albert-Jan Roskam
ip/pylauncher, http://legacy.python.org/dev/peps/pep-0397/) In addition, I would really appreciate general feedback on the hook script below.  Thanks! Albert-Jan albertjan@debian ~/Desktop/test_repo $ git config --global init.templatedir ~/Desktop/git_template_dir albertjan@debian ~/Desktop/test

Re: shebang & windows: call an extensionless git hook

2014-05-23 Thread Albert-Jan Roskam
- Original Message - > From: Albert-Jan Roskam > To: Python > Cc: > Sent: Thursday, May 22, 2014 6:58 PM > Subject: shebang & windows: call an extensionless git hook > > Hi, > > I wrote the git pre-commit hook below. It is supposed to reject commits t

Re: shebang & windows: call an extensionless git hook

2014-05-23 Thread Albert-Jan Roskam
- Original Message - > From: Chris Angelico > To: > Cc: Python > Sent: Friday, May 23, 2014 4:01 PM > Subject: Re: shebang & windows: call an extensionless git hook > > On Fri, May 23, 2014 at 11:53 PM, Albert-Jan Roskam > > wrote: >> Ok, I just

Re: win32serviceutil: ImportError: DLL load failed: The specified module could not be found

2014-05-26 Thread Albert-Jan Roskam
Original Message - > From: Terry Reedy > To: python-list@python.org > Cc: > Sent: Sunday, May 25, 2014 11:49 PM > Subject: Re: win32serviceutil: ImportError: DLL load failed: The specified > module could not be found > > On 5/25/2014 1:40 PM, Nagy László Zsolt wrote: >>   >>> import wi

how to load test a web app?

2013-11-01 Thread Albert-Jan Roskam
many times to simulate many users. I thought about using mechanize/subprocess, the multimechanize package, or the twill package. Very curious to hear your thoughts about this and I hope this is not too vague. Thank you in advance! Regards, Alber

Re: Python Worst Practices

2015-02-26 Thread Albert-Jan Roskam
param in python 2. I bitez you when you shadow 'bytes' (I can't remember when I couldn't use the functools.partial object), though it often works. Much easier to use 'bytez' or 'bytes_'. It is annoying to 'unshadow' your code and confusing for others who might read your code. Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Pythonic locale

2015-03-02 Thread Albert-Jan Roskam
def getdefaultlocale(self): return locale_.getdefaultlocale() if __name__ == "__main__": locale = PythonicLocale() # getter print locale.locale # setter locale.locale = (locale.LC_ALL, "german") print loca

io.open vs. codecs.open

2015-03-04 Thread Albert-Jan Roskam
returns a unicode string. *) I had never tried that before. I would have expected that encoding would default to e.g locale.getpreferredencoding(). Thank you! Regards, Albert-Jan ~~ All right, but apart from the sanitation, the

Re: io.open vs. codecs.open

2015-03-06 Thread Albert-Jan Roskam
- Original Message - > From: Steven D'Aprano > To: python-list@python.org > Cc: > Sent: Wednesday, March 4, 2015 8:56 PM > Subject: Re: io.open vs. codecs.open > > Albert-Jan Roskam wrote: > >> Hi, >> >> Is there a (use case) diff

Re: Newbie question about text encoding

2015-03-07 Thread Albert-Jan Roskam
--- Original Message - > From: Chris Angelico > To: > Cc: "python-list@python.org" > Sent: Saturday, March 7, 2015 6:26 PM > Subject: Re: Newbie question about text encoding > > On Sun, Mar 8, 2015 at 4:14 AM, Marko Rauhamaa wrote: >> See: >> >> $ mkdir /tmp/xyz >> $ touch /tm

Re: Letter class in re

2015-03-09 Thread Albert-Jan Roskam
On Mon, 3/9/15, Tim Chase wrote: Subject: Re: Letter class in re To: python-list@python.org Date: Monday, March 9, 2015, 12:17 PM On 2015-03-09 11:37, Wolfgang Maier wrote: > On 03/09/2015 11:23 AM, Antoon Pardon wrote: >> Does anyone know w

Re: HELP!! How to ask a girl out with a simple witty Python code??

2015-03-09 Thread Albert-Jan Roskam
- Original Message - > From: Jonas Wielicki > To: python-list@python.org > Cc: > Sent: Monday, March 9, 2015 8:12 PM > Subject: Re: HELP!! How to ask a girl out with a simple witty Python code?? > > On 09.03.2015 14:39, Omar Abou Mrad wrote: >> On Thu, Mar 5, 2015 at 3:34 AM, Xrrific

Re: Letter class in re

2015-03-10 Thread Albert-Jan Roskam
On Tue, 3/10/15, Antoon Pardon wrote: Subject: Re: Letter class in re To: python-list@python.org Date: Tuesday, March 10, 2015, 9:35 AM Op 09-03-15 om 17:11 schreef Steven D'Aprano: > Antoon Pardon wrote: > >> I am using PLY for a parsing task which uses re for the lexical >> analys

Re: Python script output in file

2015-03-18 Thread Albert-Jan Roskam
On Wed, Mar 18, 2015 7:06 PM CET Rustom Mody wrote: >On Wednesday, March 18, 2015 at 8:12:12 PM UTC+5:30, Robert Clove wrote: >> ./my_eth_script.pl eth0 M > a.txt >> >> How can i run this command with subprocess.popen > >Something like this I guess? > >>> proc = Pope

Re: Python script output in file

2015-03-20 Thread Albert-Jan Roskam
- On Thu, Mar 19, 2015 12:16 AM CET Steven D'Aprano wrote: >On Thu, 19 Mar 2015 07:22 am, Albert-Jan Roskam wrote: > >> >> >> On Wed, Mar 18, 2015 7:06 PM CET Rustom Mody wrote: >> >>On Wednesd

Re: Automation of Windows app?

2015-03-23 Thread Albert-Jan Roskam
-- On Sun, Mar 22, 2015 6:41 PM CET Emile van Sebille wrote: >On 3/20/2015 10:55 AM, Grant Edwards wrote: > >> I need to automate operation of a Windows application. > >I've been productively using python to create macro scheduler [1] scripts to >automate windows prog

Re: New to Programming - XML Processing

2015-04-02 Thread Albert-Jan Roskam
Python mail list? Main ingredients beatfilsoup (to textify HTML mails) and difflib (to check whether replies contain parts of the original message, and that no top posting happens) Just an idea. Albert-Jan >-- My fellow Pythonistas, ask not what our language can do for you, ask &

[OT] Git for nazis

2015-04-23 Thread Albert-Jan Roskam
Just had to share this: https://youtu.be/CDeG4S-mJts-- https://mail.python.org/mailman/listinfo/python-list

Re: Wrote a memoize function: I do not mind feedback

2015-04-27 Thread Albert-Jan Roskam
- Original Message - > From: Peter Otten <__pete...@web.de> > To: python-list@python.org > Cc: > Sent: Monday, April 27, 2015 4:28 PM > Subject: Re: Wrote a memoize function: I do not mind feedback > > Cecil Westerhof wrote: > >> I started again with Python. In Clojure you have memoize.

Re: Question Installing latest Python

2015-04-28 Thread Albert-Jan Roskam
On Mon, Apr 27, 2015 4:55 PM CEST Steven D'Aprano wrote: >On Mon, 27 Apr 2015 01:11 am, Φώντας Λαδοπρακόπουλος wrote: > >> Τη Κυριακή, 26 Απριλίου 2015 - 6:05:50 μ.μ. UTC+3, ο χρήστης Steven >> D'Aprano έγραψε: >> On Mon, 27 Apr 2015 01:00 am, Φώντας Λαδοπρακόπουλος w

windows and file names > 256 bytes

2015-06-25 Thread Albert-Jan Roskam
\\dir\\file")) will truncate the prefix) My questions: 1. How can I get the file size of very long paths under XP? 2. Is this a bug in Python? I would prefer if Python dealt with the gory details of Windows' silly behavior. Regards, Albert-Jan --- This email has been checked for vir

Re: windows and file names > 256 bytes

2015-06-26 Thread Albert-Jan Roskam
ep.txt") assert os.path.exists(deep) with open(deep, "w") as f: f.write("Deep!\r\n") # try if the file size can be determined (requires special \\?\ notation) print " %d bytes" % os.path.getsize(deep) # now delete the whole directory and its contents. path =

Re: windows and file names > 256 bytes

2015-06-26 Thread Albert-Jan Roskam
> import os import shutil import sys > > # create an insanely long directory tree p = os.getenv("TEMP") > #p = ur"\\server\share\blah\temp" > tmpdir = p os.chdir(tmpdir) > for i in xrange(1000): > tmpdir = os.path.join(tmpdir, "sub") os.mkdir("?\\" + tmpdir) > #os.mkdir(u"?\\UN

RE: -2146826246 in win32com.client for empty #N/A cell in Excel

2015-08-16 Thread Albert-Jan Roskam
a > cell is empty. Looked around the net for a solution, but nothing came up so > far. > > Anyone knows how to handle a "#N/A" cell in Excel in the proper way? > > Regards, > Sven > -- > https://mail.python.org/mailman/listinfo/python-list Hello, Does that nu

RE: Python CI and CD support available on Semaphore (feedback appreciated)

2015-09-08 Thread Albert-Jan Roskam
> To: python-list@python.org > From: tjre...@udel.edu > Subject: Re: Python CI and CD support available on Semaphore (feedback > appreciated) > Date: Tue, 8 Sep 2015 14:46:28 -0400 > > On 9/8/2015 6:27 AM, Filip Komnenović wrote: > > > We have recently launched Python support on our continuous

RE: I'm using Sphinx, but is there a UML auto generator

2015-10-02 Thread Albert-Jan Roskam
(Sorry for top-posting, mobile hotmail sie sucks). This is cool, although it's not a Sphinx directive. You use insert the resulting graph in the .rst of course: http://furius.ca/snakefood/ Date: Fri, 2 Oct 2015 11:14:59 -0300 Subject: I'm using Sphinx, but is there a UML auto generator From: gil

Pandas question

2014-06-05 Thread Albert-Jan Roskam
[lo <= df[colname] <= hi]  # looks nice, but gives ValueError   Thanks in advance! Regards, Albert-Jan ~~ All right, but apart from the sanitation, the medicine, education, wine, public order, irrigation, roads, a fr

Re: Unicode and Python - how often do you index strings?

2014-06-05 Thread Albert-Jan Roskam
- Original Message - > From: Ian Kelly > To: Python > Cc: > Sent: Thursday, June 5, 2014 10:18 PM > Subject: Re: Unicode and Python - how often do you index strings? > > On Thu, Jun 5, 2014 at 1:58 PM, Paul Rubin > wrote: >> Ryan Hiebert writes: >>> How so? I was using line=l

Re: Question about metacharacter '*'

2014-07-06 Thread Albert-Jan Roskam
>In article , > Rick Johnson wrote: > >> As an aside i prefer to only utilize a "character set" when >> nothing else will suffice. And in this case r"[0-9][0-9]*" >> can be expressed just as correctly (and less noisy IMHO) as >> r"\d\d*". > >Even better, r"\d+" I tend tot do that too, even th

Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example

2014-07-10 Thread Albert-Jan Roskam
- Original Message - > From: Joel Goldstick > To: fl > Cc: "python-list@python.org" > Sent: Thursday, July 10, 2014 7:05 PM > Subject: Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example > > On Thu, Jul 10, 2014 at 11:37 AM, fl wrote: >> Hi, >> >> This example is from

Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example

2014-07-11 Thread Albert-Jan Roskam
- Original Message - > From: Steven D'Aprano > To: python-list@python.org > Cc: > Sent: Friday, July 11, 2014 11:04 AM > Subject: Re: How to decipher :re.split(r"(\(\([^)]+\)\))" in the example > > On Thu, 10 Jul 2014 23:33:27 -0400, Roy Smith wrote: > >> In article , >>   Tim Chase

how to msi install Python to non-default target dir?

2014-07-16 Thread Albert-Jan Roskam
7" y:\>cd /d "c:\program files" y:\>md python27 y:\>cd /d %temp% y:\>msiexec /i python-2.7.3 TARGETDIR="%PYTHONDIR%" /qb Thank you! Regards, Albert-Jan [1] http://stackoverflow.com/questions/3259737/command-line-option-to-tell-msi-installation-to-a-s

Re: how to msi install Python to non-default target dir?

2014-07-16 Thread Albert-Jan Roskam
  - Original Message - > From: Zachary Ware > To: Albert-Jan Roskam > Cc: Python > Sent: Wednesday, July 16, 2014 3:47 PM > Subject: Re: how to msi install Python to non-default target dir? > > On Wed, Jul 16, 2014 at 8:29 AM, Albert-Jan Roskam > > wrote:

Re: What meaning of this ""hello %s you are %s years old" % x"

2014-07-28 Thread Albert-Jan Roskam
have custom formatters with an own __format__ method? Regards, Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Re: rpath alike feature for python scripts

2014-07-28 Thread Albert-Jan Roskam
- Original Message - > From: Olaf Hering > To: dieter > Cc: python-list@python.org > Sent: Monday, July 28, 2014 9:57 AM > Subject: Re: rpath alike feature for python scripts > > On Sat, Jul 26, dieter wrote: > >> The "binary" corresponds to a script. The script could have >> a fun

Re: converting ISO8601 date and time string representations to datetime

2014-07-31 Thread Albert-Jan Roskam
>In article , > Wolfgang Maier wrote: > >> Hi, >> I'm trying to convert ISO8601-compliant strings representing dates or >> dates and times into datetime.datetime objects. > >https://pypi.python.org/pypi/iso8601 Yikes, what a regex. It must have been painstaking to get that right. https://bitb

Re: converting ISO8601 date and time string representations to datetime

2014-07-31 Thread Albert-Jan Roskam
>In article , > Wolfgang Maier wrote: > >> Hi, >> I'm trying to convert ISO8601-compliant strings representing dates or >> dates and times into datetime.datetime objects. > >https://pypi.python.org/pypi/iso8601 Yikes, what a regex. It must have been painstaking to get that right. https://bitb

Re: Correct type for a simple "bag of attributes" namespace object

2014-08-03 Thread Albert-Jan Roskam
I find the following obscure (to me at least) use of type() useful exactly for this "bag of attributes" use case: >>> employee = type("Employee", (object,), {}) >>> employee.name = "John Doe" >>> employee.position = "Python programmer" >>> employee.name, employee.position, employee ('John Doe', 'Python programmer', ) >>> details = dict(name="John Doe", position="Python programmer") >>> employee = type("Employee", (object,), details) >>> employee.name, employee.position, employee ('John Doe', 'Python programmer', ) regards, Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Re: Correct type for a simple "bag of attributes" namespace object

2014-08-03 Thread Albert-Jan Roskam
- Original Message - > From: Peter Otten <__pete...@web.de> > To: python-list@python.org > Cc: > Sent: Sunday, August 3, 2014 11:37 AM > Subject: Re: Correct type for a simple "bag of attributes" namespace object > > Albert-Jan Roskam wrote: >

Re: Correct type for a simple "bag of attributes" namespace object

2014-08-03 Thread Albert-Jan Roskam
- Original Message - > From: Albert-Jan Roskam > To: Terry Reedy ; "python-list@python.org" > > Cc: > Sent: Sunday, August 3, 2014 11:17 AM > Subject: Re: Correct type for a simple "bag of attributes" namespace object >>>>>  

Re: [OT] Question about Git branches

2014-09-16 Thread Albert-Jan Roskam
- On Tue, Sep 16, 2014 9:37 AM CEST Steven D'Aprano wrote: >Ben Finney wrote: > >> "Frank Millman" writes: >> >> I know there some Git experts on this list, so I hope you don't mind >> me posting this question here. >> >> I do. There may be experts on parquetry floo

Re: [OT] Question about Git branches

2014-09-16 Thread Albert-Jan Roskam
- On Tue, Sep 16, 2014 10:29 AM CEST Chris Angelico wrote: >On Tue, Sep 16, 2014 at 6:21 PM, Marko Rauhamaa wrote: >> "Frank Millman" : >> >> You are encouraged to make liberal use of 'branches', >> >> Personally, I only use forks, IOW, "git clone". I encourage that >

Re: Python code in presentations

2014-09-30 Thread Albert-Jan Roskam
-- On Tue, Sep 30, 2014 1:50 PM CEST 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 wa

what is the easiest way to install multiple Python versions?

2014-10-12 Thread Albert-Jan Roskam
x27;t expect/hope that I'd ever need something lower than Python 2.5 Thank you. Albert-Jan *) Make altinstall sudo apt-get install libsqlite3-dev libbz2-dev libgdbm-dev libncurses5-dev tk-dev zlib1g-dev wget https://www.python.org/ftp/python/2.6.8/Python-2.6.8.tgz tar -zxvf Python-2.6.8.tgz

Re: what is the easiest way to install multiple Python versions?

2014-10-16 Thread Albert-Jan Roskam
- Original Message - > From: Rustom Mody > To: python-list@python.org > Cc: > Sent: Monday, October 13, 2014 10:00 AM > Subject: Re: what is the easiest way to install multiple Python versions? > > On Monday, October 13, 2014 1:24:27 PM UTC+5:30, Chris Angelico wrote: >> On Mon, Oct

Re: what is the easiest way to install multiple Python versions?

2014-10-16 Thread Albert-Jan Roskam
- Original Message - > From: Chris Angelico > To: > Cc: Python > Sent: Sunday, October 12, 2014 4:20 PM > Subject: Re: what is the easiest way to install multiple Python versions? > > On Mon, Oct 13, 2014 at 12:33 AM, Albert-Jan Roskam > > wrote: >

Re: what is the easiest way to install multiple Python versions?

2014-10-16 Thread Albert-Jan Roskam
- Original Message - > From: Gayathri J > To: Albert-Jan Roskam > Cc: Python > Sent: Sunday, October 12, 2014 6:15 PM > Subject: Re: what is the easiest way to install multiple Python versions? > > I have been using Anaconda's (Continnum) conda installation

Re: what is the easiest way to install multiple Python versions?

2014-10-16 Thread Albert-Jan Roskam
- Original Message - > From: Terry Reedy > To: python-list@python.org > Cc: > Sent: Monday, October 13, 2014 2:54 AM > Subject: Re: what is the easiest way to install multiple Python versions? > > On 10/12/2014 9:33 AM, Albert-Jan Roskam wrote: > > >

Re: what is the easiest way to install multiple Python versions?

2014-10-16 Thread Albert-Jan Roskam
- Original Message - > From: Chris Angelico > To: > Cc: Python > Sent: Thursday, October 16, 2014 10:48 AM > Subject: Re: what is the easiest way to install multiple Python versions? > > On Thu, Oct 16, 2014 at 7:42 PM, Albert-Jan Roskam > The differe

Re: [Tutor] Convert Qstring to string in windows

2014-10-16 Thread Albert-Jan Roskam
- On Thu, Oct 16, 2014 10:59 PM CEST Alan Gauld wrote: >On 16/10/14 19:14, Danny Yoo wrote: > >> need more information. But I think you may get better help on a >> Qt-specific mailing list; I suspect very few of us here have Qt >> experience. > >There are at least 2 P

real-life example LC_CTYPE effects?

2014-10-21 Thread Albert-Jan Roskam
rent values for loc, and s is identical, there will or won't be a match. Thanks! Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Re: sick of distribute, setup, and all the rest...

2011-11-26 Thread Albert W. Hopkins
On Sat, 2011-11-26 at 14:22 +, Steven D'Aprano wrote: > > when is python going to get a decent module distribution system??? > > Python 4.3, scheduled for March 2038. It's been ready for a few years > now, and a small secret coterie of privileged developers have been > using > it for their o

Re: Installing Python on CentOS 6 - a big pain

2012-01-18 Thread Albert W. Hopkins
On Wed, 2012-01-18 at 10:00 -0800, John Nagle wrote: > Python does not "just work". I should be able to command > "yum install python27". (And not clobber the Python 2.6 that > comes with CentOS.) > > This sort of thing is why Python is losing market share. > > Or — and this is the mor

Zipf test in Python

2007-11-22 Thread Albert-jan Roskam
module that can do that? All I could find was ZipfR, a package for R. Best wishes, Albert-Jan Cheers! Albert-Jan ~~ Did you know that 87.166253% of all statistics claim a precision of results that is not justified by the method

Research-oriented Python mailing list?

2007-11-22 Thread Albert-jan Roskam
Hi again, One more Q: I was wondering if there exists a more research-oriented Python listserv. This one is good (or so it seems, I'm just a newbie!), but the topics are very broad. Suggestions, anyone? Thanks in advance! Cheers!!! Albert-Jan Cheers! Alber

newbie question: converting csv to another dialect

2008-02-15 Thread Albert-jan Roskam
) dialect, and writing it. Another option (which may be easier) I tried was: f = open('d:/temp/myfile.csv', ' rw') for row in f: row.replace("\t",",") Which is a start, but doesn't do the entire job. Could somebody help me with this plea

Re: newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Albert-jan Roskam
o, I don't intend to use data fields. Wouldn't it be easier to convert those to string values if I ever came across them? Thanks again! Albert-Jan --- On Wed, 10/15/08, John Machin <[EMAIL PROTECTED]> wrote: > From: John Machin <[EMAIL PROTECTED]> > Subject: Re: new

newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Albert-jan Roskam
by Spss, the program returns an error message (see below). Some details: Python 2.4, xlwt version 0.7.0, xlrd version 0.5.2, Win NT. Any ideas? Thanks in advance! Albert-Jan """ Merge all xls files in a given directory into one multisheet xls file. The sheets get the or

Newbie: Limesurvey and... MySQLdb?

2009-03-20 Thread Albert-jan Roskam
Hi! I made a website using Limesurvey (www.wordsalad.eu) and I would like to query the MySQL database, mostly for *FUN* and to learn more about Python. Should the MySQLdb module be my starting point? Or is there some other/more up-to-date module? Thanks in advance for your replies! Albert

IDE for Win CE?

2009-04-27 Thread Albert-jan Roskam
Hi, A colleague of mine is looking for a Python IDE for Windows CE. Does anybody happen to know what is a good choice? Thanks, AJ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python script error when using print

2010-04-06 Thread Albert W. Hopkins
On Tue, 2010-04-06 at 08:38 -0700, Robbie wrote: > Hi all, > > So, I'm trying to use Python with an apache2 server to create some web > pages. The web server is configured and seems to work correctly, but > only with a certain type of script. > > For instance, this script works fine > > #!/usr/

OrderedDict with kwds

2017-04-22 Thread Albert-Jan Roskam
uteError: self.__hardroot = _Link() self.__root = root = _proxy(self.__hardroot) root.prev = root.next = root self.__map = {} self.__update(*args, **kwds) Thanks! Albert-Jan -- https://mail.python.org/mailman/listinfo/python-list

Re: OrderedDict with kwds

2017-04-22 Thread Albert-Jan Roskam
From: eryk sun Sent: Saturday, April 22, 2017 7:59 AM To: Python Main Cc: Albert-Jan Roskam Subject: Re: OrderedDict with kwds   On Fri, Apr 21, 2017 at 6:08 PM, Albert-Jan Roskam wrote: > Would the insertion order be preserved if the last line were to be > replaced with: >

Re: How to get Buttons to work

2017-04-22 Thread Albert-Jan Roskam
(sorry for top-posting). UpdateRecords and the other functions need to be nested so they fall under your class. Right now they are functions, not methods. AJ From: Python-list on behalf of horgan.ant...@gmail.com Sent: Saturday, April 22, 2017 12:45:09 PM To: p

Fw: Unable to convert pandas object to string

2017-06-24 Thread Albert-Jan Roskam
From: Albert-Jan Roskam Sent: Saturday, June 24, 2017 11:26:26 AM To: Paul Barry Subject: Re: Unable to convert pandas object to string (sorry for top posting) Try using fillna('') to convert np.nan into empty strings. df['desc'] = df.

Re: Combining 2 data series into one

2017-06-28 Thread Albert-Jan Roskam
(sorry for top posting) Yes, I'd try pd.concat([df1, df2]). Or this: df['both_names'] = df.apply(lambda row: row.name + ' ' + row.surname, axis=1) From: Python-list on behalf of Paul Barry Sent: Wednesday, June 28, 2017 12:30:25 PM To: Bhaskar Dhariyal Cc: python

Re: Combining 2 data series into one

2017-07-01 Thread Albert-Jan Roskam
Hi, Does your code run on a sample of the data? Does your code have categorical data in it? If so: https://pandas.pydata.org/pandas-docs/stable/categorical.html. Also, check out http://www.pytables.org. Albert-Jan From: Python-list on behalf of Bhaskar

Re: memory leak with re.match

2017-07-05 Thread Albert-Jan Roskam
From: Python-list on behalf of Mayling ge Sent: Tuesday, July 4, 2017 9:01 AM To: python-list Subject: memory leak with re.match      Hi,    My function is in the following way to handle file line by line. There are    multiple error patterns  defined and  need to apply  to each  line. I  us

Re: Test 0 and false since false is 0

2017-07-11 Thread Albert-Jan Roskam
From: Python-list on behalf of Dan Sommers Sent: Friday, July 7, 2017 2:46 AM To: python-list@python.org Subject: Re: Test 0 and false since false is 0   On Thu, 06 Jul 2017 19:29:00 -0700, Sayth Renshaw wrote: > I have tried or conditions of v == False etc but then the 0's being > false als

Re: Compare files excel

2017-07-22 Thread Albert-Jan Roskam
(sorry for top posting) Try: df1['difference'] = (df1 == df2).all(axis=1) From: Python-list on behalf of Smith Sent: Saturday, July 22, 2017 7:47:59 AM To: python-list@python.org Subject: Compare files excel Hello to all, I should compare two excel files with p

Re: Making safe file names

2013-05-28 Thread Albert van der Horst
device name hole. There may be trouble with >artists named 'COM4', 'CLOCK$', 'Con', or similar. > >http://support.microsoft.com/kb/74496 That applies to MS-DOS names. God forbid that this still holds on more modern Microsoft operating systems? >http://e

Re: Homework help requested (not what you think!)

2013-07-18 Thread Albert van der Horst
re certified intelligent and skilled and disciplined in learning.] The lesson that is in there for you is to not hold your students back. They may surprise you! Groetjes Albert > >ChrisA -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimat

Re: Understanding other people's code

2013-07-27 Thread Albert van der Horst
top of that in terms of that usage. That is how good programmers build there programs. Once there is a certain level they don't think about what's underneath, but concentrate on how to use it. If it is done really well, each source module can be understood on its own. All this is of course

Re: Prime number generator

2013-07-30 Thread Albert van der Horst
can be returned.) > prm=None > for p,val in prime.items(): > if prm is None or val prm,smallest=p,val > prime[prm]+=prm > while i yield i >

Re: Re: Pythonic cross-platform GUI desingers à la Interface Builder (Re: what gui designer is everyone using)

2012-06-22 Thread Albert van der Horst
aterfall side and an airport where the personell is on strike. (Oh the noise, the noise is unbearable!). I have not, nor intend to write gui things in Python, I just give an impression. [ I want my gui's to be functional, not beautiful. ] > >http://www.codebykevin.com/quickwho-main

Re: code review

2012-07-13 Thread Albert van der Horst
89284/why-does-0-5-3-return-true/ > >And surprising: > >http://answers.yahoo.com/question/index?qid=20090923172909AA4O9Hx > >C-like semantics are a clear case of purity of implementation overruling >functional usefulness. The worst of is, of course, = for assignment instead of :=

Re: Using a CMS for small site?

2012-07-13 Thread Albert van der Horst
dged CMS even needed for something like that? Good old rcs would be fine. It is oldfashioned, so you need only 4 commands, compared to a bewildering display of icons. mkdir RCS ci * rcs -NSTABLE1: RCS/* Backup by tar cf /media/MYSTICK/project.tar RCS > >Thank you. -- -- Albert van de

Re: Implicit conversion to boolean in if and while statements

2012-07-16 Thread Albert van der Horst
in the proper context. cost= 3.75 print( cost ) > >Same with converting objects to bools. I think "if" is sufficient context to convert something to a boolean. It now is a matter of good taste and what fits best in Python as a whole. Nothing to be dogmatic about. Groetjes Albert --

Re: Implicit conversion to boolean in if and while statements

2012-07-16 Thread Albert van der Horst
_which_are_all_integers_but_might_later_have_more_or_fewer_values_or_other_types > = list([1, 2, integer_value_three]) > >because you can never have too much explicitness. Who wouldn't want >to read code like that? Java programmers? (Couldn't resist ;-) ) >-- >Steven

Re: code review

2012-07-17 Thread Albert van der Horst
In article , Duncan Booth wrote: >Steven D'Aprano wrote: > >> On Fri, 13 Jul 2012 12:30:47 +, Albert van der Horst wrote: >>> The worst of is, of course, = for assignment instead of := . This is >>> a convention that Python follows, to my dismay. >

Re: Encapsulation, inheritance and polymorphism

2012-07-23 Thread Albert van der Horst
ve one exit? Example from recipee's: Stirr until the egg white is stiff. Alternative: Stirr egg white for half an hour, but if the egg white is stiff keep your spoon still. (Cooking is not my field of expertise, so the wording may not be quite appropriate. ) >-- >Steven Gr

Re: Encapsulation, inheritance and polymorphism

2012-07-23 Thread Albert van der Horst
aedter: Goedel, Escher, Bach. > >-- >Erik Max Francis && m...@alcyone.com && http://www.alcyone.com/max/ Groetjes Albert 1] The likes of Brouwer found these silly exercises.) -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimat

Re: Exponential arrival distribution in Python

2012-11-28 Thread Albert Chun-Chieh Huang
ented discrete-event simulation. It also contains some tools to help us to visualize simulation data. It takes some time to study it, but if you would like to do some simulation projects, it will definitely be a good investment! Have fun with simulation! with Regards, Albert Huang Ricky writes:

Re: how to detect the character encoding in a web page ?

2013-01-14 Thread Albert van der Horst
pt. This one he got from Stalin. >the only way to survive in the unicode world. Write defensive code. >Wrap try blocks around calls that might raise exceptions if the external >data is borked w/r/t what the metadata claims it should be. The way to go, of course. Groetjes Albert -- Alber

Re: generate Windows exe on Linux

2012-02-26 Thread Albert van der Horst
ood is it? Actually it is good enough to run the above emulator! (We run a third emulator, of the GA144, on top at a decent speed.) Groetjes Albert -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-26 Thread Albert van der Horst
to-genius into Harvard. Otherwise they will become the master-minds of crime. And you will be too stupid to beat them. Groetjes Albert -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: Entitlements [was Re: Python usage numbers]

2012-02-26 Thread Albert van der Horst
ho deny freedom to others deserve it not for themselves." >"Man is free at the moment he wishes to be." >"Those who desire to give up freedom in order to gain security, will >not have, nor do they deserve, either one." Black Panther comes to mind. The USA just kille

Re: Numerical Linear Algebra in arbitrary precision

2012-02-27 Thread Albert van der Horst
t all. If you mean that you want to be able to select something with larger precision than single or double floats, numpy is the starting point. > >Appreciate any comments. > >Ken Groetjes Albert -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponent

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Albert van der Horst
icate that it *does* matter is a bit perverse, but the Perl people are not to blame if they use a term in their usual sense. Groetjes Albert -- -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst -- http://mail.python.org/mailman/listinfo/python-list

Re: New Science Discovery: Perl Idiots Remain Idiots After A Decade!New Science Discovery: Perl Idiots Remain Idiots After A Decade!

2012-03-12 Thread Albert van der Horst
In article <4f5df4b3$0$1375$4fafb...@reader1.news.tin.it>, Kiuhnm wrote: >On 3/12/2012 12:27, Albert van der Horst wrote: >> Interestingly in mathematics associative means that it doesn't matter >> whether you use (a.b).c or a.(b.c). >> Using xxx-associativity t

Re: are int, float, long, double, side-effects of computer engineering?

2012-03-13 Thread Albert van der Horst
on't understand what a condition number is, you can't use Mathematica. And yes condition numbers are fully in the realm of concepts of machine precisions and accuracy. Infinite precision takes infinite time. Approaching infinite precious may take exponentional time. > > Xah Groet

Re: Programming D. E. Knuth in Python with the Deterministic Finite Automaton construct

2012-03-18 Thread Albert van der Horst
program of the Turing is e.g. F, to be thought of as hard wiring. A Turing machine is *not* a stored program computer! The universal Turing machine is, it contains a hardwired program to execute a stored program on the tape. > >-- >Steven Groetjes Albert -- -- Albert van der Horst, UTR

Re: Programming D. E. Knuth in Python with the Deterministic Finite Automaton construct

2012-03-18 Thread Albert van der Horst
e harder algorithms like T (Toom Cook) that must be translated to recursive functions that pass data down. That took me quite a wile. The correct answer is, it is just labour. Deal with it. Note that if you want to translate it to assembler, it is relatively easy. > >kind regards, Antti J

<    2   3   4   5   6   7   8   9   10   >