Re: csv format to DBase III format

2006-01-03 Thread Peter Otten
[EMAIL PROTECTED] wrote: I need to transfer csv format file to DBase III format file. How do i do it in Python language? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/362715 Peter -- http://mail.python.org/mailman/listinfo/python-list

Re: PyHtmlGUI Project is looking for developers

2006-01-03 Thread phoenixathell
John J. Lee schrieb: Sybren Stuvel [EMAIL PROTECTED] writes: [EMAIL PROTECTED] enlightened us with: At the moment we don't work with javascript. But it should not be to hard to create a JavaScript Renderer similar to the css one we already have. Isn't CSS for rendering, and

Re: Hypergeometric distribution

2006-01-03 Thread Raven
Travis E. Oliphant wrote: Notice the keyword for the comb function (in scipy) lets you use it to compute exact values. SciPy does not just automatically use the long integer because this will always slow you down. comb(N, k, exact=0) Combinations of N things taken k at a time. If

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Ilias Lazaridis
Alex Martelli wrote: Ilias Lazaridis [EMAIL PROTECTED] wrote: ... ... or equivalent (I do believe all I named have at least a Bachelor degree, but with the undisputable results they've shown afterwards, I think they'd all meet the or equivalent clause anyway). * BS or MS in Computer

Re: indentation preservation/restoration

2006-01-03 Thread smichr
I can't believe I forgot that trick :-| Thanks for the helpful reminder. /c -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter Scrollbar not working

2006-01-03 Thread Martin Franklin
Dustan wrote: I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? It can be tricky getting an empty frame to scroll, can you post your example code so that we might be more helpful. Here is an example of

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Duncan Booth
Alex Martelli wrote: It IS true that in Python you cannot set arbitrary attributes on arbitrary objects. The workaround is to use a dict, indexed by the id of the object you want to set arbitrary attributes on; this has the helpful consequence that separate namespaces are used, so your

Re: python concurrency proposal

2006-01-03 Thread Peter Tillotson
I'd really like to see a concurrency system come into python based on theories such as Communicating Sequential Processes (CSP) or its derivatives lambda or pi calculus. These provide an analytic framework for developing multi thread / process apps. CSP like concurrency is one of the hidden

RE: Work with Windows workgroups under Python?

2006-01-03 Thread Tim Golden
[Karlo Lozovina] | I'm running Python 2.4 under WinXP Pro, and I would like to | do some basis | operations on my LAN - get list of workgroups, list the | computers in each | workgroup and possibly connect to specific computer and get | share/directory list? Is there some Pythonic way of

Re: Work with Windows workgroups under Python?

