Re: Top online steroid pharmacies - 2009 Best Site!

2014-07-21 Thread stuffstorehouse2014
GET A GOOD LOOKING AND SEXY BODY HERE We are suppliers and whole sellers chemical supplements. BEFORE WE SUPPLY TO YOU MAKE SURE YOU ARE NOT UNDER 18. we supply chemical supplements such as HIGH QUALITY STEROID HORMONES, HGH ,SEX PILLS, HIGH QUALITY PAIN KILLERS, MEDICAL KUSH AND HIGH QUALITY

Re: Unicode, stdout, and stderr

2014-07-21 Thread Lele Gaifax
"Frank Millman" writes: > Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit > (In > tel)] on win32 > Type "help", "copyright", "credits" or "license" for more information. x = '\u2119' x # this uses stderr > '\u2119' print(x) # this uses stdout > Trace

Re: Network/multi-user program

2014-07-21 Thread CHIN Dihedral
> > almost nothing about JS. I worked thru a short generic tutorial a couple > Please check Pyjs and Python with flash in http://pyjs.org/examples/Space.html for the front end part of GUI under a browser. -- https://mail.python.org/mailman/listinfo/python-list

Re: Network/multi-user program

2014-07-21 Thread Lele Gaifax
Monte Milanuk writes: > On 2014-07-21, Lele Gaifax wrote: >> Monte Milanuk writes: >>> How hard was it to migrate from a desktop app to what you have now? >> >> Well, basically I rewrote everything, there's nothing in common. The >> original application was written in Delphi, using Paradox tabl

Unicode, stdout, and stderr

2014-07-21 Thread Frank Millman
Hi all This is not important, but I would appreciate it if someone could explain the following, run from cmd.exe on Windows Server 2003 - C:\>python Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 10:38:22) [MSC v.1600 32 bit (In tel)] on win32 Type "help", "copyright", "credits" or "license" f

Re: Installing Python 2.6.2 on Ubuntu 12.1

2014-07-21 Thread Miki Tebeka
Greetings, > The installation went through successfully, however I > noticed that some of the _*.so files did not get built under > lib/python2.6/lib-dynload/ folder (eg _sha256.so) , which is likely the reason > why my setuptools install failed due to the error: I believe you need the developer l

async, on-demand lazy rendering for jinja2 possible?

2014-07-21 Thread est
Hi all, Been reading @igrigorik's posts https://www.igvita.com/archives/ I found that flush response as early as possible is crucial for a website performance. I wanna make Time To First Byte (TTTFB) happen as early as possible with a Jinja2 site, Suppose a typical Jinja2 template: {{ site_

Re: Network/multi-user program

2014-07-21 Thread Roy Smith
In article , Monte Milanuk wrote: > Any hints/opinions on what those drawbacks might be? I know literally > almost nothing about JS. I worked thru a short generic tutorial a couple > years ago, but nothing like these libraries I see people talking about > now like jquery, angular, ext, and so

A Pythonista Meets JavaScript™ (was: Network/multi-user program)

2014-07-21 Thread Ben Finney
Monte Milanuk writes: > I know literally almost nothing about JS. At the Melbourne Python Users's Group this year, I gave a presentation http://vimeo.com/album/2855296/video/93691338> on my initial learnings of JavaScript™ (and ECMAScript) from a Python programmer's perspective. Hope that's use

Re: Network/multi-user program

2014-07-21 Thread Monte Milanuk
On 2014-07-21, Lele Gaifax wrote: > Monte Milanuk writes: >> How hard was it to migrate from a desktop app to what you have now? > > Well, basically I rewrote everything, there's nothing in common. The > original application was written in Delphi, using Paradox tables, no > i18n, no multiuser, no

Re: asyncip application hangs

2014-07-21 Thread Yaşar Arabacı
2014-07-22 1:19 GMT+03:00 Yaşar Arabacı : > This program is supposed to give me status codes for web pages that > are found on my sitemap.xml file. But program hangs as Tasks wait for > getting something out of the Queue. I think it has something to do > with how I am using asyncio.Queue, but I cou

asyncip application hangs

2014-07-21 Thread Yaşar Arabacı
I am trying to grasp how asyncio works today. Based on the examples that I found on the docs, I write a simple program like this; import asyncio import urllib.request import urllib.parse @asyncio.coroutine def print_status_code(url_q): while True: url = yield from url_q.get()

