New release: Crunchy 0.9

2007-07-10 Thread Andre
Crunchy 0.9 has been released. It is available at http://code.google.com/p/crunchy What is Crunchy? Crunchy is a an application that transforms html Python tutorials into interactive session viewed within a browser. We are not aware of any other application (in any language) similar to

Pydev 1.3.7 Released

2007-07-10 Thread Fabio Zadrozny
Hi All, Pydev and Pydev Extensions 1.3.7 have been released Details on Pydev Extensions: http://www.fabioz.com/pydev Details on Pydev: http://pydev.sf.net Details on its development: http://pydev.blogspot.com Release Highlights: -- * Support for

Phoenix-iTorrent: iTunes Bit Torrent client v 0.3 release

2007-07-10 Thread Christopher L Judd
Hi List, I want to take the opportunity to announce a very early release of Phoenix-iTorrent, a Bit Torrent client for iTunes, featuring a Windows installer to make it easier for users to install. Please check it out and give me some feedback.

pyCologne meets again on Wednesday, 11 July

2007-07-10 Thread Rex Turnbull
Greetings Python Friends, pyCologne, the Python User Group Cologne, Germany meets again on: Date:Wednesday, 11 July, 2007 Time:18:30 Uhr c.t. Venue: Room 301 (3rd floor), Institut für Informatik, University Köln, Pohligstr. 1, 50969 Köln, Germany !!! NEW VENUE !!!

Re: trouble controlling vim with subprocess on windows machine

2007-07-10 Thread Josiah Carlson
[EMAIL PROTECTED] wrote: On Jul 9, 11:06 am, Josiah Carlson [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I am having trouble contolling vim with subprocess on a windows machine. It appears that vim comes up on the machine all right and it sometimes looks like it is doing the

Re: highly einteractive editor for python

2007-07-10 Thread Josiah Carlson
Atul Bhingarde wrote: Does anybody know an editor that facilitates, interactive python development. Where GUI etc developed will be possible to see in real time mode. Boa Constructor? wxGlade embedded in some other software (SPE?) XRCed? What do you mean by real time mode? - Josiah

Re: 2**2**2**2**2 wrong? Bug?

2007-07-10 Thread [EMAIL PROTECTED]
On Jul 9, 11:42?pm, Paul McGuire [EMAIL PROTECTED] wrote: On Jul 9, 11:21 pm, Jim Langston [EMAIL PROTECTED] wrote: In Python 2.5 on intel, the statement 2**2**2**2**2 evaluates to 2**2**2**2**2 200352993040684646497907235156025575044782547556975141926501697371089405955 63114

Re: 2**2**2**2**2 wrong? Bug?

2007-07-10 Thread Jim Langston
Gah! Python goes right to left? Dang, I haven't seen that since APL. [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] 2**2)**2)**2)**2) 65536 2**(2**(2**(2**2)))

Re: 2**2**2**2**2 wrong? Bug?

2007-07-10 Thread Erik Max Francis
Jim Langston wrote: Gah! Python goes right to left? Dang, I haven't seen that since APL. For the ** operator, and with good reason: Left-associative ** doesn't really serve much useful purpose, since (a**b)**c == a**(b*c), so if one writes a**b**c, one usually means a**(b**c), or they

standalone executables

2007-07-10 Thread Navid Parvini
Dear All, I need a reference to get all the programs which used to package Python programs into standalone executables files. Would you help me? Thank you in advance. Navid - Park yourself in front of a world of choices in

Re: What is the most efficient way to test for False in a list?

2007-07-10 Thread Duncan Booth
Paul Rubin http://[EMAIL PROTECTED] wrote: Diez B. Roggisch [EMAIL PROTECTED] writes: status = all(list) Am I mistaken, or is this no identity test for False at all? You are mistaken. all take an iterable and returns if each value of it is true. all(list) does what the OP's code

Re: Error when trying to write unicode xml to zipfile

2007-07-10 Thread Stefan Behnel
Gabriel Genellina wrote: En Mon, 09 Jul 2007 20:11:24 -0300, Martin [EMAIL PROTECTED] escribió: I get below error when trying to write unicode xml to a zipfile. zip.writestr('content.xml', content.toxml()) File /usr/lib/python2.4/zipfile.py, line 460, in writestr zinfo.CRC =

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-10 Thread Diez B. Roggisch
Paul Rubin schrieb: Diez B. Roggisch [EMAIL PROTECTED] writes: Which implies that even in ADA, runtime type errors are in fact expected - else there would be no handler for such a case. Well, yes, runtime errors occur - in statically typed languages as well. That's essentially the

Re: What is the most efficient way to test for False in a list?

2007-07-10 Thread Paul Rubin
Duncan Booth [EMAIL PROTECTED] writes: status = not (False in list) That is an equality test, not an identity test: False in [0] True Arrh! Strongly typed language, my eye ;-) Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Error when trying to write unicode xml to zipfile