2006-01-03 Thread Heiko Wundram
Karlo Lozovina wrote: Is there some Pythonic way of doing this? If you need to query for workgroups from pure Python (because you're running under Linux, for example), search the web for the source package of PySMB. That's a pure Python implementation of (parts of) the SMB protocol. It has been

RE: WMI - invalid syntax error?

2006-01-03 Thread Tim Golden
[py] | Sent: 30 December 2005 16:15 | To: python-list@python.org | Subject: Re: WMI - invalid syntax error? | | py wrote: | Something must be happening somewhere causing it | to get fouled up. I'm gonna try on a different PC. | | I tried on another PC, same problem. | | Also, I added

itertools.izip brokeness

2006-01-03 Thread rurpy
The code below should be pretty self-explanatory. I want to read two files in parallel, so that I can print corresponding lines from each, side by side. itertools.izip() seems the obvious way to do this. izip() will stop interating when it reaches the end of the shortest file. I don't know how

Re: Regex anomaly

2006-01-03 Thread Sam Pointon
Would this particular inconsistency be candidate for change in Py3k? Seems to me the pos and endpos arguments are redundant with slicing, and the re.match function would benefit from having the same arguments as pattern.match. Of course, this is a backwards-incompatible change; that's why I

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Ilias Lazaridis
Alex Martelli wrote: Anton Vredegoor [EMAIL PROTECTED] wrote: [...] No insider information is necessary, the job requirements make it absolutely clear (at least to me) that Google is a company with an elitist culture, Absolutely yes, in terms of who we want to work at Google: we DO want

Re: itertools.izip brokeness

2006-01-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: The problem is that sometimes, depending on which file is the shorter, a line ends up missing, appearing neither in the izip() output, or in the subsequent direct file iteration. I would guess that it was in izip's buffer when izip terminates due to the exception on

Re: Productivity and Quality of IDE

2006-01-03 Thread James
It depends on a number of factors including yourself. I am a very visual person. I consider visual design as the native language of expression and representation (at least from a human stand point) for objects that have visual end presentation. I know I am productive this way. Your mileage may

Re: Python or Java or maybe PHP?

2006-01-03 Thread James
While on topic of custom contructs, the topic of syntactic macros has come up in the past. Does anyone know if the dev team ever considered for or against them? My interest in them was renewed when I came across Logix http://www.livelogix.net/logix/ It does not seem very active at the moment nor

Re: itertools.izip brokeness

2006-01-03 Thread bonono
But that is exactly the behaviour of python iterator, I don't see what is broken. izip/zip just read from the respectives streams and give back a tuple, if it can get one from each, otherwise stop. And because python iterator can only go in one direction, those consumed do lose in the zip/izip

Re: Regex anomaly

2006-01-03 Thread Andrew Durdin
On 3 Jan 2006 02:20:52 -0800, Sam Pointon [EMAIL PROTECTED] wrote: Would this particular inconsistency be candidate for change in Py3k? Seems to me the pos and endpos arguments are redundant with slicing, Being able to specify the start and end indices for a search is important when working

Re: itertools.izip brokeness

2006-01-03 Thread David Murmann
[EMAIL PROTECTED] schrieb: [izip() eats one line] as far as i can see the current implementation cannot be changed to do the Right Thing in your case. pythons iterators don't allow to look ahead, so izip can only get the next element. if this fails for an iterator, everything up to that point is

Re: itertools.izip brokeness

2006-01-03 Thread Peter Otten
[EMAIL PROTECTED] wrote: The problem is that sometimes, depending on which file is the shorter, a line ends up missing, appearing neither in the izip() output, or in the subsequent direct file iteration.  I would guess that it was in izip's buffer when izip terminates due to the exception

Re: compare dictionary values

2006-01-03 Thread Tim Williams (gmail)
On 30/12/05, rbt [EMAIL PROTECTED] wrote: What's a good way to compare values in dictionaries? I want to find[snip]My key-values pairs are filepaths and their modify times. I want toidentify files that have been updated or added since the script last ran. You don't need to store each file's

Re: itertools.izip brokeness

2006-01-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: But that is exactly the behaviour of python iterator, I don't see what is broken. What's broken is the iterator interface is insufficient to deal with this cleanly. And because python iterator can only go in one direction, those consumed do lose in the zip/izip

Re: itertools.izip brokeness

2006-01-03 Thread bonono
Paul Rubin wrote: I think you need to use map(None,...) which would not drop anything, just None filled. Though you don't have a relatively lazy version as imap(None,...) doesn't behave like map but a bit like zip. I don't understand what you mean by this? None is not callable.

Re: itertools.izip brokeness

2006-01-03 Thread Paul Rubin
[EMAIL PROTECTED] writes: map(None,[1,2,3],[4,5]) gives [(1,4),(2,5),(3,None)] I didn't know that until checking the docs just now. Oh man, what a hack! I always thought Python should have a built-in identity function for situations like that. I guess it does the above instead. Thanks. Jeez

Re: OOP: method overriding works in mysterious ways?

2006-01-03 Thread Christophe
John M. Gabriele a écrit : Consider the following: #!/usr/bin/python #- class Grand_parent( object ): def speak( self ): print 'Grand_parent.speak()' self.advise() def advise( self ):

Re: itertools.izip brokeness

2006-01-03 Thread bonono
Paul Rubin wrote: [EMAIL PROTECTED] writes: map(None,[1,2,3],[4,5]) gives [(1,4),(2,5),(3,None)] I didn't know that until checking the docs just now. Oh man, what a hack! I always thought Python should have a built-in identity function for situations like that. I guess it does the above

Re: WMI - invalid syntax error?

2006-01-03 Thread py
The problem only seems to occur when importing the file and using it that way. It works the first time, but not the second, third, etc. If I run the same commands via the interpreter I have no problem. I may end up looking into some other way of getting the list of processesthis is real

Re: Distributions, RE-verb and the like

2006-01-03 Thread bearophileHUGS
Paul McGuire wrote: I don't find 'Interval' to be very easy on the eyes. In this case, I stole^H^H^H^H^H borrowed the re form of [A-Za-z0-9], providing a method named srange (s is for string) such that srange(a-fA-F) would return the string abcdefABCDEF. Thank you for your answers Paul.

Re: Tkinter Scrollbar not working

2006-01-03 Thread Dustan
Martin Franklin wrote: Dustan wrote: I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? It can be tricky getting an empty frame to scroll, can you post your example code so that we might be more

Re: Tkinter Scrollbar not working

2006-01-03 Thread Dustan
Label Widget, sorry -- http://mail.python.org/mailman/listinfo/python-list

regular expression or parser ?

2006-01-03 Thread Forced_Ambitions
Hi, I m a novice to python..I m stuck in a problem and need some help. i m trying to extract data between the line start operation and the line stop operation from a txt file. and then to fill it under different columns of an excel sheet. -- http://mail.python.org/mailman/listinfo/python-list

Re: regular expression or parser ?

2006-01-03 Thread Kent Johnson
Forced_Ambitions wrote: Hi, I m a novice to python..I m stuck in a problem and need some help. i m trying to extract data between the line start operation and the line stop operation from a txt file. and then to fill it under different columns of an excel sheet. A simple stateful

Red Hat Enterprise Edition and Python 2.4 sources

2006-01-03 Thread Kai Strempel
Hello Python Folks, I have a big problem with the red hat enterprise server. The 2.4 sources build without any big problem. But after installation I can't import datetime. I didn't understand how that can be happend. Datetime is a build in package since python 2.3. Can anybody give me some tips

Re: itertools.izip brokeness

2006-01-03 Thread Diez B. Roggisch
What's broken is the iterator interface is insufficient to deal with this cleanly. I don't consider it broken. You just think too much in terms of the OPs problems or probably other fields where the actual data is available for rewinding. But as iterators serve as abstraction for lots of

Re: Python or Java or maybe PHP?

2006-01-03 Thread Aahz
In article [EMAIL PROTECTED], James [EMAIL PROTECTED] wrote: I keep asking myself why isn't this more popular especially when many prominent Python devs seem to be well aware of Lisp where macros are done right. You have confused many Python devs with Guido. ;-) Guido hates macros. Oddly

Re: Tkinter Scrollbar not working

2006-01-03 Thread Martin Franklin
Dustan wrote: Martin Franklin wrote: Dustan wrote: I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? It can be tricky getting an empty frame to scroll, can you post your example code so that we might be

Re: itertools.izip brokeness

2006-01-03 Thread Paul Rubin
Diez B. Roggisch [EMAIL PROTECTED] writes: No. If you want that, use list(iterable) Then you have random access. If you _know_ there will be only so much data needed to unget, write yourself a buffered iterator like this: You can't use list(iterable) in general because the iterable may be

Re: Regex anomaly

2006-01-03 Thread Roy Smith
In article [EMAIL PROTECTED], Sam Pointon [EMAIL PROTECTED] wrote: Would this particular inconsistency be candidate for change in Py3k? Seems to me the pos and endpos arguments are redundant with slicing, and the re.match function would benefit from having the same arguments as

Filename case-insensitivity on OS X

2006-01-03 Thread Tom Anderson
Afternoon all, MacOS X seems to have some heretical ideas about the value of case in paths - it seems to believe that it doesn't exist, more or less, so touch foo FOO touches just one file, you can't have both 'makefile' and 'Makefile' in the same directory,

Re: itertools.izip brokeness

2006-01-03 Thread Duncan Booth
Peter Otten wrote: from itertools import izip, chain, repeat def prt_files (file1, file2): file1 = chain(file1, repeat()) file2 = chain(file2, repeat()) for line1, line2 in iter(izip(file1, file2).next, (, )): print line1.rstrip(), \t, line2.rstrip() which can

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread Tom Anderson
On Mon, 2 Jan 2006 [EMAIL PROTECTED] wrote: In this sense, we are like the ghost in the machine of a computer system running a computer program, or programs, written in a procedural language and style. Makes sense - i heard that Steve Russell invented continuations after reading the Tibetan

Re: OOP: method overriding works in mysterious ways?

2006-01-03 Thread Chris Mellon
On 1/2/06, Mike Meyer [EMAIL PROTECTED] wrote: John M. Gabriele [EMAIL PROTECTED] writes: Consider the following: #!/usr/bin/python #- class Grand_parent( object ): def speak( self ): print

Re: itertools.izip brokeness

2006-01-03 Thread bonono
Paul Rubin wrote: Any idea how Haskell would deal with this? I don't recall haskell has the map(None,...) behaviour in the standard Prelude. But then, I don't see how the iterator concept would fit into haskell as well. -- http://mail.python.org/mailman/listinfo/python-list

New to Python, WxPython etc, etc

2006-01-03 Thread rodmc
I am totally new to Python and WxPython and need to write an application which can open up an external windows from a plug-in within GAIM (using pyGAIM). I have managed to hack some code together from what little I have covered so far, however GAIM refuses to open until I have closed the extra

Re: Python or Java or maybe PHP?

2006-01-03 Thread James
Guido's concerns about preserving simplicity resonate well with me. Maybe I am just a kid excited with his new toy. I have always admired macros. Quite a few functional languages have them now. But they have always been in languages with sub-optimal community code base, which meant I never went

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Scott David Daniels
Tom Anderson wrote: Java has a java.io.File.getCanonicalPath method that does this, but i can't find an equivalent in python - is there one? What's wrong with: os.path.normcase(path) ? --Scott David Daniels [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Visualisation Engine for Python

2006-01-03 Thread rodmc
I am looking for a 2D data visualisation or graphics library for Python. Can anyone point me in the right direction? Thanks in advance, rod -- http://mail.python.org/mailman/listinfo/python-list

Re: python concurrency proposal

2006-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Peter Tillotson [EMAIL PROTECTED] wrote: I'd really like to see a concurrency system come into python based on theories such as Communicating Sequential Processes (CSP) or its derivatives lambda or pi calculus. These provide an analytic framework for developing

Re: Tkinter Scrollbar not working

2006-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Dustan [EMAIL PROTECTED] wrote: BTW, experience tells me it is necessary for me to explicitly state that I'm a newbie (otherwise I get rude people saying I should already know such-and-such). That experience generalize poorly to comp.lang.python. --

Getting the encoding of sys.stdout and sys.stdin, and changing it properly

2006-01-03 Thread velle
My headache is growing while playing arround with unicode in Python, please help this novice. I have chosen to divide my problem into a few questions. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 1) Does print 'hello' simply write to sys.stdout?

[OT] - Requesting Comments for Process Definition and Presentation

2006-01-03 Thread Ilias Lazaridis
comp.lang.python / comp.lang.ruby - I would like to ask for feedback on the Process Definition and Presentation. Essentially this is exactly what I've myself specialized to do. But I cannot apply the process to my own system. I ask here, as I have criticized those 2 groups publically - and

Re: itertools.izip brokeness

2006-01-03 Thread Tom Anderson
On Tue, 3 Jan 2006, it was written: [EMAIL PROTECTED] writes: The problem is that sometimes, depending on which file is the shorter, a line ends up missing, appearing neither in the izip() output, or in the subsequent direct file iteration. I would guess that it was in izip's buffer

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Doug Schwarz
In article [EMAIL PROTECTED], Tom Anderson [EMAIL PROTECTED] wrote: Afternoon all, MacOS X seems to have some heretical ideas about the value of case in paths - it seems to believe that it doesn't exist, more or less, so touch foo FOO touches just one file, you can't have both 'makefile'

gdesklets __import__ problem

2006-01-03 Thread Thomas Dybdahl Ahle
Hi, I'm writing a gdesklets control, that dynamicly uses __import__ and getattr to get the right classes based on userinput. The problem is, that my control is somehow being run from somewhere unknown. This means that __import__ can't find the modules. I tried putting an

Re: indentation preservation/restoration

2006-01-03 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: Steven D'Aprano wrote: With a little bit of work, this could be expanded to add redundancy for not just indentation and numeric literals, but also string literals, keywords, operators, and anything else. When I copy and assign to variable 'post' the reply posted

Re: Python 2.4.2 gcc 3.4.4 Solaris 8 build issues [solved]

2006-01-03 Thread Holger Joukl
Martin v. Löwis wrote: 2. We have some stuff in non-standard locations here. To build properly, I need to tell this to configure (using CXX, CPPFLAGS, LD_LIBRARY_PATH). Unfortunately, none of this gets communicated to the setup.py step with its find_library_file() stuff, so it is also

Re: application and web app technologies

2006-01-03 Thread ccc
Thanks for your post. I see from the tone of the replies that I may have made a 'huge' mistake in using the ngs for research. From your post, it is not clear what these applications do. That may hugely influence any advice you can get. Just about everything. For two cases in point: (1) We have

Re: IRC sockets and queries

2006-01-03 Thread Thomas Wouters
On Fri, 30 Dec 2005 16:17:01 -0800, Jay wrote: LMFAO! those were jokes for my friends. lol.and btw the dccpoper and bot and crap were jokes that i made up for my friends on the #python channel in freenode... It was a joke. Yet no one on the channel thought it was funny. It got you kicked and

Re: [OT] - Requesting Comments for Process Definition and Presentation

2006-01-03 Thread Claudio Grondi
Ilias Lazaridis wrote: comp.lang.python / comp.lang.ruby - I would like to ask for feedback on the Process Definition and Presentation. Essentially this is exactly what I've myself specialized to do. But I cannot apply the process to my own system. I ask here, as I have

Re: Any wing2.0 users here?

2006-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Alvin A. Delagon [EMAIL PROTECTED] wrote: . . . A little bit OT, I too have been programming python without a debugger, I got used to php's lack of debugger. Thanks again guys! ?! With

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Alex Martelli
Ilias Lazaridis [EMAIL PROTECTED] wrote: ... Ok, thus Google is flexible in this. [sidenote: some jobs _require_ a degree by law] Or some even more stringent qualification, such as the state's Bar exam for lawyers -- you may not be able to sit for that exam w/o the appropriate degree, but

Re: application and web app technologies

2006-01-03 Thread cartercc
It might help if you elaborated on what these doubts are. It doesn't sound like you know any of the languages you've listed and are hoping that somehow you'll find one magical beast by cross-posting to a bunch of groups. I don't expect you're going to have much luck. No, we don't know any of

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Alex Martelli
Duncan Booth [EMAIL PROTECTED] wrote: Alex Martelli wrote: It IS true that in Python you cannot set arbitrary attributes on arbitrary objects. The workaround is to use a dict, indexed by the id of the object you want to set arbitrary attributes on; this has the helpful consequence

Re: New to Python, WxPython etc, etc

2006-01-03 Thread Heiko Wundram
rodmc wrote: I am totally new to Python and WxPython and need to write an application which can open up an external windows from a plug-in within GAIM (using pyGAIM). snip app = MyApp(0) app.MainLoop() You're trying to merge to event loops. GAIM uses the GTK2+ based loop, whereas

Re: Filename case-insensitivity on OS X

2006-01-03 Thread Dan Sommers
On Tue, 03 Jan 2006 15:21:19 GMT, Doug Schwarz [EMAIL PROTECTED] wrote: Strictly speaking, it's not OS X, but the HFS file system that is case insensitive. You can use other file systems, such as UNIX File System. Use Disk Utility to create a disk image and then erase it (again, using Disk

Re: Python or Java or maybe PHP?

2006-01-03 Thread Aahz
In article [EMAIL PROTECTED], James [EMAIL PROTECTED] wrote: Do you have any specific comments towards Logix's implementation? Nope. I do know that Guido is generally in favor of Python-like languages, and one of the goals of the AST project was to make that easier. Ditto PyPy. -- Aahz

Re: New to Python, WxPython etc, etc

2006-01-03 Thread Max Erickson
rodmc [EMAIL PROTECTED] wrote in news:1136299565.613252.202670 @g44g2000cwa.googlegroups.com: import _gaim import wx from wxPython.wx import * ID_ABOUT = 101 ID_EXIT = 102 class MyFrame(wxFrame): def __init__(self, parent, ID, title): I don't have an answer to your question,

Re: Hypergeometric distribution

2006-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Raven [EMAIL PROTECTED] wrote: Well, what to say? I am very happy for all the solutions you guys have posted :-) For Paul: I would prefer not to use Stirling's approximation The problem with long integers is that to calculate the hypergeometric I need to do float

