Leif K-Brooks schrieb:
> Kay Schluehr wrote:
> list.from_str("abc")
> >
> > list("a", "b", "c" )
>
>
> I assume we'll also have list.from_list, list.from_tuple,
> list.from_genexp, list.from_xrange, etc.?
One might unify all those factory functions into a single
list.from_iter that dispatches
Leif K-Brooks wrote:
> Kay Schluehr wrote:
>
>list.from_str("abc")
>>
>>list("a", "b", "c" )
>
>
>
> I assume we'll also have list.from_list, list.from_tuple,
> list.from_genexp, list.from_xrange, etc.?
List from list isn't needed, nor list from tuple. That's what the * is
for. And for t
On Fri, 08 Jul 2005 22:29:30 -0600, Steven Bethard <[EMAIL PROTECTED]> wrote:
>Dennis Lee Bieber wrote:
>> On Fri, 08 Jul 2005 16:07:50 -0600, Steven Bethard
>> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>>
>>>I only searched a few relatively recent threads in c.l.py, so the
On Fri, 8 Jul 2005 21:21:36 -0500, Alex Gittens <[EMAIL PROTECTED]> wrote:
>I'm trying to define a function that prints fields of given widths
>with specified alignments; to do so, I wrote some helper functions
>nested inside of the print function itself. I'm getting an
>UnboundLocalError, and aft
I ran into a phenomenon that seemed odd to me, while testing a
build of Python 2.4.1 on BeOS 5.04, on PowerPC 603e.
test_builtin.py, for example, fails a couple of tests with errors
claiming that apparently identical floating point values aren't equal.
But it only does that when imported, and only
>>> import timeit
>>> t1 = timeit.Timer('list(i for i in xrange(10))')
>>> t1.timeit()
27.267753024476576
>>> t2 = timeit.Timer('[i for i in xrange(10)]')
>>> t2.timeit()
15.050426800054197
>>> t3 = timeit.Timer('list(i for i in xrange(100))')
>>> t3.timeit()
117.61078097914682
>>> t4 = timeit.Time
Kay Schluehr wrote:
list.from_str("abc")
>
> list("a", "b", "c" )
I assume we'll also have list.from_list, list.from_tuple,
list.from_genexp, list.from_xrange, etc.?
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
>
> Leif K-Brooks schrieb:
>
>>Kay Schluehr wrote:
>>
>>>Well, I want to offer a more radical proposal: why not free squared
>>>braces from the burden of representing lists at all? It should be
>>>sufficient to write
>>>
>>>
>>list()
>>>
>>>list()
>>
>>So then what would t
Dennis Lee Bieber wrote:
> On Fri, 08 Jul 2005 16:07:50 -0600, Steven Bethard
> <[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>>I only searched a few relatively recent threads in c.l.py, so there are
>>probably more, but it looks to me like the final decision will have to
>>
Leif K-Brooks schrieb:
> Kay Schluehr wrote:
> > Well, I want to offer a more radical proposal: why not free squared
> > braces from the burden of representing lists at all? It should be
> > sufficient to write
> >
> list()
> >
> > list()
>
> So then what would the expression list('foo') mean
Bengt Richter wrote:
> On Fri, 8 Jul 2005 18:15:37 -0600, Steven Bethard <[EMAIL PROTECTED]> wrote:
>
>>[The HTML version of this Summary is available at
>>http://www.python.org/dev/summary/2005-06-16_2005-06-30.html]
>
> Not when I just looked, but maybe it takes a while ;-)
Yes, sorry, we're s
On Fri, 08 Jul 2005 21:21:36 -0500, Alex Gittens wrote:
> str = ''
> while measure()!=0:
> str += cutbits()
It is considered poor practice to use the names of built-ins like str
or list as variable names.
> What's causing the error?
Did you actually copy all of t
Hi All--
As far as I can tell, after looking only at the documentation (and not
searching peps etc.), you cannot query the codecs to give you a list of
registered codecs, or a list of possible codecs it could retrieve for
you if you knew enough to ask for them by name.
Why not? It seems to me tha
Alex Gittens wrote:
> I'm trying to define a function that prints fields of given widths
> with specified alignments; to do so, I wrote some helper functions
> nested inside of the print function itself. I'm getting an
> UnboundLocalError, and after reading the Naming and binding section in
> the P
I'm trying to define a function that prints fields of given widths
with specified alignments; to do so, I wrote some helper functions
nested inside of the print function itself. I'm getting an
UnboundLocalError, and after reading the Naming and binding section in
the Python docs, I don't see why.
jdonnell wrote:
> I'm at a loss on this one. I have a multithreaded script that gets
> 'thread.error: can't start new thread' errors seemingly randomly. I
> just got it right after starting the script when it was trying to
> create the 5th thread. Usually the script will run for a while before
> th
On Fri, 8 Jul 2005 18:15:37 -0600, Steven Bethard <[EMAIL PROTECTED]> wrote:
>[The HTML version of this Summary is available at
>http://www.python.org/dev/summary/2005-06-16_2005-06-30.html]
>
Not when I just looked, but maybe it takes a while ;-)
Regards,
Bengt Richter
--
http://mail.python.org
Hi everyone,
I thought that I would compile the python debug library and
step through it to figure out where things fail. So, I downloaded
python 2.4.1 and compile the python24_d.lib using the dsp files
in PCBuild. It compiles fine whitout a problem, but when I link agains
it i get a unresolved ex
Jeremy Moles wrote:
> This is my first time working with some of the more lower-level python
> "stuff." I was wondering if someone could tell me what I'm doing wrong
> with my simple test here?
>
> Basically, what I need is an easy way for application in userspace to
> simply echo values "down" t
Lee Harr wrote:
>> Clip Art
>> note:
>> more links welcome
>
> How about:
> http://www.openclipart.org/
Thanks!
Richard (aka PyWeek organiser bunny)
--
http://mail.python.org/mailman/listinfo/python-list
Devan L wrote:
> List comprehensions are faster than generator comprehensions for
> iterating over smaller sequences.
Could you give me an example? For the simple one below, the generator
expression was faster:
$ python -m timeit "for x in (i for i in xrange(10)): y = x"
10 loops, best of 3
"George Sakkis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> "Steven Bethard" <[EMAIL PROTECTED]> wrote:
>> Dict comprehensions were recently rejected:
>> http://www.python.org/peps/pep-0274.html
>> The reason, of course, is that dict comprehensions don't gain you much
>> a
Kay Schluehr wrote:
> Well, I want to offer a more radical proposal: why not free squared
> braces from the burden of representing lists at all? It should be
> sufficient to write
>
list()
> list()
>
> After being free one can use them for other purposes e.g. replacing the
> ugly @ decorator
[The HTML version of this Summary is available at
http://www.python.org/dev/summary/2005-06-16_2005-06-30.html]
=
Summary Announcements
=
--
OSCON Registration
--
Though if you haven't yet registered, you've already missed t
List comprehensions are faster than generator comprehensions for
iterating over smaller sequences.
--
http://mail.python.org/mailman/listinfo/python-list
Kay Schluehr wrote:
> Well, I want to offer a more radical proposal: why not free squared
> braces from the burden of representing lists at all? It should be
> sufficient to write
>
list()
>
> list()
So then what would the expression list('foo') mean? Would it be
equivalent to ['foo'] (if so
On Fri, 8 Jul 2005 15:03:45 -0500, Thomas Bartkus <[EMAIL PROTECTED]> wrote:
> "gov" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Hi,
>>
>> I've just started to learn programming and was told this was a good
>> place to ask questions :)
>>
>> Where I work, we receive large quant
chand wrote:
> can anyone help me how to provide the info about the python file
> procedure in the tcl script which uses tclpython i.e., is there a way
> to import that .py file procedure in the tcl script
>>>currently I have wriiten this tcl code which is not working
>>>
>>>package require tclpyt
Glauco wrote:
> [...]
> Gerhard thank you very much, this example explain me some idea, but
> anyway don't resolve the core question.
> In you example when dateVal is a None or textVal is none.
> argument x must be DateTime, not None.
> so i must manipulate for the empty string or None cases
No,
If your are reading this, I am sorry but I forgot to finish the first
paragraph :(. I am
trying to externalize some methods of a C++ object using python. User
will be
able to implement the function via the GUI and I then would like to add
it to an instance... So the class consits of both python
Hi everyone,
I am fairly new to python (3rd day), but i am fairly keen on
replacing javascript. I want to externalize some of the mehtod
in my App, an allow user to imp
char* lBuffer = "def handler(color):\n"
" print 12"
PyObject* lCode = Py_CompileString(lBuffer, ""
Charlie Calvert wrote:
> I perhaps rather foolishly wrote two article that mentioned Python as a
> good alternative language to more popular tools such as C# or Java. I
> encountered more resistance than I had expected. If someone who really
> knows a lot about Python would like to go over to t
Steven Bethard schrieb:
> I think the jury's still out on this one:
>
> * Alex Martelli expects list comprehensions to be removed. [1]
> * Robert Kern wants list comprehensions removed. [2]
> * Raymond Hettinger encourages continued use of list comprehensions [3]
> * Jeremy Bowers thinks list comp
On 8 Jul 2005 11:31:14 -0700, "gov" <[EMAIL PROTECTED]> wrote:
>Hi,
>
>I've just started to learn programming and was told this was a good
>place to ask questions :)
>
>Where I work, we receive large quantities of data which is currently
>all printed on large, obsolete, dot matrix printers. This
George Sakkis wrote:
> "Steven Bethard" <[EMAIL PROTECTED]> wrote:
>> Dict comprehensions were recently rejected:
>> http://www.python.org/peps/pep-0274.html
>> The reason, of course, is that dict comprehensions don't gain you
>> much at all over the dict() constructor plus a generator ex
pylize 1.2b relased
More than three years after the last release I finally pulled myself
together and am now happy to announce a maintenance release for pylize
that also brings some new features. From time to time I have been
receiving questions and comments from users, which indicated that the
"Daniel Dittmar" <[EMAIL PROTECTED]> wrote:
> Vedanta Barooah wrote:
> > in a python nested class is it possible to change the value of the
> > parent class's variable without actually creating an instance of the
> > parent class
>
> Python nested classs are like *static* Java nested classes. Non-
>
> Where I work, we receive large quantities of data which is currently
> all printed on large, obsolete, dot matrix printers. This is a problem
> because the replacement parts will not be available for much longer.
>
> So I'm trying to create a program which will capture the fixed width
> text
George Sakkis wrote:
> I get:
>
> None: 0.54952316
> String: 0.498000144958
> is None: 0.45047684
What do yo get for "name is 'string'" expressions?
Or is that a wrong way too?
On my system testing "if string is string" is slightly faster than "if
True/ if False" expressions.
But th
Hi !
>>> Your english is fine.
Ce n'est pas mon anglais. Babelfish m'a beaucoup aidé.
@-salutations
--
Michel Claveau
mél : http://cerbermail.com/?6J1TthIa8B
sites : http://mclaveau.com http://bergoiata.org http://ponx.org
--
http://mail.python.org/mailman/listinfo/python-list
[Hu, Bizhong wrote]
> My question is that is
> anyone know if python can
> Be build as 64 bits application on SPARC ???
I don't know of any reason why not. I haven't built for *64-bit* SPARC
yet but Python builds fine 32-bit on SPARC and build fine 64-bit on a
number of other platforms (linux-x86_
"gov" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I've just started to learn programming and was told this was a good
> place to ask questions :)
>
> Where I work, we receive large quantities of data which is currently
> all printed on large, obsolete, dot matrix printers.
Jeremy Jones wrote:
>>The script executes, no error messages, but the glob call turns up nothing
>>while the identical call running from a console does in fact turn up files
>>names as expected.
>>
>>
> Wild guess, but I'm thinking your webserver process doesn't have
> permissions to look in you
"Steven Bethard" <[EMAIL PROTECTED]> wrote:
> Christopher Subich wrote:
> > Ron Adam wrote:
> >> I think the association of (lambda) to [list_comp] is a nice
> >> distinction. Maybe a {dictionary_comp} would make it a complete set. ;-)
> >
> > Yeah, dictionary comprehensions would be an interesti
gov wrote:
> Hi,
>
> I've just started to learn programming and was told this was a good
> place to ask questions :)
>
> Where I work, we receive large quantities of data which is currently
> all printed on large, obsolete, dot matrix printers. This is a problem
> because the replacement parts w
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Charles Krug wrote:
> List:
>
> I'm trying to use the example files from Programming Python, 2nd Ed.
>
> I've copied them into c:\Python24\Examples\PP2E.
>
> Launching any of the examples programs by themselves seems to work
> spiffily.
>
> Using r
George Sakkis wrote:
>
> How about using the right way of comparing with None ?
>
> x = None
> t = time.time()
> for i in range(100):
> if x is None:
> pass
> print 'is None:',time.time()-t
>
> I get:
>
> None: 0.54952316
> String: 0.498000144958
> is None: 0.450476
"Mike Meyer" <[EMAIL PROTECTED]> wrote:
> I only know one compiler that punts after the first error. Even with
> lots of cheap computing power, it's still very annoying.
>
> Come to think of it, Python does this, doesn't it? For some reason,
> that doesn't annoy me. Maybe because I don't think of
Greeting to All:
I am trying to build python-2.4.1 on the sun solairs 9 on
SPARC hardware as a 64 bits application.
I have all the compiler switch setup and python build is
completed. But when the makefile try to
Run python setup.py command, It coredumped. My question is
that is anyo
I perhaps rather foolishly wrote two article that mentioned Python as a
good alternative language to more popular tools such as C# or Java. I
encountered more resistance than I had expected. If someone who really
knows a lot about Python would like to go over to the CodeFez website
and defend P
Hello gov,
> Here's an example of the raw text that I have to work with:
>
>
> ADDRESS INFORMATION/RENSEIGNEMENTS SUR L'ADRESSE:
>
>
> FOR/POUR AL/LA: 20
> CORR TYP: A1B 2C3 P:3 CHNGD/CHANG
> LANG: E CONS/REGR: ###
> MRS XXX X XXX
>
gov wrote:
>Hi,
>
>
>
>If anyone could give me suggestions as to methods in sorting this type
>of data, it would be appreciated.
>
>
>
Maybe it's overkill, but I'd *highly* recommend David Mertz's excellent
book "Text Processing in Python": http://gnosis.cx/TPiP/ Don't know
what all you'r
uwb wrote:
>Jeremy Jones wrote:
>
>
>
>>uwb wrote:
>>
>>
>>
>>>I've got a call to glob in a .py file sitting in an apache cgi-bin
>>>directory which refuses to work while the exact same code works from a
>>>python console session.
>>>
>>>I'm guessing that in order to read or write files from
Hi,
I've just started to learn programming and was told this was a good
place to ask questions :)
Where I work, we receive large quantities of data which is currently
all printed on large, obsolete, dot matrix printers. This is a problem
because the replacement parts will not be available for mu
Hello,
I don't anderstand very well Fortran syntax, but want you say
something like that:
def toTable(n1, n2, n3):
return "%20s%20s%20s"%tuple(["%.12f"%x for x in [n1, n2, n3]])
Example:
>>> import math
>>> toTable(math.pi, 10, 8.2323)
' 3.141592653590 10. 8.232300
Jeremy Jones wrote:
> uwb wrote:
>
>>I've got a call to glob in a .py file sitting in an apache cgi-bin
>>directory which refuses to work while the exact same code works from a
>>python console session.
>>
>>I'm guessing that in order to read or write files from any sort of a
>>script file sittin
Thomas Lotze wrote:
> Jacob Page wrote:
>
>>better-named,
>
> Just a quick remark, without even having looked at it yet: the name is not
> really descriptive and runs a chance of misleading people. The example I'm
> thinking of is using zope.interface in the same project: it's customary to
> name
Title: FORTRAN like formatting
Hi,
Sorry for this, but I need to write ASCII from my Python to be read by FORTRAN and the formatting is very important. Is there any way of doing anything like:
write(*,'(3(" ",1pe20.12))') (variable)
In other words, I want three columns 20 spaces long, wi
"Kay Schluehr" <[EMAIL PROTECTED]> writes:
> This might be a great self experience for some "great hackers" but just
> annoying for others who used to work with modular standard librarys and
> think that the border of the language and an application should be
> somehow fixed to enable those.
In
I am experimenting (flailing around?) with glade and python. Both under MS
Windows and Linux.
I understand why I want to "import gtk"
It gives me access to the critical gui program loop
gtk.main() and main_quit()
I am also very grateful for
import gtk.glade
This lets me open my xml format g
In article <[EMAIL PROTECTED]>,
Andreas Kostyrka <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 07, 2005 at 10:21:19PM -0700, Jacob Page wrote:
> > Jeremy Moles wrote:
> > > This is my first time working with some of the more lower-level python
> > > "stuff." I was wondering if someone could tell me wha
Tried that. They don't store the .tar.gz file. It becomes a blank page.
--
http://mail.python.org/mailman/listinfo/python-list
[George Sakkis]
> I would suggest SCons (http://www.scons.org/), a modern
> make/automake/autoconf replacement that uses python for its
> configuration files instead of yet another cryptic half-baked
> mini-language or XML.
Python might not be the most legible way to describe what a Makefile
has
The python tutor good for this
http://mail.python.org/mailman/listinfo/tutor
Miki Tebeka wrote:
> Hello Jorge,
>
> >Is there some sort of a Wiki where I could post the code and have
> >advice on what, how and where to improve? Or should I post the code it
> >here?
> You can always get
Thanks Michel et salutations.
Your english is fine.
A+
Philippe
Do Re Mi chel La Si Do wrote:
> Re Hi !
>
>
> I had only test (little) Python for .Net ; OK, it's run. It is possible to
> make winform from Python. And I had try to use Python for .Net from my
> COM-server, and from VBscript.
I'm at a loss on this one. I have a multithreaded script that gets
'thread.error: can't start new thread' errors seemingly randomly. I
just got it right after starting the script when it was trying to
create the 5th thread. Usually the script will run for a while before
throwing this error, but som
"Jags" <[EMAIL PROTECTED]> writes:
> If you don't like that, you could use any of the following editors:
> EditPlus, TextPad, UltraEdit, WingIDE, Komodo (from ActiveState) or
> jEdit. All these are Windows based.
Komodo is available for Linux and Windows, and ActiveState will be
releasing a ve
Hello Jorge,
>Is there some sort of a Wiki where I could post the code and have
>advice on what, how and where to improve? Or should I post the code it
>here?
You can always get help here, the Python community is *very* helpful.
If you prefer a Wiki, try www.wikispaces.org for free Wi
peter> I used to use Snakespell from scriptfoundry to do spellchecking
peter> on my website (www.peterbe.com/search?q=pyton) but now that I've
peter> moved server and wiped the old machine I forgot to take with me
peter> the Snakespell code.
peter> www.scriptfoundry.com where
List:
I'm trying to use the example files from Programming Python, 2nd Ed.
I've copied them into c:\Python24\Examples\PP2E.
Launching any of the examples programs by themselves seems to work
spiffily.
Using regedit, I appended "c:\Python24\Examples\PP2E" to Pythonpath
from the immediate window
Announcing PySuDoku version 0.1, yet another Sudoku program written in
Python. But this one has features that I don't see in any of the others:
* Cute interactive solving mode via Tkinter.
* Puzzle generation option, for making your own puzzles.
* Nicely packaged for installation via distut
Christopher Subich wrote:
> Ron Adam wrote:
>> I think the association of (lambda) to [list_comp] is a nice
>> distinction. Maybe a {dictionary_comp} would make it a complete set. ;-)
>
> Yeah, dictionary comprehensions would be an interesting feature. :)
> Syntax might be a bit unwieldy, thoug
Daniel Dittmar <[EMAIL PROTECTED]> wrote:
> In a SQL database, NULL = NULL will always return NULL, which is prety
> much the same as FALSE. Except for NOT, AS NOT NULL is NULL.
SQL's NULL is very much akin to the IEEE NaN (not quite, but close).
--
http://mail.python.org/mailman/listinfo/pytho
Hello J,
> I will put a hold on compiling the latest version until I really have to.
> I will probably switch to VC 7 before that.
You can use the (free) MinGW compiler (www.mingw.org). It can build
extension that link to Python 2.4.
Just use distutils setup.py and run 'python setup.py build_ext
uwb wrote:
>I've got a call to glob in a .py file sitting in an apache cgi-bin directory
>which refuses to work while the exact same code works from a python console
>session.
>
>I'm guessing that in order to read or write files from any sort of a script
>file sitting in the cgi-bin directory on a
Rocco Moretti <[EMAIL PROTECTED]> writes:
> François Pinard wrote:
> If your program had only minor errors, there was likely a good chance
> that the compiler might guess correctly, and your program would
> compile to what you wanted in the first place. If not, by continuing
> on, the compiler can
Has anyone recommended ftputil? Either add that to the library or
make the existing ftp module more high level would be my suggestion.
http://www.sschwarzer.net/python/python_software.html
-Greg
On 7 Jul 2005 05:38:28 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
> 1. LDAP module shoul
[Rocco Moretti]
> François Pinard wrote:
> > I once worked with a PL/I compiler (on a big IBM mainframe), which was
> > trying to be helpful by spitting pages of:
> > Error SUCH AND SUCH, assuming that THIS AND THIS was meant.
> > and continuing compilation nevertheless. It was a common jok
I've got a call to glob in a .py file sitting in an apache cgi-bin directory
which refuses to work while the exact same code works from a python console
session.
I'm guessing that in order to read or write files from any sort of a script
file sitting in the cgi-bin directory on a server, somethin
On 2005-07-08, <[EMAIL PROTECTED]> <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm trying to create a broadcast socket in some portable code (windows XP &
> mandrake linux). When I run the following lines through idle:
>
> import socket
> s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
> s.con
Francisco Borges wrote:
> I like PyX, use it a lot and would suggest it as a beter plotting
> library than the ones at Scipy (for as long as you don't need on-screen
> plotting).
FWIW, the plotting support in scipy is essentially unmaintained and abandoned,
since the advent of matplotlib. It has
Scott David Daniels wrote:
> Testing for None should be an is-test (not just for speed). In
> older pythons the == result wasn't necessarily same as is-test.
> This made sense to me after figuring out NULL in database stuff.
NULL in SQL databases has nothing to do with Python None. I'm quite sure
Hello,
I'm trying to create a broadcast socket in some portable code (windows XP &
mandrake linux). When I run the following lines through idle:
import socket
s = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
s.connect( ('', 17100) )
On windows, connect() returns and I have a broadcast so
Re Hi !
I had only test (little) Python for .Net ; OK, it's run. It is possible to
make winform from Python. And I had try to use Python for .Net from my
COM-server, and from VBscript. OK also.
Plus, I had try to call my Python-server-COM, from C# : OK it's run. C#
can use Python.
And, I h
Right-click on the Pythonwin icon in the tray and select "Break into running
code".
HTH
Franz GEIGER
<[EMAIL PROTECTED]> schrieb im Newsbeitrag
news:[EMAIL PROTECTED]
> Hi All,
> (sorry for my bad english)
> I wrote a __tiny__ and __stupid__ recursive script directly into
> pythonwin
> interac
cantabile wrote:
> bruno modulix a écrit :
>>You may want to have a look at the Factory pattern...
>> ... demo of class Factory ...
Taking advantage of Python's dynamic nature, you could simply:
# similarly outrageously oversimplified dummy example
class Gui(object):
def __init__
jwaixs schrieb:
> arg... I've lost 1.5 hours of my precious time to try letting re work
> correcty.
1.5 hours are not enough for understanding regular expressions. But to
be honest: I never had the patience to learn them accurately and I
guess I will never do so as well as I don't ever learn sed o
Gerhard Haering wrote:
> On Fri, Jul 08, 2005 at 04:23:50PM +0200, Glauco wrote:
>
>>[...]
>>My problem is to do a middle layer over pycopg for eliminate type
>>casting problem in postgres in all direction.
>>
>>i've resolved this doing a C extension in python and manipulating only
>>string and
Ron Adam wrote:
> Here's something interesting:
>
> import time
>
> x = None
> t = time.time()
> for i in range(100):
> if x==None:
> pass
> print 'None:',time.time()-t
>
> x = 'to-end'
> t = time.time()
> for i in range(100):
> if x=='to-end':
> pass
> print 'Str
On 7/7/2005 5:50 PM, GregM wrote:
> A search on google for odbchelper resulted in:
> http://linux.duke.edu/~mstenner/free-docs/diveintopython-3.9-1/py/odbchelper.py
>
> I think this will help you.
> Greg.
>
That is the previous example which worked for me fine. I have this code
on a network dr
Title: Python Windows Install Problem (Error #2755)
Please find attached a PDF file (removed due to size) containing (2) print-screen images of an error (Code # 2755) occuring during attempted installation of python for windows, version 2.4.1 (on PC using MS2000). Any help would be a
Hi All,
(sorry for my bad english)
I wrote a __tiny__ and __stupid__ recursive script directly into
pythonwin
interactive window with a time.sleep(1) and a print before each
recursion...
I should have taken a closer look at the ending condition (never
satisfied!),
anyway I was quite confident tha
[EMAIL PROTECTED] schrieb:
> I've been reading the beloved Paul Graham's "Hackers and Painters".
> He claims he developed a web app at light speed using Lisp and lots
> of macros.
Yes, Paul is a postmodern hero who reininvents himself and his language
every day and with every program:
"Experien
François Pinard wrote:
> I once worked with a PL/I compiler (on a big IBM mainframe), which was
> trying to be helpful by spitting pages of:
>
> Error SUCH AND SUCH, assuming that THIS AND THIS was meant.
>
> and continuing compilation nevertheless. It was a common joke to say
> that PL/I w
On Fri, Jul 08, 2005 at 04:23:50PM +0200, Glauco wrote:
> [...]
> My problem is to do a middle layer over pycopg for eliminate type
> casting problem in postgres in all direction.
>
> i've resolved this doing a C extension in python and manipulating only
> string and int in my application.
>
>
python version:
import win32com.client
myOL = win32com.client.Dispatch("Outlook.Application")
myNS = myOL.GetNamespace("MAPI")
sItem = win32com.client.Dispatch("Redemption.SafeMailItem")
myDestBox = myNS.GetDefaultFolder(6)
oItem = myDestBox.Items.Add(0)
sItem.Item = oItem
sItem.Import("H:\\I
Hello,
I am a Java Developer that has been learning Python
by doing simple things. I am loving this initial vibe I'm getting
out of Python. However, because I feel programmers of a
certain languages bring with them certain vices when moving to other
languages, I'd like to have feedback fro
I'm rebuilding my old library i've done some year ago using python and
postgres.
My problem is to do a middle layer over pycopg for eliminate type
casting problem in postgres in all direction.
i've resolved this doing a C extension in python and manipulating only
string and int in my applicati
Jerome Alet wrote:
> Hi,
>
> Le Fri, 08 Jul 2005 15:16:21 +0200, Bas Michielsen a écrit :
>
>
>>Is there a good/standard way of having (composite)
>>objects write a Python script which will regenerate
>>the very same object ?
>
>
> I've done something like this for the ReportLab toolkit.
>
>
Overview
**python-constraint** [1]_ is a Python module offering solvers for
Constraint Solving Problems (CSPs) over finite domains in simple
and pure Python. CSP is class of problems which may be represented
in terms of variables (`a`, `b`, ...), domains (`a in [1, 2, 3]`, ...),
1 - 100 of 132 matches
Mail list logo