On 12/12/2012 10:00 AM, inshu chauhan wrote:
> In this code :
>
> import cv
> g = open("PointCloudmitClass.txt", "w")
> image = cv.LoadImageM("Z:/modules/intensity_01.tif",
> cv.CV_LOAD_IMAGE_UNCHANGED)
> print image
> for y in xrange(0,image.height):
> for x in xrange(0,image.width):
>
On 12/12/2012 12:42 PM, Yong Hu wrote:
> I have a few scripts whose file names start with numbers. For example,
> 01_step1.py, 02_step2.py
>
> I tried to import them in another script by "import 01_step1" or "from
> 01_step1 import *". Both failed, saying "SyntaxError: invalid syntax"
>
> Is ther
On 12/12/2012 02:10 PM, RCU wrote:
> Hello.
> I would like to report a parser bug manifesting on Python 2.5, 2.7
> (but not on 2.2) and 3.3.
> Please see the attached script.
> Basically this bug appeared after applying PythonTidy on a valid
> script.
>
> More exactly, when runnin
On 12/12/2012 03:11 PM, Wanderer wrote:
> I have a program that has a main GUI and a camera. In the main GUI, you can
> manipulate the images taken by the camera. You can also use the menu to check
> the camera's settings. Images are taken by the camera in a separate thread,
> so the long exposu
On 12/13/2012 04:23 AM, inshu chauhan wrote:
>>
>> if-else doesn't define a loop, but each of the for statements do.
>>
>> You have defined a classification for 8 of the possible colors, leaving
>> millions of them undefined. If the first time through the loop you
>> manage to hit one of those und
On 12/13/2012 10:03 AM, Daniel Laird wrote:
> All,
>
> I am new to python and am stuck with python 2.6 (Ubuntu 10.04 and dont want
> to force switch to 2.7)
> I want to use assertListEqual and other new test functions.
> However
> I do am import unittest2 as unittest
> The code does not fail but a
On 12/13/2012 11:36 AM, Wanderer wrote:
>
>
> Thanks. Why Non-blocking?
You said you didn't want the GUI to lock up. Non-blocking lets you
choose alternative action when you would otherwise have to wait for the
resource.
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On 12/13/2012 09:49 PM, suresh.pinn...@gmail.com wrote:
> My aim is to get a job into google or cisco or facebok.
> I have basic knowledge in python,c,java and good in javascript,html,css,
> database concepts.
> If i learn django and python. Shall I get my dream job?
>
> Please suggest me
You did
On 12/13/2012 10:33 PM, Dave Angel wrote:
> On 12/13/2012 09:49 PM, suresh.pinn...@gmail.com wrote:
>> My aim is to get a job into google or cisco or facebok.
>> I have basic knowledge in python,c,java and good in javascript,html,css,
>> database concepts.
>> If i learn
On 12/14/2012 01:56 AM, Devin Jeanpierre wrote:
> On Fri, Dec 14, 2012 at 1:13 AM, rusi wrote:
>> On Dec 14, 8:33 am, Dave Angel wrote:
>>> Do you know any one computer language thoroughly? Or just a little of
>>> many languages?
>> There is a quote by Bru
On 12/16/2012 04:10 PM, Anatoli Hristov wrote:
> Hello guys,
>
> I'm using Linux CentOS and Python 2.4 with MySQL 5.xx, I get error
> with Unicode I tried many things that I found on the net but none of
> them working.
>
> If I dont use UTF-8 it inserts the data into the DB but some French
> char.
On 12/17/2012 09:33 AM, Skip Montanaro wrote:
> What method(s) does a class have to support to properly emulate a container
> which supports turning it into a list? For example:
>
> class Foo:
> pass
>
> f = Foo()
> print list(f)
>
> Is it just __iter__() and next()? (I'm still using 2.
On 12/17/2012 06:27 PM, Ethan Furman wrote:
> Dave Angel wrote:
>> On 12/17/2012 09:33 AM, Skip Montanaro wrote:
>>> What method(s) does a class have to support to properly emulate a
>>> container
>>> which supports turning it into a list? For exampl
On 12/17/2012 12:27 PM, Gnarlodious wrote:
> Hello. What I want to do is delete every dictionary key/value of the name
> 'Favicon' regardless of depth in subdicts, of which there are many. What is
> the best way to do it?
>
> -- Gnarlie
I would write a recursive function that accepts a dict.
In
On 12/17/2012 12:43 PM, Anatoli Hristov wrote:
>> Hi,
>> I don't know, what the product ID would look like, for this page, but
>> assuming, the catalog pages are also utf-8 encoded as well as the
>> error page I get, it should work ok; cf.:
> You are right, I get it work on Windows too, but not in
On 12/17/2012 03:00 PM, Anatoli Hristov wrote:
>> I fixed the print, I changed the setting of the terminal and also on
>> the sshconfig, so now when I print I'm able to print out without
>> problems, but when I tried to run the script I've made it gives me
>> again the same error :
>> ""Unexpected
On 12/17/2012 04:33 PM, Mitya Sirenef wrote:
> On 12/17/2012 01:30 PM, Tim Chase wrote:
>> On 12/17/12 11:43, Mitya Sirenef wrote:
>>> On 12/17/2012 12:27 PM, Gnarlodious wrote:
Hello. What I want to do is delete every dictionary key/value
of the name 'Favicon' regardless of depth in subd
On 12/17/2012 06:08 PM, MRAB wrote:
> On 2012-12-17 22:00, Dave Angel wrote:
>> On 12/17/2012 04:33 PM, Mitya Sirenef wrote:
>>> On 12/17/2012 01:30 PM, Tim Chase wrote:
>>>> On 12/17/12 11:43, Mitya Sirenef wrote:
>>>>> On 12/17/2012 12:27 PM, Gnarlodi
On 12/18/2012 05:27 AM, Hans Mulder wrote:
> On 18/12/12 06:10:43, photonym...@gmail.com wrote:
>> I hope I understand the question... but shouldn't you wait for the process
>> to complete before exiting?
>>
>> Something like:
>>
>> pid = subprocess.Popen(...)
>> pid.wait()
>>
>> Otherwise, it'll
On 12/18/2012 07:37 AM, Jean Dubois wrote:
> I have trouble with the code beneath to make an array with equally
> spaced values
> When I enter 100e-6 as start value, 700e-6 as end value and 100e-6 I
> get the following result:
> [ 0.0001 0.00022 0.00034 0.00046 0.00058 0.0007 ]
> But I was ho
On 12/19/2012 12:11 PM, Kwnstantinos Euaggelidis wrote:
> I have this code for Prime Numbers and i want to do it with Threads.. Any
> idea.??
Why do you want to do it with threads? Is it to speed up the
processing? (Guessing that partly because of your printing "elapsed
time." Chances are runni
On 12/20/2012 03:39 PM, Jens Thoms Toerring wrote:
> Hi,
>
>I hope that this isn't a stupid question, asked already a
> hundred times, but I haven't found anything definitive on
> the problem I got bitten by. I have two Python files like
> this:
>
> S1.py --
> import random
> impor
On 12/20/2012 01:08 PM, balpar...@gmail.com wrote:
> Thank you for your reply Grant,
>
> I am trying to attach mxd's but no chance. As you said that i dont have much
> experience in python. I used to work with VBA but its not an option anymore
> with new ArcGIS 10.
>
> How can I add mxd's here?
On 12/20/2012 07:19 PM, larry.mart...@gmail.com wrote:
> I have a list of tuples that contains a tool_id, a time, and a message. I
> want to select from this list all the elements where the message matches some
> string, and all the other elements where the time is within some diff of any
> matc
On 12/20/2012 08:46 PM, larry.mart...@gmail.com wrote:
> On Thursday, December 20, 2012 6:17:04 PM UTC-7, Dave Angel wrote:
>>
> Of course it's a fragment - it's part of a large program and I was just
> showing the relevant parts.
But it seems these are methods in
On 12/21/2012 07:38 AM, Oscar Benjamin wrote:
>
> On a related note: how to answer question with no context on mailing
> list?
Depends on how you're reading/responding. I'll assume you're using an
email client like Thunderbird, and that you do NOT subscribe in digest form.
Most general way is
On 12/21/2012 12:23 AM, iMath wrote:
> redirect standard output problem
>
> why the result only print A but leave out 888 ?
>
> import sys
> class RedirectStdoutTo:
>
> def __init__(self, out_new):
> self.out_new = out_new
> def __enter__(self):
> sys.stdout = self.out_new
>
On 12/21/2012 04:58 PM, Always Learning wrote:
> Sorry about that. I'm using Python 2.7.3, 32 bit one Windows 7.
>
> The errors I get are
>
>>> File
>>> "C:\python27\lib\site-packages\scrapy-0.16.3-py2.7.egg\scrapy\selector\lxmlsel.py",
>>> line 47, in select
>>> raise ValueError("Invalid XPath:
On 12/21/2012 03:36 PM, larry.mart...@gmail.com wrote:
> On Friday, December 21, 2012 10:57:19 AM UTC-7, larry@gmail.com wrote:
>>
>> Didn't know about bisect. Thanks. I thought it would be my savior for sure.
>> But unfortunaly when I added that, it blows up with out of memory.
> The out of
On 12/21/2012 11:47 PM, larry.mart...@gmail.com wrote:
> On Friday, December 21, 2012 8:19:37 PM UTC-7, Dave Angel wrote:
>> On 12/21/2012 03:36 PM, larry.mart...@gmail.com wrote:
>>
>>>>
> I think you're misunderstanding what I need to do. I have a set of
On 12/22/2012 03:43 PM, prilisa...@googlemail.com wrote:
>
> I Think I describe my Situation wrong, the written Project is a
> Server, that should store sensor data, perfoms makros on lamps
> according a sequence stored in the DB and Rule systems schould
> regulate home devices and plan scheduler
On 12/23/2012 08:46 AM, KarlE wrote:
> On Saturday, December 22, 2012 9:36:41 PM UTC+1, KarlE wrote:
>> Hi!
>>
>>
>>
>> Im totally new to Python, and im using it on my Raspberry pi. I found a
>> program that sends an email, and one that checks the temperature of my CPU,
>> but i cant seem to comb
On 12/23/2012 04:42 PM, prilisa...@googlemail.com wrote:
> Okay, I try to publish this sample, and yes it's not a working piece of code,
> but I try to "draw" my problem that way. As you will see, I load modules,
> create cursor,... in the main.py. In the lower section you see, that the
> module
On 12/24/2012 03:23 AM, prilisa...@googlemail.com wrote:
> Hello Dave,
>
> Thank you, for your help, I'll try my best.
>
> To all others, PLEASE be pleasant with my nescience, I'll tried to describe
> not a specific error at my Program. I'll tried to get rid of that missing
> link this sample is
Python is a flexible language, but manages to let one write readable
code even while using that flexibility. It does, however, require that
one gets a grasp of some concepts that may differ greatly, either in
implementation or in name, from other languages. Every language has its
quirks and const
(Part 3 of my dissertation; I hope it's useful for you in particular)
Up to now in my discussion, it wasn't usually important to know that
everything is a class. You just know that everything has attributes,
and that you use the dot notation to get at an attribute. So what if
"%x".format() is
On 12/24/2012 06:19 PM, Pander Musubi wrote:
>
> to prevent
>
> Traceback (most recent call last):
> File "./sort.py", line 23, in
> things_to_sort.sort(key=string2sortlist)
> File "./sort.py", line 15, in string2sortlist
> return [hashindex[s] for s in string]
> KeyError: '\xc3'
>
>
On 12/25/2012 09:41 AM, prilisa...@googlemail.com wrote:
> Hello Steven,
>
> to "learn python" I've bought a book, and it's not a "thin" one :-) it's more
> a 788p. long documentation about python.
>
> BUT! I have to say: The autor started using the "self." argument at the
> chapter classes.
On 12/26/2012 03:07 PM, Verde Denim wrote:
> I'm learning py in this environment -
> PyCrust 0.9.5 - The Flakiest Python Shell
> Python 2.6.6 (r266:84292, Dec 26 2010, 22:31:48)
> [GCC 4.4.5] on linux2
>
> When I type a tkinter program in pycrust (or pyshell), it executes as
> expected, but when I
On 12/26/2012 06:04 PM, bobflipperdoo...@gmail.com wrote:
> I really hope you can help!
>
Please use the existing thread when you're continuing to ask the same
question.
This mailing list has no way to delete messages.
So what changes are there between the two versions of the code? Are
they
On 12/27/2012 07:05 AM, Omer Korat wrote:
> You're probably right in general, for me the 3.3 and 2.7 pickles definitely
> don't work the same:
>
> 3.3:
type(pickle.dumps(1))
>
>
> 2.7:
type(pickle.dumps(1, pickle.HIGHEST_PROTOCOL))
>
That is the same. In 2.7, str is made up of bytes,
On 12/27/2012 08:20 PM, Verde Denim wrote:
> Just getting into Py coding and not understanding why this code doesn't
> seem to do anything -
Welcome to Python.
Can I ask the obvious question? How can this be your first program?
Are you just typing it in from somewhere (eg. a book, or a website)
On 12/28/2012 09:27 AM, Morten Engvoldsen wrote:
> Hi Team,
> i am new to python
Welcome.
> and i am using python loggin for log the value of the
> object. Below is my code :
>
> class field:
> field_name = ""
> length = 0
> type = 0
> value = ""
>
> def __init__(self, field_
On 12/28/2012 10:30 AM, philip.a.mol...@gmail.com wrote:
> I am writing a command-line application for Windows. I would like to review
> the Python source code to find out how to install my application so that it
> doesn't have to be called using the path and file name (i.e. being able to
> type
On 12/28/2012 01:15 PM, Morten Engvoldsen wrote:
> Hi Dave,
> Thanks for looking into my issue. You cannot run the program since it is
> in Openerp where python is used as programming language. Here python 2.7 is
> used. Sorry i didn't mention all the detail.
>
> My program is able to write log fo
On 12/28/2012 09:27 AM, Morten Engvoldsen wrote:
> Hi Team,
> i am new to python and i am using python loggin for log the value of the
> object. Below is my code :
>
> class field:
> field_name = ""
> length = 0
> type = 0
> value = ""
>
> def __init__(self, field_name, length,
On 12/28/2012 09:29 PM, andrew cooke wrote:
> On Friday, 28 December 2012 21:56:46 UTC-3, Peter Otten wrote:
>
> reading the damn docs you condescending *?
>
You've made four posts this year to this forum, in two threads, to ask
for help. In that same year, Peter Otten has voluntarily helpe
On 12/29/2012 07:39 AM, Morten Engvoldsen wrote:
> Hi Dave,
> Thanks for reply. I will really appreciate if you reply to my mail id and
> keep python list in cc, since everytime you reply my query i need to search
> the reply in the forwarding message of python list.
I won't be able to remember to
On 12/29/2012 11:54 AM, Morten Engvoldsen wrote:
> Hi Dave,
> Thanks a lot for your reply. I have used logging.setLevel(logger.DEBUG)
> because of threshold as you said.
>
> I didn't copy paste the entire program since it was very huge. The "batch "
> which value i am trying to retrieve is in a a
On 12/31/2012 01:32 AM, contro opinion wrote:
> import urllibimport lxml.html
> down='http://blog.sina.com.cn/s/blog_71f3890901017hof.html'
> file=urllib.urlopen(down).read()
> root=lxml.html.document_fromstring(file)
> body=root.xpath('//div[@class="articalContent "]')[0]print
> body.text_conten
On 12/31/2012 01:36 AM, contro opinion wrote:
> here is my haha class
You posted the same question twice before, and it was answered two hours
ago. Read the first thread, instead of starting spurious ones.
--
DaveA
--
http://mail.python.org/mailman/listinfo/python-list
On 01/01/2013 10:40 AM, usamazo...@gmail.com wrote:
> hi . . my name is usama khan
> i am the student of civil engeering and we got assignment to make a project
> program on flexible pavement design using python.
>
> i know very litle about programing. still learning from tutorials. u can call
On 01/01/2013 11:03 AM, Chris Angelico wrote:
> On Wed, Jan 2, 2013 at 2:40 AM, wrote:
>> hi . . my name is usama khan
>> i am the student of civil engeering and we got assignment to make a project
>> program on flexible pavement design using python.
>>
>> i know very litle about programing. st
On 01/01/2013 03:14 PM, worldsbiggestsabres...@gmail.com wrote:
> OK, thank you all for your help yesterday!
>
> Here's where we are today (using python 3.3.0)
>
> He has everything running well except for the final calculations - he needs
> to be able to total the number of rooms in the hotel, as
On 01/01/2013 05:01 PM, Chris Angelico wrote:
> On Wed, Jan 2, 2013 at 7:14 AM, wrote:
>> floor_number = 0
>> for i in range(number_of_floors):
>> floor_number = floor_number + 1
> Matt's already given you the part you need (and it seems to have
> worked for you, yay!). Side point: Are you aw
On 01/02/2013 03:01 AM, Victor Hooi wrote:
> Hi,
>
> I'm using pysvn to checkout a specific revision based on date - pysvn will
> only accept a date in terms of seconds since the epoch.
>
> I'm attempting to use time.mktime() to convert a date (e.g. "2012-02-01) to
> seconds since epoch.
>
> Acco
On 01/02/2013 09:00 AM, stringsat...@gmail.com wrote:
'''hello
> world'''
> 'hello\nworld'
fred=''' hello
> world'''
print(fred)
> hello
> world
What you're seeing has nothing to do with the triple quotes, and
everything to do with how you're using the debugger. In one case, you
j
On 01/02/2013 09:09 AM, someone wrote:
> On 01/02/2013 01:07 PM, Peter Otten wrote:
>> someone wrote:
>>
>>> On 01/01/2013 01:56 PM, Peter Otten wrote:
>>
from module import * # pylint: disable=W0622
>>>
>>> Oh, I just learned something new now... How come I cannot type
>>> "#pylint:
>>> enabl
On 01/02/2013 12:34 PM, Chris Angelico wrote:
> On Thu, Jan 3, 2013 at 4:27 AM, Roy Smith wrote:
>> In article ,
>> Chris Angelico wrote:
>>
I assume you mean timestamps. A date doesn't need to worry about UTC
the way a timestamp does.
>> I'm not sure how a date and a timestamp differ
On 01/02/2013 05:21 PM, Isaac Won wrote:
> Hi all,
>
> Thanks to Hans, I have had a good progress on my problem.
>
> Followings are Hans's Idea:
>
> import numpy as np
>
> b = []
> c = 4
> f = open("text.file", "r")
>
> while c < 10:
> c = c + 1
>
>
> f.seek(0,0)
>
>
On 01/02/2013 09:31 PM, someone wrote:
> On 01/02/2013 08:31 PM, Ian Kelly wrote:
>> On Wed, Jan 2, 2013 at 10:57 AM, Chris Angelico
>> wrote:
>>> Yeah, same applies to most linters I think. You end up disagreeing
>>> with the author on half the points. Oh well. Doesn't make the tool
>>> useless,
On 01/03/2013 09:24 AM, Tim Chase wrote:
> (original post from planetthoughtful didn't seem to arrive here, so
> replying to Bob's reply)
>
>> Newbie to Python, and I'm wondering if it's possible to create a
>> Python console app that prompts for further input on the command
>> line when run (in Wi
On 01/04/2013 08:10 PM, someone wrote:
> On 01/03/2013 03:09 PM, Mike C. Fletcher wrote:
>>
>
>> PyOpenGL's current approach is mostly attempting to maintain backward
>> compatibility with the older revisions. wxPython actually rewrote its
>> whole interface to go from * imports into namespaced l
On 01/05/2013 05:49 AM, someone wrote:
> On 01/05/2013 02:30 AM, Dave Angel wrote:
>
>>
>> Function objects are enormously useful, as you get more adept at using
>> Python.
>
> Ok, I'll look forward to that. Recently I had some problems with
> pass-by-val
On 01/05/2013 10:17 AM, chaouche yacine wrote:
>
>
> Here is my implementation :
>
> defcount_loc(lines):nb_lines =0docstring =Falseforline inlines:line
> =line.strip()ifline ==""\ orline.startswith("#")\ ordocstring
> andnot(line.startswith('"""')orline.startswith("'''"))\
> or(line.startswi
On 01/05/2013 01:25 PM, Asim wrote:
> Hi All
>
> The following reduce expression checks if every element of list lst1 is
> present in list lst2. It works as expected for integer lists but for lists
> of strings, it always returns False.
>
>reduce( lambda x,y: (x in lst2) and (y in lst2), lst
On 01/05/2013 04:55 PM, Terry Reedy wrote:
> On 1/5/2013 1:58 PM, Dave Angel wrote:
>
>> If you're trying to make a faster loop, then I suggest you look into set
>> differences. Turn both lists into sets, and subtract them. Something
>> like (untested):
>>
On 01/06/2013 06:12 PM, chaouche yacine wrote:
> booleans
> ints, floats, longs, complexes
> strings, unicode strings
> lists, tuples, dictionaries, dictionary views, sets, frozensets, buffers,
> bytearrays, slices
> functions, methods, code objects,modules,classes, instances, types, nulls
> (the
On 01/07/2013 08:22 AM, GadgetSteve wrote:
> On Monday, January 7, 2013 12:50:00 PM UTC, Constantine wrote:
>> Trying to get control:
>> http://AboutToTrashYou.invalid/2892929384736760/news.yahoo.com/Whatever-you-like-it-wont&44work134517741.html
> And this has to do with python how?
When r
On 01/07/2013 09:32 AM, marduk wrote:
> So I guess if one *really* wanted to compare C variables to Python
> variables, you could say that all python variables are of type void*
> except Python does all mallocs/frees and the casting for you.
A better analogy would be to C++, and all names would be
On 01/07/2013 08:00 PM, andydtay...@gmail.com wrote:
> Hi,
>
> Python newbie here again - this is probably a quick one. What's the
> difference between the lines I've numbered 1. and 2. below, which produce the
> following results:
>
> Results:
> 1. [ANG, BAR, BPK, CTN, QGH, QHD, KXX]
> 2. ['ANG
On 01/07/2013 07:44 PM, Nac Temha wrote:
> Hello,
> How to *quickly* calculate large numbers. For example
(10**25) * (2**50)
> 11258999068426240L
>
>
Since all of the terms are const, you could just use
print "11258999068426240L"
Or if you hav
On 01/07/2013 08:22 PM, Nac Temha wrote:
> Thanks for reply. I wonder how quickly calculate big numbers. Can you
> explain me as theoretical? Because this numbers overflow size of integer
> and double.
Please don't top-post. It makes the context totally out of order.
Python automatically promotes
(forwarding the private reply to the group)
On 01/07/2013 09:03 PM, Nac Temha wrote:
> Thanks. I using version 2.7 .I want to understand how to handling big
> number. Just want to know logic. Without going into further details but I
> want to learn logic of this issue. How to keep datas in pytho
On 01/08/2013 12:28 AM, Kelvin Li wrote:
> The language reference says:
>
> "...the choice whether one object [of built-in type] is considered
> smaller or larger than another one is made arbitrarily..."
When quoting some online source, please give a reference link. It took
me a while to find the
On 01/08/2013 07:38 AM, Dennis Lee Bieber wrote:
> On Mon, 7 Jan 2013 20:20:28 -0800 (PST), iMath
> declaimed the following in gmane.comp.python.general:
>
>> How to get the selected text of the webpage in chrome through python ?
> Chrome is a browser, is it not... If you want to get the tex
On 01/09/2013 08:22 AM, Antoon Pardon wrote:
> This is using python 3.2.
>
> I am writing somekind of wrapper around the ftplib. So
> that you can work with it as if you are working with
> local files.
>
> The idea is that you start with making a connection like
>
> rmt = FTP(...)
>
> and then do s
On 01/09/2013 12:11 PM, Reed, Kevin wrote:
> Hello,
>
> My question concerning wiki.python.org unavailability has been answered.
> Thank you all for your assistance! You guys are awesome!
>
> For those of you who don't know, here's the info.
>
> http://mail.python.org/pipermail/python-list/2013-
On 01/09/2013 05:28 PM, kwakukwat...@gmail.com wrote:
> thanks for ur help I wz able to do it.but I wish to expand it by asking a
> user to input a number for the sqrt to be calculated it I dd it this way but
> its not working.
>
>
> from math import sqrt
> number = raw_input('enter a number:')
>
On 01/09/2013 06:24 PM, andydtay...@gmail.com wrote:
> Thanks for your help - this is what I did - though it's probably obvious to
> most people reading this.
>
>for rowcount in range (0, stn_count):
> row_durations.append(stn_list_short[rowcount])
> for colcount in range (0, stn_c
On 01/09/2013 07:20 PM, Michael Curry wrote:
> I've been working on a Morse Code translator, I've made it work so that you
> can input English and it will translate it to Morse and play the Audio. I now
> want to add a feature to the program that takes audio input, processes it and
> then output
On 01/09/2013 11:08 PM, Niklas Berliner wrote:
> I have a pipline that involves processing some data, handing the data to an
> external program (t_coffee used for sequence alignments in bioinformatics),
> and postprocessing the result. Since I have a lot of data, I need to run my
> pipeline in para
On 01/11/2013 03:29 AM, The Night Tripper wrote:
> Gisle Vanem wrote:
>
>> "jkn" wrote:
>>
>>>I have to write python code which must run on an old version of
>>> python (v2.4) as well as a newer (v2.7). I am using pylint and would
>>> like to check if is possible to check with pylint the use o
On 01/11/2013 09:36 AM, MRAB wrote:
> On 2013-01-11 14:15, Roy Smith wrote:
>> I have a list of items. I need to generate n samples of k unique items
>> each. I not only want each sample set to have no repeats, but I also
>> want to make sure the sets are disjoint (i.e. no item repeated between
>
On 01/11/2013 10:37 AM, Steven D'Aprano wrote:
> On Fri, 11 Jan 2013 10:06:30 -0500, Dave Angel wrote:
>
>>
>
>> Not sure what you mean by beforehand. Don't you run all your unit tests
>> before putting each revision of your code into production? So run t
On 01/11/2013 05:17 PM, su29090 wrote:
> I'm trying to import a python file it keeps saying:
>
> ImportError: cannot import name Circle
>
> Here is the file I'm trying to import:
>
> Circle.py
>
> import math
>
> class circle:
> #Construct a circle object
> def __init__(self, radius = 1):
>
On 01/11/2013 11:37 PM, Tim Roberts wrote:
> Dave Angel wrote:
>> As Adnan has pointed out, Python is case insensitive.
> That's not really what you meant to say...
Nope. I meant Python is case sensitive.
Thanks for the catch. I think the rest of my discourse made it clear
On 01/13/2013 07:45 AM, subhabangal...@gmail.com wrote:
> Dear Group,
>
> I have a list like,
>
list1=[1,2,3,4,5,6,7,8,9,10,11,12]
What version of Python?
> Now, if I want to take a slice of it, I can.
> It may be done in,
list2=list1[:3]
print list2
> [1, 2, 3]
>
> If I want to it
On 01/13/2013 11:16 PM, Steven D'Aprano wrote:
> A programmer had a problem, and thought Now he has "I know, I'll solve
> two it with threads!" problems.
>
>
++10
I've been thinking about threads lately, and have come to the tentative
conclusion that they're a solution which has outlived its use
On 01/14/2013 09:44 AM, Dan Sommers wrote:
> On Mon, 14 Jan 2013 00:31:59 -0500, Dave Angel wrote:
>
>> On 01/13/2013 11:16 PM, Steven D'Aprano wrote:
>>> A programmer had a problem, and thought Now he has "I know, I'll solve
>>> two it with threads
On 01/14/2013 09:18 AM, Chris Angelico wrote:
> On Tue, Jan 15, 2013 at 1:15 AM, Tim Chase
> wrote:
>> A newbie programmer had a problem and thought
>>
>>
>>
>> "I'll solve it by posting on
>>
>>
>>
>> python-list@python.org and on Google Groups".
>>
>>
>>
>> And now we have the problem of two thr
On 01/16/2013 09:42 AM, Florian Lindner wrote:
Hello,
I have a:
class C:
def __init__(self):
d = dict_like_object_created_somewhere_else()
def some_other_methods(self):
pass
class C should behave like a it was the dict d. So I could do:
Is it a specific requirement that
On 01/18/2013 05:36 AM, Jean-Michel Pichavant wrote:
Hello people,
Is there any built-in way to know if an object is a valid dictionary key ? From
what I know, the object must be hashable, and from the python doc, an object is
hashable if it has the __hash__ and (__cmp__ or __eq__) methods.
h
On 01/18/2013 03:48 PM, Ferrous Cranus wrote:
I use this .htaccess file to rewrite every .html request to counter.py
#
=
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f
RewriteRul
On 01/18/2013 07:06 AM, Peter Otten wrote:
Jean-Michel Pichavant wrote:
That brings me to another question, is there any valid test case where
key1 != key2 and hash(key1) == hash(key2) ? Or is it some kind of design
flaw ?
I don't think there is a use case for such a behaviour other than anno
On 01/19/2013 03:39 AM, Ferrous Cranus wrote:
Τη Σάββατο, 19 Ιανουαρίου 2013 12:09:28 π.μ. UTC+2, ο χρήστης Dave Angel έγραψε:
I don't understand the problem. A trivial Python script could scan
through all the files in the directory, checking which ones are missing
the identifier
On 01/20/2013 05:04 PM, Garry wrote:
I'm trying to manipulate family tree data using Python.
I'm using linux and Python 2.7.3 and have data files saved as Linux formatted
cvs files
The data appears in this format:
Marriage,Husband,Wife,Date,Place,Source,Note0x0a
Note: the Source field or the No
On 01/20/2013 06:14 PM, alex23 wrote:
On Jan 20, 7:23 pm, Chris Angelico wrote:
On Sun, Jan 20, 2013 at 8:17 PM, iMath wrote:
so what is your opinion about single leading underscore and private methods or
attributes?
Didn't this get discussed recently?
http://mail.python.org/pipermail/pyt
On 01/21/2013 01:25 AM, Ferrous Cranus wrote:
Τη Σάββατο, 19 Ιανουαρίου 2013 10:01:15 μ.μ. UTC+2, ο χρήστης Piet van Oostrum
έγραψε:
Ferrous Cranus writes:
While
/home/nikos/public_html/cafebar-idea.gr/cgi-bin/counter.py
that has also embedded this line:
mailto:supp...@superhost.gr";>
On 01/21/2013 06:25 AM, Tom Borkin wrote:
Hi;
I have this code:
for song in my_songs:
subprocess.call(['notepad.exe', '%s.txt' % song])
print song
It opens the first song and hangs on subsequent songs. It doesn't open the
next song or execute the print until I have closed the first one. I
501 - 600 of 2696 matches
Mail list logo