Re: Application architecture (long post - sorry)

2006-01-03 Thread Cameron Laird
In article [EMAIL PROTECTED], Mike Meyer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] writes: In response to Mike's post... I know exactly where you're coming from and you are right a web based solution is the simplest and would be the fastest to develop and rollout etc. but.. The cost is

Re: WMI - invalid syntax error?

2006-01-03 Thread py
py wrote: I am going to try typing up that simple function into a new py file and put it on a diff. PC and try it. I tried my current code on another computer and had the same issue...but I am wondering if I start anew if it will help. ok, i am not sure whats going on. I created a simple

REQUEST:Jobs available for python developers on linux/unix for immediate hire

2006-01-03 Thread sathya
ZeOmega is looking for experienced python developers. Zope experience would be nice and we will be happy to train you on Zope. We use Zope in our products for the health care management industry and other consulting gigs. The domain is medical informatics and we are doing some exciting work

Komodo IDE: '__file__' is not defined when debugging

2006-01-03 Thread fortepianissimo
This is a question to all of you who use Komodo IDE for development: when I tried to debug my script which uses __file__ to get the absolute path to the file, Komodo complained that the variable is not defined. Anyway to work around this? (without changing the code) Or if I need to change the

Re: Regex anomaly

2006-01-03 Thread Ron Garret
In article [EMAIL PROTECTED], Roy Smith [EMAIL PROTECTED] wrote: In article [EMAIL PROTECTED], Sam Pointon [EMAIL PROTECTED] wrote: Would this particular inconsistency be candidate for change in Py3k? Seems to me the pos and endpos arguments are redundant with slicing, and the

