Read the warnings carefully. They are pretty clear.
On 26 Apr 2013 07:48, "Avnesh Shakya" wrote:
> hi,
>I am trying to run my file using pychecker, but it's showing warning. I
> am unable to get these warning. Please help me, how to remove these
> warning. I am using pychecker first time.
>
>
On 04/26/2013 02:42 AM, Avnesh Shakya wrote:
hi,
I am trying to run my file using pychecker, but it's showing warning. I am
unable to get these warning. Please help me, how to remove these warning. I am
using pychecker first time.
avin@HP:~/github/UdacitySiteData$ pychecker udacity_to_json
On Apr 26, 11:25 am, rusi wrote:
> To present these kind of errors, Erlang has a concept of sticky
> modules -- those that come from the system…
??present?? should have been 'prevent'
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
> On Fri, 26 Apr 2013 07:39:32 +0200, Peter Otten wrote:
>
>> A class body is basically a function body that is executed once. To
>> allow an assignment
>>
> x = 42
> class A:
>> ... x = x
>> ...
>>
>> which is not possible inside a function
>
>
> As far as
>
> the following in gmane.comp.python.general:
>
>
>
> > I am using a XBee to receive data from an arduino network.
>
> >
>
> > But they have AP=2 which means escaped characters are used when a 11 or 13
> > appears (and some more...)
>
> >
>
> > When this occurs, XBee sends 7D and inme
Hello everyone,
I have this part of my code where I am trying to traverse over an image by
running a for loop for both x and y co-ordinate axis. But the loop is
terminating by just reading first pixel. Can think of a reason why this is
happening ?
The code is:
for sy in xrange(0, segimage.height)
On 25/04/2013 21:35, Steve Simmons wrote:
The Ying Tong song - a classic of its time. But eminently suited to the
chorally challenged.
Released on a classic EP with Major Dennis Bloodnok's Rock and Roll Call
Rumba, I'm walking Backwards for Christmas and Bluebottle Blues.
Bravado, bravado
inshu chauhan wrote:
> I have this part of my code where I am trying to traverse over an image by
> running a for loop for both x and y co-ordinate axis. But the loop is
> terminating by just reading first pixel. Can think of a reason why this is
> happening ?
>
> The code is:
> for sy in xrange(
On 4/26/2013 4:48 AM, inshu chauhan wrote:
Hello everyone,
I have this part of my code where I am trying to traverse over an image
by running a for loop for both x and y co-ordinate axis. But the loop is
terminating by just reading first pixel. Can think of a reason why this
is happening ?
*A*
On Fri, Apr 26, 2013 at 2:39 PM, Peter Otten <__pete...@web.de> wrote:
> inshu chauhan wrote:
>
> > I have this part of my code where I am trying to traverse over an image
> by
> > running a for loop for both x and y co-ordinate axis. But the loop is
> > terminating by just reading first pixel. Ca
On 26 April 2013 10:36, inshu chauhan wrote:
>
> On Fri, Apr 26, 2013 at 2:39 PM, Peter Otten <__pete...@web.de> wrote:
>>
>> My crystal ball says that the 'for sy...' and 'for sx...' loops are
>> running
>> to completion, but you don't get the coordinates printed because you put
>> them into the
On Fri, Apr 26, 2013 at 7:36 PM, inshu chauhan wrote:
>
> On Fri, Apr 26, 2013 at 2:39 PM, Peter Otten <__pete...@web.de> wrote:
>>
>> f = open(...)
>>
>> in the code you are not showing with
>>
>> f == list(open(...))
>
> f is just a text file(csv format).. so why list ??
(That should be =, not
inshu chauhan wrote:
> On Fri, Apr 26, 2013 at 2:39 PM, Peter Otten <__pete...@web.de> wrote:
>
>> inshu chauhan wrote:
>>
>> > I have this part of my code where I am trying to traverse over an image
>> by
>> > running a for loop for both x and y co-ordinate axis. But the loop is
>> > terminating
inshu chauhan wrote:
> I have this part of my code where I am trying to traverse over an image by
> running a for loop for both x and y co-ordinate axis. But the loop is
> terminating by just reading first pixel. Can think of a reason why this is
> happening ?
> The code is:
> for sy in xrange(0,
, 2013 at 3:15 PM, Chris Angelico wrote:
> On Fri, Apr 26, 2013 at 7:36 PM, inshu chauhan
> wrote:
> >
> > On Fri, Apr 26, 2013 at 2:39 PM, Peter Otten <__pete...@web.de> wrote:
> >>
> >> f = open(...)
> >>
> >> in the code you are not showing with
> >>
> >> f == list(open(...))
> >
> > f is jus
Everybody, there is a new online storage startup, similar to Dropbox or
box.com, get your free 10 GB easily, 5GB on signup and 5GB if you use the
following referral link.
* hit the referral link https://copy.com?r=WGQBHr
* create an account (5GB)
* install client on any device (5GB)
Have fun!
Hey,
Let me explain what my program is supposed to do...
I am using a macro program in conjunction with a python script I am writing.
The macro inputs data into a database we use at my job, blah blah blah.
The script asks how many numbers (devices) you need to enter. Next, it asks you
to input
tunacu...@gmail.com wrote:
> Hey,
>
> Let me explain what my program is supposed to do...
>
> I am using a macro program in conjunction with a python script I am
> writing. The macro inputs data into a database we use at my job, blah blah
> blah.
>
> The script asks how many numbers (devices) y
On Sat, Apr 27, 2013 at 12:26 AM, wrote:
> Hey,
> The error I receive is "TypeError: Can't convert 'int' object to str
> implicitly" when it tries to put the device into the macro script. It worked
> fine when I just had it input one device into the script without the use of
> lists, but for w
On Sat, Apr 27, 2013 at 12:26 AM, wrote:
> ##This next step will seek out the word Device within firstdev.ahk, and
> replace with devlist[0]
> for line in fileinput.input(["firstdev.ahk"], inplace=True):
> line = line.replace("device", devlist[0])
> sys.stdout.write(line)
> ##next step r
On Friday, April 26, 2013 10:53:44 AM UTC-4, Peter Otten wrote:
> tunacu...@gmail.com wrote:
>
>
>
> > Hey,
>
> >
>
> > Let me explain what my program is supposed to do...
>
> >
>
> > I am using a macro program in conjunction with a python script I am
>
> > writing. The macro inputs data
On Friday, April 26, 2013 11:05:29 AM UTC-4, Chris Angelico wrote:
> On Sat, Apr 27, 2013 at 12:26 AM, wrote:
>
> > ##This next step will seek out the word Device within firstdev.ahk, and
> > replace with devlist[0]
>
> > for line in fileinput.input(["firstdev.ahk"], inplace=True):
>
> >
On Sat, Apr 27, 2013 at 1:22 AM, wrote:
>> I've checked out what fileinput.input() is doing here (ought to have
>>
>> done that earlier, sorry!) and I now understand this block of code
>>
>> more. You're replacing that word _in the file, on disk_, and then
>>
>> making the inverse replacement. Th
On Sat, Apr 27, 2013 at 1:54 AM, MRAB wrote:
> On 26/04/2013 14:02, anatoly techtonik wrote:
>> This circular reference problem is interesting. In object space it
>> probably looks like a stellar detached from the visible (attached)
>> universe. Is the main problem in detecting it?
>>
> The proble
[[ Resending under a more appropriate subject line... sorry about
that, ignore the other one as it'll only confuse matters ]]
On Sat, Apr 27, 2013 at 1:54 AM, MRAB wrote:
> On 26/04/2013 14:02, anatoly techtonik wrote:
>> This circular reference problem is interesting. In object space it
>> proba
On 04/26/2013 11:05 AM, Chris Angelico wrote:
On Sat, Apr 27, 2013 at 12:26 AM, wrote:
##This next step will seek out the word Device within firstdev.ahk, and replace
with devlist[0]
for line in fileinput.input(["firstdev.ahk"], inplace=True):
line = line.replace("device", devlist[0])
On Sat, Apr 27, 2013 at 3:23 AM, Dave Angel wrote:
> On 04/26/2013 11:05 AM, Chris Angelico wrote:
>> I've checked out what fileinput.input() is doing here (ought to have
>> done that earlier, sorry!) and I now understand this block of code
>> more. You're replacing that word _in the file, on disk
On 04/26/2013 12:54 PM, Chris Angelico wrote:
[[ Resending under a more appropriate subject line... sorry about
that, ignore the other one as it'll only confuse matters ]]
On Sat, Apr 27, 2013 at 1:54 AM, MRAB wrote:
On 26/04/2013 14:02, anatoly techtonik wrote:
This circular reference proble
On 04/26/2013 01:28 PM, Chris Angelico wrote:
On Sat, Apr 27, 2013 at 3:23 AM, Dave Angel wrote:
On 04/26/2013 11:05 AM, Chris Angelico wrote:
I've checked out what fileinput.input() is doing here (ought to have
done that earlier, sorry!) and I now understand this block of code
more. You're re
On Sat, Apr 27, 2013 at 3:42 AM, Dave Angel wrote:
> I don't see what your "special" temporary object actually accomplishes.
> Seems to me you need to declare that your __del__() methods promise not to
> reference each other, and the gc would then check all objects in the cycle,
> and do its prese
On Sat, Apr 27, 2013 at 3:52 AM, Dave Angel wrote:
> On 04/26/2013 01:28 PM, Chris Angelico wrote:
>>
>> On Sat, Apr 27, 2013 at 3:23 AM, Dave Angel wrote:
>>>
>>> On 04/26/2013 11:05 AM, Chris Angelico wrote:
I've checked out what fileinput.input() is doing here (ought to have
don
Hi Ondrej,
I don't know what a Fedora/EPEL update is.
If you're going to have two versions, I would suggest:
0.7.9 - for backwards compatibility with Python 2.5 and less, and older
0.6 and 0.7 xlrd releases.
0.9.2 - for Python 3 support, and with the latest and greatest features.
cheers,
C
On Wednesday, April 24, 2013 11:51:04 AM UTC-7, Vincent Vande Vyvre wrote:
Thanks. I think I should be able to figure out from here. I appreciate all of
the help!
> Le 24/04/2013 19:12, Sara Lochtie a écrit :
>
> > On Tuesday, April 23, 2013 11:22:29 PM UTC-7, Sara Lochtie wrote:
>
> >> I hav
On 04/26/2013 02:02 PM, Chris Angelico wrote:
Here's a massive simplification of the OP's program:
1. Build a list of device IDs
2. Edit the file "firstdev.ahk" and replace all instances of "device"
with the device ID
3. Execute the now-edited firstdev.ahk using os.system()
4. Reverse th
On 04/26/2013 01:57 PM, Chris Angelico wrote:
On Sat, Apr 27, 2013 at 3:42 AM, Dave Angel wrote:
I don't see what your "special" temporary object actually accomplishes.
Seems to me you need to declare that your __del__() methods promise not to
reference each other, and the gc would then check a
Hello,
Fedora is an Linux distribution maintained by Red Hat.
(www.fedoraproject.org). EPEL are packages fro Red Hat Enterprise Linux
and CentOS Linux distribution. As an maintainer I am creating and updating
packages available for these distributions.
If users have python-xlrd installed, pac
Chris Angelico於 2013年4月27日星期六UTC+8上午12時52分38秒寫道:
> On Sat, Apr 27, 2013 at 1:54 AM, MRAB wrote:
>
> > On 26/04/2013 14:02, anatoly techtonik wrote:
>
> >> This circular reference problem is interesting. In object space it
>
> >> probably looks like a stellar detached from the visible (attached)
On Fri, Apr 26, 2013 at 10:54 AM, Chris Angelico wrote:
> Once it's been proven that there's an unreferenced cycle, why not
> simply dispose of one of the objects, and replace all references to it
> (probably only one - preferably pick an object with the fewest
> references) with a special tempora
On Fri, Apr 26, 2013 at 1:31 PM, Dave Angel wrote:
> On 04/26/2013 01:57 PM, Chris Angelico wrote:
>> And yeah. If you catch the exception inside __del__, you can cope with
>> the destructed object yourself (or LBLY, if you wish). Alternatively,
>> you just proceed as normal, and when your __del__
On 04/26/2013 06:43 PM, Ian Kelly wrote:
Whenever the GC finds a cycle that is unreferenced but uncollectable,
it stores those objects in the list gc.garbage. At that point, if the
user wishes to clean up those cycles, it is up to them to delve into
gc.garbage, untangle the objects contai
On 04/26/2013 06:50 PM, Ian Kelly wrote:
On Fri, Apr 26, 2013 at 10:54 AM, Chris Angelico wrote:
Once it's been proven that there's an unreferenced cycle, why not
simply dispose of one of the objects, and replace all references to it
(probably only one - preferably pick an object with the fewes
> Whenever the GC finds a cycle that is unreferenced but uncollectable,
> it stores those objects in the list gc.garbage. At that point, if the
> user wishes to clean up those cycles, it is up to them to delve into
> gc.garbage, untangle the objects contained within, break the cycles,
> and remove
On Sat, Apr 27, 2013 at 8:50 AM, Ian Kelly wrote:
> On Fri, Apr 26, 2013 at 10:54 AM, Chris Angelico wrote:
>> Once it's been proven that there's an unreferenced cycle, why not
>> simply dispose of one of the objects, and replace all references to it
>> (probably only one - preferably pick an obj
On Sat, Apr 27, 2013 at 9:45 AM, Dave Angel wrote:
> I didn't know there was a callback that a user could hook into. That's very
> interesting.
>
On Sat, Apr 27, 2013 at 10:22 AM, Skip Montanaro wrote:
>> Whenever the GC finds a cycle that is unreferenced but uncollectable,
>> it stores those o
>From the Zen of Python:
> In the face of ambiguity, refuse the temptation to guess.
I believe the reason something isn't already done to break cycles is
that the authors of the cyclic garbage collector considered the above
aphorism. They rely on the author of the code with the cycles to
figure
On Sat, Apr 27, 2013 at 12:12 PM, Skip Montanaro wrote:
> From the Zen of Python:
>
>> In the face of ambiguity, refuse the temptation to guess.
>
> I believe the reason something isn't already done to break cycles is
> that the authors of the cyclic garbage collector considered the above
> aphori
On Fri, 26 Apr 2013 09:15:51 +0200, Peter Otten wrote:
> Define a global variable x and run it again. I don't have an ancient
> Python lying around but my "prediction" is
>
x = 42
f().x
> 42
>
> which would be the same behaviour as that of Python 3.3.
/facepalm
You're absolutely ri
When I run the readbmp on an example.bmp(about 100k),the Shell is become to "No
respose",when I change f.read() to f.read(1000),it is ok,could someone tell me
the excat reason for this?
Thank you in advance!
Python Code as below!!
import binascii
def read_bmp():
f = open('example.bmp','rb'
when I commet the line of "print('bin: ',bsstr,type(bsstr)) ",it can be run,so
maybe the problem is the memory allocate of so long strings..Am I right?
在 2013年4月27日星期六UTC+8上午11时57分45秒,Jimmie He写道:
> When I run the readbmp on an example.bmp(about 100k),the Shell is become to
> "No respose",wh
49 matches
Mail list logo