2007-07-10 Thread Martin v. Löwis
Unless, obviously, you were serialising to a non-utf8 encoding. But since the toxml() method seems to return unicode here (which sounds surprising), I expect it a) to provide no XML declaration at all or b) to be broken anyway. Or c) the user forgot to specify the encoding= parameter in

Re: PEP 3107 and stronger typing (note: probably a newbie question)

2007-07-10 Thread Paul Rubin
Diez B. Roggisch [EMAIL PROTECTED] writes: Sure. But which class of programs are decidable? There's lot's of research going on with model checking and the like. But AFAIK, the consensus is that the very moment you allow recursive types, the type-checking is either incomplete, or possibly

Re: Should I use Python for these programs?

2007-07-10 Thread Hendrik van Rooyen
CC [EMAIL PROTECTED] wrote: I have considerable C and assembly language experience. However, these are mostly on embedded microcontrollers since I moved away from PC programming all the way back in 1988 :-O Your experience parallels mine, except that mine has a surfeit of assembler...

Re: Where is the syntax for the dict() constructor ?! (OT)

2007-07-10 Thread Hendrik van Rooyen
Steve Holden [EMAIL PROTECTED] wrote: Sorry - dreadful joke. Since teeth chew, I wondered whether esteeth might eschew. [Graon ...] *grin* *Wonders if he can extend this troll to get Steve to explain what teeth are.* ; - ) - Hendrik --

Re: S2K DTS and Python

2007-07-10 Thread Tim Golden
Phil Runciman wrote: I am a Python newbie so please be gentle on me. Welcome to Python. I have created a program that takes text files within a directory and it successfully parses the information from them to create 3 CSV files. Good so far. However, I now want to update some tables in

Simple operator associativity and precedence rules (was: 2**2**2**2**2 wrong? Bug?)

2007-07-10 Thread Ben Finney
Jim Langston [EMAIL PROTECTED] writes: 2**2 = 4 4**2 = 16 16**2 = 256 256**2 = 65536 65536**2 = 4294967296 In fact, if I put (2**2)**2**2**2 it comes up with the correct answer, 4294967296 I have never gone wrong with mathematical expressions since I reduced the set of operator

Re: Comparing modified elements in Sets

2007-07-10 Thread Asun Friere
On Jul 10, 5:57 am, [EMAIL PROTECTED] wrote: I'd like to be able to compare set 1 with set 2 and have it match filename1 and filename3, or compare set 1 with 3 and get back filename1, filename2. etc. Is there a way for me to do this inside the compare function, rather than having to make

Re: Simple operator associativity and precedence rules (was: 2**2**2**2**2 wrong? Bug?)

2007-07-10 Thread Steven D'Aprano
On Tue, 10 Jul 2007 18:05:49 +1000, Ben Finney wrote: I have never gone wrong with mathematical expressions since I reduced the set of operator associativity and precedence rules to these: 1. Addition and subtraction have the same precedence, and are left-to-right associative 2.

Re: Building a Python app with Mozilla

2007-07-10 Thread greg
[EMAIL PROTECTED] wrote: Last I looked (3.1-ish), Qt didn't use the Aqua widgets but rather tried to write their own widgets that looked (kinda) like the MacOS widgets. That might be so, but even if it had used real Aqua widgets, the same problem would have occurred. My point was that using

Transfer folders to ftp