Re: [OT] - Requesting Comments for Process Definition and Presentation

2006-01-03 Thread Ilias Lazaridis
Claudio Grondi wrote: Ilias Lazaridis wrote: comp.lang.python / comp.lang.ruby - I would like to ask for feedback on the Process Definition and Presentation. Essentially this is exactly what I've myself specialized to do. But I cannot apply the process to my own system. I ask here,

Re: how to show Chinese Characters in the value set of a dictionary

2006-01-03 Thread Donn Cave
In article [EMAIL PROTECTED], Diez B. Roggisch [EMAIL PROTECTED] wrote: ... What put you off probably is the fact that in the interpreter, strings are printed using their __repr__-method, that puts out those funny hex-characters. But no need to worry there. Moreover, the print statement

One-step multiples list generation?

2006-01-03 Thread Efrat Regev
Hello, Suppose I have some non-numerical Foo and would like to create a list of 20 Foo-s. Is there a one-step method (not a loop) of doing so? E.g., something like [Foo * 20] (which is obviously not the right way) that would create [Foo, Foo, Foo, ...,Foo]. I tried looking through the

Re: One-step multiples list generation?

2006-01-03 Thread Damien Wyart
* Efrat Regev [EMAIL PROTECTED] in comp.lang.python: Suppose I have some non-numerical Foo and would like to create a list of 20 Foo-s. Is there a one-step method (not a loop) of doing so? Maybe : [ Foo ] * 20 or, more verbose, [ Foo for _ in range(20) ] ? -- DW --

