On 03/04/2012 21:46, Josh English wrote:
When I try to import xlrd, I get an error
IOError: [Errno 2] No such file or directory:
'C:\\Users\\josh\\Desktop\\Portable
Python\\App\\lib\\site-packages\\xlrd-0.7.5-py2.7.egg\\xlrd\\version.txt'
*sigh* I hate python packaging, I'll get a 0.7.6 releas
And the goat sacrifice continues...
On 03/04/2012 08:34, Chris Withers wrote:
On 03/04/2012 08:04, Chris Withers wrote:
I'm pleased to announce the release of xlrd 0.7.4.
I've just release a 0.7.5 that fixes this.
Except it didn't, I've just released 0.7.6, which will hopefully bring
an end
I need to implement a simple python program, which will be using the oAuth
tokens and secrets of all users in out system and will be fetching some
stuff from a JSON API. The list of all these users(with a flag if they are
logged-in or not right now) is there in a Redis DB.
The JSON API needs to be
On Wed, Apr 4, 2012 at 3:53 PM, Steven D'Aprano
wrote:
> On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote:
>
>> def cp(infile, outfile):
>> open(outfile, "w").write(open(infile).read())
>
> Because your cp doesn't copy the FILE, it copies the file's CONTENTS,
> which are not the same thing
Bayeux 0.2 is now available at http://pypi.python.org/pypi/bayeux
bayeux is a module for generating TAP (http://testanything.org/).
Version 0.2 is an initial version registered in the Cheesshop.
Release notes:
--
* module tap.py for programatic writing of TAP stream
* clone of un
Le 04/04/2012 09:24, Chris Withers a écrit :
And the goat sacrifice continues...
On 03/04/2012 08:34, Chris Withers wrote:
On 03/04/2012 08:04, Chris Withers wrote:
I'm pleased to announce the release of xlrd 0.7.4.
I've just release a 0.7.5 that fixes this.
Except it didn't, I've just rele
Am 03.04.2012 16:35, schrieb smac2...@comcast.net:
Hello, I was just wondering if anyone had experience using Python to
interact with Bloomberg. Ideally, I'd look to use Python to feed
Bloomberg's OVML calculator with a list of inputs, and then use an
additional program to grab the results of the
Steven D'Aprano writes:
> On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote:
>
>> On 03/28/12 16:12, John Ladasky wrote:
>>> I'm looking for a Python (2.7) equivalent to the Unix "cp" command.
>>>>>open("outfile", "w").write(open("infile").read())
> Because your cp doesn't copy the FIL
On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote:
> > cp is not a system command, it's a shell command. Why not just use the
> > incredibly simple and portable
> >
> >>>>open("outfile", "w").write(open("infile").read())
In article <4f7be1e8$0$2$c3e8da3$54964...@news.astraweb.com>,
In article <87fwcj4zru@dpt-info.u-strasbg.fr>,
Alain Ketterlin wrote:
> And sparse files are really hard to reproduce, at least on Unix: on
> Linux even the system's cp doesn't guarantee sparseness of the copy (the
> manual mentions a "crude heuristic").
I imagine the heuristic is to look f
On Wed, Apr 4, 2012 at 10:08 PM, Roy Smith wrote:
> Slightly off-topic, but are there file systems these days which support
> off-line copying? If I have a disk at the other end of a network link,
> it would be nice to tell the disk to copy a file and tell me when it's
> done.
Depends on your ne
In <87hax0suun@sapphire.mobileactivedefense.com>, on 04/03/2012
at 04:22 PM, Rainer Weikusat said:
>http://en.wikipedia.org/wiki/Liberal_arts
Do you need the Quadrivium or is the Trivium enough for programming
?
If the term "art" is good enough for Knuth it's good enough for me.
--
Shm
On Tue, 3 Apr 2012 23:00:22 +0200
Anatoli Hristov wrote:
> On 03 Apr 2012, at 22:45, Ian Kelly wrote:
>
> > On Tue, Apr 3, 2012 at 2:36 PM, Anatoli Hristov wrote:
> >> Hi,
> >>
> >> I'm trying to do a while loop with condition of time if time is
> >> 12:00:00 print text, but for this one secon
I thing the best will be if I use hundreds of the seconds to print the
message.
for example at 12:00:00:10, but unfortunately I cant see that I can use
hundreds of the seconds.
Does anyone knows if I can use it ?
Thanks
Anatoli
On Wed, Apr 4, 2012 at 2:25 PM, John O'Hagan wrote:
> On Tue, 3
On Wed, Apr 4, 2012 at 9:21 AM, Anatoli Hristov wrote:
> I thing the best will be if I use hundreds of the seconds to print the
> message.
>
> for example at 12:00:00:10, but unfortunately I cant see that I can use
> hundreds of the seconds.
>
> Does anyone knows if I can use it ?
>
> Thanks
>
> A
Am 03.04.2012 11:34 schrieb John Ladasky:
I use subprocess.call() for quite a few other things.
I just figured that I should use the tidier modules whenever I can.
Of course. I only wanted to point out that os.system() is an even worse
approach. shutils.copy() is by far better, of course.
--
On Wed, Apr 4, 2012 at 1:49 AM, Steven D'Aprano
wrote:
> On Tue, 03 Apr 2012 13:17:18 -0400, Nathan Rice wrote:
>
>> I have never met a programmer that was not completely into computers.
>> That leaves a lot unspecified though.
>
> You haven't looked hard enough. There are *thousands* of VB, Java,
On 4/2/2012 6:53 PM, John Nagle wrote:
On 4/1/2012 1:41 PM, John Nagle wrote:
On 4/1/2012 9:26 AM, Michael Torrie wrote:
On 03/31/2012 04:58 PM, John Nagle wrote:
Removed all "search" and "domain" entries from /etc/resolve.conf
It's a design bug in glibc. I just submitted a bug report.
ht
On Wed, 04 Apr 2012 03:33:24 -0400, Shmuel (Seymour J.) Metz wrote:
> If the term "art" is good enough for Knuth it's good enough for me.
I think that may be the most intelligent comment so far...
--
Some rise by sin and some by virtue fall.
--
http://mail.python.org/mailman/listinfo/python-l
On 04/04/2012 09:57, Karim wrote:
Hello,
This release manage the '.xlsx' format?
No, that is planned for the 0.8 release.
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
http://mail.python.org/mailman/listin
I have a file with with adjacency list of an undirected graph one vertex list
per input line [0 1, 1 2 3, 2 1, 3 1] assume a newline for commas (file is
named adjl.txt). Can some one give an example of loading this into graph of 4
vertices?
import igraph
g = igraph.Graph()
g.Read("adjl.txt", "e
On Apr 3, 11:42 pm, Nathan Rice
wrote:
> Lets start with some analogies. In cooking, chefs use recipes to
> produce a meal; the recipe is not a tool. In architecture, a builder
> uses a blueprint to produce a building; the blueprint is not a tool.
> In manufacturing, expensive machines use plans
On Tuesday, 3 April 2012 23:13:24 UTC+1, looking for wrote:
> Hi
>
> We are thinking about building a webservice server and considering
> python event-driven servers i.e. Gevent/Tornado/ Twisted or some
> combination thereof etc.
>
> We are having doubts about the db io part. Even with connectio
Hi all
I have got a text file which is only 32 MB in size and consists of the
following type of lines (columns are fixed):
==
Header text 1 line
...
01-Jan-2006 0055 145.069
-16.0449 83.2246 84.2835 499.14680
0.074029965
01-Jan-2006 0065
On Apr 3, 3:13 pm, looking for wrote:
> Hi
>
> We are thinking about building a webservice server and considering
> python event-driven servers i.e. Gevent/Tornado/ Twisted or some
> combination thereof etc.
>
> We are having doubts about the db io part. Even with connection
> pooling and cache, t
I am using igraph package via Python interface. I have a list of edges of a
graph one edge per line of input in a file (e.txt) and want igraph to read the
edges into the graph. Can any one give me a usage hint of igraph.Graph.Read()??
import igraph
g = igraph.Graph()
g.add_vertices(3)# 4 ver
On Apr 3, 11:19 pm, Steven D'Aprano wrote:
> On Tue, 03 Apr 2012 08:39:14 -0400, Nathan Rice wrote:
> > Much like
> > with the terminal to GUI transition, you will have people attacking
> > declarative natural language programming as a stupid practice for noobs,
> > and the end of computing (even
On Apr 3, 1:53 am, Xah Lee wrote:
> 〈The Remote Agent Experiment: Debugging Code from 60 Million Miles
> Away〉
> Google Tech Talk, (2012-02-14) Presented by Ron Garret.
> @http://www.youtube.com/watch?v=_gZK0tW8EhQ
RG mentions giving a more technical version to a Lisp User Group. Any
chance that
On Apr 4, 1:37 am, Chris Angelico wrote:
> On Wed, Apr 4, 2012 at 3:53 PM, Steven D'Aprano
>
> wrote:
> > On Tue, 03 Apr 2012 15:46:31 -0400, D'Arcy Cain wrote:
>
> >> def cp(infile, outfile):
> >> open(outfile, "w").write(open(infile).read())
>
> > Because your cp doesn't copy the FILE, it co
> Long personal note ahead.
> tl;dr version: Computers are such a large shift for human civilization
> that generally we dont get what that shift is about or towards.
Another option: since *computers* are such a general device, there
isn't just one notion.
> In the long run I expect computing sci
On Wed, 04 Apr 2012 08:14:18 -0400, Roy Smith wrote:
>> And sparse files are really hard to reproduce, at least on Unix: on
>> Linux even the system's cp doesn't guarantee sparseness of the copy (the
>> manual mentions a "crude heuristic").
>
> I imagine the heuristic is to look for blocks of all
> The "building cabinets" problem is interesting:
>
> 1. To actually build a cabinet, there's a lot of domain knowledge
> that's probably implicit in most circumstances. A carpenter might
> tell another carpenter which hinge to use, but they won't have to talk
> about why doors need hinges or how
Hi
I have been using virtualenv on my windows desktop for quite a while
now and would really recommend everyone to use it.
Something I come across is how can I install a binary dependency in
my virtual environment . I need to install lxml and gevent. Both
packages are delivered as windows inst
On Tue, Apr 3, 2012 at 9:45 PM, wrote:
> I have a file with with adjacency list of an undirected graph one vertex list
> per input line [0 1, 1 2 3, 2 1, 3 1] assume a newline for commas (file is
> named adjl.txt). Can some one give an example of loading this into graph of 4
> vertices?
>
> im
I am just playing around with threading and subprocess and found that
the following program will hang up and never terminate every now and
again.
import threading
import subprocess
import time
def targ():
p = subprocess.Popen(["/bin/sleep", "2"])
while p.poll() is None:
time.sleep(1)
On Apr 3, 6:13 pm, looking for wrote:
> Hi
>
> We are thinking about building a webservice server and considering
> python event-driven servers i.e. Gevent/Tornado/ Twisted or some
> combination thereof etc.
>
> We are having doubts about the db io part. Even with connection
> pooling and cache, t
Greetings,
I'm going to give a "Python Gotcha's" talk at work.
If you have an interesting/common "Gotcha" (warts/dark corners ...) please
share.
(Note that I want over http://wiki.python.org/moin/PythonWarts already).
Thanks,
--
Miki
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 04 Apr 2012 15:34:20 -0700, Miki Tebeka wrote:
> Greetings,
>
> I'm going to give a "Python Gotcha's" talk at work. If you have an
> interesting/common "Gotcha" (warts/dark corners ...) please share.
>
> (Note that I want over http://wiki.python.org/moin/PythonWarts already).
The GIL p
On 04Apr2012 15:34, Miki Tebeka wrote:
| I'm going to give a "Python Gotcha's" talk at work.
| If you have an interesting/common "Gotcha" (warts/dark corners ...) please
share.
|
| (Note that I want over http://wiki.python.org/moin/PythonWarts already).
Missing "return" means "return None".
One
On 04Apr2012 23:07, Steven D'Aprano
wrote:
| If you decorate a function, by default the docstring is lost.
|
| @decorate
| def spam(x, y):
| """blah blah blah blah"""
|
| spam.__doc__ => raises exception
|
| Solution: make sure your decorator uses functools.wraps().
There's a functools.wr
No module level properties:
>>> @property
... def x():
... print 1
...
>>> x
Actually, that doesn't work with classes either, only instances.
Can I refer to the instance of the module/package?
In the interpreter, __package__ is None instead of some unnamed
"module/package".
In g
On Thu, Apr 5, 2012 at 8:34 AM, Miki Tebeka wrote:
> Greetings,
>
> I'm going to give a "Python Gotcha's" talk at work.
> If you have an interesting/common "Gotcha" (warts/dark corners ...) please
> share.
>
> (Note that I want over http://wiki.python.org/moin/PythonWarts already).
Don't know if
On 04/04/12 17:34, Miki Tebeka wrote:
Greetings,
I'm going to give a "Python Gotcha's" talk at work.
If you have an interesting/common "Gotcha" (warts/dark corners ...) please
share.
(Note that I want over http://wiki.python.org/moin/PythonWarts already).
1) While I believe it was fixed in m
On Thu, Apr 5, 2012 at 1:15 AM, Steve Howell wrote:
> On Apr 4, 1:37 am, Chris Angelico wrote:
>> And, as a subtle point: This method can't create the file "at size". I
>> don't know how it'll end up allocating space, but certainly there's no
>> opportunity to announce to the OS at file open/crea
On Apr 5, 12:00 am, ish wrote:
> Any pointer will be appreciated.
1. Show your input. Odds are there's a problem with your data.
2. Show the output. "Does not work" tells us nothing of value.
3. Don't repeatedly post the same question in different threads. That
doesn't make people answer any fast
I can connect to an IMAP server using Python 2.6:
steve@runes:~$ python2.6
Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import imaplib
>>> server = imaplib.IMAP4_SSL('x')
>>> print server
Steven D'Aprano wrote in news:4f7d2475$0$3$c3e8...@news.astraweb.com in
gmane.comp.python.general:
> I can connect to an IMAP server using Python 2.6:
>
> steve@runes:~$ python2.6
> Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
server = imaplib.IMAP4_SSL('x')
> But when I tr
On Apr 4, 9:49 pm, Steven D'Aprano wrote:
> I can connect to an IMAP server using Python 2.6:
>
> steve@runes:~$ python2.6
> Python 2.6.6 (r266:84292, Dec 27 2010, 00:02:40)
> [GCC 4.4.5] on linux2
> Type "help", "copyright", "credits" or "license" for more information.>>>
> import imaplib
> >>>
48 matches
Mail list logo