2007-07-10 Thread Laurentiu
hi! i am new to python and i made some digging about how to send files and folders to ftp server. i manage to send a file, but i don't know how to send folders with subfolders in it. please, can someone help me to accomplish this tasks: 1. send a folder with subfolders to ftp server. 2. make

Re: standalone executables

2007-07-10 Thread Daniel Nogradi
I need a reference to get all the programs which used to package Python programs into standalone executables files. Would you help me? windows: http://www.py2exe.org/ mac: http://cheeseshop.python.org/pypi/py2app/ linux: http://wiki.python.org/moin/Freeze linux/windows:

Re: trouble controlling vim with subprocess on windows machine

2007-07-10 Thread agc
Hi Josiah, This recipe for asynchronous communication usingsubprocesscould be used to write an expect-like tool: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 I have played with the above recipe and it is excellent, but could you please go into some more detail about

Re: Portable general timestamp format, not 2038-limited

2007-07-10 Thread greg
Ilya Zakharevich wrote: In pedantic mode: negative timestamps make sense with Big Bang as the epoch as well. (AFAIU, the current way of thinking is that it was just too hot before the big bang, it is not that there was nothing.) If Stephen Hawking is right, the shape of the universe is such

Re: xmlrpclib hangs execution

2007-07-10 Thread Arno Stienen
Hi Andy, Your patches solves the problem too. Thanks! One thing: if I use the unpatched xmlrpclib.py, the printed output of xml calls look like: {'state': 0, 'str': 'Info_RT'} But if I use your patch, they look like: state0strInfo_RT I prefer the former, as it is easier to

Get a filename list of a web site

2007-07-10 Thread aidechamp
Hi all, is it possible to get a filename directory list of a website (possibly with full path indication)? Using python possibly wget? Bye. -- http://mail.python.org/mailman/listinfo/python-list

Re: object references/memory access

2007-07-10 Thread greg
Dennis Lee Bieber wrote: If a process is known to be CPU bound, I think it is typical practice to nice the process... Lowering its priority by direct action. Yes, but one usually only bothers with this for long-running tasks. It's a nicety, not an absolute requirement. It seems like

Re: Empty text

2007-07-10 Thread Nick Craig-Wood
Miles [EMAIL PROTECTED] wrote: On Jul 9, 4:30 am, Nick Craig-Wood [EMAIL PROTECTED] wrote: Marc 'BlackJack' Rintsch [EMAIL PROTECTED] wrote: On Sun, 08 Jul 2007 22:23:20 +0200, Jan Danielsson wrote: Firefox is very unhappy about the textarea not having separate opening and a

Can I Redirect debug output from HTTPConnection to a file?

2007-07-10 Thread Harel
I'm using httplib.HTTPConnection to perform http connections and during the beta period of the application I wanted to log its verbose output [set_debuglevel(5)]. However, raising the debuglevel just outputs it to stdout. can I redirect that to a file? My app uses the logging module for logging

Your message to Pyro-users awaits moderator approval

2007-07-10 Thread pyro-users-bounces
Your mail to 'Pyro-users' with the subject test Is being held until the list moderator can review it for approval. The reason it is being held: Post by non-member to a members-only list Either the message will get posted to the list, or you will receive notification of the moderator's

Re: Empty text

2007-07-10 Thread André
On Jul 8, 5:23 pm, Jan Danielsson [EMAIL PROTECTED] wrote: Hello all, I'm using mod_python+ElementTree to build XHTML pages. But I stumbled across this problem: def foo(req, desc = None): ... tr = ET.SubElement(tbl, tr) th = ET.SubElement(tr, th)

Professional Grant Proposal Writing Workshop (September 2007: Simon Fraser University)

2007-07-10 Thread Anthony Jones
The Grant Institute's Grants 101: Professional Grant Proposal Writing Workshop will be held at Simon Fraser University at Harbour Centre, September 12 - 14 , 2007. Interested development professionals, researchers, faculty, and graduate students should register as soon as possible, as demand

Re: highly einteractive editor for python

2007-07-10 Thread Atul Bhingarde
What I want to see is that it is possible to create a python based application in a environment where I can see the results as I am creating it, specifically gui widgets (from say TK). This will provide a robust mechanism to see gui layout as well. Thanks Atul Josiah Carlson [EMAIL PROTECTED]

