Re: [TIP] tox-1.7.2: few fixes / posargs parsing change

2014-07-15 Thread Albert-Jan Roskam
--- Original Message - From: holger krekel hol...@merlinux.eu To: Testing in Python testing-in-pyt...@lists.idyll.org; python announce python-announce-list@python.org Cc: Sent: Tuesday, July 15, 2014 9:59 AM Subject: [TIP] tox-1.7.2: few fixes / posargs parsing change Hi everybody,

newbie question: converting csv to another dialect

2008-02-15 Thread Albert-jan Roskam
Hi all, I have a csv file with tab as a delimiter. I want to convert it into one that is comma delimited. I changed the regional settings on my computer to US. At first I thought I could use the CSV module for this, by reading the csv file, registering the new (desired = comma-delimited)

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!

Re: newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Albert-jan Roskam
To: python-list@python.org Date: Wednesday, October 15, 2008, 3:14 PM On Oct 15, 9:16 pm, Albert-jan Roskam [EMAIL PROTECTED] wrote: Hi, I wrote the program below to merge all xls files in a given directory into one multisheet xls file. It uses xlwt and xlrd. The xls files I use for input

newbie - merging xls files using xldt and xlwt

2008-10-15 Thread Albert-jan Roskam
Hi, I wrote the program below to merge all xls files in a given directory into one multisheet xls file. It uses xlwt and xlrd. The xls files I use for input are generated by Spss. When I open and re-save the files in Excel, the program works, but when I use the xls files as they were created

Zipf test in Python

2007-11-22 Thread Albert-jan Roskam
Hi, I have hospital data for 5 groups of hospitals. Each group of hospitals used a different tool to register medical procedures. Since the medical procedures are probably Zipf distributed, I want to formally test whether the hospitals differ in terms of procedure-ditribution. Is there a Python

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! Albert-Jan

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

how to load test a web app?

