Re: OSx 10.4 lacks pythonIDE?

2005-05-13 Thread B
On 13/5/05 03:35, in article [EMAIL PROTECTED], "Robert Kern" <[EMAIL PROTECTED]> wrote: > baza wrote: >> Where is the IDE in 'Tiger' for the mac? Don't tell me I have to use >> text edit all the time?? > > PythonIDE never came with the OS. You have to install it yourself. > > http://homepage

Re: OSx 10.4 lacks pythonIDE?

2005-05-13 Thread B
On 13/5/05 03:35, in article [EMAIL PROTECTED], "Robert Kern" <[EMAIL PROTECTED]> wrote: > baza wrote: >> Where is the IDE in 'Tiger' for the mac? Don't tell me I have to use >> text edit all the time?? > > PythonIDE never came with the OS. You have to install it yourself. > > http://homepage

Re: Build EXE on Mac OsX 10.4

2007-06-13 Thread -b
Okay. Great. Thanks for clarifying that for me. -- http://mail.python.org/mailman/listinfo/python-list

XML File -- dictionary edit/search

2007-08-27 Thread -b
I am trying to put together a python program that will be able to ask for a word and its definition, then save that information into an xml file for reference. I am not down right set on the file being in xml format, but xml is the first thing that comes to mind, since I do not want to use a MySQL

Re: os.walk question

2008-07-23 Thread B
Lanny wrote: How would one make a list of the files in the top directory using os.walk. I need to pick a random file from said list. Thanks. -- Posted on news://freenews.netfront.net - Complaints to [EMAIL PROTECTED] -- how about: import os x = os.walk('/') (root,dirs,files) = x.next

Recursion Performance Question

2008-07-23 Thread B
Hey I found some (VERY) old C++ code of mine that recursively built a tree of the desktop window handles (on windows) using: (they are stored in an STL vector) void FWL(HWND hwnd, int nFlag) // Recursive Function { hwnd = GetWindow(hwnd, nFlag); if(hwnd == NULL)

Re: Second python program: classes, sorting

2008-08-10 Thread B
WP wrote: Hello, here are some new things I've problems with. I've made a program that opens and reads a text file. Each line in the file contains a name and a score. I'm assuming the file has the correct format. Each name-score pair is used to instantiate a class Score I've written. This work

Re: like a "for loop" for a string

2008-08-17 Thread B
Alexnb wrote: Uhm, "string" and "non-string" are just that, words within the string. Here shall I dumb it down for you? string = "yes text1 yes text2 yes text3 no text4 yes text5+more Text yes text6 no text7 yes text8" It doesn't matter what is in the string, I want to be able to know exactl

Re: like a "for loop" for a string

2008-08-18 Thread B
Mensanator wrote: On Aug 17, 6:03�pm, B <[EMAIL PROTECTED]> wrote: Alexnb wrote: Uhm, "string" and "non-string" are just that, words within the string. Here shall I dumb it down for you? string = "yes text1 yes text2 yes text3 no text4 yes text5+more Text ye

Re: dict slice in python (translating perl to python)

2008-09-10 Thread B
for a long list, you could try: result = [mydict[k] for k in mydict] or [mydict[k] for k in mydict.keys()] or [mydict[k] for k in mydict.iterkeys()] this won't give you the same order as your code though, if you want them sorted you can use the sorted function: [mydict[k] fo

Re: dict slice in python (translating perl to python)

2008-09-10 Thread B
Fredrik Lundh wrote: B wrote: for a long list, you could try: result = [mydict[k] for k in mydict] or [mydict[k] for k in mydict.keys()] or [mydict[k] for k in mydict.iterkeys()] and the point of doing that instead of calling mydict.values() is what? It's more fun? Or i

Re: Problem with the "for" loop syntax

2013-06-19 Thread Arturo B
Mmmm Ok guys, thank you I'm really sure that isn't a weird character, it is a space. My Python version is 3.3.2, I've runed this code in Python 2.7.5, but it stills the same. I've done what you said but it doesn't work. Please Check it again here is better explained: http://snipplr.com/v