Re: How to use string constant?

2014-07-21 Thread Terry Reedy
On 7/21/2014 4:46 PM, fl wrote: Hi, I learn string constant on Python tutorial at: https://docs.python.org/2/library/string.html Although it gives explanation, it does not show me any example usage. Could you give me an example on using these options? string.digits string.ascii_letters >>

Re: Event loop documentation error

2014-07-21 Thread Terry Reedy
On 7/21/2014 2:38 PM, Yaşar Arabacı wrote: I was reading https://docs.python.org/3/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm and wanted to test the example, With 3.4.0, 3.4.1, or 3.5.0a0 in the repository (available to view at hg.python.org, I believe)?

Re: Network/multi-user program

2014-07-21 Thread Lele Gaifax
Monte Milanuk writes: > On 2014-07-21, Lele Gaifax wrote: >> I manage small events with a single notebook and a low cost printer, >> without network connection, while major events with a network connection >> may be managed online. >> >> You can try it out at http://sol3.arstecnica.it/, using g

Re: How to extract digit from a number?

2014-07-21 Thread Tim Chase
On 2014-07-21 13:42, fl wrote: > The original source input is: > >>> a = 1234 > >>> [int(d) for d in str(a)] > > He hopes the output is: > >>> [1, 2, 3, 4] > > In fact, I get the output is: > > >>> a = 1234 > >>> [int(d) for d in str(a)] > Traceback (most recent call last): > File "", line

Re: How to extract digit from a number?

2014-07-21 Thread Roy Smith
In article , fl wrote: > >>> a = 1234 > >>> [int(d) for d in str(a)] > Traceback (most recent call last): > File "", line 1, in > TypeError: 'str' object is not callable This looks like you've overwritten str with an *instance* of a string. When a python interpreter starts up, there are ce

How to use string constant?

2014-07-21 Thread fl
Hi, I learn string constant on Python tutorial at: https://docs.python.org/2/library/string.html Although it gives explanation, it does not show me any example usage. Could you give me an example on using these options? string.digits string.ascii_letters Thanks, -- https://mail.python.or

Re: How to extract digit from a number?

2014-07-21 Thread fl
On Monday, July 21, 2014 4:26:25 PM UTC-4, Tim Chase wrote: > On 2014-07-21 13:14, fl wrote: > You don't specify *what* is wrong or what constitutes "does not > work". If you provide an example of what you *do* want, folks here > can help you get closer to the code you need to do what you intend.

Re: How to extract digit from a number?

2014-07-21 Thread Tim Chase
On 2014-07-21 13:14, fl wrote: > I see the following example on line, but it does not work. I do not > know what is wrong. Could you correct it for me? > > I'm not sure what [1, 1, 0, 0, 0, 0, ...] has to do with 128, but > if you want the base 10 digits: > > >>> a = 1234 > >>> [int(d) for d in s

How to extract digit from a number?

2014-07-21 Thread fl
Hi, I see the following example on line, but it does not work. I do not know what is wrong. Could you correct it for me? Thanks, I'm not sure what [1, 1, 0, 0, 0, 0, ...] has to do with 128, but if you want the base 10 digits: >>> a = 1234 >>> [int(d) for d in str(

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Terry Reedy
On 7/21/2014 10:27 AM, Grant Edwards wrote: On 2014-07-21, Chris Angelico wrote: You call it a bug because you can't think of any way it could be beneficial. That's the wrong way of looking at it. Something isn't a bug because you find it annoying; it's a bug because it fails to implement the

Re: Event loop documentation error

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 5:15 AM, Mark Lawrence wrote: > On 21/07/2014 20:00, Chris Angelico wrote: >> >> On Tue, Jul 22, 2014 at 4:55 AM, Yaşar Arabacı >> wrote: >>> >>> After reading the next page of the documentation, I realized that >>> "add_signal_handler() and remove_signal_handler() are not

Re: Event loop documentation error

2014-07-21 Thread Mark Lawrence
On 21/07/2014 20:00, Chris Angelico wrote: On Tue, Jul 22, 2014 at 4:55 AM, Yaşar Arabacı wrote: After reading the next page of the documentation, I realized that "add_signal_handler() and remove_signal_handler() are not supported" on Windows. Moreover, dev3.5 version of the docs are also sayin

