On 4/9/2013 02:13, vnkumbh...@gmail.com wrote:
> example:
>
> print "hello" # print comment +"world"=> single line comment
>>> print "hello" # print comment +"world"=> single line comment
hello
> print "hello" '''print comment''' +"world" => multiple line comment
>>> print "hello"
On 4/9/2013 07:29, Ferrous Cranus wrote:
> Στις 4/9/2013 2:15 μμ, ο/η Dave Angel έγραψε:
>>> Τη Τετάρτη, 4 Σεπτεμβρίου 2013 5:14:31 π.μ. UTC+3, ο χρήστης Piet van
>>> Oostrum έγραψε:
>>>> Where does it display that?
>>>> Do you happen to r
On 4/9/2013 07:38, Ferrous Cranus wrote:
> Στις 4/9/2013 2:26 μμ, ο/η Dave Angel έγραψε:
>>
>>>>
>>>> So first in the interpreter, I ran
>>>>
>>>>
>>>>
>>>>>>>> f = open("junk.txt", "w&q
On 4/9/2013 10:29, Ferrous Cranus wrote:
> Στις 4/9/2013 3:38 μμ, ο/η Dave Angel έγραψε:
>> 'file' isn't magic. And again, it doesn't look at the filename, it
>> looks at the content.
> So, you are saying that it looks a the content of the file and not o
On 4/9/2013 12:32, Azureaus wrote:
> Hi All,
> I'm fairly new to Python so please forgive me If I sound confused or include
> anything a bit irrelevant. I've had some great responses from this group
> already though so thanks.
>
> I have a source file that is laid out roughly like
>
> class:
> c
On 5/9/2013 05:36, Ferrous Cranus wrote:
>
>
> ni...@superhost.gr [~]# cat /tmp/err.out
> sendmail => 13-09-05 12:20:53 (,
> TypeError("sendmail() missing 2 required positional arguments:
> 'to_addrs' and 'msg'",), )
> ni...@superhost.gr [~]#
>
> but all of the needed args are within MESSAGE.
>
On 5/9/2013 12:37, jsri...@gmail.com wrote:
> I am going through the tutorials on docs.python.org, and I came across this
> excerpt from http://docs.python.org/3/tutorial/controlflow.html:
>
> "The execution of a function introduces a new symbol table used for the local
> variables of the functi
On 5/9/2013 16:08, skwyan...@gmail.com wrote:
> 1. bear_moved = False
> 2.
> 3. while True:
> 4.next = raw_input("> ")
> 5.
> 6.if next == "take honey":
> 7.dead("The bear looks at you then slaps your face off.")
> 8.elif next == "taunt bear"
On 6/9/2013 14:27, Paul Pittlerson wrote:
f> Ok here is the fixed and shortened version of my script:
>
> #!/usr/bin/python
>
> from multiprocessing import Process, Queue, current_process
> from threading import Thread
> from time import sleep
>
> class Worker():
> def __init__(self, Que):
>
On 7/9/2013 21:17, Aaron Martin wrote:
> Hi, I am thinking about getting a software but it requires python, so that
> brought up a few questions. Is it safe do download python, and does it come
> with spam or advertisements? If it doesn't then should I get the latest
> version? I mostly want to kn
On 9/9/2013 13:39, eamonn...@gmail.com wrote:
> Is there a way to detect if the user presses a key in Python that works on
> most OS's? I've only seen 1 method, and that only works in Python 2.6 and
> less. If you get the key, can you store it in a variable?
>
> Also, is there a way to create a
On 10/9/2013 17:08, stas poritskiy wrote:
> Greetings to all!
>
> i ran into a little logic problem and trying to figure it out.
>
> my case is as follows:
>
> i have a list of items each item represents a Group
>
> i need to create a set of nested groups,
>
> so, for example:
>
> myGroups = ["he
On 10/9/2013 18:11, stas poritskiy wrote:
Please include some quotation from the message you're replying to. We
can't tell who this was responding to until the very last line, where
you mention my name. But since you're using buggy googlegroups, you'd
better also read
http://wiki.python.org/mo
On 10/9/2013 22:14, Steven D'Aprano wrote:
> On Tue, 10 Sep 2013 14:08:45 -0700, stas poritskiy wrote:
>
>> Greetings to all!
>>
>> i ran into a little logic problem and trying to figure it out.
>>
>> my case is as follows:
>>
>> i have a list of items each item represents a Group
>> i need to
On 11/9/2013 01:39, William Bryant wrote:
> On Wednesday, September 11, 2013 5:11:23 PM UTC+12, John Gordon wrote:
>> In William Bryant
>> writes:
>>
>>
>>
>> > Hey, I am very new to python, I am 13 years old. I want to be able to make
>> > =
>>
>> > a program the caculates the mean, meadi
On 11/9/2013 07:42, Wayne Werner wrote:
> On Tue, 10 Sep 2013, Ben Finney wrote:
>> The sooner we replace the erroneous
>> “text is ASCII” in the common wisdom with “text is Unicode”, the
>> better.
>
> I'd actually argue that it's better to replace the common wisdom with
> "text is binary dat
On 11/9/2013 08:50, chandan kumar wrote:
> Hi ,
>
> I'm trying to understand using global variable across different modules.
Python doesn't have such a thing, unless you consider builtins.
> Here is what i have tried so far without much success.Please ignore any
> indentation issue in the below
On 11/9/2013 10:26, Wanderer wrote:
> How do I send the command 'Alt+D' to subprocess.PIPE?
That's not a command, it's a keystroke combination. And without knowing
what RSConfig.exe is looking to get its keystrokes, it might not even be
possible to feed it any keystrokes via the pipe.
if the pr
On 11/9/2013 15:31, William Bryant wrote:
> @Dave Angel
>
> What is .lower() ?
It is a method on the str class.
You could teach yourself. At the interpreter prompt, type
>>>> help("test response".lower)
Or on the web:
http://docs.python.org/2/library/stdtypes
On 11/9/2013 17:49, John Pote wrote:
> Chris,
> Interesting.
>>
>> # Test1.py
>> Debug_Value = " "
>>
>> # Test2.py
>> from Test1 import *
>> # is exactly equivalent to
>> Debug_Value = " "
>>
> I take it then that assigning to Debug_Value in Test2.py will not change the
> value of Debug_Valu
On 12/9/2013 02:15, chandan kumar wrote:
> Hi ,
>
> I'm new to python
Welcome. I hope you enjoy your time here, and that the language treats
you as well as it's treated me.
> ,please correct me if there is any thing wrong with the way accessing
class attributes.
None of the following uses class
On 11/9/2013 23:03, Cory Mottice wrote:
> I am using line.rfind to parse a particular line of html code. For example,
> this is the line of html code I am parsing:
>
> 79° class="low">Lo 56°
>
> and this is the code I use to split the line to (in this case) pull out the
> '79'.
>
> position0 = l
On 13/9/2013 15:37, eamonn...@gmail.com wrote:
> I disagree with you. It's not hard, and I apologise if its ever sounded that
> way, but it is the fun part for me. I love spending hours(days even)
> debugging.
>
> Well, thanks all for depressing me. Time to give up programming and find
> someth
On 14/9/2013 14:10, eamonn...@gmail.com wrote:
> I didnt wanna say that, in case people threw a fit and stuff.
>
> So yeah, how would I monitor the key presses?
There's a huge difference between monitoring key presses within your own
process, and intercepting them system-wide. if you need to see
On 14/9/2013 22:59, Tal Bar-Or wrote:
> Hi All
>
> i am trying to test measure some IO execution in milliseconds , but bit
> confuse about best method achive that under windows 7
Measuring any performance can be tricky, and I/O in particular. Windows
will cache the recently used file informatio
On 16/9/2013 00:05, Mohsen Pahlevanzadeh wrote:
> thank you, you gave me "how to get fish" instead of "fish", it's very
> better.
I'd suggest you make a diagram showing each file and indicate what files
it imports by an arrow. If any arrows form a circle, you (may) have
recursive imports.
You s
On 16/9/2013 19:33, William Bryant wrote:
> Hey I am new to python so go easy, but I wanted to know how to make a program
> that calculates the maen.
>
> List = [15, 6, 6, 7, 8, 9, 40]
> def mean():
> global themean, thesum
> for i in List:
> thecount = List.count(i)
> the
On 17/9/2013 09:21, Ferrous Cranus wrote:
> I just want to say tot he program that
>
> that only run the for statement if and only if person=='George'
>
> I dont see nay reason as to why this fails
>
> perhaps like:
>
> for times in range(0, 5) if person=='George':
>
> but that fails too...
> the
On 17/9/2013 21:42, Bryan Britten wrote:
> Hey, gang, I've got a problem here that I'm sure a handful of you will know
> how to solve. I've got about 6 *.csv files that I am trying to open; change
> the header names (to get rid of spaces); add two new columns, which are just
> the results of a
On 17/9/2013 22:28, Bryan Britten wrote:
> Dave -
>
> I can't print the output because there are close to 1,000,000 records. It
> would be extremely inefficient and resource intensive to look at every row.
Not if you made a sample directory with about 3 files, each containing
half a dozen lines.
On 18/9/2013 01:12, Venkat Addala wrote:
> Hi all,
>
> I have a tuple in this format, which is retrived using MySQLdb, now i want
> to remove \n and extra spaces in this.
>
> 13L, 'ssDsC', 'CEs5s1, DsC', 'srylscetsmight\nghtscetylsse', '3', '3q25.1',
> 151531861L, 151546276L, '+', '1 kjafhkfhlad\f
On 18/9/2013 07:21, Chris Angelico wrote:
> On Wed, Sep 18, 2013 at 9:12 PM, nikhil Pandey
> wrote:
>> hi,
>> I want to iterate over the lines of a file and when i find certain lines, i
>> need another loop starting from the next of that "CERTAIN" line till a few
>> (say 20) lines later.
>> so
On 18/9/2013 09:38, chitt...@uah.edu wrote:
> Thanks - that helps ... but it is puzzling because
>
> np.random.normal(0.0,1.0,1) returns exactly one
> and when I checked the length of "z", I get 21 (as before) ...
>
>
I don't use Numpy, so this is just a guess, plus reading one web page.
Accor
On 18/9/2013 15:40, MRAB wrote:
> On 18/09/2013 20:28, stephen.bou...@gmail.com wrote:
>> Thanks to everyone for their help. Using everyone's suggestions, this seems
>> to work:
>>
>> import win32clipboard, win32con
>>
>> def getclipboard():
>> win32clipboard.OpenClipboard()
>> s = win3
On 18/9/2013 10:36, Roy Smith wrote:
>> Dave Angel wrote (and I agreed with):
>>> I'd suggest you open the file twice, and get two file objects. Then you
>>> can iterate over them independently.
>
>
> On Sep 18, 2013, at 9:09 AM, Oscar Benjamin wrote:
>
On 18/9/2013 17:40, Neil Hodgson wrote:
> Dave Angel:
>
>> So is the bug in Excel, in Windows, or in the Python library? Somebody
>> is falling down on the job; if Windows defines the string as ending at
>> the first null, then the Python interface should use that w
On 18/9/2013 18:31, Dennis Lee Bieber wrote:
> On Tue, 17 Sep 2013 18:34:50 -0400, William Ray Wing
> declaimed the following:
>
>
>>
>>I think you need to read up on some of the most basic fundamentals of tcp/ip
>>networking, i.e., the basis of the global internet. EVERY network packet
>>(and
On 19/9/2013 14:46, William Bryant wrote:
> the word 'def' has squiggily lines but the program works fine. It says:
> Syntax Error: expected an indented block. - why?
>
The direct answer is that your terminal program must be broken. it
should not use "squiggly lines" for any purposes.
But per
On 19/9/2013 11:53, Neil Cerutti wrote:
> On 2013-09-18, Dave Angel wrote:
>> On 18/9/2013 17:40, Neil Hodgson wrote:
>>
>>> Dave Angel:
>>>
>>>> So is the bug in Excel, in Windows, or in the Python library? Somebody
>>>> is falling dow
On 20/9/2013 13:28, Jabba Laci wrote:
> Hi,
>
> In our school I have an introductory Python course. I have collected a
> large list of exercises for the students and I would like them to be
> able to test their solutions with an online judge (
> http://en.wikipedia.org/wiki/Online_judge ). At the
On 20/9/2013 17:57, Sam wrote:
>
> print("\nThe total amount required is ", total )
>
>
> ('\nThe total amount required is ', 3534)
>
> ===> the problem is obviously on the last print statement that is supposed to
> print the outut
Others have pointed out the version discrepancy. But I'll also
On 21/9/2013 02:07, William Bryant wrote:
In addition to Steven's comments:
>
> def median():
> medlist = List
> medlist.sort()
You have just altered the original list. Perhaps sorting it is
harmless, but below you actually remove elements from it. One way to
avoid that is to use the s
On 21/9/2013 03:19, shubhx...@gmail.com wrote:
> i am very confuse about gui development in python ..
> i installed qt creator .. but it has no option for python..
> how can i bulit any app using drag n drop facilities ...
> i am trying wxpython ..
> plz help me .
> how i use wxpython ..
> plzz
On 21/9/2013 12:18, MRAB wrote:
> On 21/09/2013 13:53, Dave Angel wrote:
> [snip]
>> Taking Steven's suggested code, and changing it so it uses a COPY of the
>> global list;
>>
>> def median():
>> # Relies on the global variable called List.
>>
On 22/9/2013 21:14, worthingtonclin...@gmail.com wrote:
> Was hoping to get some tips or advice on scripting a program that would sort
> through my many links on my directory website and print out to me the ones
> that are broken or no longer functioning so that I could fix or remove them
> fro
On 23/9/2013 18:55, kjaku...@gmail.com wrote:
> On Monday, September 23, 2013 9:56:45 AM UTC-4, Steven D'Aprano wrote:
>> On Mon, 23 Sep 2013 05:57:34 -0700, kjakupak wrote:
>>
>> Now you're done! On to the next function...
>>
>>
>>
>> --
>>
>> Steven
>
> def temp(T, from_unit, to_unit):
On 23/9/2013 21:23, kjaku...@gmail.com wrote:
> On Monday, September 23, 2013 8:07:44 PM UTC-4, Dave Angel wrote:
>>
>> I didn't see any spec that said Python 3.x. in version 2.x, this would
>>
>> be incorrect.
>>
>>
>>
>> --
>&
On 24/9/2013 09:01, J. Bagg wrote:
Why would you start a new thread? just do a Reply-List (or Reply-All
and remove the extra names) to the appropriate message on the existing
thread.
> I'm using:
>
> outputfile = codecs.open (fn, 'w+', 'utf-8', errors='strict')
That won't be adding a BOM. It a
On 25/9/2013 04:41, dwivedi.dev...@gmail.com wrote:
> Hi all,
>
> I am a newbie to python.
>
> I have about 500 search queries, and about 52000 files in which I have to
> find all matches for each of the 500 queries.
>
> How should I approach this? Seems like the straightforward way to do it woul
On 25/9/2013 06:38, J. Bagg wrote:
> So it is just a random sequence of "junk".
>
> It will be a matter of finding the real start of the record (in this
> case a %) and throwing the "junk" away.
Please join the list. Your present habit of starting a new thread for
each of your messages is getti
On 25/9/2013 16:06, mstagliamonte wrote:
> Dear All,
>
> Here I am, with another newbie question. I am trying to extract some lines
> from a fasta (text) file which match the headers in another file. i.e:
> Fasta file:
>>header1|info1:info2_info3
> general text
>>header2|info1:info2_info3
> gener
On 25/9/2013 19:24, Arturo B wrote:
> Hi, I'm doing Python exercises and I need to write a function to flat nested
> lists
> as this one:
>
> [[1,2,3],4,5,[6,[7,8]]]
>
> To the result:
>
> [1,2,3,4,5,6,7,8]
>
> So I searched for example code and I found this one that uses recursion (that
> I do
On 26/9/2013 06:51, Νίκος wrote:
> socket.gethostbyaddr( os.environ.get('HTTP_CF_CONNECTING_IP') or
>> os.environ.get('REMOTE_ADDR') or "Άγνωστη Προέλευση" )[0]
>> Traceback (most recent call last):
>>File "", line 1, in
>> socket.gaierror: [Errno -2] Name or service not known
>>
>>
On 26/9/2013 09:34, Νίκος wrote:
> Στις 26/9/2013 3:53 μμ, ο/η Antoon Pardon έγραψε:
>> Op 26-09-13 14:39, Νίκος schreef:
>>> Yes, you are right, in my shell it fails too givign the same error
>>> message as yours, while on the other had in the websste is working.
>>>
>>> Can you explain this plea
On 26/9/2013 12:58, Νίκος wrote:
> But actually i have 2 variables that relay on a proper ip address.
>
> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
> os.environ.get('REMOTE_ADDR', "UnKnown Origin") )
> try:
> gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
> city
On 26/9/2013 18:14, Νίκος wrote:
> Στις 26/9/2013 11:16 μμ, ο/η Denis McMahon έγραψε:
>> On Thu, 26 Sep 2013 19:58:02 +0300, Νίκος wrote:
>>
>>> except socket.gaierror as e:
>>> city = host = "UnKnown Origin"
>>>
>>> But then what if in case of an error i needed different string set to be
>>>
On 27/9/2013 05:19, Νίκος wrote:
> Στις 27/9/2013 1:55 πμ, ο/η Dave Angel έγραψε:
>>
>> Simply assign the default values BEFORE the try block, and use pass as
>> the except block.
>>
>> That still doesn't get around the inadvisability of putting those 3
>
On 27/9/2013 06:24, markot...@gmail.com wrote:
> from random import *
> from math import floor
>
>
> kaarte_alles = 52
> kaart_tõmmatud = [False for i in range(52)]
>
>
> mast = ["ärtu", "ruutu", "poti", "risti"]
> aste = ["äss", "kaks", "kolm", "neli","viis", "kuus", \
> "seitse", "kahek
On 27/9/2013 07:26, Dave Angel wrote:
> On 27/9/2013 06:24, markot...@gmail.com wrote:
>
I sent the previous message long before I had finished.
>
> If you had created your global list containing list(range(52)), then you
> could do nearly your entire program with one call t
On 27/9/2013 07:15, Νίκος wrote:
> Στις 27/9/2013 1:43 μμ, ο/η Dave Angel έγραψε:
>
>> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
>> os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
>> city = "Άγνωστη Πόλη"
>>
On 27/9/2013 12:10, Denis McMahon wrote:
> On Fri, 27 Sep 2013 12:08:33 +0000, Dave Angel wrote:
>
>> i recall
>> writing a shuffle function in C decades ago, which took an array of (52)
>> unique items and put them in random order.
>
> Whenever I tried to writ
On 27/9/2013 10:44, 23alagmy wrote:
> Free Proxy site 2014
> search is the first proxy supports proxy access blocked sites, browsing, and
> downloads without restrictions and also conceal your identity Pencah by 100%
> from the sites you visit
>
>
Sure, I'm going to trust going to a site re
On 27/9/2013 18:06, Νίκος wrote:
>
> city = "Άγνωστη Πόλη"
> host = "Άγνωστη Προέλευση"
>
> If they were to have the same string assigned to them it should be okey
> but they do not.
>
> Or perhaps you can even still think of writing the above into 1-liner
> whatsoever!
I already did earlier i
On 27/9/2013 20:43, jae...@gmail.com wrote:
> http://imgur.com/E6vrNs4
>
>
> Can't seem to be getting an output.
Please compose a text message containing a description of the
environment, the (small) code, and the expected results. This is a text
mailing list, and posting transient images on untr
On 28/9/2013 00:52, melw...@gmail.com wrote:
> Hey,
>
What version of Python are you using? I'll assume 2.7, but you really
should specify it (and any other meaningful environment dependencies) in
your original query, the beginning of your thread.
For 2.7, the docs for unittest are at:
http://
On 28/9/2013 06:31, Ned Batchelder wrote:
>
> I've thought that way about it too: there are so many shuffles any way,
> it won't be a problem. But think about it like this: if you shuffle a
> deck of 52 cards with a default Python random object, then once you have
> dealt out only 28 car
On 28/9/2013 02:26, Daniel Stojanov wrote:
> Can somebody explain this. The line number reported by shlex depends
> on the previous token. I want to be able to tell if I have just popped
> the last token on a line.
>
I agree that it seems weird. However, I don't think you have made
clear why it'
On 28/9/2013 10:55, FiveHydroxy Tryptamine wrote:
> Hiya
> A word of warning, I am a complete beginner.
> My problem goes like this:: I've been trying to "import neurolab as nl"(a
> neural network library)and I keep getting the "No module named.." error in my
> Python 2.7.3 shell. There is defin
On 28/9/2013 12:17, dvgh...@gmail.com wrote:
> On Saturday, September 28, 2013 12:43:42 AM UTC, jae...@gmail.com wrote:
>>
>>
>>
>> Can't seem to be getting an output.
> Overall I wrote my own version of the code and this is what I got:
>
>
> **
> import string
> import
On 29/9/2013 03:35, Νίκος wrote:
>
> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
> os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
>
> try:
> gi = pygeoip.GeoIP('/usr/local/share/GeoIPCity.dat')
> city = gi.time_zone_by_addr( ipval )
> host = socket.gethostbyaddr( ipv
On 29/9/2013 06:17, Νίκος wrote:
> Στις 29/9/2013 12:50 μμ, ο/η Dave Angel έγραψε:
>> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
>> os.environ.get('REMOTE_ADDR', "Cannot Resolve") )
>> try:
>> gi = pygeoip.GeoIP('/usr/l
On 29/9/2013 06:24, Νίκος wrote:
>
> except Exception as e: ===> except socket.gaierror as e:
> which cannot handle unicore realted errors and the exact same error
> appeared with my ip address involved at the error log.
>
> so, the question that arises again and reamins is how come 'host'
On 29/9/2013 07:14, Νίκος wrote:
> Dave's way though seems better.
> Assign the vars default string and if they get re-assinged correctly
> that would be ideal, otherwise we have already given them the defaults.
>
> ipval = ( os.environ.get('HTTP_CF_CONNECTING_IP') or
> os.environ.get('REMOTE_A
On 29/9/2013 07:25, Νίκος wrote:
>
> Thank you for being willing to look this further.
Willing, but probably not able. I think I know a lot about the
language, and less about the libraries. I know very little about the
administration side of internet use. The reference to /etc/hosts is
only a
On 30/9/2013 08:41, markot...@gmail.com wrote:
> under variables, i mean, the int's and lists and strings and floats that the
> parent class uses. IF in parent class there is variable called location, then
> can i use the same variable in my sub class.
Python doesn't actually have variables, bu
On 30/9/2013 15:54, melw...@gmail.com wrote:
> Lol, im starting to get the hang out of, onto the next hurdle, i looked up
> the error and it says the data is none?
>
> Traceback (most recent call last):
> File "guess.py", line 34, in
> main(random.randint(1, 10))
> File "guess.py", line
On 2/10/2013 06:01, Robin Becker wrote:
> On 02/10/2013 10:00, Robin Becker wrote:
>> On 01/10/2013 18:26, MRAB wrote:
>>> On 01/10/2013 17:41, Robin Becker wrote:
>> ..
>>> I've tried it in a minimal console program, and it seems to work for me.
>>>
>> thanks for the test. I thought
On 2/10/2013 07:28, Robin Becker wrote:
> The actual is this code from _renderPM.c
>
> https://bitbucket.org/rptlab/reportlab/src/fa65fe72b6c2aaecb7747bf14884adb996d8e87f/src/rl_addons/renderPM/_renderPM.c?at=default
>
> PyDoc_STRVAR(__DOC__,
> "Helper extension module for renderPM.\n\
> \n\
> In
On 1/10/2013 23:33, Michael Torrie wrote:
> On 10/01/2013 08:40 PM, Steven D'Aprano wrote:
>> On Tue, 01 Oct 2013 22:02:36 -0400, Joel Goldstick wrote:
>>
>>> On Tue, Oct 1, 2013 at 9:52 PM, Steven D'Aprano <
>>> steve+comp.lang.pyt...@pearwood.info> wrote:
>>>
Joel, you've been asked repeat
On 2/10/2013 21:24, Steven D'Aprano wrote:
> On Wed, 02 Oct 2013 18:17:06 -0400, Terry Reedy wrote:
>
>> CPython core developers have be very conservative about what
>> tranformations they put into the compiler. (1,2,3) can always be
>> compiled as a constant, and so it is. [1,2,3] might or might
On 3/10/2013 12:50, Chris Angelico wrote:
> On Fri, Oct 4, 2013 at 2:41 AM, Roy Smith wrote:
>> The downside to threads is that all of of this sharing makes them much
>> more complicated to use properly. You have to be aware of how all the
>> threads are interacting, and mediate access to shared
On 4/10/2013 05:30, David Palao wrote:
> Hello,
> I'm in charge of preparing a computer room for the practices of
> "introduction to programming".
> One of the tasks is checking that from all the computers in the room
> one can execute some programs and link (and compile) against some
> libraries.
On 8/10/2013 04:20, markot...@gmail.com wrote:
> I cant just subclassing doesent work.
I can't parse that "sentence."
> It seem the init method of the source class also calls out another
class. And the problem is, i can subclass the other class to with the required
function but the end result i
On 8/10/2013 10:28, kjaku...@gmail.com wrote:
> I have to define a function add(c1, c2), where c1 and c2 are capital letters;
> the return value should be the sum (obtained by converting the letters to
> numbers, adding mod 26, then converting back to a capital letter).
>
> All I have so far is
On 11/10/2013 07:09, Atsuo Ishimoto wrote:
> Hi,
>
> I've just released Kaa 0.0.4 to PyPI.
>
> https://pypi.python.org/pypi/kaaedit/
>
> Kaa is a easy yet powerful text editor for console user interface,
What's a "console user interface?" That's what Windows calls a "DOS
box". But otherwise
On 14/10/2013 01:34, Starriol wrote:
> Hi guys,
>
> I'm trying to search for several strings, which I have in a .txt file line by
> line, on another file.
> So the idea is, take input.txt and search for each line in that file in
> another file, let's call it rules.txt.
>
> So far, I've been able
On 18/10/2013 13:02, telconsta...@gmail.com wrote:
> Hey John,
>
> Thanks for the response. I really don't know why I didn't think about that. I
> decided to add the following statement:
>
> print root
>
> When I RUN, this is what I get:
> C:\My Documents\Netbeans\Mytests
>
> When I debug, this i
On 21/10/2013 17:19, Peter Cacioppi wrote:
> Just because the CPython implementation does something doesn't mean
If you're going to drop messages in here with no context, you'd be
better off just putting it in a bottle and tossing it into the sea.
Include a quote from whomever you're responding
On 22/10/2013 00:24, Mark Janssen wrote:
>> A language specification in BNF is just syntax. It doesn't say anything
>> about semantics. So how could this be used to produce executable C code
>> for a program? BNF is used to produce parsers. But a parser isn't
>> sufficient.
>
> A C program is just
On 22/10/2013 08:00, Steven D'Aprano wrote:
> On Tue, 22 Oct 2013 10:14:16 +0100, Oscar Benjamin wrote:
>
> Here's an example: responding to a benchmark showing a Haskell compiler
> generating faster code than a C compiler, somebody re-wrote the C code
> and got the opposite result:
>
> http
On 23/10/2013 16:24, Cesar Campana wrote:
> Hi!
>
> Im installing the python library for the version 2.7 but Im getting the
> error unable to find vcvarsall.bat
>
> I was looking on line but it says is related to Visual Studio...?
>
> Can you guys please help me to fix this...
>
The other respons
On 24/10/2013 21:38, Victor Hooi wrote:
> Hi,
>
> We have a directory of large CSV files that we'd like to process in Python.
>
> We process each input CSV, then generate a corresponding output CSV file.
>
> input CSV -> munging text, lookups etc. -> output CSV
>
> My question is, what's the most
On 24/10/2013 23:35, Steven D'Aprano wrote:
> On Fri, 25 Oct 2013 02:10:07 +0000, Dave Angel wrote:
>
>>> If I have multiple large CSV files to deal with, and I'm on a
>>> multi-core machine, is there anything else I can do to boost
>>> throughput?
On 25/10/2013 02:13, Chris Angelico wrote:
> On Fri, Oct 25, 2013 at 2:57 PM, Dave Angel wrote:
>> But I would concur -- probably they'll both give about the same speedup.
>> I just detest the pain that multithreading can bring, and tend to avoid
>> it if at all po
On 27/10/2013 03:31, Nick the Gr33k wrote:
> Στις 27/10/2013 6:00 πμ, ο/η ru...@yahoo.com έγραψε:
>
> I read it thoroughly and tested it and it works as it should.
>
> I just wanted to mention that the definition of the function coalesce()
> must come prior of:
>
>> newdata = coal
On 27/10/2013 11:31, Colin J. Williams wrote:
> On 27/10/2013 10:32 AM, David wrote:
>> I am an absolute beginner and am working through the book Python Programming
>> for the Absolute Beginner by Michael Dawson. Everything is fine except if I
>> run a scripted programme, or one I have download
On 29/10/2013 14:05, Robert Gonda wrote:
& >> Back to question, name is also not working, I currently have
python 3.3.2 and the only to get that work is the write raw_input, I
have no idea why, did i do soemthing wrong?
Why did you add those two >> symbols in front of your new text? Each
such
On 29/10/2013 14:35, jonas.thornv...@gmail.com wrote:
(Deleting hundreds of quad-spaced garbage. Please be more considerate
of others if you choose to use buggy googlegroups, maybe starting by
studying:
)
Please indent by 4 columns, not 1. Since indentation is how scope is
specified in Python,
On 29/10/2013 15:15, Robert Gonda wrote:
(once again deleting all the double-spaced Googlegroups nonsense)
>
&& >>Hi dave, yes you was right. I had python 2.7 but I upgraded to
python 3 now, thanks for help :) by the way, is this showing normally?
No, you're still adding a ">" character before t
On 29/10/2013 16:11, jonas.thornv...@gmail.com wrote:
> Den tisdagen den 29:e oktober 2013 kl. 21:08:39 UTC+1 skrev
> jonas.t...@gmail.com:
>> Den tisdagen den 29:e oktober 2013 kl. 20:24:57 UTC+1 skrev Dave Angel:
>
> They could had used print and prinln from basic? I do
1201 - 1300 of 2684 matches
Mail list logo