On Fri, Jan 27, 2012 at 11:48 PM, Chris Angelico wrote:
> Hopefully this will be a step up from Rick's threads in usefulness,
> but I'm aware it's not of particularly great value!
>
> How do you pronounce PyPI? Is it:
> * Pie-Pie?
Personally, yes. Reflecting upon it, I now recognize this is ambig
Chris Angelico writes:
> How do you pronounce PyPI? Is it:
> * Pie-Pie?
It overlaps with “PyPy” which, to remain unambiguous, should be
pronounced that way.
> * Pie-Pea-Eye?
This. As an Anglophile, there is no compulsion to aggressively pronounce
every initialism; we spell them out where neede
On 1/28/2012 1:48 AM, Chris Angelico wrote:
> How do you pronounce PyPI?
> * Pie-Pea-Eye?
This, primarily because it represents 3 words, and secondarily to
eliminate confusion with PyPy.
--
CPython 3.2.2 | Windows NT 6.1.7601.17640
--
http://mail.python.org/mailman/listinfo/python-list
On Sat, 28 Jan 2012 18:48:49 +1100, Chris Angelico wrote:
> Hopefully this will be a step up from Rick's threads in usefulness, but
> I'm aware it's not of particularly great value!
>
> How do you pronounce PyPI? Is it:
Obviously that's pronounced Fin-tim-lin-bin-whin-bim-lim-bus-stop-F'tang-
F'
On Sat, Jan 28, 2012 at 8:57 PM, Steven D'Aprano
wrote:
> Obviously that's pronounced Fin-tim-lin-bin-whin-bim-lim-bus-stop-F'tang-
> F'tang-Olé-Biscuitbarrel.
Ah, it's of British origin then.
ChrisA
--
http://mail.python.org/mailman/listinfo/python-list
the following code (in the main thread) works well, I grep some files
and the search until the first 100 results are found (writing the
results to a file), then exit:
command = 'grep -F "%s" %s*.txt' % (search_string, DATA_PATH)
p = Popen(['/bin/bash', '-c', command], stdout = PIPE)
f
On 01/28/2012 10:57 AM, Steven D'Aprano wrote:
On Sat, 28 Jan 2012 18:48:49 +1100, Chris Angelico wrote:
Hopefully this will be a step up from Rick's threads in usefulness, but
I'm aware it's not of particularly great value!
How do you pronounce PyPI? Is it:
Obviously that's pronounced Fin-ti
Am 28.01.2012 11:19 schrieb pistacchio:
the following code (in the main thread) works well, I grep some files
and the search until the first 100 results are found (writing the
results to a file), then exit:
command = 'grep -F "%s" %s*.txt' % (search_string, DATA_PATH)
p = Popen(['/bin
I'm guessing you're using Python 2.7 or something similar. Things are
much different in Python 3.x
On 01/28/2012 02:47 AM, contro opinion wrote:
> as far as i know
>
u'中国'.encode('utf-8')
> '\xe4\xb8\xad\xe5\x9b\xbd'
>
> so,'\xe4\xb8\xad\xe5\x9b\xbd' is the utf-8 of '中国'
No, it is the utf
> You can click the "Press me" button as many times as you wish; it
> retrieves and displays/prints the same HTML file on each click.
Hi,
Thanks for your reply. I forgot to mention that my first solution
created a headless browser, i.e. it didn't create any GUI. I would
like to keep it that way,
On 20/01/2012 20:09, Terry Reedy wrote:
version upgrade. The proposed change isn't a new feature, it's a
request for an existing feature to work differently.
Thank you for the clarification. I had not gotten that the request was
for a change, which has a much higher bar to pass than feature
add
On 26/01/2012 19:09, GardnerJessica wrote:
We’re looking for talented engineers who are interested in working on
hard problems.
Please don't spam the list with jobs, use the job board:
http://www.python.org/community/jobs/howto/
cheers,
Chris
--
Simplistix - Content Management, Batch Proces
I was looking for a simple way to daemonize a Python process, and found:
http://www.python.org/dev/peps/pep-3143/
I used easy_install to add this package (I thought), but when I
attempted to use the example in the above link, I got the error:
AttributeError: 'module' object has no attribute
IMO the code is good enough to submit a patch.
--
http://mail.python.org/mailman/listinfo/python-list
cheeseshop :)
--
http://mail.python.org/mailman/listinfo/python-list
On 1/27/2012 10:38 AM nikos spanakis said...
Hi
I just minstalled python 3.1 on my windons XP SP3
but on the start up I get the following error message:
You don't say what you specifically installed, but for windows you may
find activestates distribution a good fit. See
http://www.activest
On Sat, 28 Jan 2012 15:47:17 +0800, contro opinion wrote:
u'中国'.encode('utf-8')
> '\xe4\xb8\xad\xe5\x9b\xbd'
>
> so,'\xe4\xb8\xad\xe5\x9b\xbd' is the utf-8 of '中国'
Those bytes are the utf-8 encoding of those CJK ideograph (I won't even
pretend to know what those CJK ideographs are or
Chris Angelico, 28.01.2012 08:48:
> Hopefully this will be a step up from Rick's threads in usefulness,
> but I'm aware it's not of particularly great value!
>
> How do you pronounce PyPI? Is it:
> * Pie-Pie?
I consider this taken by PyPy, and I tend to run into the trap of
pronouncing both the s
On 01/28/2012 12:21 AM, contro opinion wrote:
s='你好'
On my computer, s is a byte string that contains the utf-8 formatted
encoding of 你好. This has nothing to do with python, though, and
everything to do with the line editor python's interpreter is doing. In
other words, the string is encode
On Sat, Jan 28, 2012 at 5:54 AM, David Lambert wrote:
> I was looking for a simple way to daemonize a Python process, and found:
>
> http://www.python.org/dev/peps/pep-3143/
>
> I used easy_install to add this package (I thought), but when I attempted to
> use the example in the above link, I got
Chris Rebert writes:
> On Fri, Jan 27, 2012 at 11:48 PM, Chris Angelico wrote:
> > How do you pronounce PyPI? Is it:
> > * Pie-Pie?
>
> Personally, yes. Reflecting upon it, I now recognize this is ambiguous
> with PyPy, but context should make it clear verbally.
I've had many conversations wher
Steven D'Aprano writes:
> On Sat, 28 Jan 2012 18:48:49 +1100, Chris Angelico wrote:
> > How do you pronounce PyPI? Is it:
>
> Obviously that's pronounced Fin-tim-lin-bin-whin-bim-lim-bus-stop-F'tang-
> F'tang-Olé-Biscuitbarrel.
You're a very silly man and I'm not going to interview you.
> > * P
David Lambert writes:
> I was looking for a simple way to daemonize a Python process, and found:
>
> http://www.python.org/dev/peps/pep-3143/
>
> I used easy_install to add this package (I thought), but when I attempted
> to use the example in the above link, I got the error:
>
>
> AttributeError
On Sun, Jan 29, 2012 at 8:23 AM, Ben Finney wrote:
> Steven D'Aprano writes:
>> > * Pie-Pie?
>>
>> Or that one.
>
> What flavour is it? https://www.youtube.com/watch?v=tKB4h9gvmm0>
Concrete! Flavour of the month.
Thanks for the responses, all. Looks like Pie-Pea-Eye has consensus
(with hon ment
On 1/28/2012 2:58 PM, Michael Torrie wrote:
On 01/28/2012 12:21 AM, contro opinion wrote:
s='你好'
On my computer, s is a byte string that contains the utf-8 formatted
encoding of 你好.
On mine, s is a (unicode) string containing those two characters. That
is because I pasted the above into IDL
On 28.1.2012 17:06, Miki Tebeka wrote:
cheeseshop :)
+1
--
http://mail.python.org/mailman/listinfo/python-list
On 01/28/2012 04:03 PM, Terry Reedy wrote:
> On 1/28/2012 2:58 PM, Michael Torrie wrote:
>> On 01/28/2012 12:21 AM, contro opinion wrote:
>> s='你好'
>>
>> On my computer, s is a byte string that contains the utf-8 formatted
>> encoding of 你好.
>
> On mine, s is a (unicode) string containing thos
This is my first year speaking at PyCon, so I solicited
speaking/preparation advice from a bunch of folks, particularly
focusing on the PyCon speaking experience. I've compiled the results
and put them online:
http://ref.rtfd.org/speakers
This is still rough, and feedback is welcome, as is more
Hi all,
I am trying to create an object that is aware of other objects created
before itself, and when found, then copy some attributes from them,
something like:
class A:
def __init__(self):
self.myname = "IamA"
print 'This is A'
def foo(self):
print "foo"
def
On Sun, Jan 29, 2012 at 2:48 PM, Lee Chaplin wrote:
> I am trying to create an object that is aware of other objects created
> before itself, and when found, then copy some attributes from them,
> something like:
If you're looking only at other objects of the same class, the easiest
way is to mai
On Sun, 29 Jan 2012 16:48:34 +1300, Lee Chaplin wrote:
[...]
> The last four lines work if they are in the same module as the class
> definitions (a000), but it doesn't work if they are called from a
> different module, say:
globals() is not actually global to the entire Python session. It
actua
On 1/28/2012 11:02 PM, Chris Angelico wrote:
On Sun, Jan 29, 2012 at 2:48 PM, Lee Chaplin wrote:
I am trying to create an object that is aware of other objects created
before itself, and when found, then copy some attributes from them,
something like:
If you're looking only at other objects o
On Sun, Jan 29, 2012 at 4:12 PM, Terry Reedy wrote:
> On 1/28/2012 11:02 PM, Chris Angelico wrote:
>>
>> If you're looking only at other objects of the same class, the easiest
>> way is to maintain a list every time one is created. Then you just
>> iterate over that list to know about your friends
Hi,
I have a very large Adobe PDF file. I was hoping to use a script to
extract the information for it. Is there a way to loop through a PDF
file using Python?
Or do I need to find a way to convert a PDF file into a text file? If
so how?
Thanks!
--
http://mail.python.org/mailman/listinfo/pyt
If somebody could point to me a resource (past posting, web page, and
book) so I could learn or by posting a sample script that would be
greatly appreciated?
On Jan 28, 9:52 pm, Shrewd Investor wrote:
> Hi,
>
> I have a very large Adobe PDF file. I was hoping to use a script to
> extract the inf
On Sat, Jan 28, 2012 at 9:52 PM, Shrewd Investor wrote:
> Hi,
>
> I have a very large Adobe PDF file. I was hoping to use a script to
> extract the information for it. Is there a way to loop through a PDF
> file using Python?
Haven't used it myself, but:
http://www.unixuser.org/~euske/python/pd
Does python(django) have an official database driver to access
SQLFire? Or is there any roadmap to deliver an official database
driver?
Anyone know about this?
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I have a question on Python. Does python(django) have an official database
driver to access SQLFire? Or is there any roadmap to deliver an official
database driver?
Thanks
Jack Niu
Software Engineer, EGS
International Game Technology
11/F Viva Plaza, No.29 Su Zhou Street, Haidian Dist
please download the attachment ,and put in c:\test.data
and run the folloeing code:
from struct import unpack
file_obj = open('c:\\test.data', 'r')
day = file_obj.read(40)
while day:
parsed = list(unpack('LLL', day[:28]))
print parsed
day = file_obj.read(4
39 matches
Mail list logo