Re: Decorators and buffer flushing

2008-02-28 Thread Gabriel Genellina
En Thu, 28 Feb 2008 18:04:38 -0200, Ethan Metsger <[EMAIL PROTECTED]> escribió: > On Thu, 28 Feb 2008 14:48:55 -0500, <[EMAIL PROTECTED]> wrote: > >> Can you reproduce the bug on the console? Or, try starting with a new >> line in the output. Or, try a input(). > > I can reproduce the issue in

Re: Python app at startup!

2008-02-28 Thread Larry Bates
SMALLp wrote: > Hy. I create simple application. Yust an windows and "compile" it with > py2exe. I add registry value > reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run /v > MyApp /t REG_SZ /d C:\myapp.exe /f' > > And it wont start. When i use console instead od window i

Re: Run wxPython app remotely under XWindows

2008-02-28 Thread Grant Edwards
On 2008-02-28, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > Is there something special you have to do to get a wxPython > app to run remotely under xwindows? My Tkinter apps always > automatically work that way, so I was surprised to even be > confronted with this problem. AFAIK, running them remot

Re: Run wxPython app remotely under XWindows

2008-02-28 Thread Bjoern Schliessmann
Sean DiZazzo wrote: > Is there something special you have to do to get a wxPython app to > run remotely under xwindows? My Tkinter apps always automatically > work that way, so I was surprised to even be confronted with this > problem. Could you please provide more detail? My wxPython apps run p

Re: How to configure Python in Windows

2008-02-28 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hi Folks, > > I just downloaded precompiled Python for Windows, and it runs. Now I > have got the command line coding. However, I can't run my python > scripts. My python script, foo.py, is located in C:\\\pydir, and I > have set the python interpreter on the directo

Re: Run wxPython app remotely under XWindows

2008-02-28 Thread Sean DiZazzo
On Feb 28, 3:50 pm, Bjoern Schliessmann wrote: > Sean DiZazzo wrote: > > Is there something special you have to do to get a wxPython app to > > run remotely under xwindows?  My Tkinter apps always automatically > > work that way, so I was surprised to even be confronted with this > > problem. > >

Re: How about adding rational fraction to Python?

2008-02-28 Thread Arnaud Delobelle
On Feb 28, 10:41 pm, Steven D'Aprano <[EMAIL PROTECTED] cybersource.com.au> wrote: [...] > The interesting case is -1/2. According to the argument that "2 doesn't > go into 1", -1/2 should also return 0. But that's not what Python > returns, so it looks like the "int division" camp is screwed no ma

Re: Running test01.py under Windows (basic level)

2008-02-28 Thread Gabriel Genellina
En Thu, 28 Feb 2008 21:05:45 -0200, K Viltersten <[EMAIL PROTECTED]> escribió: > I have v2.5.2 installed and i've composed > a source code i'm sure everybody will be > impressed by. It goes like this. > > def bloppA (): > print "a very advanced piece of code" > > What i get to work is to mak

Re: Nested module import clutters package namespace?

2008-02-28 Thread Gabriel Genellina
En Thu, 28 Feb 2008 11:00:08 -0200, Dr. Rüdiger Kupper <[EMAIL PROTECTED]> escribió: > I'd be grateful for help with a problem of package and module > namespaces. The behaviour I observe is unexpected (to me), and I > couldn't find the answer in the docs, the tutorial, or the mailing > list arch

Re: Snackages [Re: is there enough information?]

2008-02-28 Thread Gabriel Genellina
En Wed, 27 Feb 2008 21:06:56 -0200, Micah Cowan <[EMAIL PROTECTED]> escribi�: > Gabriel Genellina wrote: >>> Speak not of Wendy's -- they moved into town in my college days... >>> The "hot and juicy" was commonly taken to mean: patty dipped in pan >>> drippings, then nuked in microwave... An

Re: Windows gzip problem