Dr. Dobb's Python-URL! - weekly Python news and links (Jan 3)

2006-01-03 Thread Cameron Laird
QOTW: People who are smart and care about correctness -- the 'reality-based community' -- often don't realise just how many decisions are made on the basis of unfacts ... - Steven D'Aprano QOTW: [PyPy will not bring about the Singularity.] But if it did, imagine how cool that would look on the

Re: One-step multiples list generation?

2006-01-03 Thread Rocco Moretti
Rocco Moretti wrote: Damien Wyart wrote: * Efrat Regev [EMAIL PROTECTED] in comp.lang.python: Suppose I have some non-numerical Foo and would like to create a list of 20 Foo-s. Is there a one-step method (not a loop) of doing so? Maybe : [ Foo ] * 20 or, more verbose, [ Foo for _

Re: One-step multiples list generation?

2006-01-03 Thread Rocco Moretti
Damien Wyart wrote: * Efrat Regev [EMAIL PROTECTED] in comp.lang.python: Suppose I have some non-numerical Foo and would like to create a list of 20 Foo-s. Is there a one-step method (not a loop) of doing so? Maybe : [ Foo ] * 20 or, more verbose, [ Foo for _ in range(20) ] If

Re: One-step multiples list generation?

2006-01-03 Thread Damien Wyart
Thanks for these important and useful additions, they are very welcome ! In writing my answer I had immutables in mind, but mutables are a bit more dangerous, here... -- DW -- http://mail.python.org/mailman/listinfo/python-list

Re: application and web app technologies

2006-01-03 Thread Matt Garrish
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It might help if you elaborated on what these doubts are. It doesn't sound like you know any of the languages you've listed and are hoping that somehow you'll find one magical beast by cross-posting to a bunch of groups. I don't

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Jan 3)