Re: Problem with the "for" loop syntax

2013-06-19 Thread Arturo B
Sorry, I'm new in here So, if you want to see the complete code I've fixed it: http://www.smipple.net/snippet/a7xrturo/Hangman%21%20%3A%29 And here is the part of code that doesn't work: #The error is marked in the whitespace between letter and in def displayBoard(HANGMANPICS, missedLetters,

Re: Problem with the "for" loop syntax

2013-06-19 Thread Arturo B
Fixed, the problem was in HANGMANPICS I didn't open the brackets. Thank you guys :) -- http://mail.python.org/mailman/listinfo/python-list

How is this evaluated

2013-07-04 Thread Arturo B
I'm making this exercise: (Python 3.3) Write a function translate() that will translate a text into "rövarspråket" (Swedish for "robber's language"). That is, double every consonant and place an occurrence of "o" in between. For example, translate("this is fun") should return the string "tothoh

Best python web framework to build university/academic website

2013-07-26 Thread b . krishna2020
Hi, I got a chance to build an university website, within very short period of time. I know web2py, little bit of Django, so please suggest me the best to build rapidly. Thanks in advance Raghu -- http://mail.python.org/mailman/listinfo/python-list

stuck in files!!

2012-07-06 Thread Chirag B
i want to kno how to link two applications using python for eg:notepad txt file and some docx file. like i wat to kno how to take path of those to files and run them simultaneously.like if i type something in notepad it has to come in wordpad whenever i run that code. -- http://mail.python.org/mai

questions (& answers) about object, type, builtin types, class, metaclass and __getattribute__

2011-08-22 Thread Amirouche B.
ct.__class__ is type 4) type parent object is object : type.__bases__ == (object,) B) type vs metaclass 1) type is the first metaclass ? 2) type is its own metaclass : type(type) is type ? 3) object's metaclass is type ? 4) other metaclasses *MUST* inherit type ? 5) type(any

Re: questions (& answers) about object, type, builtin types, class, metaclass and __getattribute__

2011-08-23 Thread Amirouche B.
On Aug 22, 1:57 pm, Steven D'Aprano wrote: > The relationship between type and object is somewhat special, and needs to > be bootstrapped by the CPython virtual machine. Since you are talking about CPython, I'm wondering how it is bootstraped since you can easly reference PyType in PyObject tha

Re: questions (& answers) about object, type, builtin types, class, metaclass and __getattribute__

2011-08-23 Thread Amirouche B.
On Aug 22, 5:41 pm, Stephen Hansen wrote: > > 3) object's type is type : object.__class__ is type > > 4) type parent object is object : type.__bases__ == (object,) > > Saying "type" and "parent" and the like for new-style classes is > something of a misnomer. For "type" and "object", these things

__hash__ and ordered vs. unordered collections