Re: Choosing Tkinter over wxPython...

2007-07-10 Thread Eric Brunel
On Mon, 09 Jul 2007 23:08:20 +0200, Kevin Walzer [EMAIL PROTECTED] wrote: I've spent some time playing with both, and while wxPython is nice, Tkinter just seems to fit my head better, and with appropriate selection of widgets and interface design, seems to yield up perfectly usable

stripping the first byte from a binary file

2007-07-10 Thread rvr
Would someone mind showing me how to strip the first byte from a binary file? For some reason I can't figure this out from the binary file editing examples I've read. Thanks. ~rvr -- http://mail.python.org/mailman/listinfo/python-list

Re: highly einteractive editor for python

2007-07-10 Thread Atul Bhingarde
I liked what the Wing IDE provides, one question though will it provide facility like creating the GUI widgets (say using TK) and facilitaate layout for the same and then run the script ? Thanks Atul Steve Holden [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Atul Bhingarde wrote:

Re: The best platform and editor for Python

2007-07-10 Thread greg
Nicola Musatti wrote: It's in *commercial* projects that features nobody really needs are not implemented. Profit is fundamental in convincing you that you really need the features. In Soviet Russia, you don't need features, features need *you*. -- Greg --

Re: stripping the first byte from a binary file

2007-07-10 Thread Jeremy Sanders
rvr wrote: Would someone mind showing me how to strip the first byte from a binary file? For some reason I can't figure this out from the binary file editing examples I've read. Thanks. Do you mean something like this? f = open('test.dat', 'rb') f.read(1) # read 1st byte and ignore it rest

Re: accessing an object instance by only having one of its attribute values

2007-07-10 Thread Bruno Desthuilliers
mshiltonj a écrit : On Jul 8, 8:29 pm, Paul McGuire [EMAIL PROTECTED] wrote: On Jul 8, 2:11 pm, mshiltonj [EMAIL PROTECTED] wrote: I have some comments on the Pythonicity of your suggestions. Same assumption, object attr is a unique key of some sort. How to create the dict of objects, and

Re: How would I write this C code in Python?

2007-07-10 Thread Bruno Desthuilliers
Marc 'BlackJack' Rintsch a écrit : On Fri, 06 Jul 2007 17:31:50 +, DeveloperX wrote: I am trying to figure out how to rewrite the following chunk of code in Python: C source [code] typedef struct PF { int flags; long user; char*filename; unsigned char

Re: Choosing Tkinter over wxPython...

2007-07-10 Thread martin . laloux
me to because of the problem of the new versions of wxpython not compatible with the old ones (try to run a script done with wxpython 3, 4, 5 even 6 with wxpython 2.8.x). Each time, I must re-examine all my old scripts. Tkinter, although less beautiful, is more stable --

Re: Should I use Python for these programs?

2007-07-10 Thread Bjoern Schliessmann
Grant Edwards wrote: Most of the graphics I do with Python is with Gnuplot (not really appropriate for what you want to do. wxWidgets/Floatcanvas might be worth looking into. Agreed (I'm quite sure you mean wxPython though). Also, in wxPython in Action (the official book) a simple drawing app

Re: Empty text

2007-07-10 Thread Jan Danielsson
André wrote: [---] I understand the opitmization ElementTree is performing; but it seems there are cases when it is not the proper thing to do. Is it possible to force ElementTree to output the XHTML code I need it to? I ran into the same problem and a workaround I found was to use

Re: highly einteractive editor for python

2007-07-10 Thread Bjoern Schliessmann
Atul Bhingarde wrote: What I want to see is that it is possible to create a python based application in a environment where I can see the results as I am creating it, specifically gui widgets (from say TK). This will provide a robust mechanism to see gui layout as well. Py is an IDE for

Re: Error when trying to write unicode xml to zipfile

2007-07-10 Thread Stefan Behnel
Martin v. Löwis wrote: Unless, obviously, you were serialising to a non-utf8 encoding. But since the toxml() method seems to return unicode here (which sounds surprising), I expect it a) to provide no XML declaration at all or b) to be broken anyway. Or c) the user forgot to specify the

Re: 2**2**2**2**2 wrong? Bug?

2007-07-10 Thread Christian Tismer
On 10.07.2007, at 07:21, Jim Langston wrote: In Python 2.5 on intel, the statement 2**2**2**2**2 evaluates to 2**2**2**2**2 2003529930406846464979072351560255750447825475569751419265016973710894 0595563114 ... 533753975582208506072339445587895905719156736L Yes, also on 2.4.4 What's

Re: xmlrpclib hangs execution

2007-07-10 Thread itkovian
Arno, Your patches solves the problem too. Thanks! One thing: if I use the unpatched xmlrpclib.py, the printed output of xml calls look like: {'state': 0, 'str': 'Info_RT'} But if I use your patch, they look like: state0strInfo_RT I prefer the former, as it is easier

Re: path backslash escaping trouble

2007-07-10 Thread Sion Arrowsmith
placid [EMAIL PROTECTED] wrote: I have these files; [ ... ] MergeTypecodefromlabel BLnameBUILDMODS OldLname BaseVersion6.9.1.24A RequiredRelease6.10.1.3 Description FixRelation Dependencies LpAffectedNo

Dynamic method

2007-07-10 Thread Gabor Urban
Hi guys. I have an issue I think Python could handle. But I do not have the knowledge to do it. Suppose I have a class 'myClass' and instance 'var'. There is function 'myFunc(..)'. I have to add (or bind) somehow the function to the class, or the instance. Any help, info or point of

Re: Get a filename list of a web site

2007-07-10 Thread faulkner
On Jul 10, 5:12 am, [EMAIL PROTECTED] wrote: Hi all, is it possible to get a filename directory list of a website (possibly with full path indication)? Using python possibly wget? Bye. HTTP does not provide a command for this. you need to acquire a shell account on the specific server

Re: Building a Python app with Mozilla

2007-07-10 Thread Damjan
Last I looked (3.1-ish), Qt didn't use the Aqua widgets Qt is now up to 4.3 and they use native Aqua -- damjan -- http://mail.python.org/mailman/listinfo/python-list

Re: Get a filename list of a web site

2007-07-10 Thread aidechamp
Thanks, faulkner, years ago I used on Windows Teleport, which had the possibilty to download only the file list. I hoped that in Linux with the aid of python wget -- http://mail.python.org/mailman/listinfo/python-list

Re: xmlrpclib hangs execution

2007-07-10 Thread Arno Stienen
Thanks! I'll try that one too to find the easiest solution. For portability, it is easier to use a new transport class and not have to patch files of the Python distribution. Using a similar strategy, I used this class just before I read about your patch, which works fine too:

Re: Should I use Python for these programs?

2007-07-10 Thread Nick Craig-Wood
CC [EMAIL PROTECTED] wrote: I have considerable C and assembly language experience. However, these are mostly on embedded microcontrollers since I moved away from PC programming all the way back in 1988 :-O I wish to accomplish a few PC programming tasks, and am considering to

Re: highly einteractive editor for python

2007-07-10 Thread Peter Decker
On 7/10/07, Atul Bhingarde [EMAIL PROTECTED] wrote: What I want to see is that it is possible to create a python based application in a environment where I can see the results as I am creating it, specifically gui widgets (from say TK). This will provide a robust mechanism to see gui layout as

Re: Dynamic method

2007-07-10 Thread Daniel Nogradi
I have an issue I think Python could handle. But I do not have the knowledge to do it. Suppose I have a class 'myClass' and instance 'var'. There is function 'myFunc(..)'. I have to add (or bind) somehow the function to the class, or the instance. Any help, info or point of reference is

Re: Distributing python apps

2007-07-10 Thread Wildemar Wildenburger
Robert Dailey wrote: Thanks a ton guys. You both gave me the exact answers I was looking for. Uhm, late entry here, but you might want to consider PyInstaller http://pyinstaller.python-hosting.com/. Not sure if the project is still alive as I see no mention of Python 2.5 on their site but

Best architecture for proxy?

2007-07-10 Thread Andrew Warkentin
I am going to write a general-purpose modular proxy in Python. It will consist of a simple core and several modules for things like filtering and caching. I am not sure whether it is better to use multithreading, or to use an event-driven networking library like Twisted or Medusa/ Asyncore. Which

Re: Get a filename list of a web site

2007-07-10 Thread Diez B. Roggisch
[EMAIL PROTECTED] wrote: Thanks, faulkner, years ago I used on Windows Teleport, which had the possibilty to download only the file list. I hoped that in Linux with the aid of python wget ssh. Runs on nearly all linuxes. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I Redirect debug output from HTTPConnection to a file?

2007-07-10 Thread Harel
I'll answer myself then: import os ioLogFile = file(LOG_FILE_PATH + IO_LOG_FILE, w) #get a log file created os.dup2(config.ioLogFile.fileno(), 1) #route stdout (file descriptor 1) to the log file's one Thanks Harel On Jul 10, 10:32 am, Harel [EMAIL PROTECTED] wrote: I'm using

Re: Dynamic method

2007-07-10 Thread Alex Popescu
On Jul 10, 5:07 pm, Daniel Nogradi [EMAIL PROTECTED] wrote: I have an issue I think Python could handle. But I do not have the knowledge to do it. Suppose I have a class 'myClass' and instance 'var'. There is function 'myFunc(..)'. I have to add (or bind) somehow the function to the

Parsing Help

2007-07-10 Thread Robert Rawlins - Think Blue
Hello Guys, I'm looking for some help building a function which can parse some XML for me using ElementTree. The document is of a very consistent format and I've copied an example of the document below. ?xml version=1.0 encoding=UTF-8 ? record attribute id=0x

Re: Dynamic method

2007-07-10 Thread Bruno Desthuilliers
Daniel Nogradi a écrit : I have an issue I think Python could handle. But I do not have the knowledge to do it. Suppose I have a class 'myClass' and instance 'var'. There is function 'myFunc(..)'. I have to add (or bind) somehow the function to the class, or the instance. Any help, info

Re: Building a Python app with Mozilla

2007-07-10 Thread Bruno Desthuilliers
Thorsten Kampe a écrit : Hi, I've already sent this to the Komodo mailing list (which seemed to me the more appropriate place) but unfortunately I got no response. I'd like to build a Python GUI app. Neither Tkinter nor Wxpython nor PyQT are actually what I want (because the lack of GUI

Re: Shed Skin Python-to-C++ Compiler 0.0.21, Help needed

2007-07-10 Thread mark . dufour
hi mike, Great work. You might want to advertise this on the main site (currently it states that this is impossible). yes, thank you for reminding me. You've said somewhere that you didn't/don't plan on working on this aspect, but it is surely the killer feature of shed skin needed to for

How to check if file is in use?

2007-07-10 Thread loial
Is there anyway in pythn to check whether a file is being used/written to by another process, e.g like the fuser command? -- http://mail.python.org/mailman/listinfo/python-list

Need Help

2007-07-10 Thread pycraze
Hi , I need some info about the following snippet . --- protocol = 'NTLMSSP\000'#name type = '\001\000' #type 1 zeros1 = '\000\000' zeros2 = '\000\000\000\000\000\000\000\000\000' zeros3 =

Re: How to check if file is in use?

2007-07-10 Thread Gerhard Häring
loial wrote: Is there anyway in pythn to check whether a file is being used/written to by another process, e.g like the fuser command? No, you'll have to use platform-specific methods (like calling fuser etc. with the subprocess module). -- Gerhard --

Re: trouble controlling vim with subprocess on windows machine

2007-07-10 Thread [EMAIL PROTECTED]
On Jul 10, 4:00 am, agc [EMAIL PROTECTED] wrote: Hi Josiah, This recipe for asynchronous communication usingsubprocesscould be used to write an expect-like tool: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/440554 I have played with the above recipe and it is excellent,

Re: Need Help

2007-07-10 Thread Marc 'BlackJack' Rintsch
On Tue, 10 Jul 2007 08:28:05 -0700, pycraze wrote: In the above code what does 000\000\000\000\000\000\000\000\000 signify ? Which form of representation is this ? \nnn is the octal representation of a byte. The snippet you've shown contains mostly zero bytes: In [10]: a = '\000'

bool behavior in Python 3000?

2007-07-10 Thread Alan Isaac
Is there any discussion of having real booleans in Python 3000? Say something along the line of the numpy implementation for arrays of type 'bool'? Hoping the bool type will be fixed will be fixed, Alan Isaac -- http://mail.python.org/mailman/listinfo/python-list

Re: allow scripts to use .pth files?

2007-07-10 Thread Alan Isaac
John Machin wrote: I got the impression that the OP was suggesting that the interpreter look in the directory in which it found the script. Right. I got the impression that the problem was that the package was not only not on sys.path but also not in the same directory as the script that

Re: bool behavior in Python 3000?

2007-07-10 Thread Michael Hoffman
Alan Isaac wrote: Is there any discussion of having real booleans in Python 3000? I'm not sure how the bools we have now are not real. Say something along the line of the numpy implementation for arrays of type 'bool'? What aspect of this do you want? A bool typecode for the stdlib array

Re: bool behavior in Python 3000?

2007-07-10 Thread Peter Otten
Alan Isaac wrote: Is there any discussion of having real booleans in Python 3000? The last I have seen is http://mail.python.org/pipermail/python-3000/2007-January/005284.html Hoping the bool type will be fixed will be fixed, Do you care to explain what is broken? Peter --

serializing datetime object

2007-07-10 Thread [EMAIL PROTECTED]
Hi I want to serialize datetime.datetime.now() object . I could convert it to string but how do I get a datetime object back from the string? Any suggestions? thanks mark -- http://mail.python.org/mailman/listinfo/python-list

win32com ppt embedded object

2007-07-10 Thread Lance Hoffmeyer
Hey all, I am trying to create some python code to edit embedded ppt slides and need some help. import win32com.client from win32com.client import constants import re import codecs,win32com.client import time import datetime import win32com.client.dynamic

subprocess popen trouble

2007-07-10 Thread nik
I am having trouble using subprocess popen and stdin/stdout I have the following simple test application written in C++, that just echoes back the stdin. It works fine running from the command line: #include iostream #include time.h int main (int argc, char * const argv[]) { int

xml yml and dependency hell

2007-07-10 Thread Rustom Mody
yaml by its indent-orientation is quite pythonic. In comparison xml is cumbersome and laborious. Strangely ruby supports yaml out of the box but python requires a third party package PyYAML. Now this may not seem like a big deal for us -- installing pyYAML takes all of one minute -- but it may

Abort trap - Fatal Python error: GC object already tracked

2007-07-10 Thread p . lavarre
Is this interesting Python output? $ gc-object-already-tracked.py ** File /Users/admin/Desktop/lxio/gc-object-already-tracked.py, line 770, in __main__.REDACTED Failed example: nqzhexes(self.send()) Expected: '...

REALLY!

2007-07-10 Thread [EMAIL PROTECTED]
Is this for reals man! I hope this is not one of those rip-off emails. -- http://mail.python.org/mailman/listinfo/python-list

Re: 2**2**2**2**2 wrong? Bug?

2007-07-10 Thread fynali
19729 Did you count the 'L'? (-: -- http://mail.python.org/mailman/listinfo/python-list

Re: How do I remotely access Scheduled Tasks from Windows XP to Windows Server 2003?

2007-07-10 Thread fynali
On Jul 10, 4:51 am, kj7ny [EMAIL PROTECTED] wrote: On Jun 30, 10:55 am, Roger Upole [EMAIL PROTECTED] wrote: kj7ny wrote: How can I access and manipulateScheduledTasksin Windows using Python? I have a Windows XP workstation running Python 2.4.4 using the win32all modules to

Re: The best platform and editor for Python

2007-07-10 Thread Douglas Alan
[EMAIL PROTECTED] (Alex Martelli) writes: Kay Schluehr [EMAIL PROTECTED] wrote: half of the community is happy with Emacs and the other half wants to program in a VS-like environment, neither consensus nor progress has Calling all vi/vim users (and we'll heartily appreciate the support of

Re: Phoenix-iTorrent: iTunes Bit Torrent client v 0.3 release

2007-07-10 Thread Danyelle Gragsone
How is this related to python? -- http://mail.python.org/mailman/listinfo/python-list

Re: Abort trap - Fatal Python error: GC object already tracked

2007-07-10 Thread p . lavarre
Is this interesting Python output? ... Fatal Python error: GC object already tracked Abort trap ... tell me I can help by solving it, and I'll look more closely. Sorry, never mind, not interesting after all. Newbie me did somehow forget the fact that ctypes.memmove doesn't bounds-check,

C Extension Seg Faults

2007-07-10 Thread Daryl
I'm having trouble tracking down some segmentation faults with a C extension. I can see where it's failing but don't know how to fix it. Basically, my python programme builds a pair of large tuples of tuples. I want to unpack these tuples and process them. The code in question looks something

Re: C Extension Seg Faults

2007-07-10 Thread Paul Rubin
Daryl [EMAIL PROTECTED] writes: The inner loop runs a few hundred times (263) then fails with a segmentation fault. I've trolled through the documentation online and in the various .h files but can't seem to find anything. Anybody have an idea what really obvious foolish thing I'm doing?

Re: C Extension Seg Faults

2007-07-10 Thread Daryl
It's not worth staring at code to try to figure out things like that. Run it under gdb, examine the relevant data objects when it crashes and see what's broken (e.g. some pointer is unexpectedly null), then set a conditional breakpoint that stops execution when that incorrect condition

Re: win32com ppt embedded object

2007-07-10 Thread fynali
On Jul 10, 8:40 pm, Lance Hoffmeyer [EMAIL PROTECTED] wrote: Hey all, I am trying to create some python code to edit embedded ppt slides and need some help. import win32com.client from win32com.client import constants import re import codecs,win32com.client import time import datetime

Re: xml yml and dependency hell

2007-07-10 Thread Stefan Behnel
Rustom Mody wrote: yaml by its indent-orientation is quite pythonic. In comparison xml is cumbersome and laborious. Strangely ruby supports yaml out of the box but python requires a third party package PyYAML. Now this may not seem like a big deal for us -- installing pyYAML takes all

Re: S2K DTS and Python

2007-07-10 Thread stefaan
However, I now want to update some tables in MSAccess, and it occurred to me that because Sequel Server 2000 DTS can interface with scripting languages that maybe I could call my first Python program from within DTS and then update the tables using DTS. (I am learning DTS hence the

Re: xml yml and dependency hell

2007-07-10 Thread Rustom Mody
On 7/11/07, Stefan Behnel [EMAIL PROTECTED] wrote: Rustom Mody wrote: So is it likely that yaml will make it to the standard python library at some point?? That's up to the maintainers of PyYAML. If they want to get it in, there will be ways to get there. If they do not want to -

Re: Need Help

2007-07-10 Thread Paul McGuire
On Jul 10, 10:28 am, pycraze [EMAIL PROTECTED] wrote: Hi , I need some info about the following snippet . --- protocol = 'NTLMSSP\000'#name type = '\001\000' #type 1 zeros1 = '\000\000'

Re: bool behavior in Python 3000?

2007-07-10 Thread Alan G Isaac
Peter Otten wrote: The last I have seen is http://mail.python.org/pipermail/python-3000/2007-January/005284.html OK. Thanks. Do you care to explain what is broken? I suppose one either finds coercion of arithmetic operations to int to be odd/broken or does not. But that's all I meant.

Re: xml yml and dependency hell

2007-07-10 Thread Bruno Desthuilliers
Rustom Mody a écrit : yaml by its indent-orientation is quite pythonic. In comparison xml is cumbersome and laborious. Strangely ruby supports yaml out of the box but python requires a third party package PyYAML. Now this may not seem like a big deal for us -- installing pyYAML takes

Re: Embedding Matplotlib in wxpython wx.Panel problem

2007-07-10 Thread abakshi11
I was wondering if you ever got to create a small GUI program that did plots using Matplotlib I am gettin an error where its saying WXagg's accelerator requires the wxPython headers-the wxpython header files can not be located in any of the standard include directories reported by 'wx-config

Re: xml yml and dependency hell

2007-07-10 Thread Bruno Desthuilliers
Rustom Mody a écrit : On 7/11/07, Stefan Behnel [EMAIL PROTECTED] wrote: Rustom Mody wrote: So is it likely that yaml will make it to the standard python library at some point?? That's up to the maintainers of PyYAML. If they want to get it in, there will be ways to get there. If

  1   2   >