2008-02-28 Thread Gabriel Genellina
En Thu, 28 Feb 2008 21:09:30 -0200, John Earls <[EMAIL PROTECTED]> escribió: > I am having a problem with gzip. The code worked fine under linux but > when I moved it over to windows it is getting stuck unzipping a gz > file. > > -- snippet -- > > fileObj = gzip.GzipFile(iceGetter.file.

Re: Nested module import clutters package namespace?

2008-02-28 Thread Arnaud Delobelle
On Feb 29, 12:16 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 28 Feb 2008 11:00:08 -0200, Dr. Rüdiger Kupper   > <[EMAIL PROTECTED]> escribió: > > > > > I'd be grateful for help with a problem of package and module > > namespaces. The behaviour I observe is unexpected (to me), and I

Re: Pythons & Ladders

2008-02-28 Thread Jeff Schwab
Marc 'BlackJack' Rintsch wrote: > On Thu, 28 Feb 2008 10:34:45 -0800, Jeff Schwab wrote: > >>> Hey a flame bait. I'll bite. >> Excuse me? Somebody posts about an introductory course on C++ covering >> "dynamic arrays using pointers" and literally says "kill me now," and >> I'm the flamer for a

Re: Run wxPython app remotely under XWindows

2008-02-28 Thread Sean DiZazzo
On Feb 28, 3:50 pm, Bjoern Schliessmann wrote: > Sean DiZazzo wrote: > > Is there something special you have to do to get a wxPython app to > > run remotely under xwindows?  My Tkinter apps always automatically > > work that way, so I was surprised to even be confronted with this > > problem. > >

Re: Run wxPython app remotely under XWindows

2008-02-28 Thread Sean DiZazzo
On Feb 28, 5:26 pm, Sean DiZazzo <[EMAIL PROTECTED]> wrote: > On Feb 28, 3:50 pm, Bjoern Schliessmann > [EMAIL PROTECTED]> wrote: > > Sean DiZazzo wrote: > > > Is there something special you have to do to get a wxPython app to > > > run remotely under xwindows?  My Tkinter apps always automaticall

Re: How to configure Python in Windows

2008-02-28 Thread cosmo_general
On 2月28日, 下午6时52分, Larry Bates <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hi Folks, > > > I just downloaded precompiled Python for Windows, and it runs. Now I > > have got the command line coding. However, I can't run my python > > scripts. My python script, foo.py, is located in C:\

Re: Pythons & Ladders

2008-02-28 Thread Jeff Schwab
Benoit wrote: > Forgive my language concerning C++ as its turned the thread into > something I did not intend. I merely wished to point out that Python > was easier for me to learn than C++. To Schwab, its likely that Mark > Lutz is simply a better instructor than my professor. Sorry for hijackin

(Newbie) Help with sockets.

2008-02-28 Thread mentaltruckdriver
Hi everyone. I'm fairly new to Python, and even more new to socket programming. I think I've wrapped my head around sockets, and with that I want to create a Telnet-based chat server, the idea being people connect to the telnet servers with their clients and they all communicate. I've got the code

Re: (Newbie) Help with sockets.

2008-02-28 Thread Miki
Hello, > Hi everyone. I'm fairly new to Python, and even more new to socket > programming. I think I've wrapped my head around sockets, and with > that I want to create a Telnet-based chat server, the idea being > people connect to the telnet servers with their clients and they all > communicate.

Re: Permission to use Mac OS 'rocketship' dock icon?

2008-02-28 Thread Benjamin
On Feb 28, 3:37 pm, "Anand Patil" <[EMAIL PROTECTED]> wrote: > Hi all, > > The image of a rocket with the Python logo that occasionally shows up > in the dock would make part of a nice logo for PyMC, an open-source > Python Bayesian statistics package. Anyone know who we would have to > ask to get

pySQLite Insert speed

2008-02-28 Thread mdboldin
I hav read on this forum that SQL coding (A) below is preferred over (B), but I find (B) is much faster (20-40% faster) (A) sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values curs.execute(sqla) (B) pf= '?, ?, ?, ?' sqlxb= 'INSERT INTO DTABLE2 VALUES ( %s ) ' % pf

Re: (Newbie) Help with sockets.

2008-02-28 Thread Gabriel Genellina
En Fri, 29 Feb 2008 00:20:26 -0200, <[EMAIL PROTECTED]> escribió: > Hi everyone. I'm fairly new to Python, and even more new to socket > programming. I think I've wrapped my head around sockets, and with > that I want to create a Telnet-based chat server, the idea being > people connect to the tel

Re: Problems Generating HTML With pydoc

2008-02-28 Thread Ron DuPlain
On Feb 26, 3:23 am, "Juha S." <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to generate HTML docs for a Python package (directory) > currently containing an empty __init__.py and a Module.py file with some > classes and docstrings. I tried using the command > "F:\path\to\project\pydoc.py -w myPac

Re: Windows gzip problem

2008-02-28 Thread John Earls
On Feb 28, 6:57 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Thu, 28 Feb 2008 21:09:30 -0200, John Earls <[EMAIL PROTECTED]> > escribió: > > > > > I am having a problem with gzip. The code worked fine under linux but > > when I moved it over to windows it is getting stuck unzipping a gz

Re: Article of interest: Python pros/cons for the enterprise

2008-02-28 Thread Robert Brown
Paul Rubin writes: > Robert Brown <[EMAIL PROTECTED]> writes: >> This is the approach taken by Common Lisp. Often just a few type >> declarations, added to code in inner loops, results in vastly faster code. > That is just a dangerous hack of improving performance by t

Re: How about adding rational fraction to Python?

2008-02-28 Thread Ross Ridge
Ross Ridge wrote: > You're just going to have to accept that there that there is no > concensus on this issue and there never was. Steven D'Aprano <[EMAIL PROTECTED]> wrote: >But that's not true. The consensus, across the majority of people (both >programmers and non-programmers alike) is that

Re: Is crawling the stack "bad"? Why?

2008-02-28 Thread Russell Warren
> OK, if you crawl the stack I will seek you out and hit you with a big > stick. Does that affect your decision-making? How big a stick? :) > Seriously, crawling the stack introduces the potential for disaster in > your program, since there is no guarantee that the calling code will > provide the