2017-11-20 Thread Josh B.
Suppose we're implementing an immutable collection type that comes in unordered and ordered flavors. Let's call them MyColl and MyOrderedColl. We implement __eq__ such that MyColl(some_elements) == MyOrderedColl(other_elements) iff set(some_elements) == set(other_elements). But MyOrderedColl(so

Re: __hash__ and ordered vs. unordered collections

2017-11-20 Thread Josh B.
On Monday, November 20, 2017 at 1:55:26 PM UTC-5, Chris Angelico wrote: > But what you have is the strangeness of non-transitive equality, which > is likely to cause problems. But this is exactly how Python's built-in dict and OrderedDict behave: >>> od = OrderedDict([(1, 0), (2, 0), (3, 0)]) >>>

Re: __hash__ and ordered vs. unordered collections

2017-11-20 Thread Josh B.
On Monday, November 20, 2017 at 2:31:40 PM UTC-5, MRAB wrote: > What if there are duplicate elements? > > Should that be MyColl(some_elements) == MyOrderedColl(other_elements) > iff len(some_elements) == len(other_elements) and set(some_elements) == > set(other_elements)? Yes, that's what I mea

Re: __hash__ and ordered vs. unordered collections

2017-11-21 Thread Josh B.
On Monday, November 20, 2017 at 3:17:49 PM UTC-5, Chris Angelico wrote: > Neither is perfect. You have to take your pick between them. Right on, thanks for weighing in, Chris. Your responses have been very helpful. I wouldn't feel comfortable claiming the authority to make this call alone. But f

Update from 3.9 to 3.10.8 and uninstall 3.9

2022-10-23 Thread B N
I am new to python and wish to update 3.9 to3.10.8 which I have downloaded. How do I replace 3.9 with the 3.10.8 I downloaded. Kind regards JohnGee -- https://mail.python.org/mailman/listinfo/python-list

Module use of python3_d.dll conflicts with this version of Python

2023-01-26 Thread Olivier B.
Hi,I am in the process of trying to make my code (an c++ executable and swig modules using the Python C API) lose the dependency to python 3.7, to be compatible with all Python 3.2+ I tried linking to python.lib instead of python37.lib. As i am still using a few things that are not in the limited

Re: Bug 3.11.x behavioral, open file buffers not flushed til file closed.

2023-03-05 Thread Frank B
Am 05.03.23 um 15:35 schrieb aapost: I have run in to this a few times and finally reproduced it. Whether it is as expected I am not sure since it is slightly on the user, but I can think of scenarios where this would be undesirable behavior.. This occurs on 3.11.1 and 3.11.2 using debian 12 te

Best Practices for Internal Package Structure

2016-04-04 Thread Josh B.
My package, available at https://github.com/jab/bidict, is currently laid out like this: bidict/ ├── __init__.py ├── _bidict.py ├── _common.py ├── _frozen.py ├── _loose.py ├── _named.py ├── _ordered.py ├── compat.py ├── util.py I'd like to get some more feedback on a question about this layout

[no subject]

2016-04-17 Thread B N
Foor ages, I have been trying to summon up courage learn how to program. I chose o start with Python. I found that when the “black” screen comes on, I am unable to read/see any characters even if I turn up the brightness of the screen. So, I give up. I tried version 3.5.1. I shall be grateful fo

reactive programming use case

2020-03-11 Thread Raf B
hi, i am thinking about using RxPy to solve the following problem, and not yet sure if its the right tool for the job. I am working on a calculation engine, that takes a dataset (or multiple sets) and calculates new columns. so in pandas terms, it starts as DataFrame, and then i run it thro

A 'find' utility that continues through zipped directory structure?

2005-09-26 Thread B Mahoney
Is there a Python 'find' -like utility that will continue the file search through any zippped directory structure on the find path? -- http://mail.python.org/mailman/listinfo/python-list

Re: A 'find' utility that continues through zipped directory structure?

2005-09-27 Thread B Mahoney
An effbot utility? I'll try that. Thank you -- http://mail.python.org/mailman/listinfo/python-list

Re: Well written open source Python apps

2005-10-14 Thread B Mahoney
The paper on BitPim http://bitpim.sourceforge.net/papers/baypiggies/ lists and describes programs and ideas used for the project. Some of it is just bullet-points, but everything seems to be well chosen. I've swiped a lot of these ideas. -- http://mail.python.org/mailman/listinfo/python-list

Expat - how to UseForeignDTD

2005-10-19 Thread B Mahoney
I have a simple Kid template document: http://www.w3.org/1999/xhtml"; xmlns:py="http://purl.org/kid/ns#"; > ... (snip) This runs as expected but now I would like to load a DTD without tampering with this xml file In the expat parser __init__ after setting other handlers for parser, I h

Re: Expat - how to UseForeignDTD

2005-10-20 Thread B Mahoney
I needed to set Entity Parsing, such as parser.SetParamEntityParsing( expat.XML_PARAM_ENTITY_PARSING_ALWAYS ) -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding the arguments for SubElement factory in ElementTree

2005-10-29 Thread B Mahoney
Your SubElement call is lacking the attrib argument, but you can't set text, anyway. The elementtree source makes it clear, you can only set element attrib attributes with SubElement def SubElement(parent, tag, attrib={}, **extra): attrib = attrib.copy() attrib.update(extra) element =

Re: Invoking Python from Python

2005-11-09 Thread B Mahoney
I also think something along the lines of execfile() may serve the original poster. There was a thread last month about compile() and exec() with a concise example from Fredrik Lundh. Google "Changing an AST" in this group. With dynamically generated code I prefer the separate compile() step so

Re: Python-based Document Management System?

2005-11-10 Thread B Mahoney
If you search for CONTENT management system, there is Plone: A user-friendly and powerful open source Content Management ... http://plone.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a function access its own name?

2005-11-19 Thread B Mahoney
Decorate any function with @aboutme(), which will print the function name each time the function is called. All the 'hello' stuff is in the aboutme() decorator code. There is no code in the decorated functions themselves doing anything to telling us the function name. # The decorator def aboutme

Re: Detect character encoding

2005-12-04 Thread B Mahoney
You may want to look at some Python Cookbook recipes, such as http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52257 "Auto-detect XML encoding" by Paul Prescod -- http://mail.python.org/mailman/listinfo/python-list

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-07 Thread B Mahoney
>>No way. Ant sucks. Big-time. I actually enhance it with embedded jython >>to get at least _some_ flexibility. >>Diez Any pointers to this enhancement? -- http://mail.python.org/mailman/listinfo/python-list

Re: newbie ?s

2005-01-13 Thread Venkat B
> > 1) I was wondering if anyone has opinions on the ability of CGIHTTPServer (a > > forking variant) to be able to handle this. > > Why not use apache? Wanted something with less footprint. -- http://mail.python.org/mailman/listinfo/python-list