2006-01-03 Thread Robin Becker
Cameron Laird wrote: .. QOTW: [PyPy will not bring about the Singularity.] But if it did, imagine how cool that would look on the developers' rÃsumÃ. - Skip Montanaro so when we're being eaten by super intelligent, quantum dot filled, grey goo we get to say so you're a derivate of

Re: - Requesting Comments for Process Definition and Presentation

2006-01-03 Thread simonh
i too am none the wiser after looking at your site: Status The services are available for initial Reference Customers. Preferred Domains: Software-Development-Systems. Preferred Projects: Open Source. Profile Lazaridis ReEngineering is a lightweight startup which has developed a System

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread [EMAIL PROTECTED]
Apart from wishful thinking of course. That's always the major component in any reasoning about the afterlife. Life is a process, not a thing -- when a clock runs down and stops ticking, there is no essence of ticking that keeps going, the gears just stop. When I stop walking, there is no

Re: New Python.org website ?

2006-01-03 Thread Bugs
Aahz wrote: Dunno about in time for the new year, but there is a new design that is supposedly in final stages of getting implemented. What's your hurry? No hurry: http://tinyurl.com/8d9ar -- http://mail.python.org/mailman/listinfo/python-list

Re: One-step multiples list generation?

2006-01-03 Thread Efrat Regev
Damien Wyart wrote: * Efrat Regev [EMAIL PROTECTED] in comp.lang.python: Suppose I have some non-numerical Foo and would like to create a list of 20 Foo-s. Is there a one-step method (not a loop) of doing so? Maybe : [ Foo ] * 20 or, more verbose, [ Foo for _ in range(20) ] ?

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Hans Nowak
Duncan Booth wrote: BTW, I don't know Ruby enough to understand the example at http://lazaridis.com/case/lang/ruby/base.html: class Object def meta # adds variable meta to all objects in the system end I don't think this is valid Ruby code, by the way... It should probably be