SV: Running test01.py under Windows (basic level)

2008-02-28 Thread K Viltersten
>> I have v2.5.2 installed and i've composed >> a source code i'm sure everybody will be >> impressed by. It goes like this. >> >> def bloppA (): >> print "a very advanced piece of code" >> >> What i get to work is to make it run from >> the the snakes shell. Then, i realised >> that such a mas

Re: pySQLite Insert speed

2008-02-28 Thread Carsten Haese
On Thu, 28 Feb 2008 19:35:03 -0800 (PST), mdboldin wrote > I hav read on this forum that SQL coding (A) below is preferred over > (B), but I find (B) is much faster (20-40% faster) > > (A) > > sqla= 'INSERT INTO DTABLE1 VALUES (%d, %d, %d, %f)' % values > curs.execute(sqla) > > (B) >

SV: Running test01.py under Windows (basic level)

2008-02-28 Thread K Viltersten
>> def bloppA (): >> print "a very advanced piece of code" > > go to File -> Open, open your saved file, > and use the Run menu (or press F5). When i try that i get this. >>> == RESTART === >>> And nothing more. Do i use wrong "print"?! -- Regards Konrad Viltersten

Re: (Newbie) Help with sockets.

2008-02-28 Thread Grant Edwards
On 2008-02-29, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > En Fri, 29 Feb 2008 00:20:26 -0200, <[EMAIL PROTECTED]> escribió: > >> Hi everyone. I'm fairly new to Python, and even more new to socket >> programming. I think I've wrapped my head around sockets, and with >> that I want to create a Te

Re: Article of interest: Python pros/cons for the enterprise

2008-02-28 Thread dave_mikesell
Good article. Re: the comparisons with C++, most of my experience is with C++ and I like it because it's powerful, flexible, portable, and keeps me employable. However, I can't think of any application or system I've written in C++ (or Java or Perl) that could not have been written in Python. In

buy cheap tibia gold here gameotl.com

2008-02-28 Thread kyla
http://www.gameotl.com/tibia.htm -- http://mail.python.org/mailman/listinfo/python-list

Re: SV: Running test01.py under Windows (basic level)

2008-02-28 Thread Gabriel Genellina
En Fri, 29 Feb 2008 02:30:43 -0200, K Viltersten <[EMAIL PROTECTED]> escribió: >>> I have v2.5.2 installed and i've composed >>> a source code i'm sure everybody will be >>> impressed by. It goes like this. >>> >>> def bloppA (): >>> print "a very advanced piece of code" >>> >>> What i get t

Re: SV: Running test01.py under Windows (basic level)

2008-02-28 Thread Gabriel Genellina
En Fri, 29 Feb 2008 02:38:04 -0200, K Viltersten <[EMAIL PROTECTED]> escribió: >>> def bloppA (): >>> print "a very advanced piece of code" >> >> go to File -> Open, open your saved file, >> and use the Run menu (or press F5). > > When i try that i get this. > == RESTART === >>>

Re: Problems Generating HTML With pydoc

2008-02-28 Thread Juha S.
Ron DuPlain wrote: > I also expected "pydoc -w mypackage" to recursively generate html for > the whole package, but it only wrote the top-level file for me as well > (on Linux, for the record) > > I use the workaround: > pydoc -w ./ > > This runs "pydoc -w" on all Python files in the current dir

Registry and Spyware Cleaner (Free Download)

2008-02-28 Thread stelevision
Netcom3(tm) is a recognized global leader in internet security software. With Netcom3 Internet Security Suite, it's key focus is on securing sensitive consumer online interactions, as well as prevent and remove Spyware, Adware, optimize, fix PC errors, and make your system run faster and error free

<    1   2