newbie ?s

2005-01-13 Thread Venkat B
Hi folks, I'm looking build a CGI-capable SSL-enabled web-server around Python 2.4 on Linux. It is to handle ~25 hits possibly arriving "at once". Content is non-static and built by the execution of py cgi-scripts talking to a few backend processes. 1) I was wondering if anyone has opinions on th

python newt under win32

2005-01-23 Thread Gabriel B.
Anyone has any info if there's something similar to Newt lib for win32? Thanks Gabriel -- http://mail.python.org/mailman/listinfo/python-list

add indexes on the fly to lists

2005-01-24 Thread Gabriel B.
I wanted to make a list index work as the index of the data in the database. something like database: idx item_description item_value being imported to my program as: x[idx][0]= item_description x[idx][1]= item_value the problem is that there will be some hundred items and possible the idx wil v

is this use of lists normal?

2005-01-24 Thread Gabriel B.
I just sent an email asking for hints on how to import data into a python program As i said earlier i'm really new to python and besides being confortable with the syntax, i'm not sure if i'm on the right track with the logic I'm asking for hints again here at the list because i think i'm already

tk global bindings

2005-01-29 Thread Gabriel B.
I'm starting to write a POS application UI's module. There's no mouse, just a bunch of global shortcuts. the problem is that TK doesn't have global shortcuts! Is there a work-around or i will have to attach 80 or so bindings for every input element? Thanks, Gabriel -- http://mail.python.org/mai

naive doc question

2005-01-29 Thread Gabriel B.
Is it just me that can't find a full reference in the docs? I wanted a list of all the methods of dict for example... where can i find it? Thanks, and sorry if this question is just dumb, i really can't find it -- http://mail.python.org/mailman/listinfo/python-list

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
> > users. For example, from their FAQ, it seems that no precompiled > > binaries will be provided. Support for comercial compilers will not be > > built in, only for gcc (through Cygwin?). > > Isn't this just the same thing with a different spin. There was always > an available distribution for

trolltech comitment (was:Big development in the GUI realm)

2005-02-08 Thread Gabriel B.
On Mon, 07 Feb 2005 20:56:44 -0800, Courageous <[EMAIL PROTECTED]> wrote: > Follow the copyright holder's wishes. > > That's fair. After all, it's free, so they're doing you a damn > big favor. I'm terrible sorry to extend this topic even furter, but it's silly, not to say dull to think like that

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
> >>Considering the fact that the Qt DLL exist by themselves, that the > >>version used is the one provided by Qt, and that the EXE uses a > >>standard, open way to communicate with it, the above does seem to say > >>this use would be valid. > >> > >> > > > >http://www.gnu.org/licenses/gpl-faq.

Re: Big development in the GUI realm

2005-02-08 Thread Gabriel B.
> However, imagine simple situation: > 1. I write proprietary program with open plugin api. I even make the api > itself public domain. Program works by itself, does not contain any > GPL-ed code. No need to continue. You write something that uses a plugin, Eolas sues you. Don't have to mind about

Re: tk global bindings

2005-02-08 Thread Gabriel B.
> Oh and you of course __must__ look at the (recently updated!) New Mexico > Tech tkinter document at: > http://infohost.nmt.edu/tcc/help/pubs/tkinter.pdf > > See page 75 and follwing for more info on keyboard bindings... Thanks, i was looking down that doc because the first thing i looked into i

tcl/tk naming scheme vs python's

2005-02-08 Thread Gabriel B.
I got my self writting nested objects to hold Tk references, then i realizes that i was working in python and not tcl, so i switched to flat vars... and in no time i was using more then 7 words separated by captalization in the names... i was able to rethink my scheme to use 5... no less. i'm i ex

tk resource file for geometry?

2005-02-12 Thread Gabriel B.
i'm using almost every widget property from my pyTk programs in the form of resources, like: self.tk.option_add ( "*InputClass*background", "White" ) In the widget creation i have only the Class and the Command attribute, but i'm having to add some tk options to the geometry method, in the case,

Why Tk treat F10, F11, F12 diferently from F1...F9?

2005-02-12 Thread Gabriel B.
This is completely odd to me... # Bind F1...F12 to <> self.tk.event_add( '<>', # keys used to switch between the tabs '','','','','', '','','','','', '','' ) self.master.bind_all('<>', self.__functionKeysPressed ) def __functionKeysPressed(self, event): print e

Re: Why Tk treat F10, F11, F12 diferently from F1...F9?

2005-02-12 Thread Gabriel B.
On Sat, 12 Feb 2005 19:44:25 -0600, Jeff Epler <[EMAIL PROTECTED]> wrote: > The reason that F10 does nothing is because there is already a binding > on all for . [...] > If you want to get rid of this binding, you would do it with something > like > w.bind_all("", "") > for some widget w. That

DB Schema

2005-02-18 Thread Gabriel B.
I started to use dbschema.com but it has some big flaws (mainly regarding keys and mysql) and besides it's being in java (wich i don't like to code at all) it's closed source. I'm considering starting a new GPL one in python, so, i ask if you people already know a project like that. Thanks, Gabri

simple input that can understand special keys?

2005-02-26 Thread Gabriel B.
i'm writting an application that will use Tinker in a newer future. Now it's console only. I simply ommit some data on the display, print() some other and go on. The problem is that i can't test the actions tiggered by special keys, like Page Up/Down or the F1...12 Right now i'm using raw_input()

Re: BaseHTTPServer.BaseHTTPRequestHandler and HTTP chunking

2005-03-10 Thread Venkat B
> No. Hardly any HTTP 1.1 features are supported. Hi all, I'd like to know more about the limitations. Somewhere, is there a list of the actual subset of HTTP 1.1 features supported. There's not much related info at the python.org site. There appears to be just a limited note on 1.1 in http://ww

Re: Web framework

2005-03-13 Thread Venkat B
> I'd say Nevow! For apache setup, you might be interested in my wsgi [1] > implementation. Hi Sridhar, Are you aware of Nevow's "integrability" with the webservers (CGIHTTPServer in particular) that come packaged with Python itself ? Thanks, /venkat -- http://mail.python.org/mailman/listinfo

Re: Video Catalogue