Re: Any wing2.0 users here?

2006-01-03 Thread Russell E. Owen
In article [EMAIL PROTECTED], Alvin A. Delagon [EMAIL PROTECTED] wrote: Thanks for all the recommendations! I took a look on wingide2.0 on my linux box and it seems pretty good and has a lot of nifty features (which is pretty daunting to use since I've been programming with no IDE at all) and

Re: Tkinter Scrollbar not working

2006-01-03 Thread jmdeschamps
Dustan a écrit : I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? Frames are NOT scrollable objects for scrollbars in Tkinter: Listbox, Canvas and Text widget are. I f you want/need to scroll something

Re: Komodo IDE: '__file__' is not defined when debugging

2006-01-03 Thread Trent Mick
[fortepianissimo wrote] This is a question to all of you who use Komodo IDE for development: when I tried to debug my script which uses __file__ to get the absolute path to the file, Komodo complained that the variable is not defined. Anyway to work around this? (without changing the code)

Re: Visualisation Engine for Python

2006-01-03 Thread Andrea Gavana
I am looking for a 2D data visualisation or graphics library for Python. Can anyone point me in the right direction? You could try out matplotlib: http://matplotlib.sourceforge.net/ HTH. Andrea. Imagination Is The Only Weapon In The War Against Reality. http://xoomer.virgilio.it/infinity77

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread Kay Schluehr
[EMAIL PROTECTED] wrote: While preparing a Python411 podcast about classes and OOP, my mind wondered far afield. I found myself constructing an extended metaphor or analogy between the way programs are organized and certain philosophical ideas. So, going where my better angels dare not, here

Re: Try Python update

2006-01-03 Thread [EMAIL PROTECTED]
Very nice :) I found this online Ruby tutorial: http://tryruby.hobix.com/ I think it would be cool to have something similar for Python. Want to go further and make a nice tutorial to accompany this :) wy -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Duncan Booth
Alex Martelli wrote: Duncan Booth [EMAIL PROTECTED] wrote: That's a horrible suggestion (using id's, not the bit about separate namespaces). If you use the id then attributes will persist beyond the lifetime of the object and may suddenly reappear on other unrelated objects later. The

Re: Visualisation Engine for Python

2006-01-03 Thread Gerard Flanagan
rodmc wrote: I am looking for a 2D data visualisation or graphics library for Python. Can anyone point me in the right direction? Thanks in advance, rod I can't help with Python code but there are C++ programs here: http://www-rocq1.inria.fr/gamma/cdrom/www/emc2/eng.htm and here:

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-03 Thread Shane Hathaway
[EMAIL PROTECTED] wrote: Perhaps this is one reason why programmers are so passionate, and even religious, about their programming tools; because they intuitively sense that we are dealing with ideas that, however crudely, mirror eternal realities of immense significance. While I don't

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-03 Thread Ilias Lazaridis
Alex Martelli wrote: Ilias Lazaridis [EMAIL PROTECTED] wrote: [...] - google stuff http://lazaridis.com/case/lang/python.html#simple_variable_access this leads to a new limitation: #LIMITATION: large amount of repetitive code One normally does not define large numbers of identical accessors

Microsoft IronPython?

2006-01-03 Thread Nainto
I came across this link today. http://tinyurl.com/9c7ta It seems Microsoft is getting involved with Python. What do you think of it? Is it any good? Anything to worry about? -- Zach -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >