473,543 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Python Forum

Python programming language - Ask questions about python interpreter, control flow, data structures, modules errors, classes, standard library, gui, databases, unit testing, object oriented, structured programming and more.
0
189
thread by: Gordon Fraser | last post Oct 7 '08 by: Gordon Fraser
Hi, Am Dienstag, den 07.10.2008, 15:30 +0100 schrieb Orestis Markou: That seems to work, thanks. Still trying to make sense of the manual for eval, as it says if the passed globals dict lacks '__builtins__' it will copy the current globals, and if no dict is passed it will use the current globals (so what's the difference?). But anyway,...
0
189
thread by: Joe Strout | last post Oct 7 '08 by: Joe Strout
On Oct 7, 2008, at 8:43 AM, Benjamin Kaplan wrote: Yes, but with significant differences between different Python distributions, you might be safer bundling whatever version of Python your app requires with the app itself. Otherwise, you risk your app failing (and probably puking up runtime exceptions all over the poor user's lap) on...
0
188
thread by: Robert Kern | last post Jun 27 '08 by: Robert Kern
Marlin Rowley wrote: Endianness, perhaps? '!' specifies big-endian data (an alias for '>'). Most likely, you are on a little-endian platform. All of the dtypes in numpy default to the native-endianness unless specified. If you want to read big-endian data using numpy, do this: frgba = numpy.frombuffer(<string of bytes>, dtype='>f') If...
3
188
thread by: John Salerno | last post Jun 27 '08 by: Bruno Desthuilliers
"Bruno Desthuilliers" <bruno.42.desthuilliers@websiteburo.invalidwrote in message news:4836747b$0$15488$426a74cc@news.free.fr... Yes, I have, but I probably don't understand it well enough yet. For example, I don't really know what is meant by phrases like "build a model", "the view registers itself with the model", "interations are sent to...
2
188
thread by: Stef Mientki | last post Jul 29 '08 by: Grant Edwards
Terry Reedy wrote: thanks Terry and others, brings me to one other question: I guess this function is only evaluated once, is that correct ? about os.curdir, I checked it, it's already a constant ;-) and because I use afterwards: os.path.abspath('.'')
0
188
thread by: Emile van Sebille | last post Aug 7 '08 by: Emile van Sebille
Laszlo Nagy wrote: Hmm... I wrote an browser based analysis tool and used the working name pyvot... I found Numeric to provide the best balance of memory footprint and speed. I also segregated data prep into a separate process to avoid excessive memory use at run time. Turns out python For the site I'm at, I've got 10 years sales...
0
188
thread by: Patrick Mullen | last post Aug 10 '08 by: Patrick Mullen
How about: class A: def add(self,x,y): return x+y class B(A): pass print B().add(1, 2)
0
188
thread by: Fredrik Lundh | last post Aug 19 '08 by: Fredrik Lundh
Edwin.Madari@VerizonWireless.com wrote: why? </F>
0
188
thread by: Gabriel Genellina | last post Sep 9 '08 by: Gabriel Genellina
En Tue, 09 Sep 2008 05:53:19 -0300, Beema Shafreen <beema.shafreen@gmail.comescribió: Ensure that you don't have *another* Bio module that is being imported instead of the true one. -- Gabriel Genellina
3
188
thread by: Colin J. Williams | last post Sep 20 '08 by: Colin J. Williams
candide wrote: "foreach: for x in array: statements Loops over the array given by array. On each iteration, the value of the current element is assigned to x and the internal array pointer is advanced by one. " This could be a useful addition to Python.
0
188
thread by: Steve Holden | last post Oct 8 '08 by: Steve Holden
sa6113 wrote: Yes, 192.168.1.4 should have an ssh daemon (normally sshd) running and listening on port 22. It's fairly easy software to install. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC http://www.holdenweb.com/
0
188
thread by: Guilherme Polo | last post Oct 29 '08 by: Guilherme Polo
On 10/29/08, Guilherme Polo <ggpolo@gmail.comwrote: oops, wrong list. -- -- Guilherme H. Polo Goncalves
0
187
thread by: daniel | last post Oct 30 '07 by: daniel
I'm trying to use PAMIE to automate some web browsing. My problem is with the buttonClick() method; it seems to work unless the button is supposed to open a new window. Specifically, the button is supposed to open a PDF Preview in a new window. Any ideas? Daniel
0
187
thread by: Gabriel Rossetti | last post Jun 27 '08 by: Gabriel Rossetti
Gabriel Genellina wrote: Ok, I'll file one then. Yes, true, but if you intend to use it as an integer, wouldn't you use a numeric value instead of a character literal?
0
187
thread by: Calvin Spealman | last post Jul 17 '08 by: Calvin Spealman
On Thu, Jul 17, 2008 at 7:45 AM, mk <mrkafk@gmail.comwrote: As was pointed out already, this is a basic misunderstanding of assignment, which is common with people learning Python. To your actual problem... Why do you wanna do this anyway? If you want to change the function in the dictionary, why don't you simply define the functions...
0
187
thread by: Gabriel Genellina | last post Jul 30 '08 by: Gabriel Genellina
En Tue, 29 Jul 2008 17:00:40 -0300, Terry Reedy <tjreedy@udel.edu> escribi�: Just as a side note, setting QuickEdit on by default is not as good idea as it may appear. If you click or drag accidentally with the mouse over the console, the running program is blocked indefinitely (waiting for the selection to be completed; someone has to...
0
187
thread by: Vaibhav.bhawsar | last post Oct 7 '08 by: Vaibhav.bhawsar
Hi, Does anyone know of a package that will allow me to output an opengl context as a PDF (or postscript)? I am using pyglet to render something on screen that i want to save as PDF. thanks! vaibhav
0
187
thread by: Peter Wang | last post Oct 7 '08 by: Peter Wang
"gita ziabari" <gitaziabari@gmail.comwrites: Why not use VBA for that work?
0
186
thread by: hkimball | last post Jan 7 '08 by: hkimball
I am trying to call a funtinon in a third party dll that spawns another exe and I am using ctypes. Python does not complain at all but the other process does not get spawned. It appears that I am gaining access to the functions but with no results. Any ideas? Thanks in advance. <_FuncPtr object at 0x00B7E378> 0 0
0
186
thread by: Marcin Krol | last post Jul 1 '08 by: Marcin Krol
Hello everyone, I'm trying to embed Python interpreter in C code, but in a specific way: loading compiled bytecode into a memory location and executing it (don't ask why, complicated reasons). PyImport_ExecCodeModule seems like obvious candidate, docs say: "Given a module name (possibly of the form package.module) and a code object...
0
186
thread by: Alexnb | last post Jul 17 '08 by: Alexnb
The trick to this one is that the html looks something like this: "<td width="100%" colspan="2"> american, /browse/blue blue , /browse/brick brick , brie, cheddar, cheshire, /browse/churn churn ,
0
186
thread by: Calvin Spealman | last post Aug 3 '08 by: Calvin Spealman
its a good point you make. if its not _technically_ immutable, why use __new__ when __init__ would work just as fine? well, if it should be treated as immutable, then we should do what we can to follow that, even in internal code that knows otherwise. Besides, maybe down the road, protections will be added to disallow assignment to _int, and...
0
186
thread by: hrishy | last post Sep 25 '08 by: hrishy
Hi Thank you very much I appreciate taking the pain to explain this to me. regards Hrishy --- On Thu, 25/9/08, sturlamolden <sturlamolden@yahoo.nowrote:
0
186
thread by: skip | last post Oct 9 '08 by: skip
TinoYeah, its a bit hard to spot: Tinohttp://docs.python.org/library/stdtypes.html#string-formatting-operations That shows how to use the template formatting as it currently exists. To my knowledge there is no support for the inverse operation, which is what Joe asked about. Given a string and a format string assign the elements of the...
1
186
thread by: Aditi Meher | last post Oct 14 '08 by: Jonathan Gardner
Hello I am connecting database using python,and i am inserting some data into it. e.g.name and roll nos(some 100 records are stored) My question is "I want to display 10 records at a time and want to store remaining records into buffer and after displaying 10 records again i want to display next 10 records." Can you please provide me...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.