2004-12-01 Thread Tom B.
"Rodney Dangerfield" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Greetz! > > Recently I started creating a CGI application for my gf that > she would use for indexing and keeping track of her video > collection. > > I am relatively new to python so I started with the basics. > I

Python & LEGO Mindstorm control...

2005-03-29 Thread Venkat B
Hi all, I have a question re the use of Python to control a robot built with the LEGO Mindstorm system. This is to help my 11yr old with his increased interest in 'programming' and 'robotics'... If not feasible, he wants to use the graphical-tool that comes with it... Would you suggest: 1. Using

Python 2.4.1 build (configure) ?

2005-03-30 Thread Venkat B
Hi all, While building the latest 2.4.1 version for Linux/RH9, I wanted to enable IPV6 support (sockets). So, I ran the configure command ./configure --enable-ipv6 Then I ran the 'make' and 'make altinstall' commands. When I checked the .py sources (in Lib folder) thru grep for 'ipv6', I see the

mini_httpd (ACME Labs) & Python 2.4.1 integration

2005-04-03 Thread Venkat B
Hi folks,I have a webserver based on mini_httpd v1.19(http://www.acme.com/software/mini_httpd/).I'd like to run some python-based CGI scripts via this webserver on an RH9 system.In theory, with the right env settings, Ishould be able to launch mini_httpd like so: mini_httpd -c *.pyand be able to ru

Re: mini_httpd (ACME Labs) & Python 2.4.1 integration

2005-04-04 Thread Venkat B
We found the answer, just in case one was looking for it... I turns out that setting the environment params (CGI_PATH & CGI_LD_LIB_PATH) is not sufficient. One has to still add the path entry to the script itself... like so: #! /python2.4 May also work with ensuring env variable PYTHONPATH is set

Re: workaround for generating gui tools

2005-04-11 Thread Gabriel B.
On Apr 10, 2005 11:08 PM, Bengt Richter <[EMAIL PROTECTED]> wrote: > On Sat, 9 Apr 2005 19:22:16 +0200, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > open('mywidget_v2.txt','w').write(repr(mywidget.textview) How about a pickle hook? You'd just unpack the pickle data, and end up with a pointer

Bug asking for input number

2013-11-15 Thread Arturo B
Hi! I hope you can help me. I'm writting a simple piece of code. I need to keep asking for a number until it has all this specifications: - It is a number - It's lenght is 3 - The hundred's digit differs from the one's digit by at least two My problem is that I enter a valid number like: 123, 32

Re: Bug asking for input number

2013-11-15 Thread Arturo B
MRAB your solution is good thank you I will use it. Terry Eddy I saw my mistake about for example 2 <= 2, I think it's easier to use break in this case thank you! -- https://mail.python.org/mailman/listinfo/python-list

How is this list comprehension evaluated?

2013-09-16 Thread Arturo B
Hello, I'm making Python mini-projects and now I'm making a Latin Square (Latin Square: http://en.wikipedia.org/wiki/Latin_square) So, I started watching example code and I found this question on Stackoverflow: http://stackoverflow.com/questions/5313900/generating-cyclic-permutations-reduced-la

Understanding how is a function evaluated using recursion

2013-09-25 Thread Arturo B
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 don't understand): def flatten(l): ret = [] for i

OBIEE Developer and Administrator @ Seattle WA

2015-08-13 Thread Amrish B
Hello Folks, Please go through below job description and send me updated resume to amr...@uniteditinc.com Job Title: OBIEE Developer and Administrator Location: Seattle WA Duration: 12+months Experience: 10+ years only Job Description: * maintain the Oracle Business Intelligence Enterp

try/except/finally

2014-06-06 Thread Frank B
Ok; this is a bit esoteric. So finally is executed regardless of whether an exception occurs, so states the docs. But, I thought, if I from my function first, that should take precedence. au contraire Turns out that if you do this: try: failingthing() except FailException: return 0 fina

Re: try/except/finally

2014-06-06 Thread Frank B
Ok; thanks for the underscore and clarification. Just need to adjust my thinking a bit. -- https://mail.python.org/mailman/listinfo/python-list

online data entry jobs

2011-12-15 Thread vengal b
online data entry jobs http://venuonlinejobs.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

Convert Latitude, Longitude To TimeZone

2013-03-31 Thread Steve B
Hi All I'm new to python (4 days J) and was wondering if anyone out there can help me I am trying to get the time zones for latitude and longitude coordinates but am having a few problems The mistakes are probably very basic I have a table in a database with around 600 rows. Each row

Changing a shell's current directory with python

2005-12-18 Thread Andy B.
I've got a python utility that I want to change my shell's current directory based on criteria it finds. I've scoured google and the python cookbook and can't seem to figure out if this is even possible. So far, all my attempts have changed the current python session only. Am I going to have to

Re: Changing a shell's current directory with python

2005-12-18 Thread Andy B.
Many thanks for the sanity check. Just wanted to check with the gurus before heading down another path. -A On 12/18/05, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On Sun, 18 Dec 2005 15:53:11 -0800, "Andy B." <[EMAIL PROTECTED]> > declaimed the following in comp

soap comlex data to plain xml

2006-08-18 Thread Ig B
Hi all,would anyone give me a hint how to get SOAP data as plain XML and not as complex datathis is sample code:  myProxy = SOAPpy.SOAPProxy(MY_SERVICE_PATH, header = my_headers)  query = SOAPpy.structType ()  result = myProxy.callMyProcedure(query)  result returned as complex data, but i need pla

Re: Standard Forth versus Python: a case study

2006-10-13 Thread B M
i hang my head in shame. On 10/12/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > At Thursday 12/10/2006 17:44, [EMAIL PROTECTED] wrote: > > > > > > fun median { > > > > > var x = 0. > > > > > while( *p++) { > > > > > if( (*p) > x) x = *p. > > > > > } > > > > > return x. > > > > >

Re: Running External Commands + Seeing when they are Finished

2006-05-29 Thread Tommy B
It works! Gasp! Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Get EXE (made with py2exe) path directory name

2006-06-05 Thread Andrei B
I need to get absolute path name of a file that's in the same dir as the exe, however the Current Working Directory is changed to somthing else. I turn my script into an executable with py2exe, then I create a shortcut to the EXE on the desktop. I change the "Start In" variable of the shortcut "C:

Writing to a certain line?

2006-06-05 Thread Tommy B
I was wondering if there was a way to take a txt file and, while keeping most of it, replace only one line. See, I'd have a file like: Tommy 555 Bob 62 Joe 529 And I'd want to set it to be: Tommy 555 Bob 66 Joe 529 Is there any easy way to do this? -- http://mail.python.org/mailman/listinfo/p

Re: Writing to a certain line?

2006-06-06 Thread Tommy B
bruno at modulix wrote: > Tommy B wrote: > > I was wondering if there was a way to take a txt file and, while > > keeping most of it, replace only one line. > > > This is a FAQ (while I don't know if it's in the FAQ !-), and is in no > way a Python problem. F

pysqlite error: Database locked?

2006-06-06 Thread Tommy B
I'm currently working on a casino script for an IRC bot. I was going to make a flat file database, but I decided to make it sqlite after some suggestions. I'm using pysqlite. http://pastebin.com/764315 < Source. The lines that have @@ (pastebin doesn't like me) in front of them are important. ERR

Re: all ip addresses of machines in the local network

2006-08-25 Thread Ognjen B
Amit Khemka wrote: > On 23 Aug 2006 21:46:21 -0700, damacy <[EMAIL PROTECTED]> wrote: > >> hi, sandra. >> >> no, it's not as complicated as that. all i want to do is to load a >> database onto different machines residing in the same network. i hope >> there is a way doing it. or perhaps i have a

Re: Need some help here

2006-09-20 Thread Colin B.
In comp.unix.solaris Kareem840 <[EMAIL PROTECTED]> wrote: > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you. Better idea. S

Re: Need some help here

2006-09-20 Thread John B
Kareem840 wrote: > Hello. Unfortunately, I am in need of money to pay my credit card > bills. If you could spare just $1, I would be grateful. I have a Paypal > account. [EMAIL PROTECTED] I swear this will go to my card > balances. Thank you. > I accidentally sent $2, could you please refund the e

Re: Should we still be learning this?

2006-02-18 Thread B Mahoney
I was initally annoyed that "Dive into Python" has the UserDict, but it was so easy to discover it was deprecated http://docs.python.org/lib/module-UserDict.html (althought the term 'deprecated' is not specifically used), that anyone on the ball (the OP seemed to know) would not based their next bi

warning for google api users

2006-02-21 Thread Gabriel B.
ocess to import the index and or it explode in some point or they simply kill it after some time). and they obviously don't run that process very often. Now... anyone has some implementation of pygoogle.py that scraps the regular html service instead of using SOAP? :) Gabriel B. -- http://mai

Re: How to send an email with non-ascii characters in Python

2006-02-25 Thread Gabriel B.
2006/2/25, Sybren Stuvel <[EMAIL PROTECTED]>: > Lad enlightened us with: > > Body='Rídících Márinka a Školák Kája > > Marík'.decode('utf8').encode('windows-1250')# I use the text written > > in my editor with utf-8 coding, so first I decode and then encode to > > windows-1250 what does a string be

Re: comple list slices

2006-02-28 Thread shandy . b
A couple questions: 1- what is j? 2- what does the rows[x][y] object look like? I assume it's a dict that has a "rowspan" key. Can rows[x][y]["rowspan"] sometimes be 0? Perhaps you're looking for something like this: rowgroups = [] rowspan = 0 for i in range( len(rows) ): if rowspan <= 0:

scope acting weird

2005-05-01 Thread Gabriel B.
i have the following code: Ui.py: import Tkinter as Tk import UiMainScreen UiMainScreen.py: class UiMainScreen( Tk.Frame ): and i get the following error: File "UiMainScreen.py", line 1, in ? class UiMainScreen(Tk.Frame): NameError: name 'Tk' is not defined isn't Tk supposed to b

OK

2005-05-13 Thread =??B?xqS088fs?=
-- http://mail.python.org/mailman/listinfo/python-list

Ok

2005-05-13 Thread =??B?xqS088fs?=
-- http://mail.python.org/mailman/listinfo/python-list

Re: I need some cleanings tips and advice.

2007-06-22 Thread Colin B.
In comp.lang.perl.misc [EMAIL PROTECTED] wrote: > Me and my buddy made a website called www.stupidpinheads.com, its > basically a free forum and free blog driven web site dedicated as a > source people can goto to find out how to clean and remove stains from > pretty much anything. Problem is, as

New-style classes and special methods

2007-05-30 Thread Raj B
Hi My question is about how special methods are stored internally in Python objects. Consider a new-style class which implements special methods such as __call__ and __new__ class C(type): def __call__(...): class B: __metaclass__ = C b= B() The

Re: New-style classes and special methods

2007-05-30 Thread Raj B
> Yes, special methods populate the slots in the structures which Python > uses to represent types. Objects/typeobject.c in the Python source > distribution does the hard work, particularly in function type_new Thanks for that quick response. I am quite comfortable with C code and am try

Representation of new-style instance

2007-08-01 Thread Raj B
Consider a new-style class class rabbit(object): def __init__(self,c): self.color = c r1=rabbit("blue") r2=rabbit("purple") Which C struct in the Python implementation is used to represent the instances c1 and c2 of the new-style class? I understand that when the class 'rabb

Adding a list of descriptors to a class

2007-08-07 Thread Bob B.
I've been playing with descriptors lately. I'm having one problem I can't seem to find the answer to. I want to assign a descriptor to a list of attributes. I know I should be able to add these somewhere in the class's __dict__, but I can't figure out where. Here's some code: class MyDesc(obje

  1   2   3   4   5   6   7   8   9   10   >