Re: Event loop documentation error

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 4:55 AM, Yaşar Arabacı wrote: > After reading the next page of the documentation, I realized that > "add_signal_handler() and remove_signal_handler() are not supported" > on Windows. Moreover, dev3.5 version of the docs are also saying that > they are not supported, so I th

Fwd: Event loop documentation error

2014-07-21 Thread Yaşar Arabacı
-- Forwarded message -- From: Yaşar Arabacı Date: 2014-07-21 21:54 GMT+03:00 Subject: Re: Event loop documentation error To: Chris Angelico 2014-07-21 21:45 GMT+03:00 Chris Angelico : > SIGINT is a Unix signal. There is an equivalent for Windows, but it > wouldn't at all surpris

Re: Event loop documentation error

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 4:38 AM, Yaşar Arabacı wrote: > Traceback (most recent call last): > File "C:/Users/gorki/Documents/Python Scripts/as-io.py", line 14, in > > loop.add_signal_handler(SIGINT, partial(ask_exit, "SIGINT")) > File "C:\Python34\lib\asyncio\events.py", line 329, in add_

Event loop documentation error

2014-07-21 Thread Yaşar Arabacı
I was reading https://docs.python.org/3/library/asyncio-eventloop.html#example-set-signal-handlers-for-sigint-and-sigterm and wanted to test the example, however, I am getting this error when I run the code; Traceback (most recent call last): File "C:/Users/gorki/Documents/Python Scripts/as-io.

Re: Idle's Shell: prompts and indents (was ...) Idle users please read

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 4:30 AM, Terry Reedy wrote: > It would be a lot of work for close to 0 gain. It could not work consistent > without special-casing sys assignments. The latter doesn't much matter (this is just a theory to help people realize what they've done, not an actual preventative -

Re: Idle's Shell: prompts and indents (was ...) Idle users please read

2014-07-21 Thread Terry Reedy
On 7/21/2014 6:56 AM, Chris Angelico wrote: On Mon, Jul 21, 2014 at 7:00 PM, Terry Reedy wrote: In general, Idle should execute user code the same way that the interpreter does, subject to the limitations of the different execution environment. Agreed, but I think the setting of prompts is a

Re: Network/multi-user program

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 4:16 AM, Monte Milanuk wrote: > On 2014-07-21, Chris Angelico wrote: >> On Tue, Jul 22, 2014 at 2:07 AM, Monte Milanuk wrote: >>> So I guess I'm asking for advice or simplified examples of how to >>> go about connecting a client desktop app to a parent/master desktop app,

Re: Network/multi-user program

2014-07-21 Thread Monte Milanuk
On 2014-07-21, Lele Gaifax wrote: > I manage small events with a single notebook and a low cost printer, > without network connection, while major events with a network connection > may be managed online. > > You can try it out at http://sol3.arstecnica.it/, using guest/guest as > username/passwo

Re: Network/multi-user program

2014-07-21 Thread Monte Milanuk
On 2014-07-21, Chris Angelico wrote: > On Tue, Jul 22, 2014 at 2:07 AM, Monte Milanuk wrote: >> So I guess I'm asking for advice or simplified examples of how to >> go about connecting a client desktop app to a parent/master desktop app, >> so I can get some idea of how big of a task I'm looking

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 2:55 AM, Grant Edwards wrote: > On 2014-07-21, Chris Angelico wrote: >> >> When you send email, you have to have a valid envelope-from address, >> which can be found in the headers. But the From: address doesn't >> technically have to be valid. > > Note that a lot of mail

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Lele Gaifax
Steven D'Aprano writes: >> Granted, the readline library exposes a "operate-and-get-next" function, >> by default bound to \C-o, with the same behaviour as the cmd.exe one. I >> find it very handy in the scenario you picted. So again, "feature" and >> "bug" may be effectively subjective :-) > > H

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Grant Edwards
On 2014-07-21, Grant Edwards wrote: > On 2014-07-21, Shiyao Ma wrote: >> No intent to pollute this thread. >> >> But really interested in the invalid@invalid.invalid mailing address. >> And,,, obviously, I cannot send to invalid@invalid.invalid, so > > FWIW, my real e-mail address is at the botto

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Steven D'Aprano
On Mon, 21 Jul 2014 17:57:22 +0200, Lele Gaifax wrote: > Chris Angelico writes: > >> Take, for instance, the behaviour of Windows's cmd.exe editing keys: >> enter three commands, then up-arrow three times and hit enter, then >> press down, enter, down, enter. You'll repeat the three commands. In

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Grant Edwards
On 2014-07-21, Mark Lawrence wrote: > On 21/07/2014 15:27, Grant Edwards wrote: >> On 2014-07-21, Chris Angelico wrote: >> >>> You call it a bug because you can't think of any way it could be >>> beneficial. That's the wrong way of looking at it. Something isn't a >>> bug because you find it anno

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Grant Edwards
On 2014-07-21, Chris Angelico wrote: > On Tue, Jul 22, 2014 at 12:40 AM, Shiyao Ma wrote: >> No intent to pollute this thread. >> >> But really interested in the invalid@invalid.invalid mailing address. >> And,,, obviously, I cannot send to invalid@invalid.invalid, so >> >> How does you(he) make

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Grant Edwards
On 2014-07-21, Shiyao Ma wrote: > No intent to pollute this thread. > > But really interested in the invalid@invalid.invalid mailing address. > And,,, obviously, I cannot send to invalid@invalid.invalid, so FWIW, my real e-mail address is at the bottom of every post. > How does you(he) make this

