Simple Python Sandbox Howdy-ho. So, I'm working on a project which embeds Python into a bigger system to provide extensibility. In this project, there's basically two types of people who will be entering python code. The trusted folks, who write code which are in files, and which can do anything. The untrusted folks, who are wri... 13 Aug 2010 20:08
math symbols in unicode (grouped by purpose) some collection of math symbols in unicode. ⢠Math Symbols in Unicode http://xahlee.org/comp/unicode_math_operators.html ⢠Arrows in Unicode http://xahlee.org/comp/unicode_arrows.html ⢠Matching Brackets in Unicode http://xahlee.org/comp/unicode_matching_brackets.html these are grouped by the... 13 Aug 2010 17:56
Help to convert Number to String I am trying to count the number of lines in a file and insert into the file but getting the error message "TypeError: must be string or read-only character buffer, not int", Could you please help me how to correct this? here is the code lines1 = sum(1 for line in open('C:/test1.txt')) wfile = open('C:/test... 13 Aug 2010 21:13
Dump logging configuration Hi all! Sorry for dumb question if it is - I'd tried to google it before but have found nothing. Is there any way to dump current logging configuration for future loading it via fileConfig/dictConfig? ... 13 Aug 2010 16:51
struct pointing to another struct? say i have this definition: 1 typedef struct SDL_Surface { 2 Uint32 flags; /* Read-only */ 3 SDL_PixelFormat *format; /* Read-only */ 4 int w, h; /* Read-only */ 5 Uint16 pitch; /* Read... 13 Aug 2010 17:56
Python Tutorial Hello, I plan to make a new python tutorial and I'd like to collaborate with someone on it. I'm thinking of a slightly different approach than existing tutorials: the idea is that readers will learn from examples, going from small but complete and useful scripts to larger programs, similar to Django by Example: ... 13 Aug 2010 14:39
looping through possible combinations of McNuggets packs of 6, 9and 20 Hi News 123, Ok i'm getting closer. I am able to write code that will output values that can be bought in exact quantity (truelist) and values that cannot be bought in exact quantities. For a range up to 29 i get this: true [6, 9, 12, 15, 18, 20, 21, 24, 26, 27, 29] false [0, 1, 2, 3, 4, 5, 7, 8, 10, 11, 13, ... 13 Aug 2010 15:45
how to make portable distribution of python 2.6? All greetings! How to make portable distribution of python 2.6? ... 13 Aug 2010 14:39
text to DB I have a text file in this format PRA 1:13 2:20 3:5 SRA 1:45 2:75 3:9 TRA 1:2 2:65 3:45 pattern is- Book Chapter:Verses now i have my DB schema like this book_id chapter_id versed_id 1 1 13 1 2 20 1 3 5 2 1 45 2 2 75 2 3 9 3 1 2 3 2 65 3 3 45 I want to write a pyhton script whi... 13 Aug 2010 14:39
Embedding, subinterpreters and dynamic types Hi, this is my first contact with the python community so I hope this is the right place for my two questions. They are both related to embedding and extending python. I'm writing a program that dynamically loads c++ modules that extend the functionality of my program. These modules are controlled by scripts. Cu... 13 Aug 2010 13:34
Deditor -- pythonic text-editor Hey, I've finished my second version of deditor, a python text-editor for python under linux. It offers some python-only features like an interpreter, a code- analyzer, syntax-highlighting,... Are there some people in here who would like to test the app? (and maybe even help spread it) more info can be fou... 13 Aug 2010 07:02
writing \feff at the begining of a file Hello python world, I'm trying to update the content of a $Microsoft$ VC2005 project files using a python application. Since those files are XML data, I assumed I could easily do that. My problem is that VC somehow thinks that the file is corrupted and update the file like the following: -<?xml version='1... 13 Aug 2010 19:03
How do I get number of files in a particular directory. Hi, all, Is there a way to get a number of files in a particular directory? I tried using os.walk, os.listdir but they are return me with a list, tuple of the files, etc. But I want it to return a number. Is it possible? ... 13 Aug 2010 15:45
extra rows in a CSV module output when viewed in excel 2007 The subject basically says it all, here's the code that's producing the csv file: def write2CSV(self,output): writer = csv.writer(open(output, 'w'), dialect='excel') writer.writerow(['Name','Description','Due Date','Subject', 'Grade','Maximum Grade', self.name, self.... 13 Aug 2010 03:49
looping through possible combinations of McNuggets packs of 6, 9 and 20 In message <mailman.1996.1281605023.1673.python-list(a)python.org>, Jean- Michel Pichavant wrote: for mcNugget in range(0,10): sendTo(trashbin) Ah, but should that be mcNugget.sendTo(trashbin) or trashbin.insert(mcNugget) ? ... 13 Aug 2010 01:41
morethen 34,100,617 active members r waiting 4 live hot chat, dating ... morethen 34,100,617 active members r waiting 4 live hot chat, dating ... free and eazy to meet and enjoy.... just click.... start.... http://adultfriendfinder.com/go/page/reg_form_video_03?pid=g1250650-ppc http://adultfriendfinder.com/go/page/reg_form_video_03?pid=g1250650-ppc http://adultfriendfind... 13 Aug 2010 00:36
Importing libs on Windows? I've seen a number of tutorials that describe how to bring in a dll in python, but does anybody know of a tutorial for how to bring in a lib? Is it even possible? Thanks, in advance! ... 13 Aug 2010 05:57
Distress sale /Dubai/JLT/Shop/Full lake view/050-8320722 Distress sale /Dubai/JLT/Shop/Full lake view/050-8320722 Jumeirah Lake towers Lake Terrace Shops directly on the lake walk full lake view for sale Lake Terrance size: 538 sq ft selling price: AED675,500.00(AED1250per/sqft)+ Transfer Fee 2% +Broker Fee 2% Jumeirah Lake Towers (JLT) is a developed land of man-made lak... 12 Aug 2010 18:04 |