On 7/29/2012 11:33 PM, Steven D'Aprano wrote:
On Sun, 29 Jul 2012 19:21:49 -0400, Eric S. Johansson wrote:
When you are sitting on or in a name, you look to the left or look to
the right what would you see that would tell you that you have gone past
the end of that name. For example
Have you r
Rodrick Brown, 30.07.2012 02:12:
> On Jul 29, 2012, at 12:07 PM, lipska the kat wrote:
>> I'm trying to understand where Python fits into the set of commonly
>> available, commercially used languages of the moment.
>
> Python is a glue language much like Perl was 10 years ago. Until the
> GIL is
On Sunday, July 29, 2012 10:18:23 PM UTC-7, jwp wrote:
> I just pushed this up to pypi/github, and I hoped to acquire some c.l.py
> opinions.
http://github.com/jwp/py-visage
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I just pushed this up to pypi/github, and I hoped to acquire some c.l.py
opinions.
It's experimental at this point, and might get scrapped.
visage is a loosely coupled interface registry. weakrefs make it cake to
implement.
Basically, zope.interface, but where the interfaces are referenced
On 7/29/2012 8:44 PM, Steven D'Aprano wrote:
I wish to extract the bit fields from a Python float, call it x. First I
cast the float to 8-bytes:
s = struct.pack('=d', x)
i = struct.unpack('=q', s)[0]
Then I extract the bit fields from the int, e.g. to grab the sign bit:
(i & 0x8000
Chris Gonnerman writes:
> I've been making some minor updates to the PollyReports module
Your post is showing up as a reply to a thread about IEEE-784 floats,
because you created your message as a reply. Consequently, it's rather
confusing why you suddenly start talking about PollyReports.
If y
On Sun, 29 Jul 2012 19:21:49 -0400, Eric S. Johansson wrote:
> When you are sitting on or in a name, you look to the left or look to
> the right what would you see that would tell you that you have gone past
> the end of that name. For example
Have you read the docs? It gives full details of the
Rodrick Brown writes:
> Hence the reason why no one will seriously look at Python for none
> glue work or simple web apps. When it comes to designing complex
> applications that need to exploit large multicore systems Python just
> isn't an option.
That's wrong, I've run multicore apps in Python
On Jul 29, 2012, at 8:54 PM, Andrew Berg wrote:
> On 7/29/2012 7:12 PM, Rodrick Brown wrote:
>> Python is a glue language much like Perl was 10 years ago. Until the
>> GIL is fixed I doubt anyone will seriously look at Python as an option
>> for large enterprise standalone application development
On Sun, Jul 29, 2012 at 5:52 PM, Andrew Berg wrote:
> On 7/29/2012 7:12 PM, Rodrick Brown wrote:
> > Python is a glue language much like Perl was 10 years ago. Until the
> > GIL is fixed I doubt anyone will seriously look at Python as an option
> > for large enterprise standalone application devel
On 2012-07-30 at 00:44:04 +,
Steven D'Aprano wrote:
> I wish to extract the bit fields from a Python float, call it x. First I
> cast the float to 8-bytes:
>
> s = struct.pack('=d', x)
> i = struct.unpack('=q', s)[0]
>
> Then I extract the bit fields from the int, e.g. to grab the sign bit
I've been making some minor updates to the PollyReports module I
announced a while back, and I've noticed that when I upload it to PyPI,
my changelog (CHANGES.txt) doesn't appear to be integrated into the site
at all. Do I have to put the changes into the README, or have I missed
something her
On 7/29/2012 7:12 PM, Rodrick Brown wrote:
> Python is a glue language much like Perl was 10 years ago. Until the
> GIL is fixed I doubt anyone will seriously look at Python as an option
> for large enterprise standalone application development.
The GIL is neither a bug to be fixed nor an inherent
I wish to extract the bit fields from a Python float, call it x. First I
cast the float to 8-bytes:
s = struct.pack('=d', x)
i = struct.unpack('=q', s)[0]
Then I extract the bit fields from the int, e.g. to grab the sign bit:
(i & 0x8000) >> 63
Questions:
1) Are there any known i
Sent from my iPhone
On Jul 29, 2012, at 12:07 PM, lipska the kat wrote:
> Pythoners
>
> Firstly, thanks to those on the tutor list who answered my questions.
>
> I'm trying to understand where Python fits into the set of commonly
> available, commercially used languages of the moment.
Python i
as some folks may remember, I have been working on making Python and its tool
base more accessible to disabled programmers. I've finally come up with a really
simple technique which should solve 80% of the problem. What I need to figure
out is how to find a spot in the code where a symbol exists
Michael Hrivnak wrote:
> Python is used frequently on the server side of web applications for
> sites of all sizes, with the UI generally being done in javascript.
There is no javascript.
--
PointedEars
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
--
http://mail.python.org/mailman/l
Hello,
pathlib 0.7 has been released with the following changes:
- Add '**' (recursive) patterns to Path.glob().
- Fix openat() support after the API refactoring in Python 3.3 beta1.
- Add a *target_is_directory* argument to Path.symlink_to()
pathlib offers a set of classes to handle filesystem
On 2012-07-29, Mark Lawrence wrote:
> Point taken, snag being I've never used any nix box in anger. This
> thread reminds of the good 'ole days when I were a lad using TPU on
> VMS. Have we got any VMS aficionados here?
It's been a long time, but I used eve/tpu as my main editor for
several y
Scripting is one of the strong sides of python. I use it al the time to quickly
write a script to analyze something or automate. That is probably the reason it
is used to glue (script) things together and is embedded in some programs (like
Maya and such).
At the company we're using python and d
On Sunday, July 29, 2012 5:01:00 PM UTC+1, lipska the kat wrote:
> Pythoners
>
>
>
> Firstly, thanks to those on the tutor list who answered my questions.
>
>
>
> I'm trying to understand where Python fits into the set of commonly
>
> available, commercially used languages of the moment.
>
Michael Hrivnak schrieb:
> Python is used frequently on the server side of web applications for
> sites of all sizes, with the UI generally being done in javascript.
Two large companies with lots of python code are dropbox and youtube:
http://highscalability.com/blog/2011/3/14/6-lessons-from-dro
On 7/29/2012 12:01 PM, lipska the kat wrote:
I'm trying to understand where Python fits into the set of commonly
available, commercially used languages of the moment.
Ever heard of a little startup called Google? It was built with C, Java,
... and Python. I believe Youtube is scripted in Pytho
Tim Chase, 29.07.2012 20:28:
> On 07/29/12 12:13, Michael Hrivnak wrote:
>> - Operating system installer: http://fedoraproject.org/wiki/Anaconda
>> - Software repository management: http://pulpproject.org/
>> - Software package installation:
>> http://en.wikipedia.org/wiki/Ubuntu_Software_Center
>>
Hi,
It will be my first post here.
I just found a great presentation here
https://ep2012.europython.eu/conference/talks/concurrentfutures-is-here.
As non native english, i can't fully understand all of the material
presented there.
I have some doubt, i hope someone here can give clarification.
Co
On 29/07/2012 17:01, lipska the kat wrote:
> Pythoners
>
> Firstly, thanks to those on the tutor list who answered my questions.
>
> I'm trying to understand where Python fits into the set of commonly
> available, commercially used languages of the moment.
>
> My most recent experience is with J
On 07/29/12 12:13, Michael Hrivnak wrote:
> - Operating system installer: http://fedoraproject.org/wiki/Anaconda
> - Software repository management: http://pulpproject.org/
> - Software package installation:
> http://en.wikipedia.org/wiki/Ubuntu_Software_Center
> - Cloud computing: http://en.wikipe
On 28/07/2012 16:51, Chris Angelico wrote:
> On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence
> wrote:
>> I highly recommend the use of notepad++. If anyone knows of a better text
>> editor for Windows please let me know :)
>
> My current preference is SciTE, available on Linux and Windows both.
Another common use is to create automated regression testing
frameworks, and other automation tools.
I see posting for python developers for this type of thing all the
time on stack overflow careers.
On Sun, Jul 29, 2012 at 11:43 AM, Mark Lawrence wrote:
> On 29/07/2012 17:01, lipska the kat wrot
lipska the kat, 29.07.2012 18:01:
> My most recent experience is with Java. The last project I was involved
> with included 6775 java source files containing 1,145,785 lines of code.
> How do I know this? because I managed to cobble together a python script
> that walks the source tree and counts t
On 29/07/2012 17:01, lipska the kat wrote:
Pythoners
Firstly, thanks to those on the tutor list who answered my questions.
I'm trying to understand where Python fits into the set of commonly
available, commercially used languages of the moment.
My most recent experience is with Java. The last
Can Some one help me or guide me the coding for automatic login to a website
while keeping the session alive and navigating further into website for screen
scraping using python.
I understand the scraping part but unable to Understand the Login part using
any of the Lib
Urllib,Urlib2,Beautiful
http://www.djangosites.org/
Instagram, Pinterest, Washington Post, and The Onion all use djangoto
run their websites.
http://stackoverflow.com/questions/1906795/what-are-some-famous-websites-built-in-django
Django is of course a very highly-regarded web framework written in
python, but there are
On 29/07/2012 15:15, Mark Lawrence wrote:
On 29/07/2012 14:36, Robert Marshall wrote:
On Sun, 29 Jul 2012, python.l...@tim.thechases.com wrote:
On 07/29/12 05:28, Mark Lawrence wrote:
On 29/07/2012 06:08, Ben Finney wrote:
Tim Chase writes:
Learn one of Emacs or Vim well, and you won't need
Pythoners
Firstly, thanks to those on the tutor list who answered my questions.
I'm trying to understand where Python fits into the set of commonly
available, commercially used languages of the moment.
My most recent experience is with Java. The last project I was involved
with included 6775
Thomas Kaufmann wrote:
> I send from a client file content to my server (as bytes). So far so good.
> The server receives this content complete. Ok. Then I want to write this
> content to a new file. It works too. But in the new file are only the
> first part of the whole content.
>
> What's the
On Mon, Jul 30, 2012 at 12:36 AM, wrote:
> If this kind of problems happen, --rare but in my 6 yrs Python experience
> happened sometimes--then I take a new window, rewrite or copy the earlier
> code module by module, give a new method name--believe it or not--- works.
If that solves your prob
On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote:
> Dear Group,
>
>
>
> I was trying to convert the list to a set, with the following code:
>
>
>
> set1=set(list1)
>
>
>
> the code was running fine, but all on a sudden started to give the following
> error,
>
>
>
> set1=se
On 7/29/2012 5:30 AM subhabangal...@gmail.com said...
On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote:
Dear Group,
I was trying to convert the list to a set, with the following code:
set1=set(list1)
Thanks for the answer. But my list does not contain another list that is the
issu
On Sunday, July 29, 2012 7:53:59 PM UTC+5:30, Roy Smith wrote:
> In article <81818a9c-60d3-48da-9345-0c0dfd5b2...@googlegroups.com>,
>
> subhabangal...@gmail.com wrote:
>
>
>
> > set1=set(list1)
>
> >
>
> > the code was running fine, but all on a sudden started to give the
> > following
>
On Sun, Jul 29, 2012 at 01:08:57PM +0200, Peter Otten wrote:
> subhabangal...@gmail.com wrote:
>
> > Dear Group,
> >
> > I was trying to convert the list to a set, with the following code:
> >
> > set1=set(list1)
> >
> > the code was running fine, but all on a sudden started to give the
> > fol
In article <81818a9c-60d3-48da-9345-0c0dfd5b2...@googlegroups.com>,
subhabangal...@gmail.com wrote:
> set1=set(list1)
>
> the code was running fine, but all on a sudden started to give the following
> error,
>
> set1=set(list1)
> TypeError: unhashable type: 'list'
First, make sure you underst
On 29 July 2012 06:36, rusi wrote:
> Just curious about your emacs+python usage.
> Do you use the emacs builtin python mode or the separate python-mode?
> Do you use pdb?
> Any other special setups?
One thing that I find very useful is to configure flymake to use
pyflakes. Very useful to get fee
Hi,
I send from a client file content to my server (as bytes). So far so good.
The server receives this content complete. Ok. Then I want to write this
content to a new file. It works too. But in the new file are only the first
part of the whole content.
What's the problem.
o-o
Thomas
Here'
On 29/07/2012 14:36, Robert Marshall wrote:
On Sun, 29 Jul 2012, python.l...@tim.thechases.com wrote:
On 07/29/12 05:28, Mark Lawrence wrote:
On 29/07/2012 06:08, Ben Finney wrote:
Tim Chase writes:
Learn one of Emacs or Vim well, and you won't need to worry
about text editors again.
Point
Hi,
I have a client. He sends file content (as bytes) to my server. The server
receives this content as bytes and decodes it to string. Then the server opens
a file (filename comes from client) try to write the file-content to the new
file.
It works but there are parts of the client file conten
On Sun, 29 Jul 2012 05:30:15 -0700, subhabangalore wrote:
> Dear Peter,
> Thanks for the answer. But my list does not contain another list that is
> the issue. Intriguing.
That is not what the error message says. You said that this line of code:
set1=set(list1)
gives this error:
TypeE
On 29/07/2012 13:30, subhabangal...@gmail.com wrote:
On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote:
Dear Group,
I was trying to convert the list to a set, with the following code:
set1=set(list1)
Dear Peter,
Thanks for the answer. But my list does not contain another list tha
On Sun, 29 Jul 2012, python.l...@tim.thechases.com wrote:
> On 07/29/12 05:28, Mark Lawrence wrote:
>> On 29/07/2012 06:08, Ben Finney wrote:
>>> Tim Chase writes:
>>> Learn one of Emacs or Vim well, and you won't need to worry
>>> about text editors again.
>>
>> Point taken, snag being I've nev
Hi,
Have you tried printing the list which is passed onto the set. The items in
the list passed should be hashable and possibly there are objects which are
not hashable.
On Sun, Jul 29, 2012 at 2:30 PM, wrote:
> On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote:
> > Dear Group,
> >
On 07/29/2012 02:30 PM, subhabangal...@gmail.com wrote:
> Thanks for the answer. But my list does not contain another list that is the
> issue. Intriguing. Thinking what to do.
What does your list contain? Can you reproduce the issue in a few
self-contained lines of code that you can show us, th
On Sunday, July 29, 2012 2:57:18 PM UTC+5:30, (unknown) wrote:
> Dear Group,
>
>
>
> I was trying to convert the list to a set, with the following code:
>
>
>
> set1=set(list1)
>
>
>
Dear Peter,
Thanks for the answer. But my list does not contain another list that is the
issue. Intriguing
On 07/29/12 05:28, Mark Lawrence wrote:
> On 29/07/2012 06:08, Ben Finney wrote:
>> Tim Chase writes:
>> Learn one of Emacs or Vim well, and you won't need to worry
>> about text editors again.
>
> Point taken, snag being I've never used any nix box in anger.
> This thread reminds of the good 'ol
subhabangal...@gmail.com wrote:
> Dear Group,
>
> I was trying to convert the list to a set, with the following code:
>
> set1=set(list1)
>
> the code was running fine, but all on a sudden started to give the
> following error,
>
> set1=set(list1)
> TypeError: unhashable type: 'list'
>
> plea
Dear Group,
I was trying to convert the list to a set, with the following code:
set1=set(list1)
the code was running fine, but all on a sudden started to give the following
error,
set1=set(list1)
TypeError: unhashable type: 'list'
please let me know how may I resolve.
And sometimes some good
On 29/07/2012 06:08, Ben Finney wrote:
Tim Chase writes:
On Sat, Jul 28, 2012 at 6:29 PM, Mark Lawrence wrote:
I highly recommend the use of notepad++. If anyone knows of a
better text editor for Windows please let me know :)
I highly recommend not tying your editor skills to a single OS,
rusi writes:
> Do you use the emacs builtin python mode or the separate python-mode?
I'm not sure. I have both installed.
I try to keep my Emacs setup portable across different machines, so I'm
probably using the built-in mode.
> Do you use pdb?
Occasionally, but I haven't learned how to do t
57 matches
Mail list logo