Installing Python 2.6.2 on Ubuntu 12.1

2014-07-21 Thread Behzad Dastur
Question: How to install Python manually and make sure that all the necessary modules and .so files get built (eg: _sha256.so, zlib.so) Details: I am trying to install Python2.6.2 version manually, installation goes through fine, but later installing setuptools fails due to _sha256 Module not f

RE: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Coll-Barth, Michael
> -Original Message- > From: Python-list [mailto:python-list-bounces+michael.coll- > barth=verizonwireless@python.org] On Behalf Of Grant Edwards > Sent: Monday, July 21, 2014 10:27 AM > To: python-list@python.org > Subject: Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

Re: Network/multi-user program

2014-07-21 Thread Lele Gaifax
Monte Milanuk writes: > I need to create a particular application for administering a sporting > event. 95% (and this may be understating the case) of the 'users' would > likely be single-machine, single user scenarios. For those exceptions > (which are important enough that I'm concerned ove

Re: Network/multi-user program

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 2:07 AM, Monte Milanuk wrote: > So I guess I'm asking for advice or simplified examples of how to > go about connecting a client desktop app to a parent/master desktop app, > so I can get some idea of how big of a task I'm looking at here, and > whether that would be more o

Network/multi-user program

2014-07-21 Thread Monte Milanuk
So... this is a fairly general / hypothetical question, and I'm more looking for direction than specifics - though it may be useful as well. I need to create a particular application for administering a sporting event. 95% (and this may be understating the case) of the 'users' would likely be si

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 1:57 AM, Lele Gaifax wrote: > Granted, the readline library exposes a "operate-and-get-next" function, > by default bound to \C-o, with the same behaviour as the cmd.exe > one. I find it very handy in the scenario you picted. So again, > "feature" and "bug" may be effective

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Lele Gaifax
Chris Angelico writes: > Take, for instance, the behaviour of Windows's cmd.exe > editing keys: enter three commands, then up-arrow three times and hit > enter, then press down, enter, down, enter. You'll repeat the three > commands. In other interfaces (eg GNU readline), you'd do the same job >

Re: Python and IDEs [was Re: Python 3 is killing Python]

2014-07-21 Thread CHIN Dihedral
On Sunday, July 20, 2014 9:53:02 AM UTC+8, C.D. Reimer wrote: > On 7/19/2014 6:23 PM, Steven D'Aprano wrote: > > > I haven't used Python on Windows much, but when I did use it, I found > > > the standard Python interactive interpreter running under cmd.exe to > > > be bare- bones but usable fo

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 1:19 AM, Mark Lawrence wrote: > On 21/07/2014 15:27, Grant Edwards wrote: >> >> On 2014-07-21, Chris Angelico wrote: >> >>> You call it a bug because you can't think of any way it could be >>> beneficial. That's the wrong way of looking at it. Something isn't a >>> bug bec

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Mark Lawrence
On 21/07/2014 15:27, Grant Edwards wrote: On 2014-07-21, Chris Angelico wrote: You call it a bug because you can't think of any way it could be beneficial. That's the wrong way of looking at it. Something isn't a bug because you find it annoying; it's a bug because it fails to implement the pr

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Monte Milanuk
On 2014-07-21, Shiyao Ma wrote: > But really interested in the invalid@invalid.invalid mailing address. > And,,, obviously, I cannot send to invalid@invalid.invalid, so > > How does you(he) make this? Some usenet clients, such as slrn which it looks like Grant is using according to the message he

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 12:40 AM, Shiyao Ma wrote: > No intent to pollute this thread. > > But really interested in the invalid@invalid.invalid mailing address. > And,,, obviously, I cannot send to invalid@invalid.invalid, so > > How does you(he) make this? When you send email, you have to have a

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Chris Angelico
On Tue, Jul 22, 2014 at 12:27 AM, Grant Edwards wrote: > On 2014-07-21, Chris Angelico wrote: > >> You call it a bug because you can't think of any way it could be >> beneficial. That's the wrong way of looking at it. Something isn't a >> bug because you find it annoying; it's a bug because it fa

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Shiyao Ma
No intent to pollute this thread. But really interested in the invalid@invalid.invalid mailing address. And,,, obviously, I cannot send to invalid@invalid.invalid, so How does you(he) make this? 2014-07-21 22:27 GMT+08:00 Grant Edwards : > I was always taught that it's a "bug" is when a program

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Grant Edwards
On 2014-07-21, Chris Angelico wrote: > You call it a bug because you can't think of any way it could be > beneficial. That's the wrong way of looking at it. Something isn't a > bug because you find it annoying; it's a bug because it fails to > implement the programmer's intentions and/or the docs

Re: Idle's Shell: prompts and indents (was ...) Idle users please read

2014-07-21 Thread Chris Angelico
On Mon, Jul 21, 2014 at 7:00 PM, Terry Reedy wrote: > In general, Idle should execute user code the same way that the interpreter > does, subject to the limitations of the different execution environment. Agreed, but I think the setting of prompts is a "different execution environment" case. It's

Re: OT: usenet reader software

2014-07-21 Thread Monte Milanuk
On 2014-07-21, Paul Rudin wrote: > Sturla Molden writes: > >> wrote: >> >>> That doesn't address the problem at all! :-) You still need a news >>> reader. >> >> The problem was that Thunderbird does not support killfiles when used as a >> newsreader. Leafnode adds filtering capabilities which T

Re: Html Parsing stuff

2014-07-21 Thread Nicholas Cannon
dont worry it has been solved -- https://mail.python.org/mailman/listinfo/python-list

Re: Idle's Shell: prompts and indents (was ...) Idle users please read

2014-07-21 Thread Terry Reedy
On 7/20/2014 11:34 PM, Chris Angelico wrote: On Mon, Jul 21, 2014 at 1:28 PM, Terry Reedy wrote: A few users have noticed (and complained) that setting sys.ps1 and sys.ps2 *in the batch mode user process* has no effect. The Idle doc should better explain why this is and should be. User code sh

Re: PyWart(2.7.8) IDLE is more buggy than "Joe's apartment"!

2014-07-21 Thread Martin S
2014-07-21 4:30 GMT+02:00 Tim Chase : > On 2014-07-20 19:06, Rick Johnson wrote: >> >> STEPS TO REPRODUCE BUG 1: "Attack of the clones!" >> >> >> 1. Open the IDLE application >

Re: Confused with Functions and decorators

2014-07-21 Thread Steven D'Aprano
On Mon, 21 Jul 2014 00:30:00 -0700, CHIN Dihedral wrote: > Uhn, a local object inside a function can be passed back in Python. > > Of course, a local function is treated as an object in Python,and the GC > is built-in. Sigh, the Dihedral bot is not what it used to be... -- Steven -- https://

Re: Confused with Functions and decorators

2014-07-21 Thread CHIN Dihedral
On Saturday, July 19, 2014 8:44:25 PM UTC+8, Wojciech Giel wrote: > On 19/07/14 12:40, Jerry lu wrote: > > > oh yeah i forgot about the decorators. Um say that you wanted to decorate a > > function with the outer() func you would just put @outer on top of it? And > > this is the same as passing

Html Parsing stuff

2014-07-21 Thread Nicholas Cannon
Ok i get the basics of this and i have been doing some successful parsings and using regular expressions to find html tags. I have tried to find an img tag and write that image to a file. I have had no success. It says it has successfully wrote the image to the file with a try... except statemen