2013-11-01 Thread Albert-Jan Roskam
Hi, I am looking at three Github-like programs (Stash, Gitbucket and Trac) to see if they could be used in our company. I would like to test the reliability and stability of at least one of them (I won't do any tests if some required functionality is missing). I am curious whether the

Re: [pyxl] xlrd-0.8.0 .xlsx formatting_info=True not implemented

2012-08-31 Thread Albert-Jan Roskam
Hi, As a work-around, you could use the CRAN R package XLConnect, using RPy or RPy2, to do what you want. IIRC it's based on Java, so it's not extremely fast. http://cran.r-project.org/web/packages/XLConnect/vignettes/XLConnect.pdf This is another package I just saw for the first time

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Albert-Jan Roskam
On Mon, 11/25/13, Jurko Gospodnetić jurko.gospodne...@pke.hr wrote: Subject: Parallel Python x.y.A and x.y.B installations on a single Windows machine To: python-list@python.org Date: Monday, November 25, 2013, 1:32 PM   Hi all.   I was

Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ...

2013-11-25 Thread Albert-Jan Roskam
On Sun, 11/24/13, MRAB pyt...@mrabarnett.plus.com wrote: Subject: Re: cx_Oracle throws: ImportError: DLL load failed: This application has failed to start ... To: python-list@python.org Date: Sunday, November 24, 2013, 7:17 PM On 24/11/2013

Re: Parallel Python x.y.A and x.y.B installations on a single Windows machine

2013-11-25 Thread Albert-Jan Roskam
. 14:20, Albert-Jan Roskam wrote: Check out the following packages: virtualenv, virtualenvwrapper, tox virtualenv + wrapper make it very easy to switch from one python version to another. Stricly speaking you don't need virtualenvwrapper, but it makes working with virtualenv a whole lot

L[:]

2014-01-10 Thread Albert-Jan Roskam
In Python Cookbook, one of the authors (I forgot who) consistently used the L[:] idiom like below. If the second line simply starts with L = (so no [:]) only the name L would be rebound, not the underlying object. That was the authorś explanation as far as I can remember. I do not get that. Why

Re: Problem writing some strings (UnicodeEncodeError)

2014-01-12 Thread Albert-Jan Roskam
On Sun, 1/12/14, Paulo da Silva p_s_d_a_s_i_l_...@netcabo.pt wrote: Subject: Problem writing some strings (UnicodeEncodeError) To: python-list@python.org Date: Sunday, January 12, 2014, 4:36 PM Hi! I am using a python3 script to produce a bash

Re: L[:]

2014-01-14 Thread Albert-Jan Roskam
On 1/13/2014 4:00 AM, Laszlo Nagy wrote: Unless L is aliased, this is silly code. There is another use case. If you intend to modify a list within a for loop that goes over the same list, then you need to iterate over a copy. And this cannot be called an alias because it has no

Re: Is it possible to get string from function?

2014-01-16 Thread Albert-Jan Roskam
On Thu, 1/16/14, Peter Otten __pete...@web.de wrote: Subject: Re: Is it possible to get string from function? To: python-list@python.org Date: Thursday, January 16, 2014, 9:52 AM Roy Smith wrote: I realize the subject line is kind of

Re: Guessing the encoding from a BOM

2014-01-16 Thread Albert-Jan Roskam
On Thu, 1/16/14, Chris Angelico ros...@gmail.com wrote: Subject: Re: Guessing the encoding from a BOM To: Cc: python-list@python.org python-list@python.org Date: Thursday, January 16, 2014, 7:06 PM On Fri, Jan 17, 2014 at 5:01 AM, Björn

Re: doctests compatibility for python 2 python 3

2014-01-18 Thread Albert-Jan Roskam
On Fri, 1/17/14, Terry Reedy tjre...@udel.edu wrote: Subject: Re: doctests compatibility for python 2 python 3 To: python-list@python.org Date: Friday, January 17, 2014, 10:10 PM On 1/17/2014 7:14 AM, Robin Becker wrote: I tried this

locale getlocale returns None on OSX

2014-03-12 Thread Albert-Jan Roskam
Hi, locale.getlocale() sometimes returns (None, None) under OSX (Python 2, not sure about Python 3, but I think so). The problem is outlined here: http://stackoverflow.com/questions/1629699/locale-getlocale-problems-on-osx What is the cause of this? Is it limited to just Darwin systes? Does the

Re: locale getlocale returns None on OSX

2014-03-12 Thread Albert-Jan Roskam
From: Albert-Jan Roskam fo...@yahoo.com To: Python python-list@python.org 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 about Python

Re: Question about Source Control

2014-03-22 Thread Albert-Jan Roskam
Hi, I can recommend the book Pragmatic Guide to Git. Very practical and to the point: http://www.amazon.com/Pragmatic-Guide-Git-Programmers/dp/1934356727/ref=sr_1_1/184-0142481-0484062?ie=UTF8qid=1395518159sr=8-1keywords=pragmatic+guide+to+git I addition, I read a big fat super-exhaustive

Re: Question about Source Control

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

Re: Martijn Faassen: The Call of Python 2.8

2014-04-15 Thread Albert-Jan Roskam
- Original Message - From: Terry Reedy tjre...@udel.edu To: python-list@python.org Cc: Sent: Tuesday, April 15, 2014 10:32 AM Subject: Re: Martijn Faassen: The Call of Python 2.8 On 4/15/2014 1:03 AM, Marko Rauhamaa wrote: Terry Reedy tjre...@udel.edu: Any decent system

Re: Why Python 3?

2014-04-19 Thread Albert-Jan Roskam
- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: python-list@python.org python-list@python.org Sent: Saturday, April 19, 2014 3:42 PM Subject: Re: Why Python 3? snip Right. It's not the magic line that fixes everything; if it were, Python 3 wouldn't be a big

shebang windows: call an extensionless git hook

2014-05-22 Thread Albert-Jan Roskam
Hi, I wrote the git pre-commit hook below. It is supposed to reject commits that contain large files (e.g. accidental commits by inexperienced users, think of git add .) Anyway, I tried this under Linux, but the target platform is Windows. As per Git design the hook name *must* be pre-commit

Re: shebang windows: call an extensionless git hook

2014-05-23 Thread Albert-Jan Roskam
- Original Message - From: Albert-Jan Roskam fo...@yahoo.com.dmarc.invalid To: Python python-list@python.org 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

Re: shebang windows: call an extensionless git hook

2014-05-23 Thread Albert-Jan Roskam
- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: Python python-list@python.org 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 fo...@yahoo.com.dmarc.invalid

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 tjre...@udel.edu 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:  

Pandas question

2014-06-05 Thread Albert-Jan Roskam
Hi, I am new to Pandas. I am trying to remove the lower and upper 15 percentiles of interest rates within a day. The index column is the date. Below is some code, but how do I apply the trim function day-by-day? I tried using grouped() in conjunction with apply(), but that turned out to be an

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

2014-06-05 Thread Albert-Jan Roskam
- Original Message - From: Ian Kelly ian.g.ke...@gmail.com To: Python python-list@python.org 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 no.email@nospam.invalid

Re: Question about metacharacter '*'

2014-07-06 Thread Albert-Jan Roskam
In article d8f8d76d-0a47-4f59-8f09-da2a44cc1...@googlegroups.com, Rick Johnson rantingrickjohn...@gmail.com 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

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

2014-07-10 Thread Albert-Jan Roskam
- Original Message - From: Joel Goldstick joel.goldst...@gmail.com To: fl rxjw...@gmail.com Cc: python-list@python.org 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

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

2014-07-11 Thread Albert-Jan Roskam
- Original Message - From: Steven D'Aprano st...@pearwood.info 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

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

2014-07-16 Thread Albert-Jan Roskam
hi, I am trying to create a .bat file where (among other things) Python will have to be silently installed. It needs to be installed to the non-default location c:\program files\python27. Any idea how this can be done? I keep getting the 'Help' menu, indicating that something went wrong. I've

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

2014-07-16 Thread Albert-Jan Roskam
  - Original Message - From: Zachary Ware zachary.ware+pyl...@gmail.com To: Albert-Jan Roskam fo...@yahoo.com Cc: Python python-list@python.org 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

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

2014-07-28 Thread Albert-Jan Roskam
snip   That's not tuple%tuple, but rather string%tuple.  And string%tuple is the older method of formatting an output string from a template and a tuple of values.  See https://docs.python.org/2/library/stdtypes.html#string-formatting for details. However, if you are just learning

Re: rpath alike feature for python scripts

2014-07-28 Thread Albert-Jan Roskam
- Original Message - From: Olaf Hering o...@aepfle.de To: dieter die...@handshake.de 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

Re: converting ISO8601 date and time string representations to datetime

2014-07-31 Thread Albert-Jan Roskam
In article mailman.12461.1406797909.18130.python-l...@python.org, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de 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

Re: converting ISO8601 date and time string representations to datetime

2014-07-31 Thread Albert-Jan Roskam
In article mailman.12461.1406797909.18130.python-l...@python.org, Wolfgang Maier wolfgang.ma...@biologie.uni-freiburg.de 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

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

2014-08-03 Thread Albert-Jan Roskam
--- Original Message - From: Terry Reedy tjre...@udel.edu To: python-list@python.org Cc: Sent: Sunday, August 3, 2014 4:43 AM Subject: Re: Correct type for a simple bag of attributes namespace object On 8/2/2014 8:59 PM, Ian Kelly wrote: On Sat, Aug 2, 2014 at 2:46 PM, Mark

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: I find the following obscure (to me at least) use

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

2014-08-03 Thread Albert-Jan Roskam
- Original Message - From: Albert-Jan Roskam fo...@yahoo.com.dmarc.invalid To: Terry Reedy tjre...@udel.edu; python-list@python.org 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 snip

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 fr...@chagford.com 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

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 ma...@pacujo.net wrote: Frank Millman fr...@chagford.com: You are encouraged to make liberal use of 'branches', Personally, I only use forks, IOW, git

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 way

what is the easiest way to install multiple Python versions?

2014-10-12 Thread Albert-Jan Roskam
Hi, (sorry for cross-posting) A few days ago I needed to check whether some Python code ran with Python 2.6. What is the easiest way to install another Python version along side the default Python version? My own computer is Debian Linux 64 bit, but a platform-independent solution would be

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

2014-10-16 Thread Albert-Jan Roskam
- Original Message - From: Rustom Mody rustompm...@gmail.com 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:

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

2014-10-16 Thread Albert-Jan Roskam
- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: Python python-list@python.org 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 fo

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

2014-10-16 Thread Albert-Jan Roskam
- Original Message - From: Gayathri J usethisid2...@gmail.com To: Albert-Jan Roskam fo...@yahoo.com Cc: Python python-list@python.org 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

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

2014-10-16 Thread Albert-Jan Roskam
- Original Message - From: Terry Reedy tjre...@udel.edu 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: A few days ago I needed

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

2014-10-16 Thread Albert-Jan Roskam
- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: Python python-list@python.org 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 fo...@yahoo.com

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

real-life example LC_CTYPE effects?

2014-10-21 Thread Albert-Jan Roskam
Hi, The locale category LC_CTYPE may affect character classification and case conversion. That's the theory. Can you give a practical example where this locale setting matters? Eg.: locale.setlocale(locale.LC_CTYPE, loc) m = re.match(\d+, s, re.I | re.L) So with two different values for loc,

Re: I am out of trial and error again Lists

2014-10-24 Thread Albert-Jan Roskam
- On Fri, Oct 24, 2014 5:56 PM CEST Rustom Mody wrote: On Friday, October 24, 2014 8:11:12 PM UTC+5:30, Seymore4Head wrote: On Thu, 23 Oct 2014 21:56:31 -0700 (PDT), Rustom Mody wrote: On Thursday, October 23, 2014 10:33:57 PM UTC+5:30, Seymore4Head wrote: On

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Albert-Jan Roskam
- Original Message - From: Syed Khalid khalidn...@gmail.com To: python-list@python.org Cc: Sent: Sunday, November 9, 2014 8:58 PM Subject: Python script that does batch find and replace in txt files Python script that does batch find and replace in txt files Need a python

Re: Python script that does batch find and replace in txt files

2014-11-09 Thread Albert-Jan Roskam
On Sun, Nov 9, 2014 10:51 PM CET Syed Khalid wrote: Albert, Thanks a million for script, It worked fine after I closed the bracket. import glob, codecs, re, os regex = re.compile(rAge: |Sex: |House No: ) # etc etc for txt in glob.glob(D:/Python/source/*.txt):

locale.getlocale() in cmd.exe vs. Idle

2014-11-10 Thread Albert-Jan Roskam
Hi, Why do I get different output for locale.getlocale() in Idle vs. cmd.exe? # IDLE Python 2.7.1 (r271:86832, Nov 27 2010, 18:30:46) [MSC v.1500 32 bit (Intel)] on win32 Type copyright, credits or license() for more information. import locale locale.getdefaultlocale() ('nl_NL', 'cp1252')

Re: locale.getlocale() in cmd.exe vs. Idle

2014-11-11 Thread Albert-Jan Roskam
- Original Message - From: Terry Reedy tjre...@udel.edu To: python-list@python.org Cc: Sent: Monday, November 10, 2014 9:31 PM Subject: Re: locale.getlocale() in cmd.exe vs. Idle On 11/10/2014 4:22 AM, Albert-Jan Roskam wrote: Hi, Why do I get different output

Re: What is \1 here?

2014-11-11 Thread Albert-Jan Roskam
- Original Message - From: Ned Batchelder n...@nedbatchelder.com To: python-list@python.org Cc: Sent: Tuesday, November 11, 2014 12:52 PM Subject: Re: What is \1 here? snip You need to learn how to find this stuff out for yourself. Ben Finney even gave you a pointer to a

Re: I love assert

2014-11-11 Thread Albert-Jan Roskam
- Original Message - From: Ethan Furman et...@stoneleaf.us To: python-list@python.org Cc: Sent: Tuesday, November 11, 2014 9:08 PM Subject: Re: I love assert On 11/11/2014 11:40 AM, Peter Cacioppi wrote: I get the impression that most Pythonistas aren't as habituated with

Re: I love assert

2014-11-11 Thread Albert-Jan Roskam
- Original Message - From: Ethan Furman et...@stoneleaf.us To: Albert-Jan Roskam fo...@yahoo.com Cc: python-list@python.org python-list@python.org Sent: Tuesday, November 11, 2014 10:15 PM Subject: Re: I love assert On 11/11/2014 01:09 PM, Albert-Jan Roskam wrote: Ethan Furman

Re: jitpy - Library to embed PyPy into CPython

2014-12-06 Thread Albert-Jan Roskam
On Fri, Dec 5, 2014 8:54 PM CET Mark Lawrence wrote: For those who haven't heard thought this might be of interest https://github.com/fijal/jitpy Interesting, but it is not clear to me when you would use jitpy instead of pypy. Too bad pypy alone was not included

Re: jitpy - Library to embed PyPy into CPython

2014-12-07 Thread Albert-Jan Roskam
On Sun, Dec 7, 2014 11:06 AM CET Stefan Behnel wrote: Albert-Jan Roskam schrieb am 06.12.2014 um 21:28: On Fri, Dec 5, 2014 8:54 PM CET Mark Lawrence wrote: For those who haven't heard thought this might be of interest https://github.com/fijal/jitpy Interesting

numpy question (fairly basic, I think)

2014-12-13 Thread Albert-Jan Roskam
Hi, I am new to numpy. I am reading binary data one record at a time (I have to) and I would like to store all the records in a numpy array which I pre-allocate. Below I try to fill the empty array with exactly one record, but it is filled with as many rows as there are columns. Why is this?

Re: numpy question (fairly basic, I think)

2014-12-14 Thread Albert-Jan Roskam
- Original Message - From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info To: python-list@python.org Cc: Sent: Sunday, December 14, 2014 12:52 AM Subject: Re: numpy question (fairly basic, I think) Albert-Jan Roskam wrote: Hi, I am new to numpy. I am reading

Re: How to import sqlite3 in my python3.4 successfully?

2014-12-14 Thread Albert-Jan Roskam
--- On Sun, Dec 14, 2014 4:06 PM CET sir wrote: There are two python version in my debian7, one is python2.7 the system default version, the other is python3.4 which compiled to install this way. | apt-get update apt-get upgrade apt-get install build-essential

Re: Searching through more than one file.

2014-12-29 Thread Albert-Jan Roskam
- On Sun, Dec 28, 2014 8:12 PM CET Dave Angel wrote: On 12/28/2014 12:27 PM, Seymore4Head wrote: I need to search through a directory of text files for a string. Here is a short program I made in the past to search through a single text file for a line of text.

numpy.fromiter in pypy

2014-12-31 Thread Albert-Jan Roskam
Hi, I would like to use numpy implementation for Pypy (what else would one do on December 31 :-). In particular, I would like to use numpy.fromiter, which is available according to this overview: http://buildbot.pypy.org/numpy-status/latest.html. However, contrary to what this website says,

Re: meaning of: line, =

2015-02-04 Thread Albert-Jan Roskam
- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: python-list@python.org python-list@python.org Sent: Wednesday, February 4, 2015 3:24 PM Subject: Re: meaning of: line, = On Thu, Feb 5, 2015 at 1:08 AM, ast nom...@invalid.com wrote: I dont understand why

Re: How to extract a movie title out of a text file

2015-02-07 Thread Albert-Jan Roskam
- On Sat, Feb 7, 2015 6:36 PM CET Mark Lawrence wrote: On 07/02/2015 16:50, Seymore4Head wrote: What I would like to be able to do is download and save to a folder all the srr files in this Usenet group. alt.binaries.moovee I would then like to be able to search

Re: class-based class decorator

2015-01-15 Thread Albert-Jan Roskam
- Original Message - From: Jean-Michel Pichavant jeanmic...@sequans.com To: Albert-Jan Roskam fo...@yahoo.com Cc: Python python-list@python.org Sent: Tuesday, January 13, 2015 5:37 PM Subject: Re: class-based class decorator - Original Message - From: Albert-Jan Roskam

Re: How to wow someone new to Python

2015-01-16 Thread Albert-Jan Roskam
On Fri, Jan 16, 2015 4:24 PM CET Andrew Berg wrote: On 2015.01.16 09:03, Chris Angelico wrote: Scenario: You're introducing someone to Python for the first time. S/he may have some previous programming experience, or may be new to the whole idea of giving a

Re: unicode question

2015-01-28 Thread Albert-Jan Roskam
On Wed, Jan 28, 2015 8:21 AM CET Terry Reedy wrote: On 1/27/2015 12:17 AM, Rehab Habeeb wrote: Hi there python staff does python support arabic language for texts ? and what to do if it support it? i wrote hello in Arabic using codeskulptor and the powershell

Re: class-based class decorator

2015-01-12 Thread Albert-Jan Roskam
- Original Message - From: Ian Kelly ian.g.ke...@gmail.com To: Python python-list@python.org Cc: Sent: Saturday, January 10, 2015 7:30 AM Subject: Re: class-based class decorator On Fri, Jan 9, 2015 at 2:26 PM, Albert-Jan Roskam fo...@yahoo.com.dmarc.invalid wrote: Hi

Re: Python 3 regex woes (parsing ISC DHCPD config)

2015-01-12 Thread Albert-Jan Roskam
- Original Message - From: Jason Bailey jbai...@emerytelcom.com To: python-list@python.org Cc: Sent: Monday, January 12, 2015 7:20 PM Subject: Python 3 regex woes (parsing ISC DHCPD config) Hi all, I'm working on a Python _3_ project that will be used to parse ISC DHCPD

class-based class decorator

2015-01-09 Thread Albert-Jan Roskam
Hi, I am trying to write a class decorator that checks whether deprecated parameters with non-default arguments are used. More complete code is here: http://pastebin.com/ZqnMis6M. In the code below, how should I modify __call__ such that f.bar(old=oh no) prints hello world? I thought it

Re: List of python -m tools

2015-01-14 Thread Albert-Jan Roskam
- Original Message - From: Irmen de Jong irmen.nos...@xs4all.nl To: python-list@python.org Cc: Sent: Wednesday, January 14, 2015 12:01 AM Subject: Re: List of python -m tools On 12-1-2015 5:17, Miki Tebeka wrote: Greetings, I've compiled a list of python -m tools at

Re: class-based class decorator

2015-01-13 Thread Albert-Jan Roskam
- Original Message - From: Jean-Michel Pichavant jeanmic...@sequans.com To: Albert-Jan Roskam fo...@yahoo.com Cc: Python python-list@python.org Sent: Monday, January 12, 2015 4:20 PM Subject: Re: class-based class decorator - Original Message - From: Albert-Jan Roskam

Re: class-based class decorator

2015-01-13 Thread Albert-Jan Roskam
On Tue, Jan 13, 2015 6:31 AM CET Ian Kelly wrote: On Jan 12, 2015 6:47 AM, Albert-Jan Roskam fo...@yahoo.com wrote: Thanks for your replies. I changed it into a regular decorator (not a class decorator). It would have been even nicer if I only needed to specify

locale bug in Python 2.7, 3.3, 3.4 (Win7 64)?

2015-02-09 Thread Albert-Jan Roskam
Hi, In the locale module we have: * setlocale, the setter that also returns something * getlocale, the getter that returns the OS-specific locale tuple (supposedly!) * getdefaultlocale, the getter that always returns a unix locale tuple Why are the getlocale() results below sometimes

Re: Taming the verbosity of ipython tracebacks

2015-02-10 Thread Albert-Jan Roskam
- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: python-list@python.org python-list@python.org Sent: Tuesday, February 10, 2015 8:00 PM Subject: Re: Taming the verbosity of ipython tracebacks On Wed, Feb 11, 2015 at 5:53 AM, John Ladasky

Re: locale bug in Python 2.7, 3.3, 3.4 (Win7 64)?

2015-02-09 Thread Albert-Jan Roskam
- Original Message - From: Mark Lawrence breamore...@yahoo.co.uk To: python-list@python.org Cc: Sent: Monday, February 9, 2015 5:02 PM Subject: Re: locale bug in Python 2.7, 3.3, 3.4 (Win7 64)? On 09/02/2015 15:43, Albert-Jan Roskam wrote: Hi, In the locale module we have

Re: pickle error by multiprocessing

2015-02-15 Thread Albert-Jan Roskam
On Sun, Feb 15, 2015 7:43 AM CET dieter wrote: Martijn Millecamp martijn.millec...@hotmail.com writes: for a schoolproject we had to build a robot and control this robot with a gui to follow a pathWe use multiprocessingand in our group 2 people can run the

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

2015-01-07 Thread Albert-Jan Roskam
On Wed, Jan 7, 2015 2:09 PM CET 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-PyQt5 deployment adding about 23 Mb to my application. Removing them doesn't appear to make any difference

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 = Popen(cat,

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 Wednesday, March 18, 2015 at 8:12:12 PM UTC+5:30, Robert Clove

Re: Letter class in re

2015-03-09 Thread Albert-Jan Roskam
On Mon, 3/9/15, Tim Chase python.l...@tim.thechases.com 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

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 jo...@wielicki.name 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

Re: io.open vs. codecs.open

2015-03-06 Thread Albert-Jan Roskam
- Original Message - From: Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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) difference between codecs.open

Re: Newbie question about text encoding

2015-03-07 Thread Albert-Jan Roskam
--- Original Message - From: Chris Angelico ros...@gmail.com To: Cc: python-list@python.org 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 ma...@pacujo.net wrote: See:

Re: Letter class in re

2015-03-10 Thread Albert-Jan Roskam
On Tue, 3/10/15, Antoon Pardon antoon.par...@rece.vub.ac.be 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

Pythonic locale

2015-03-02 Thread Albert-Jan Roskam
Hi, The Python locale standard libraries has some oddities and (long-standing) bugs. Example oddity: SETlocale *returns* a locale; getlocale output cannot always be consumed by setlocale. Example bug: resetlocale fails in Windows. What is your opinion about the work-around code below? import

io.open vs. codecs.open

2015-03-04 Thread Albert-Jan Roskam
Hi, Is there a (use case) difference between codecs.open and io.open? What is the difference? A small difference that I just discovered is that codecs.open(somefile).read() returns a bytestring if no encoding is specified*), but a unicode string if an encoding is specified. io.open always

mx as dependency tox throws GCC error

2015-02-25 Thread Albert-Jan Roskam
Hi, If I pip install the mx package with pip install egenix-mx-base, it works. If I put that same pip install command under 'install_command' in my tox.ini it also works (see below) However, if I specify the dependency under 'deps', I get an error. Any idea why? I read that 'install_command'

Re: Python Worst Practices

2015-02-26 Thread Albert-Jan Roskam
- Original Message - From: Simon Ward simon+pyt...@bleah.co.uk To: Cc: python-list@python.org python-list@python.org Sent: Thursday, February 26, 2015 8:36 PM Subject: Re: Python Worst Practices On 25 February 2015 21:24:37 GMT+00:00, Chris Angelico ros...@gmail.com

Re: Python Silent Install

2015-02-24 Thread Albert-Jan Roskam
Personally I find that Python is incomplete without pip and setuptools.-- https://mail.python.org/mailman/listinfo/python-list

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 programs

Re: New to Programming - XML Processing

2015-04-02 Thread Albert-Jan Roskam
- On Wed, Apr 1, 2015 10:00 AM CEST Mark Lawrence wrote: On 01/04/2015 05:27, Andrew Farrell wrote: You should follow Rustom's advice before just diving into the blog post I linked to. Otherwise you risk blindly following things and losing your bearings when you

[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

  1   2   3   >