[issue45824] CSV module document does not include how to append files
Wesley Altham added the comment: I now see other things on it but I think the doc should have it as well -- ___ Python tracker <https://bugs.python.org/issue45824> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue45824] CSV module document does not include how to append files
New submission from Wesley Altham : easy- The CSV module does not include how to append a file which is using 'a' and not 'w' or 'r'. There might be more to appending but it is not documented for me to know, I saw a stackoverflow post about it when I looked and I tried it and worked. I hope whoever knows the CSV module could document append at all. -- messages: 406438 nosy: wesrl priority: normal severity: normal status: open title: CSV module document does not include how to append files type: enhancement versions: Python 3.10 ___ Python tracker <https://bugs.python.org/issue45824> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: This is a test
Please don't send a test message to the public list which was read by thousands of people. thanks. On Fri, Jan 8, 2021 at 5:26 AM Craig Hatch wrote: > I have added you to the EMAIL list, so when I have questions. > > Just learn for fun. > > > Craig Hatch > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list
[issue41491] plistlib can't load macOS BigSur system LaunchAgent
Change by Wesley Whetstone : -- components: +macOS nosy: +ned.deily, ronaldoussoren ___ Python tracker <https://bugs.python.org/issue41491> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue41491] plistlib can't load macOS BigSur system LaunchAgent
New submission from Wesley Whetstone : When attempting to load the new LaunchAgent at `/System/Library/LaunchAgents/com.apple.cvmsCompAgent3600_arm64.plist` plistlib Raises a ValueError of File "/opt/salt/lib/python3.7/plistlib.py", line 272, in handle_end_element handler() File "/opt/salt/lib/python3.7/plistlib.py", line 332, in end_integer self.add_object(int(self.get_data())) ValueError: invalid literal for int() with base 10: '0x010c' on 0x010c Technically this violates the spec at http://www.apple.com/DTDs/PropertyList-1.0.dtd. Figured it was worth reporting. Full Plist is attached. -- files: com.apple.cvmsCompAgent_arm64.plist messages: 374908 nosy: jckwhet priority: normal severity: normal status: open title: plistlib can't load macOS BigSur system LaunchAgent Added file: https://bugs.python.org/file49371/com.apple.cvmsCompAgent_arm64.plist ___ Python tracker <https://bugs.python.org/issue41491> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: I need to study Python
Pick a book like Core Python Programming, read it and do coding follow it. regards. sinanp...@gmail.com wrote: Hey, I'm a completely noob. I want to learn python, how can i or where can i study python? -- https://mail.python.org/mailman/listinfo/python-list
Re: A news aggregator for the Python community
Sebastian Steins wrote: Over the last few weeks I've build a hacker news clone for the Python community: https://news.python.sc The source is at github.com/sebst/pythonic-news that looks interesting. thanks. -- https://mail.python.org/mailman/listinfo/python-list
Re: [RELEASE] Python 3.8.0 is now available
awesome news. thanks for all the hard work. on 2019/10/15 4:23, Łukasz Langa wrote: We hope you enjoy Python 3.8! Thanks to all of the many volunteers who help make Python Development and these releases possible! Please consider supporting our efforts by volunteering yourself or through organization contributions to the Python Software Foundation. -- https://mail.python.org/mailman/listinfo/python-list
Re: Python 3.6 on Windows - does a python3 alias get created by installation?
smart.thanks. On 2019/10/12 12:19 下午, Gisle Vanem wrote: An "alias" could also simply be created using: doskey python3=f:\ProgramFiles\Python36\python.exe -- https://mail.python.org/mailman/listinfo/python-list
RE: What is the Difference Between quit() and exit() commands in Python?
Hi exit (http://docs.python.org/2/library/constants.html#exit; rel="noreferrer) is an alias for quit (or vice-versa). They exist together simply to make Python more user-friendly. please refer: https://stackoverflow.com/questions/19747371/python-exit-commands-why-so-many-and-when-should-each-be-used (https://stackoverflow.com/questions/19747371/python-exit-commands-why-so-many-and-when-should-each-be-used) -ursprngliche Nachricht- Von: hongyi.z...@gmail.com (mailto:hongyi.z...@gmail.com) Gesendet: 16.09.2019 14:35 Uhr An: python-list@python.org (mailto:python-list@python.org) Betreff: What is the Difference Between quit() and exit() commands in Python? What is the Difference Between quit() and exit() commands in Python? -- mail.python.org/mailman/listinfo/python-list (https://mail.python.org/mailman/listinfo/python-list; target="_blank" rel="noopener) -ursprngliche Nachricht Ende- -- https://mail.python.org/mailman/listinfo/python-list
Re: How could I implement a virtual method and override it in python?
On Wednesday, September 14, 2016 at 3:47:52 PM UTC-7, Lawrence D’Oliveiro wrote: > On Thursday, September 15, 2016 at 10:18:09 AM UTC+12, wesley@iugome.com > wrote: > > Helper.py: > > > > def Foo( *args ): > > print ("This is a callback") > > > > def Run: > > Foo() > > > > > > MyModule.py: > > > > import Helper > > > > def Foo( *args ): > > print ("I want to be the new callback") > > Overrides and subclassing applies to classes, not modules. Yeah I assumed so, is there any ways I can get this to work with the importing of the helper? -- https://mail.python.org/mailman/listinfo/python-list
How could I implement a virtual method and override it in python?
Hey guys, I will show the code first: Helper.py: def Foo( *args ): print ("This is a callback") def Run: Foo() MyModule.py: import Helper def Foo( *args ): print ("I want to be the new callback") I want to be able to call the Foo method in MyModule.py when it's there first and when it's not I want to call the Foo in helper.py. I am coming from .net so I am not fully understanding how the Foo method would override the other one. Thanks! -- https://mail.python.org/mailman/listinfo/python-list
[issue28033] dictobject.c comment misspelling
New submission from Wesley Emeneker: This is a patch for a simple misspelling fix in a comment in dictobject.c -- assignee: docs@python components: Documentation files: dictobject_comment_misspell.patch keywords: patch messages: 275226 nosy: Wesley Emeneker, docs@python priority: normal severity: normal status: open title: dictobject.c comment misspelling type: enhancement versions: Python 3.7 Added file: http://bugs.python.org/file44481/dictobject_comment_misspell.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28033> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Get html DOM tree by only basic builtin moudles
Hi Laura, Sure, I got special requirement that just parse html file into DOM tree, by only general basic modules, and based on my DOM tree structure, draft an bitmap. So, could you give me an direction how to get the DOM tree? Currently, I just think out to use something like stack, I mean, maybe read the file line by line, adding to a stack data structure(list for example), and, then, got the parent/child relation .etc I don't know if what I said is easy to achieve, I am just trying. Any better suggestions will be great appreciated. Thanks. Wesley Elementtree is part of the Python standard library. You are better off using it than rolling your own. (If you were one of the rare people who have some very strange requirements that make you better off writing your own, you wouldn't be asking us. You'd already know.) https://docs.python.org/2.7/library/xml.etree.elementtree.html#module-xml.etree.ElementTree https://docs.python.org/3.4/library/xml.etree.elementtree.html -- https://mail.python.org/mailman/listinfo/python-list
Re: Get html DOM tree by only basic builtin moudles
On Fri, Jun 5, 2015 at 12:10 PM, Wesley nisp...@gmail.com wrote: Hi Laura, Sure, I got special requirement that just parse html file into DOM tree, by only general basic modules, and based on my DOM tree structure, draft an bitmap. So, could you give me an direction how to get the DOM tree? Currently, I just think out to use something like stack, I mean, maybe read the file line by line, adding to a stack data structure(list for example), and, then, got the parent/child relation .etc I don't know if what I said is easy to achieve, I am just trying. Any better suggestions will be great appreciated. If you want to recreate the same DOM structure that would be created by a browser, the standardized algorithm to do so is very complicated, but you can find it at http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html. If you're not necessarily seeking perfect fidelity, I would encourage you to try to find some way to incorporate beautifulsoup into your project. It likely won't produce the same structure that a real browser would, but it should do well enough to scrape from even badly malformed html. I recommend against using an XML parser, because HTML isn't XML, and such a parser may choke even on perfectly valid HTML such as this: !DOCTYPE html html headtitleDocument/title/head body First line br Second line /body /html Hi, Hmm, it's really complex. Currently, I don't need to involve all error handling,and assume html is well formatted, then, generate the DOM tree. Html sample below: !DOCTYPE html !-- saved from url=(0026)http://www.opera.com/about -- html lang=enheadmeta http-equiv=Content-Type content=text/html; charset=UTF-8 meta name=description content=Opera is an independent Scandinavian company that's been in the business of making web browsers since 1994. Read more about Opera Software here. titleAbout - Opera Software/title link rel=apple-touch-icon sizes=57x57 href=http://d2jc9zwbrclgz3.cloudfront.net/static-heap/da/dafd15591b35d4f81ca96cf7de6582d705850ff0/apple-touch-icon-57x57.png; /head body screen_capture_injected=truediv style=position: fixed; top: 0px; left: 0px; height: 0px; width: 0px; z-index: 999;div style=position: fixed; top: 100%; height: 0px;div style=position: relative;/div/div/div !-- Google Tag Manager -- nav class=business-menu ul lia data-action-id=header_item href=http://operamediaworks.com/;Opera Mediaworks/a/li /ul /nav main role=main class=generic_landing_page h1Who we are, what we do/h1 figure class=visuals img src=./About - Opera Software_files/pro-kompaniyu.jpg alt= width=900 height=424 /figure ul class=blocks col3 li h3Vision/h3 pWe strive to develop superior products and services for our users around the world, through state-of-the-art technology, innovation, leadership and partnerships./ppa href=http://www.operasoftware.com/company/vision; target=_selfFind out more/a./p /li li /ul /main footer class=ns--hf aside div class=hf--extra h2 class=hf--visuallyhiddenPage language/h2 div id=language class=hf--language hf--hover-enabled hf--popup-container input id=language-toggle class=hf--popup-toggle hf--visuallyhidden type=checkbox aria-haspopup=true label for=language-toggle class=hf--popup-toggle-label tabindex=0 span class=hf--hide-overflow span class=Select your language:/span span class=English/span /span /label /div /div /aside div class=hf--meta hf--clearfix small class=hf--companyCopyright ? 2014 Opera Software ASA. All rights reserved. a data-action-id=footer_item href=http://www.opera.com/privacy;Privacy./a a data-action-id=footer_item href=http://www.opera.com/terms;Terms of Use./a /small /div /footer /body/html -- https://mail.python.org/mailman/listinfo/python-list
Get html DOM tree by only basic builtin moudles
Hi guys, I know there are many modules(builtin or not, e.g. beautifulsoup,xml,lxml,htmlparser .etc) to parse html files and output the DOM tree. However, if there is any better way to get the DOM tree without using those html/xml related modules? I mean, just by some general standard modules, e.g. file operations, re module .etc Input file is something like this: html head titleDOM Tree test/title /head body h1Header 1/h1 pHello world!/p /body /html Need the dom tree or just something like: html -- head -- title(DOM Tree test) html -- body -- h1(Header 1) html -- body -- p(Hello world!) Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Pillow installation failed for python with my custom opcode
/lib -L/home/src/mypy276/lib -ljpeg -lz -lpython2.7 -o build/lib.linux-x86_64-2.7-pydebug/PIL/_imaging.so /usr/bin/ld: /usr/local/lib/libpython2.7.a(abstract.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC /usr/local/lib/libpython2.7.a: could not read symbols: Bad value collect2: ld return 1 error: command 'gcc' failed with exit status 1 [74447 refs] Cleaning up... Command /home/src/mypy27/bin/python2.7 -c import setuptools;__file__='/home/src/mypy27/build/pillow/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec')) install --record /tmp/pip-Y7XweN-record/install-record.txt --single-version-externally-managed --install-headers /home/src/mypy27/include/site/python2.7 failed with error code 1 in /home/src/mypy27/build/pillow Traceback (most recent call last): File /home/src/mypy27/bin/pip, line 9, in module load_entry_point('pip==1.4.1', 'console_scripts', 'pip')() File /home/src/mypy27/lib/python2.7/site-packages/pip/__init__.py, line 148, in main return command.main(args[1:], options) File /home/src/mypy27/lib/python2.7/site-packages/pip/basecommand.py, line 169, in main text = '\n'.join(complete_log) UnicodeDecodeError: 'ascii' codec can't decode byte 0xe8 in position 17: ordinal not in range(128) [103880 refs] I see /usr/local/lib/libpython2.7.a is the formal python2.7.6's, and here is libpython2.7.a in my system: (mypy27)[root@localhost testforpythonencode]# find / -name libpython2.7.a /usr/local/lib/python2.7/config/libpython2.7.a /usr/local/lib/libpython2.7.a /home/src/Python-2.7.6/libpython2.7.a /home/src/mypy276/lib/python2.7/config/libpython2.7.a The last one is my customized python location. For pillow installation, shall I need to specify libpython2.7.a path? But I don't know why other packages are correct. Anyone knows what's wrong here? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Captcha identify
Hi guys, These days I got a small task to identify Captcha characters. I googled a lot and find some way to do verification code identify. However, most are for general captcha. And, for simple captcha, I can use Pytesser. However, what about those advanced pictures. I mean: 1.including number and alpha 2.letters might be rotated 3.letters might be deformed I don't know why I cannot insert picture attachment here... But I think you guys can think out what the captcha looks like:-) So, any suggestions? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: Captcha identify
Here is captcha link: https://drive.google.com/folderview?id=0B33_p7UnVqoyd09mT3V0aWFxRmcusp=sharing 在 2014年8月12日星期二UTC+8下午8时59分11秒,Dennis Lee Bieber写道: On Tue, 12 Aug 2014 00:04:33 -0700 (PDT), Wesley nisp...@gmail.com declaimed the following: Hi guys, These days I got a small task to identify Captcha characters. In other words, you have a task to make a robot that can break the procedures put in place to prevent robots from posting to web sites... The whole purpose of the CAPTCHA scheme is that computer AI systems aren't advanced enough to process them, whereas a human mind can almost do it in the subconscious. (as for picture attachments? comp.lang.python is a text newsgroup -- binaries aren't wanted in it; c.l.p is also gatewayed to a mailing list; and that mailing list is gatewayed to gmane.comp.python.general where it is made available as a news group (after spam filtering). Google Groups links to c.l.p (and many of us wish it didn't) -- Wulfraed Dennis Lee Bieber AF6VN wlfr...@ix.netcom.comHTTP://wlfraed.home.netcom.com/ -- https://mail.python.org/mailman/listinfo/python-list
Re: Captcha identify
If my questions make you guys not so happy, I am sorry and please just ignore. I just wanna a general suggestion here in the beginning. Why I need to write such program is just having such requirements, and has nothing to do with the coding work itself. Don't say something to prove you're so noble. -- https://mail.python.org/mailman/listinfo/python-list
[issue22171] stack smash when using ctypes/libffi to access union
Wesley Kerfoot added the comment: Description: python 2.7.8 fails with a 'stack smashing detected' error and aborts when trying to access a C union using ctypes/libffi Steps to reproduce: see the attached shell script which reproduces the issue on Ubuntu 13.10 and Arch Linux Also fails with clang instead of gcc. OS: Linux frege 3.15.8-1-ARCH #1 SMP PREEMPT Fri Aug 1 08:51:42 CEST 2014 x86_64 GNU/Linux python2 version: 2.7.8 libffi version (OS wide version): 3.1-2 gcc version: 4.9.1 clang version: 3.4.2 Here is the PKGBUILD file Arch uses https://projects.archlinux.org/svntogit/packages.git/tree/python2/trunk/PKGBUILD?id=c319b32ada1506cf2bd48acc50649ae77a696c53 I have also reported this bug on their tracker since I am not sure if this is a bug in ctypes or libffi or both: https://bugs.archlinux.org/task/41502 -- Added file: http://bugs.python.org/file36320/crash.sh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22171 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22171] stack smash when using ctypes/libffi to access union
New submission from Wesley Kerfoot: Description: python 2.7.8 fails with a 'stack smashing detected' error and aborts when trying to access a C union using ctypes/libffi Steps to reproduce: See the contents of test.c and test.py in the attached file gcc -c -fpic -Wall -Wextra -pedantic -Wpointer-arith -Werror -std=c99 -O0 ./test.c -o test.o gcc -shared -o test.so test.o python2 test.py Also fails with clang instead of gcc. OS: Linux frege 3.15.8-1-ARCH #1 SMP PREEMPT Fri Aug 1 08:51:42 CEST 2014 x86_64 GNU/Linux python2 version: 2.7.8 libffi version (OS wide version): 3.1-2 gcc version: 4.9.1 clang version: 3.4.2 I have tried rebuilding python with the included version of libffi (Arch normally uses a systemwide version). Here is the PKGBUILD file Arch uses https://projects.archlinux.org/svntogit/packages.git/tree/python2/trunk/PKGBUILD?id=c319b32ada1506cf2bd48acc50649ae77a696c53 I have also reported this bug on their tracker since I am not sure if this is a bug in ctypes or libffi or both: https://bugs.archlinux.org/task/41502 -- components: ctypes files: crash.log messages: 225059 nosy: amaury.forgeotdarc, belopolsky, meador.inge, wjak56 priority: normal severity: normal status: open title: stack smash when using ctypes/libffi to access union type: crash versions: Python 2.7 Added file: http://bugs.python.org/file36308/crash.log ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22171 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Fwd: ANN: Intro+Intermediate Python, San Francisco, Jul 30-31, Aug 1
Greetings! I'll be offering another hardcore Python course this summer near the San Francisco airport. If you're somewhat new to or have some Python experience under your belt already but want to fill-in the holes, this course is for you. Why take a real course when you can learn Python online or by reading books? Well, my goal isn't to teach Python syntax, which you can from any teacher, live or online, or from giant books. My job is to create great Python developers and removing the roadblocks that impede your path to getting there. This intensive course is based on my Core Python (http://corepython.com) books and is made up of 3 full days complete with lectures and several hands-on coding labs per day. t's also a great excuse to coming to beautiful Northern California for a summer vacation! Groups and development teams are welcome as well as individuals. I do more private gigs and fewer of these public courses lately, so please come join if you can... my next public intro/intermediate course may not be for awhile, so I'm hoping to meet some of you this time around! Sign up soon... there's a special earlybird rate for the rest of this month before going up to the regular rate after that. More details and registration at http://cyberwebconsulting.com as well as in the ad: http://goo.gl/pyJseQ I'm no fan of spam, so I'll only send out one last reminder as the date gets closer... say around the end of June. Cheers, -- Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A computer never does what you want... only what you tell it. +wesley chun http://google.com/+WesleyChun : wescpy at gmail : @wescpyhttp://twitter.com/wescpy Python training consulting : http://CyberwebConsulting.com Core Python books : http://CorePython.com Python blog: http://wescpy.blogspot.com -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Intro+Intermediate Python, San Francisco, Jul 30-31, Aug 1
Greetings! I'll be offering another hardcore Python course this summer near the San Francisco airport. If you're somewhat new to or have some Python experience under your belt already but want to fill-in the holes, this course is for you. Why take a real course when you can learn Python online or by reading books? Well, my goal isn't to teach Python syntax, which you can from any teacher, live or online, or from giant books. My job is to create great Python developers and removing the roadblocks that impede your path to getting there. This intensive course is based on my Core Python (http://corepython.com) books and is made up of 3 full days complete with lectures and several hands-on coding labs per day. t's also a great excuse to coming to beautiful Northern California for a summer vacation! Groups and development teams are welcome as well as individuals. I do more private gigs and fewer of these public courses lately, so please come join if you can... my next public intro/intermediate course may not be for awhile, so I'm hoping to meet some of you this time around! Sign up soon... there's a special earlybird rate for the rest of this month before going up to the regular rate after that. More details and registration at http://cyberwebconsulting.com as well as in the ad: http://goo.gl/pyJseQ I'm no fan of spam, so I'll only send out one last reminder as the date gets closer... say around the end of June. Cheers, -- Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A computer never does what you want... only what you tell it. +wesley chun http://google.com/+WesleyChun : wescpy at gmail : @wescpyhttp://twitter.com/wescpy Python training consulting : http://CyberwebConsulting.com Core Python books : http://CorePython.com Python blog: http://wescpy.blogspot.com -- https://mail.python.org/mailman/listinfo/python-list
Re: App segmentation fault (CentOS 6.5)
在 2014年4月24日星期四UTC+8上午2时08分29秒,Reginaldo写道: Hi, I have a GUI app that is written using wx. When I run it on CentOS 6.5, the following error messages are displayed and the app closes: (python:10096): Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='DejaVu Sans 10.9990234375', text='' (python:10096): Pango-CRITICAL **: pango_layout_get_line_count: assertion `layout != NULL' failed (python:10096): Gdk-CRITICAL **: IA__gdk_draw_layout: assertion `PANGO_IS_LAYOUT (layout)' failed Segmentation fault I checked if this was a font issue, but the font is installed on the system. I use an idle thread in my application. Could some let me know what the problem may be in this case? Thank you! Python Version used: 2.6.6 wxPython Version used: 2.8.11 Maybe you can gdb python attach the running pid and check the backtrace. Severay days ago, I use this guy to address thread hang and memory leak issues. Just say here if that helps. -- https://mail.python.org/mailman/listinfo/python-list
Google open positions at Shanghai/China ?
Hi guys, Anybody know if there are openning positions at Shanghai, China? Just ask for one of my friend in case someone here woring for Google:-) Although see some opened positions from google career, seems no actaully hire going on. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb python core dump file : not in executable format: File format not
在 2014年4月15日星期二UTC+8上午3时37分58秒,david@gmail.com写道: Does this help? http://plasmodic.github.io/ecto/ecto/usage/external/debugging.html http://gnuradio.org/redmine/projects/gnuradio/wiki/TutorialsDebugging http://downloads.conceptive.be/downloads/camelot/doc/sphinx/build/advanced/debug.html http://forums.gentoo.org/viewtopic-p-7123814.html On Mon, Apr 14, 2014 at 1:19 AM, Wesley nis...@gmail.com wrote: Hi guys, Today I am debugging an issue related to memory leak. I use gdb 7.7 and python 2.7.6 to generate one core dump file from production env. And then, just use gdb to debug the coredump upon the same machine. Got error that seems not support debug core file using pyton? Here is snippet: [root@localhost server]# gdb --core memleak.core GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as x86_64-unknown-linux-gnu. Type show configuration for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type help. Type apropos word to search for commands related to word. [New LWP 25738] [New LWP 25739] [New LWP 25740] [New LWP 25745] [New LWP 25746] [New LWP 25747] [New LWP 25635] Core was generated by `python'. #0 0x0030016e15e3 in ?? () (gdb) file /root/server/deviceserver.py /root/server/deviceserver.py: not in executable format: File format not recognized (gdb) file /root/server/deviceserver /root/server/deviceserver: No such file or directory. (gdb) file /root/server/deviceserver.py /root/server/deviceserver.py: not in executable format: File format not recognized (gdb) -- https://mail.python.org/mailman/listinfo/python-list -- David Garvey Yeah, I use gdb --args /usr/local/bin/python ../xxx.py --core xxx.core Then, 'run' to start script. However, the core dump file is actually from a memory leak process,which use 1.2 G momory, but now, through info proc, I got proc id, and then, shell pmap proc_id, only 650M, so, seems this is new started proc, not reload env from the core file. Anything wrong? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
gdb python core dump file : not in executable format: File format not
Hi guys, Today I am debugging an issue related to memory leak. I use gdb 7.7 and python 2.7.6 to generate one core dump file from production env. And then, just use gdb to debug the coredump upon the same machine. Got error that seems not support debug core file using pyton? Here is snippet: [root@localhost server]# gdb --core memleak.core GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as x86_64-unknown-linux-gnu. Type show configuration for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type help. Type apropos word to search for commands related to word. [New LWP 25738] [New LWP 25739] [New LWP 25740] [New LWP 25745] [New LWP 25746] [New LWP 25747] [New LWP 25635] Core was generated by `python'. #0 0x0030016e15e3 in ?? () (gdb) file /root/server/deviceserver.py /root/server/deviceserver.py: not in executable format: File format not recognized (gdb) file /root/server/deviceserver /root/server/deviceserver: No such file or directory. (gdb) file /root/server/deviceserver.py /root/server/deviceserver.py: not in executable format: File format not recognized (gdb) -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb python print truncated string
在 2014年4月8日星期二UTC+8上午10时21分24秒,Wesley写道: Hi all, I have a question regarding gdb python. I use gdb7.7 and python2.7.6. Here is snippet that py-print one variable: (gdb) py-print self local 'self' = Connection(timer1220182856=_Timeout at remote 0x7f860614b220, timer513645288=_Timeout at remote 0xb42f760, timer1248840930=_Timeout at remote 0x7f85f7f4c300, timer1678666863=_Timeout at remote 0x7f85fec0ddf0, timer888598936=_Timeout at remote 0x7f860579a300, timer1566174556=_Timeout at remote 0xe69a7d0, timer1307561941=_Timeout at remote 0x7f85e41145a0, timer1010094072=_Timeout at remote 0xb42af40, to_device={u'sendno': u'1252682169', u'msg_content': {u'message': {u'command': True}}, u'msg_type': u'2'}, timer2050775853=_Timeout at remote 0x7f8606ddcb50, timer1115907467=_Timeout at remote 0x9c02140, timer333587031=_Timeout at remote 0xbb25450, timer71350378=_Timeout at remote 0x7f85e5e38220, timer1044716881=_Timeout at remote 0x7f86053094c0, timer2069059536=_Timeout at remote 0x7f85f3d3b530, timer2139990080=_Timeout at remote 0x8bd5370, timer1121163931=_Timeout at remote 0x99e5370, queue=Queue(unfinished_tasks=0, queue=collections.deque at remote 0x7081600, maxsize=0, all_ta...(truncated) self is instance of Connection class. So, actually, I wanna check self.status...but you can see the print is truncated. I tried py-print self.status but failed. After a lot google work, somebody mention gdb 'set print elements 0/-1', but still failed.. So, how to check self.status value? Thanks. Wesley Does anyone know this? -- https://mail.python.org/mailman/listinfo/python-list
python obfuscate
Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? Our product is deployed on Linux bed. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: python obfuscate
pyc has weakness: 1. easy to decompile 2. python version related, e.g. pyc from py2.5 cannot be used to py2.7 bed 在 2014年4月11日星期五UTC+8上午9时48分04秒,Tobiah写道: On 4/10/2014 6:29 PM, Wesley wrote: Hi all, Does python has any good obfuscate? Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. I googled for a while but mostly just say using pyc. Any better one? Does that work? If so, wouldn't that be a great solution? Toby -- https://mail.python.org/mailman/listinfo/python-list
Re: python obfuscate
Umm, just wanna make all .py files not human readable. Or, maybe need a tool like zend in php. 在 2014年4月11日星期五UTC+8上午9时41分11秒,Ben Finney写道: Wesley nisp...@gmail.com writes: Hi all, Does python has any good obfuscate? Define “good obfuscate”. What is your goal? If it is to hide your program's secrets from others, then obfuscation isn't going to help: no matter how good it is, it still needs to be readable by the runtime on the machine. Moreover, the more effective the obfuscation, the less correspondence there is between the distributed code and the code ytou actually maintain. Attempting to debug problems will be infeasible, directly in proportion to how effective the obfuscation is. Before looking to obfuscate your code, first establish – beyond mere emotional conviction – that there actually is something in the code which is worth hiding from recipients. Currently our company wanna release one product developed by python to our customer. But dont's wanna others see the py code. That's impossible: the code is in the hands of the customer. If your threat model is “the person who possesses the code must not have access”, then you've lost, just as DRM is a failure. -- \ “People demand freedom of speech to make up for the freedom of | `\ thought which they avoid.” —Soren Aabye Kierkegaard (1813–1855) | _o__) | Ben Finney -- https://mail.python.org/mailman/listinfo/python-list
gdb python print truncated string
Hi all, I have a question regarding gdb python. I use gdb7.7 and python2.7.6. Here is snippet that py-print one variable: (gdb) py-print self local 'self' = Connection(timer1220182856=_Timeout at remote 0x7f860614b220, timer513645288=_Timeout at remote 0xb42f760, timer1248840930=_Timeout at remote 0x7f85f7f4c300, timer1678666863=_Timeout at remote 0x7f85fec0ddf0, timer888598936=_Timeout at remote 0x7f860579a300, timer1566174556=_Timeout at remote 0xe69a7d0, timer1307561941=_Timeout at remote 0x7f85e41145a0, timer1010094072=_Timeout at remote 0xb42af40, to_device={u'sendno': u'1252682169', u'msg_content': {u'message': {u'command': True}}, u'msg_type': u'2'}, timer2050775853=_Timeout at remote 0x7f8606ddcb50, timer1115907467=_Timeout at remote 0x9c02140, timer333587031=_Timeout at remote 0xbb25450, timer71350378=_Timeout at remote 0x7f85e5e38220, timer1044716881=_Timeout at remote 0x7f86053094c0, timer2069059536=_Timeout at remote 0x7f85f3d3b530, timer2139990080=_Timeout at remote 0x8bd5370, timer1121163931=_Timeout at remote 0x99e5370, queue=Queue(unfinished_tasks=0, queue=collections.dequ e at remote 0x7081600, maxsize=0, all_ta...(truncated) self is instance of Connection class. So, actually, I wanna check self.status...but you can see the print is truncated. I tried py-print self.status but failed. After a lot google work, somebody mention gdb 'set print elements 0/-1', but still failed.. So, how to check self.status value? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: Python streaming media server
在 2014年4月6日星期日UTC+8下午8时52分37秒,Sturla Molden写道: Wesley nisp...@gmail.com wrote: Not open source, but there is a famous closed-source one called YouTube. Are you kidding? I know youtube, but do you think we can use it setup our own streaming media server? Obviously not. Before YouTube was bought by Google, it was common knowledge that it ran on Stackless Python. So a streaming media server on Python is absolutely possible. But no, I don't know of one you can set up and use on your own. You can make a highly scalable server with PyZMQ and Tornado or Twisted. NumPy is great for storing binary data like media streams. HDF5 (PyTables or h5py) might be a better database than some SQL server, as it is capable of highly scalable parallel binary i/o. Sturla Thanks, Sturla. Umm,I think we can setup one using the technique skills you mentioned above:-) But that will need a lot work to do I think. I am looking at an opensource one named Flumotion. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Python streaming media server
Hi, Anyone knows open source streaming media server written by Python? I am trying to setup a streaming media server in python, wanna find an existing one and have a look. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: Python streaming media server
在 2014年4月6日星期日UTC+8上午1时38分57秒,Sturla Molden写道: Wesley nisp...@gmail.com wrote: Anyone knows open source streaming media server written by Python? I am trying to setup a streaming media server in python, wanna find an existing one and have a look. Not open source, but there is a famous closed-source one called YouTube. Are you kidding? I know youtube, but do you think we can use it setup our own streaming media server? -- https://mail.python.org/mailman/listinfo/python-list
Re: Python streaming media server
在 2014年4月5日星期六UTC+8下午6时11分02秒,Wesley写道: Hi, Anyone knows open source streaming media server written by Python? I am trying to setup a streaming media server in python, wanna find an existing one and have a look. Thanks. Wesley After a lot google work, I am looking at Flumotion. Need to check the streaming mode and file formats it support. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Telepathy is server or client?
Hi, These days I see Telepathy on the net. Not so much examples for this guy. Is it used to write client or server? I mean, for example, I wanna develop a voice chatting system, so, can use this guy to develop a client or server? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: Python IM server
在 2014年4月1日星期二UTC+8下午1时06分17秒,Miki Tebeka写道: I want to develop a instant message server, simply has user and group entity. Is there any better existing open-source one? Thus I can download and have a look. You can take a look at Twisted Words (https://twistedmatrix.com/trac/wiki/TwistedWords). Have you tried this before? I just have a look. Seems most samples are just for bot. I have scenarios that user-to-user and user talking in group. So, for the IM server side, may need store some infomation in database,store messages not sent to user .etc Seems twisted words is high wrapped, we still need to develop lots of things. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Python IM server
Hi all, I want to develop a instant message server, simply has user and group entity. Is there any better existing open-source one? Thus I can download and have a look. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: Python IM server
在 2014年3月31日星期一UTC+8下午8时37分32秒,Lutz Horn写道: Hi, I want to develop a instant message server, simply has user and group entity. Is there any better existing open-source one? Take a look at XMPP[0]. There are some Python libraries[1]. [0] https://en.wikipedia.org/wiki/XMPP [1] http://xmpp.org/xmpp-software/libraries/ -- Opt out of global data surveillance programs like PRISM, XKeyscore and Tempora. https://prism-break.org I am looking at telepathy, empathy. Currently instant message is urgent, but needs voice/video call in the future. For instant message, I have user-to-user and user-to-group cases. Don't know if it suits well. -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb python how to output integer for examine memory
在 2014年3月26日星期三UTC+8下午3时10分23秒,dieter写道: Wesley nisp...@gmail.com writes: ... Actually, I can now see the varialbe names at Python level and C level. I just want to verify x command to monitor the memory content. So, in my origin post, I can get variable i's address, and see the value is 1, then, I wanna have a try x command, the issue is, when use x/format i's address, the output is not 1, but other things:-( All Python objects start (at C level) with a header (containing the reference count, a pointer to the associated type and maybe other things); the real value starts behind this header. This means, to see the 1 in your example, you must skip the associated object header -- either in the output or by adding the size of the header to the initial address. Most like this. I will try later. -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb python how to output integer for examine memory
在 2014年3月25日星期二UTC+8下午3时49分09秒,dieter写道: Wesley nisp...@gmail.com writes: I am trying to use gdb debug python script. I am using gdb7.7 and python2.7.6, here is my simple test script: import time def next(i): time.sleep(10) i = 1 - i i = 1 while True: next(i) When this script running, gdb attach to it, and here is snippet: ... (gdb) frame 5 #5 0x004d01a7 in PyEval_EvalFrameEx (f=Frame 0x201e130, for file test.py, line 6, in next (i=1), throwflag=0) at Python/ceval.c:2666 2666x = call_function(sp, oparg); (gdb) py-locals i = 1 (gdb) pyo i No symbol i in current context. Quite a lot of time has passed since I last had to debug Python processes at C level -- thus, my memory may be unreliable. When I remember right, then pyo is used to interprete a C level variable as a Python object (and print it) -- not a Python level variable. In your case, i is a Python level variable. You must carefully distinguish between the C level and the Python level. Some commands expect C level names/objects; others may expect Python level names/objects. To learn how you can obtain the value of a Python variable, I see two approaches: look through the list of provided commands (and their documentation) and try to figure out which might be applicable and then may some tests; or look at the implementation of py-locals and use this knowledge to define you own command (for this, you will also need to understand the gdb language to define commands). Hi Dieter, Thanks. Actually, I can now see the varialbe names at Python level and C level. I just want to verify x command to monitor the memory content. So, in my origin post, I can get variable i's address, and see the value is 1, then, I wanna have a try x command, the issue is, when use x/format i's address, the output is not 1, but other things:-( -- https://mail.python.org/mailman/listinfo/python-list
gdb python how to output integer for examine memory
Hi all, I am trying to use gdb debug python script. I am using gdb7.7 and python2.7.6, here is my simple test script: import time def next(i): time.sleep(10) i = 1 - i i = 1 while True: next(i) When this script running, gdb attach to it, and here is snippet: (gdb) py-bt #5 Frame 0x201e130, for file test.py, line 6, in next (i=1) Python Exception type 'exceptions.IOError' (2, '\xe6\xb2\xa1\xe6\x9c\x89\xe9\x82\xa3\xe4\xb8\xaa\xe6\x96\x87\xe4\xbb\xb6\xe6\x88\x96\xe7\x9b\xae\xe5\xbd\x95', 'test.py'): Error occurred in Python command: (2, '\xe6\xb2\xa1\xe6\x9c\x89\xe9\x82\xa3\xe4\xb8\xaa\xe6\x96\x87\xe4\xbb\xb6\xe6\x88\x96\xe7\x9b\xae\xe5\xbd\x95', 'test.py') (gdb) frame 5 #5 0x004d01a7 in PyEval_EvalFrameEx (f=Frame 0x201e130, for file test.py, line 6, in next (i=1), throwflag=0) at Python/ceval.c:2666 2666x = call_function(sp, oparg); (gdb) py-locals i = 1 (gdb) pyo i No symbol i in current context. (gdb) No symbol i in current context. (gdb) p f-f_localsplus $1 = {1} (gdb) p f-f_localsplus[0] $2 = 1 (gdb) p (f-f_localsplus[0]) $3 = (PyObject **) 0x201e2b8 (gdb) x/d 0x201e2b8 0x201e2b8: 31304528 (gdb) p sizeof(f-f_localsplus[0]) $4 = 8 (gdb) x/dg 0x201e2b8 0x201e2b8: 31304528 (gdb) x/dw 0x201e2b8 0x201e2b8: 31304528 (gdb) So, the latter several commands, I wannted to check memory content, but , how to output integer 1? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb python how to output integer for examine memory
Hi Dave, Thanks for your response. It's just a simple script for test:-) My concern is use gdb to monitor variable in memory within python process. For details, in my origin post, just wanna why cannot output interger value from the address. Maybe here is not right for gdb python question..but seems I cannot post question at another gdb group. So, post here, since it's also related to python,in case anyone knowns this. Sorry for that. Wesley 在 2014年3月24日星期一UTC+8下午8时22分59秒,Dave Angel写道: Wesley nisp...@gmail.com Wrote in message: Hi all, I am trying to use gdb debug python script. I am using gdb7.7 and python2.7.6, here is my simple test script: import time def next(i): time.sleep(10) i = 1 - i i = 1 while True: next(i) When this script running, gdb attach to it, and here is snippet: I cannot help with gdb, but I can point out that you have two separate variables here. Decrement ing the local has no effect on the global value. The preferred way is to return any values from the function that you want to use after it exits. def next(i): time.sleep(10) i = 1 - i return i i = 1 while True: i =next(i) Another possibility, generally a bad idea, is declaring i global in the function. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list
Re: Python developer salary survey - results
在 2014年3月25日星期二UTC+8上午4时57分49秒,victo...@vtenterprise.com写道: PyStreet's February salary survey attracted respondents from 37 countries. Median annual salary in the U.S.: $95,000 Median annual salary worldwide: $50,000 Complete study: http://bit.ly/1dgCw3p I am below the worldwide median... -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
-2.12-1.132.el6.x86_64 already installed and latest version No debuginfo packages available to install 在 2014年3月10日星期一UTC+8下午3时28分30秒,dieter写道: Wesley nisp...@gmail.com writes: If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. You are doing things only a few people do: trying to debug a Python process on C level -- and you observe really strange things. It is very difficult to guess from the distance what goes wrong. Apparently, your gdb sees a very strange state of the debugged process. But why? Missing symbols was the first guess (the gdb output you have provided does not suggest this - but I have not seen the reading symbols from python ...; thus, there may still be a problem with this). A runaway process is another guess. Some gdb problem another one. I would approach the situation by simplifying the setup. Instead of attaching a running Python process, I would use gdb python; then run; then CTRL-C and there look what bt gives you (this should demonstrate whether your gdb is set up correctly and can debug Python on C level). Then you write an infinitely running function in Python, run it and again interrupt with gdb to see whether the py-* commands are working. If this all work, you come again to your actual task -- understanding what your python process is doing. -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
Now, I fixed the problem... Instead of python2.6.6, for python 2.7 it's OK.. Why? gdb does not support python 2.6.6? Is it related to python-gdb.py? I googled a lot, seems only has python2.7-gdb.py, no python2.6-gdb.py. 在 2014年3月10日星期一UTC+8下午3时28分30秒,dieter写道: Wesley nisp...@gmail.com writes: If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. You are doing things only a few people do: trying to debug a Python process on C level -- and you observe really strange things. It is very difficult to guess from the distance what goes wrong. Apparently, your gdb sees a very strange state of the debugged process. But why? Missing symbols was the first guess (the gdb output you have provided does not suggest this - but I have not seen the reading symbols from python ...; thus, there may still be a problem with this). A runaway process is another guess. Some gdb problem another one. I would approach the situation by simplifying the setup. Instead of attaching a running Python process, I would use gdb python; then run; then CTRL-C and there look what bt gives you (this should demonstrate whether your gdb is set up correctly and can debug Python on C level). Then you write an infinitely running function in Python, run it and again interrupt with gdb to see whether the py-* commands are working. If this all work, you come again to your actual task -- understanding what your python process is doing. -- https://mail.python.org/mailman/listinfo/python-list
Re: Problem using py-bt, py-locals, etc. during GDB debugging [solved]
I hit a problem alike yours. Cannot fix according your method. Here is snippet: root@localhost python]# gdb python 40290 GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as x86_64-unknown-linux-gnu. Type show configuration for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type help. Type apropos word to search for commands related to word... Reading symbols from python...done. Attaching to program: /usr/local/bin/python, process 40290 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x0030a98e15c3 in ?? () (gdb) py-bt (gdb) py-list Unable to locate python frame (gdb) py-locals Unable to locate python frame (gdb) I use gdb 7.7, python 2.6.6 , centos 6.5 64bit Any suggestion? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
If you don't read the loop from the top, and don't tell me exactly what you want by just keep saying context, please ingore this post. Thanks. Wesley 在 2014年3月10日星期一UTC+8上午9时48分41秒,Mark Lawrence写道: On 10/03/2014 01:06, Wesley wrote: What's information do you want? I told the OS, gdb and python version. And my operation steps. What do you want more, then, I can type here. Wesley Context, you just keep sending messages like the above which on its own is meaningless. Why should anybody answer your question when you can't be bothered to supply all the needed data in one hit? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
python debuginfo is installed... Still,py-bt, py-locals.etc cannot read python frame -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
1. install gdb from source with configure option --with-python 2. install python from source with configure option --with-pydebug 3. Got error in gdb here: 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] (gdb) py-bt Undefined command: py-bt. Try help. (gdb) python import libpython end Traceback (most recent call last): File string, line 1, in module File /usr/local/share/gdb/python/libpython.py, line 49, in module _type_size_t = gdb.lookup_type('size_t') gdb.error: No type named size_t. Error while executing Python code. (gdb) -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
Now I use gdb python -p pid then, import libpython py-bt is null, py-locals raise here: Unable to locate python frame What's going on... -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
So, let me clarify here, in order to try, I get a clean machine. Centos 6.5 64bit. Now , I try this: 1. install gdb 7.7 from source , with configure option --with-python 2. install python 2.6.6 from source, with configure option --with-pydebug 3. run a python script 4. from command line, gdb python -p pid to attach the running script 5. within gdb, issue python, import libpython, end no errors 6. py-bt outputs nothing, py-locals says Unable to locate python frame here is the snippet: [root@localhost Python-2.6.6]# gdb python 52315 GNU gdb (GDB) 7.7 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type show copying and show warranty for details. This GDB was configured as x86_64-unknown-linux-gnu. Type show configuration for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type help. Type apropos word to search for commands related to word... Reading symbols from python...done. Attaching to program: /home/nipen/test/Python-2.6.6/python, process 52315 Reading symbols from /lib64/ld-linux-x86-64.so.2...(no debugging symbols found)...done. Loaded symbols for /lib64/ld-linux-x86-64.so.2 0x0030a98e15c3 in ?? () (gdb) bt #0 0x0030a98e15c3 in ?? () #1 0x7f4cf68d1219 in ?? () #2 0x in ?? () (gdb) py-bt Undefined command: py-bt. Try help. (gdb) python import libpython end (gdb) py-bt (gdb) (gdb) py-locals Unable to locate python frame (gdb) Unable to locate python frame -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
Anybody has suggestions? This really makes me crazy... -- https://mail.python.org/mailman/listinfo/python-list
Re: gdb unable to read python frame information
Then, how to make python get debug symbols? Install python from source with some special configure options? -- https://mail.python.org/mailman/listinfo/python-list
gdb unable to read python frame information
Hi guys, My env: centos 6.5 64 bit; gdb 7.1; python 2.6.6 I wanna use gdb to attach my running python scripts. Successfully import libpython in gdb, but seems all py operations failed to read python information. Here is the snippet: (gdb) python import libpython end (gdb) py-bt #3 (unable to read python frame information) #5 (unable to read python frame information) #7 (unable to read python frame information) #9 (unable to read python frame information) #18 (unable to read python frame information) #22 (unable to read python frame information) #26 (unable to read python frame information) #28 (unable to read python frame information) #29 (unable to read python frame information) #38 (unable to read python frame information) #39 (unable to read python frame information) #40 (unable to read python frame information) #42 (unable to read python frame information) #44 (unable to read python frame information) #45 (unable to read python frame information) #47 (unable to read python frame information) #49 (unable to read python frame information) #51 (unable to read python frame information) #55 (unable to read python frame information) #62 (unable to read python frame information) #64 (unable to read python frame information) #76 (unable to read python frame information) #88 (unable to read python frame information) #100 (unable to read python frame information) (gdb) py-locals Unable to read information on python frame (gdb) Is there anything wrong? Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Sort one sequence by O(n) in time and O(1) in space
Hi guys, Here is one question related to algorithm. Details here: here is input sequence like a1,a2,...,an,b1,b2,...,bn ,the ax and bx always exist in pair. So, now, how to change the sequence to a1,b1,...,an,bn, with time complexity as O(n) and space as O(1). Any comments will be appreciated. Thanks. Wesley -- https://mail.python.org/mailman/listinfo/python-list
Re: Sort one sequence by O(n) in time and O(1) in space
Yes, with no new list, otherwise, space won't to be O(1) Wesley 2014年2月9日 下午10:31于 Oscar Benjamin oscar.j.benja...@gmail.com写道: Please reply to the list rather than directly to me so that other people can see the answer to my question and offer you help. On 9 February 2014 14:04, Ni Wesley nisp...@gmail.com wrote: 2014年2月9日 下午9:41于 Oscar Benjamin oscar.j.benja...@gmail.com写道: On 9 February 2014 12:13, Wesley nisp...@gmail.com wrote: Hi guys, Here is one question related to algorithm. Details here: here is input sequence like a1,a2,...,an,b1,b2,...,bn ,the ax and bx always exist in pair. So, now, how to change the sequence to a1,b1,...,an,bn, with time complexity as O(n) and space as O(1). Do you mean that you have a list and you want to rearrange the elements in-place without creating a new list? Yes Okay so if you're going to do it with O(1) space then it's going to have to be done with a whole bunch of swaps. Have a think with pen and paper about how you could do a sequence of swaps that would rearrange the order to the one that you want (it's actually a harder problem than it looks at first glance). This is an example of what is known as transposition and much information is available about algorithms for doing this in-place: http://en.wikipedia.org/wiki/In-place_matrix_transposition Oscar -- https://mail.python.org/mailman/listinfo/python-list
Re: Sort one sequence by O(n) in time and O(1) in space
在 2014年2月9日星期日UTC+8下午11时48分17秒,Oscar Benjamin写道: Please don't top-post. On Feb 9, 2014 2:40 PM, Ni Wesley nis...@gmail.com wrote: Yes, with no new list, otherwise, space won't to be O(1) Did you read the link I posted: http://en.wikipedia.org/wiki/In-place_matrix_transposition Oscar Sorry getting a network problem these two days. I am reading :-) -- https://mail.python.org/mailman/listinfo/python-list
Re: Sort one sequence by O(n) in time and O(1) in space
here is input sequence like a1,a2,...,an,b1,b2,...,bn ,the ax and bx always exist in pair. So, now, how to change the sequence to a1,b1,...,an,bn, with time complexity as O(n) and space as O(1). The two halves of the list are already sorted, yes? [Wesley] No, not sorted yet.. -- https://mail.python.org/mailman/listinfo/python-list
Re: Sort one sequence by O(n) in time and O(1) in space
[Wesley] This is not homework:-) And actually I am new to algorithm, so you guys can feel free to say anything you want -- https://mail.python.org/mailman/listinfo/python-list
Re: ANN: Intro+Intermediate Python, San Francisco, Aug 1-3
hello everyone, hope some of you enjoyed #EuroPython this past week/end, and perhaps i'll see some of you at OSCON next week! as promised, here's the one and only FINAL REMINDER of the hardcore intro+intermediate Python course i'm offering 2012 Aug 1-3 near the San Francisco airport. reach out to me directly with any questions and let other folks know who may be interested. best regards, --wesley On Thu, May 10, 2012 at 2:07 PM, wesley chun wes...@gmail.com wrote: Greetings! I'll be doing another hardcore Python course this summer in the San Francisco area. If you're somewhat new to Python or have tinkered but want to fill-in the holes, this course is for you. It's somewhat true you can learn Python online, watching videos, or reading books, but it still takes time and experience to master... I help accelerate this process. The course is based on my bestselling Core Python books and is made up of 3 full days complete with lectures and three hands-on coding labs per day. Please pass on this message to your colleagues who also need to learn Python. It's also a great excuse to coming to beautiful Northern California for a summer vacation! More details at http://goo.gl/uW4oF as well as the links in my .signature below. -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A computer never does what you want... only what you tell it. +wesley chun : wescpy at gmail : @wescpy Python training consulting : http://CyberwebConsulting.com Core Python books : http://CorePython.com Python blog: http://wescpy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
ANN: Intro+Intermediate Python, San Francisco, Aug 1-3
Greetings! I'll be doing another hardcore Python course this summer in the San Francisco area. If you're somewhat new to Python or have tinkered but want to fill-in the holes, this course is for you. It's somewhat true you can learn Python online, watching videos, or reading books, but it still takes time and experience to master... I help accelerate this process. The course is based on my bestselling Core Python books and is made up of 3 full days complete with lectures and three hands-on coding labs per day. Please pass on this message to your colleagues who also need to learn Python. It's also a great excuse to coming to beautiful Northern California for a summer vacation! More details at http://goo.gl/uW4oF as well as the links in my .signature below. Since I hate spam, I'll only send out one more reminder as the date gets closer... probably around OSCON's timeframe. Hope to meet some of you soon! --Wesley Chun - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - A computer never does what you want... only what you tell it. wesley chun : wescpy at gmail : @wescpy/+wescpy Python training consulting : http://CyberwebConsulting.com Core Python books : http://CorePython.com Python blog: http://wescpy.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list
Re: [OT] Book authoring
fwiw, i've given a related talk a couple of times on this subject, the most recent of which was at EuroPython this summer: http://ep2011.europython.eu/conference/talks/writing-books-using-python-open-source-software the content includes a couple of the tools mentioned in this thread as well as some author case studies. slide deck's available there too. cheers, --wesley On Dec 9 2011, 7:43 am, Nick Dokos nicholas.do...@hp.com wrote: Grant Edwards inva...@invalid.invalid wrote: On 2011-12-09, Miki Tebeka miki.teb...@gmail.com wrote: Greetings, Any recommendations for abook authoringsystem that supports the following: 1. Code examples (with syntax highlighting and line numbers) 2. Output HTML, PDF, ePub ... 3. Automatic TOC and index 4. Search (in HTML) - this is a nice to have http://en.wikipedia.org/wiki/Lightweight_markup_language I've used asciidoc extensively and reStructuredText a little. Asciidoc will produce all the formats you mentioned (though I've only refularly used HTML and PDF). reStructuredText is what's used for Python docs isn't it? Can I somehow use Sphinx? Don't know what Sphinx is. I think Sphinx is used for the python docs: it sits atop rST and does all the transformations/processing to produce the desired output (http://sphinx.pocoo.org) And there's always the old stand-by LaTeX, but it's a bit more heavyweight with more of a learning curve. OTOH, it does produce text-book quality output. There is also orgmode, which has been used for a few books (http://orgmode.org). I know it does HTML and PDF (the latter through latex), but I'm not sure about ePub: ISTR somebody actually did ePub for his book but I don't remember details. The indexing is manual: add #+index: foo entries as required. But in general, imo, automatic indexing for books sucks raw eggs (it works much better for highly regular source code like the python source base). Nick -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy/+wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
LinuxJournal Readers' Choice Awards 2011 Best {Programming, Scripting} Language
in recent news... Python wins LinuxJournal's Readers' Choice Awards 2011 as Best Programming Language: http://www.linuxjournal.com/slideshow/readers-choice-2011?page=27 yee-haw!! it's even more amazing that Python has won this title 3 straight years. let's celebrate and get back to building great things. wait, in other news... Python wins LinuxJournal's Readers' Choice Awards 2011 as Best Scripting Language: http://www.linuxjournal.com/slideshow/readers-choice-2011?page=28 interestingly enough, this happened last year as well: http://www.linuxjournal.com/content/readers-choice-awards-2010 in fact, Python has nearly won this one 6 straight years, from 2006-2011, except bash won in 2009. is it the same people who are voting (practically) every year? :-) cheers, --wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: ANN: Intro+Intermediate Python course, SF, Oct 18-20
** FINAL CALL ** http://sfbay.craigslist.org/sfc/cls/2495963854.html -- Forwarded message -- From: wesley chun wes...@gmail.com Date: Mon, Jul 25, 2011 at 12:32 PM Subject: ANN: Intro+Intermediate Python course, SF, Oct 18-20 Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy a beautiful Fall weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! Feel free to pass around the PDF flyer linked down below. Write if you have questions. Since I hate spam, I'll only send out one reminder as the date gets closer. (Comprehensive) Intro+Intermediate Python Tue-Thu, 2011 Oct 18-20, 9am-5pm Hope to meet you soon! -Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
ANN: Intro+Intermediate Python course, SF, Oct 18-20
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy a beautiful Fall weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! Feel free to pass around the PDF flyer linked down below. Write if you have questions. Since I hate spam, I'll only send out one reminder as the date gets closer. (Comprehensive) Intro+Intermediate Python Tue-Thu, 2011 Oct 18-20, 9am-5pm Hope to meet you soon! -Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Intro+Intermediate Python course, SF, Oct 18-20
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy a beautiful Fall weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! Feel free to pass around the PDF flyer linked down below. Write if you have questions. Since I hate spam, I'll only send out one reminder as the date gets closer. (Comprehensive) Intro+Intermediate Python Tue-Thu, 2011 Oct 18-20, 9am-5pm Hope to meet you soon! -Wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
ANN: Intro+Intermediate Python course, SF, May 24-26
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy the Memorial Day weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! feel free to pass around the PDF flyer linked down below. (Comprehensive) Introduction to Python Tue-Thu, 2010 May 24-26, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Intro+Intermediate Python course, SF, May 24-26
Need to get up-to-speed with Python as quickly and as in-depth as possible? Already coding Python but still have areas of uncertainty you need to fill? Then come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python for a comprehensive intro/intermediate course coming up this May in Northern California, then enjoy the Memorial Day weekend afterwards in San Francisco, the beautiful city by the bay. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! feel free to pass around the PDF flyer linked down below. (Comprehensive) Introduction to Python Tue-Thu, 2010 May 24-26, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment (as well as sign-up) at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast a couple of years ago called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://cyberwebconsulting.com/flyerPP1.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.chun : wescpy-gmail.com : @wescpy python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
[issue11283] incorrect pattern in the re module docs for conditional regex
wesley chun wes...@gmail.com added the comment: i wanted to add one additional comment that it would be nice to have a regex that works with search() (in addition to match()) because such an email address may appear in the middle of a line, say a From: or To: email header. the fix of using a '$' prevents this from happening, so i'm not 100% satisfied with the patch although it does fix the regex to get it working with match(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11283] incorrect pattern in the re module docs for conditional regex
New submission from wesley chun wes...@gmail.com: In the re docs, it states the following for the conditional regular expression syntax: (?(id/name)yes-pattern|no-pattern) Will try to match with yes-pattern if the group with given id or name exists, and with no-pattern if it doesn’t. no-pattern is optional and can be omitted. For example, ()?(\w+@\w+(?:\.\w+)+)(?(1)) is a poor email matching pattern, which will match with 'u...@host.com' as well as 'u...@host.com', but not with 'u...@host.com'. this regex is incomplete as it allows for 'u...@host.com': bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1))', 'u...@host.com')) True bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1))', 'u...@host.com')) True bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1))', 'u...@host.com')) False bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1))', 'u...@host.com')) True This error has existed since this feature was added in 2.4... http://docs.python.org/release/2.4.4/lib/re-syntax.html ... through the 3.3. docs... http://docs.python.org/dev/py3k/library/re.html#regular-expression-syntax The fix is to add the end char '$' to the regex to get all 4 working: bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1)|$)', 'u...@host.com')) True bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1)|$)', 'u...@host.com')) True bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1)|$)', 'u...@host.com')) False bool(re.match(r'()?(\w+@\w+(?:\.\w+)+)(?(1)|$)', 'u...@host.com')) False If accepted, I propose this patch (also attached): $ svn diff re.rst Index: re.rst === --- re.rst (revision 88499) +++ re.rst (working copy) @@ -297,9 +297,9 @@ ``(?(id/name)yes-pattern|no-pattern)`` Will try to match with ``yes-pattern`` if the group with given *id* or *name* exists, and with ``no-pattern`` if it doesn't. ``no-pattern`` is optional and - can be omitted. For example, ``()?(\w+@\w+(?:\.\w+)+)(?(1))`` is a poor email + can be omitted. For example, ``()?(\w+@\w+(?:\.\w+)+)(?(1)|$)`` is a poor email matching pattern, which will match with ``'u...@host.com'`` as well as - ``'u...@host.com'``, but not with ``'u...@host.com'``. + ``'u...@host.com'``, but not with ``'u...@host.com'`` nor ``'u...@host.com'`` . -- assignee: docs@python components: Documentation, Regular Expressions files: re.rst messages: 129041 nosy: docs@python, wesley.chun priority: normal severity: normal status: open title: incorrect pattern in the re module docs for conditional regex versions: Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file20833/re.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11283 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
Re: Python vs. Fedora and CentOS
I've got Fedora 10 here with 2.5, and 11 at the office with 2.6. On 29 May 2010 19:58, Paul Rubin no.em...@nospam.invalid wrote: John Nagle na...@animats.com writes: The major Red Hat based Linux distros are still shipping with Python 2.4. Fedora 12 ships with Python 2.6, I think. -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
ANN: Intro+Intermediate Python course, SF, May 10-12
*** FINAL REMINDER *** Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive Python course coming up this May in beautiful Northern California! I welcome new Python programmers as well as veterans who may have run into bugs that are difficult to explain and/or who want to learn more about objects, references, and Python's memory model. Come join us if you're looking for *more* than just a vanilla beginners class. Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! feel free to pass around the flyer below. (Comprehensive) Introduction to Python Mon-Wed, 2010 May 10-12, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast last Spring called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://starship.python.net/crew/wesc/flyerPP1may10.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Python Web Development with Django, Addison Wesley, (c) 2009 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
ANN: Intro+Intermediate Python course, SF, May 10-12
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive intro course coming up this May in beautiful Northern California! Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! feel free to pass around the PDF flyer linked down below. (Comprehensive) Introduction to Python Mon-Wed, 2010 May 10-12, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast last Spring called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://starship.python.net/crew/wesc/flyerPP1may10.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Intro+Intermediate Python course, SF, May 10-12
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive intro course coming up this May in beautiful Northern California! Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! feel free to pass around the PDF flyer linked down below. (Comprehensive) Introduction to Python Mon-Wed, 2010 May 10-12, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! PREVIEW 1: you will find (and can download) a video clip of a class session recorded live to get an idea of my lecture style and the interactive classroom environment at: http://cyberwebconsulting.com PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast last Spring called What is Python?. This was an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. info:http://www.safaribooksonline.com/events/WhatIsPython.html download (reg req'd): http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com FLYER: http://starship.python.net/crew/wesc/flyerPP1may10.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. There is a significant discounts available for full-time students, secondary teachers, and others. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: How to run a repeating timer every n minutes?
I use the wx.Timer for this: import wx timer = wx.Timer(self, -1) # update gui every 1/4 second (250ms) timer.Start(250) Bind(wx.EVT_TIMER, OnUpdateValues) In the above I'm running the OnUpdateValues function every 250ms. Regards, Wesley Brooks 2009/10/29 VYAS ASHISH M-NTB837 ashish.v...@motorola.com Dear All How do I write a code that gets executed 'every x' minutes? I know how to do it 'after x' minutes, I do the following: def doAtTimerFire(): The things I want to do 'after x' minutes go here. And then from main code, I do this: tmr = threading.Timer(timeInSeconds, doAtTimerFire) tmr.start() Sorry about the earlier post with wrong subject line. Please help. Regards, Ashish Vyas -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
ANN: Python course, San Francisco, Nov 9-11
*FINAL REMINDER* come join us for another hardcore Python training course in San Francisco coming up in a few weeks! we have a few more slots available. bring your co-workers to take advantage of our multiple registration discount. we also feature a steeper discount for those who are primary/secondary teachers, students, as well as to those who have been more severely impacted by the economy. here is my original announcement for more info: http://mail.python.org/pipermail/python-list/2009-September/196228.html hope to meet you soon! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
ANN: Python course, San Francisco, Nov 9-11
*FINAL REMINDER* come join us for another hardcore Python training course in San Francisco coming up in a few weeks! we have a few more slots available. bring your co-workers to take advantage of our multiple registration discount. we also feature a steeper discount for those who are primary/secondary teachers, students, as well as to those who have been more severely impacted by the economy. here is my original announcement for more info: http://mail.python.org/pipermail/python-list/2009-September/196228.html hope to meet you soon! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Python book
On Sep 30, 4:58 am, lallous lall...@lgwm.org wrote: Can anyone suggest a good book Python book for advancing from beginner level? (I started with Learning Python 3rd ed) From: James Matthews nyt...ail.com Date: Wed Sep 30 18:47:58 CEST 2009 I like core python programming and dive into python. hi Elias, and welcome to Python! thanks for the plug james! this question is asked somewhat regularly. i addressed it a few years but most of my reply still applies: http://www.mail-archive.com/python-list@python.org/msg109993.html one big difference is that Alan Gauld's tutorial is now located at http://www.alan-g.me.uk ... another difference is that a good number of ultra-beginner (new to programming not just Python) books have come on the market as well. finally, i created a DVD + PowerPoint version of Core Python called Python Fundamentals if you want to watch video presentations on topics in addition to reading. if you're also looking to take an intensive Python training course that will take you beyond beginner status, i'm offering one in about 6-7 weeks (near San Francisco) where i'll *give* you a copy of Core Python :-) ... and speaking of which, i'm actually starting to research what it would take to bring the book to a 3rd edition and soliciting assistance from the community. more info on both the course and the next edition here: http://mail.python.org/pipermail/baypiggies/2009-September/005483.html hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
[ANN] Intro+Intermediate Python course, San Francisco, Nov 2009
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Mon-Wed, 2009 Nov 9-11, 9AM - 5PM If you have been in the Python community for some time, you may be familiar with my introductory (and advanced) courses. Many new Python intro courses have been added over the past few years, so aren't all classes the same? Most introductory courses focus on teaching you the syntax and giving you an idea of a language's flow control and data types. However, this can only get your so far. Although our course may appear to be for those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps or desire more in-depth formal training. It combines the best of both an introduction to the language as well as covering intermediate language fundamentals that can make you more effective, even as a beginner. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. Daily hands-on labs will help hammer the concepts home. Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive course coming up this Fall in beautiful Northern California to get up-to-speed with Python as quickly and as in-depth as possible! WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA INFO: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1nov09.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites FREE PREVIEW: at the website below, you will find (and can download) a video clip of a live lesson that was delivered recently to get an idea of the lecture style and interactive classroom environment. FREE PREVIEW 2: Partnering with O'Reilly and Pearson, I delivered a one-hour introductory webcast at Safari Books Online earlier this year called BIWhat is Python?/I/B. You will get both my lecture style as well as an overview of the material covered in the course. http://www.safaribooksonline.com/events/WhatIsPython.html (event announcement) http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython (free download with registration) See website for costs, venue info, and registration; various discounts available. Hope to see you there! - wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007, 2001 Python Fundamentals DVD, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/
[ANN] Intro+Intermediate Python course, San Francisco, Nov 2009
(COMPREHENSIVE) INTRO+INTERMEDIATE PYTHON Mon-Wed, 2009 Nov 9-11, 9AM - 5PM If you have been in the Python community for some time, you may be familiar with my introductory (and advanced) courses. Many new Python intro courses have been added over the past few years, so aren't all classes the same? Most introductory courses focus on teaching you the syntax and giving you an idea of a language's flow control and data types. However, this can only get your so far. Although our course may appear to be for those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps or desire more in-depth formal training. It combines the best of both an introduction to the language as well as covering intermediate language fundamentals that can make you more effective, even as a beginner. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. Daily hands-on labs will help hammer the concepts home. Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive course coming up this Fall in beautiful Northern California to get up-to-speed with Python as quickly and as in-depth as possible! WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA INFO: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1nov09.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites FREE PREVIEW: at the website below, you will find (and can download) a video clip of a live lesson that was delivered recently to get an idea of the lecture style and interactive classroom environment. FREE PREVIEW 2: Partnering with O'Reilly and Pearson, I delivered a one-hour introductory webcast at Safari Books Online earlier this year called BIWhat is Python?/I/B. You will get both my lecture style as well as an overview of the material covered in the course. http://www.safaribooksonline.com/events/WhatIsPython.html (event announcement) http://www.safaribooksonline.com/Corporate/DownloadAndResources/webcastInfo.php?page=WhatIsPython (free download with registration) See website for costs, venue info, and registration; various discounts available. Hope to see you there! - wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007, 2001 Python Fundamentals DVD, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: tough-to-explain Python
On Jul 7, 1:04 pm, kj no.em...@please.post wrote: I'm having a hard time coming up with a reasonable way to explain certain things to programming novices. : How do I explain to rank beginners (no programming experience at all) why x and y remain unchanged above, but not z? : What do you say to that? I can come up with much mumbling about pointers and stacks and heaps and much hand-waving about the underlying this-and-that, but nothing that sounds even remotely illuminating. Your suggestions would be much appreciated! kj, i don't have too much to add to everyone else's response except to describe how i deal with this. i teach Python courses several times a year and realized long ago that conveying the concept of mutable vs. immutable is a key to getting up-to-speed quickly with Python as well as helping beginners. so, although techically, this is more of an intermediate topic rather than beginner material, i still teach it anyway, with the hopes of producing better Python programmers out of the gate, and hopefully, less frustrated ones. in fact, i dedicated an entire chapter (4) in Core Python Programming just to address this important issue. to top it all off, i end this module in the class by giving 2 quizzes, just to make sure they understood what i just told them. i put the 1st one online, so if you're curious, the PDF is at http://roadkill.com/~wesc/cyberweb/introQuiz.pdf ... the 2nd quiz is harder and involves the discussion of the differences between shallow and deep copies. so yes, not very beginner- ish stuff, hence the reason why i (re)named my course Intro +Intermediate Python. finally, rather than the paper tag or alex's hotel statue analogy, i just say that variables are like Post-Itreg; or sticky notes on objects. i can tag objects anytime, tag objects more than once, remove tags, or switch them to another object, etc. just my $0.02, -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] Introduction to Python course, San Francisco, Jun 2009
* FINAL REMINDER * we have about 10-15 spaces remaining for our June course coming up in about a month. if you have coworkers or colleagues that need to learn Python, the weather is great up here in northern california in the city by the bay. there are discounts for students and teachers, as well as for companies sending more than one attendee. finally, in this economic crisis, if you can show you've been laidoff and collecting unemployment, we can offer you financial aid as well. the course will NOT be cancelled so you can make your travel arrangements as well. hope to see you in class! cheers, -wesley On Thu, Apr 9, 2009 at 6:04 PM, wesley chun wes...@gmail.com wrote: Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive intro course coming up this June in beautiful Northern California! Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! (Comprehensive) Introduction to Python Mon-Wed, 2009 Jun 15-17, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, Slide, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! FREE PREVIEW 1: you will find (and can download) a video clip of a live lesson that was delivered recently to get an idea of the lecture style and interactive classroom environment at: http://cyberwebconsulting.com (click Python Training) FREE PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast on Wednesday morning 2009 Apr 29 @ 10:30a PDT/1:30p EDT called What is Python? This will be an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. Plus the first 10 registrants will receive an autographed copy of Core Python Programming! For more information: http://www.safaribooksonline.com/events/WhatIsPython.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1jun09.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com Python Web Development with Django, Addison Wesley, (c) 2009 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
Re: [ANN] Introduction to Python course, San Francisco, Jun 2009
* FINAL REMINDER * we have about 10-15 spaces remaining for our June course coming up in about a month. if you have coworkers or colleagues that need to learn Python, the weather is great up here in northern california in the city by the bay. there are discounts for students and teachers, as well as for companies sending more than one attendee. finally, in this economic crisis, if you can show you've been laidoff and collecting unemployment, we can offer you financial aid as well. the course will NOT be cancelled so you can make your travel arrangements as well. hope to see you in class! cheers, -wesley On Thu, Apr 9, 2009 at 3:45 PM, wesley chun wes...@gmail.com wrote: Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive intro course coming up this June in beautiful Northern California! Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! (Comprehensive) Introduction to Python Mon-Wed, 2009 Jun 15-17, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, Slide, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! FREE PREVIEW 1: you will find (and can download) a video clip of a live lesson that was delivered recently to get an idea of the lecture style and interactive classroom environment at: http://cyberwebconsulting.com (click Python Training) FREE PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast on Wednesday morning 2009 Apr 29 @ 10:30a PDT/1:30p EDT called BIWhat is Python?/I/B. This will be an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. Plus the first 10 registrants will receive an autographed copy of BICore Python Programming/I/B! For more information: http://www.safaribooksonline.com/events/WhatIsPython.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1jun09.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com Python Web Development with Django, Addison Wesley, (c) 2009 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
[ANN] Introduction to Python course, San Francisco, Jun 2009
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive intro course coming up this June in beautiful Northern California! Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! (Comprehensive) Introduction to Python Mon-Wed, 2009 Jun 15-17, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, Slide, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! FREE PREVIEW 1: you will find (and can download) a video clip of a live lesson that was delivered recently to get an idea of the lecture style and interactive classroom environment at: http://cyberwebconsulting.com (click Python Training) FREE PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast on Wednesday morning 2009 Apr 29 @ 10:30a PDT/1:30p EDT called What is Python? This will be an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. Plus the first 10 registrants will receive an autographed copy of Core Python Programming! For more information: http://www.safaribooksonline.com/events/WhatIsPython.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1jun09.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com Python Web Development with Django, Addison Wesley, (c)2009 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
[ANN] Introduction to Python course, San Francisco, Jun 2009
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for a comprehensive intro course coming up this June in beautiful Northern California! Please pass on this note to whomever you think may be interested. I look forward to meeting you and your colleagues! (Comprehensive) Introduction to Python Mon-Wed, 2009 Jun 15-17, 9am-5pm - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, Slide, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! FREE PREVIEW 1: you will find (and can download) a video clip of a live lesson that was delivered recently to get an idea of the lecture style and interactive classroom environment at: http://cyberwebconsulting.com (click Python Training) FREE PREVIEW 2: Partnering with O'Reilly and Pearson, Safari Books Online has asked me to deliver a 1-hour webcast on Wednesday morning 2009 Apr 29 @ 10:30a PDT/1:30p EDT called BIWhat is Python?/I/B. This will be an online seminar based on a session that I've delivered at numerous conferences in the past. It will give you an idea of lecture style as well as an overview of the material covered in the course. Plus the first 10 registrants will receive an autographed copy of BICore Python Programming/I/B! For more information: http://www.safaribooksonline.com/events/WhatIsPython.html - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1jun09.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com Python Web Development with Django, Addison Wesley, (c)2009 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Python 3D CAD -- need collaborators, or just brave souls :)
Greetings All, I've been watching this thread since it kicked off with interest. I'd be interested in being kept in the loop with the development of this project as I have made some very simple CAD like tools for Layer Manufacturing (also known as Rapid Prototyping) machines in the past and would be interested in working on plug-ins to provide output from the CAD software direct to these machines. I also have contacts who may be interested in doing a similar thing for CNC cutting path generation. While this (at least my contribution) won't have a huge market it would be quite a marketing point to be able to go straight through from concept design through to real functional parts. And might at a later date be a feature to get a larger company interested in using the software in house. While I appreciate it is early days I would suggest the following gets consideration from the outset: Inclusion of the ability to handle plug-ins, so for example connections to existing version control and CFD packages can be managed. Links to a standard version control system from the box (perhaps subversion?) VNC style remote control of other seats of the same software so parts can be discussed with ease over the phone etc. Facility to attach annotations and notes to either the part of features on the part. Parametric design features such as hole size etc can be changed at any time. Possible later inclusion of databases of standard size components such as gears, bearings At some point perhaps it would be possible for wizzard like features to set up tolerances for shaft holes, press-fits for bearings etc. Cheers, Wesley. 2009/3/5 jelle feringa jelleferi...@gmail.com Hi Josh, http://www.pythonocc.org/ However, I'm not entirely clear on the license for this so that might be an issue. We're using a French license for the moment, but will move to something more standard soon. PythonOCC ( the current SVN version ) wraps 85% of the OpenCASCADE kernel. Consider that complete, since there are a bunch of modules are obsolete ( WOK, drawing ). (Binaries are supplied for win32, linux osx.) We're starting to work on a high level API, so this is a wonderful moment to jump on. -jelle -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: [Tutor] Accessing callers context from callee method
when i call a method foo from another method func. can i access func context variables or locals() from foo so def func(): i=10 foo() in foo, can i access func's local variables A. python has statically-nested scoping, so you can do it as long as you: 1. define foo() as an inner function -- its def is contained within func()'s def: def func(): i = 10 def foo(): print i 2. you don't define a variable with the same name locally. in other words, you do have access to func()'s 'i' as long as you don't create another 'i' within foo() -- if you do, only your new local 'i' will be within your scope. B. another alterative is to pass in all of func()'s local variables to foo(): foo(**locals()) this will require you to accept the incoming dictionary in foo() and access the variables from it instead of having them be in foo()'s scope. C. in a related note, your question is similar to that of global vs. local variables. inside a function, you have access to the global as long as you don't define a local using the same name. should you only wish to manipulate the global one, i.e. assign a new value to it instead of creating a new local variable with that name, you would need to use the global keyword to specify that you only desire to use and update the global one. i = 0 def func(): i = 10 in this example, the local 'i' in func() hides access to the global 'i'. in the next code snippet, you state you only want to access/update the global 'i'... IOW, don't create a local one: i = 0 def func(): global i i = 10 D. this doesn't work well for inner functions yet: i = 0 def func(): i = 10 def foo(): i = 20 the 'i' in foo() shadows/hides access to func()'s 'i' as well as the global 'i'. if you issue the 'global' keyword, that only gives you access to the global one: i = 0 def func(): i = 10 def foo(): global i i = 20 you cannot get access to func()'s 'i' in this case. E. however, starting in Python 3.x, you'll be able to do somewhat better with the new 'nonlocal' keyword: i = 0 print('globally, i ==', i) def func(): i = 10 print('in func(), i ==', i) def foo(): nonlocal i i = 20 print('in foo(), i ==', i) foo() print('in func() after calling foo(), i ==', i) func() in this case, foo() modified func()'s 'i'. hope this helps! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: BadZipfile file is not a zip file
I missed the begining of this thread and so appologise if I'm repeating what someone else has said! I had a very similar problem with this error and it turned out it was due to me moving a file across a socket connection and either not reading it or writing it in the binary mode, ie open(filename, 'rb') or write(filename, 'wb'). This didn't make any difference on the linux machines (where the error didn't occur) but did on the windows machines and fixed the problem. Cheers, Wes On 09/01/2009, webcomm rya...@gmail.com wrote: On Jan 9, 10:14 am, Chris Mellon arka...@gmail.com wrote: This is a ticket about another issue or 2 with invalid zipfiles that the zipfile module won't load, but that other tools will compensate for: http://bugs.python.org/issue1757072 Looks like I just need to do this to unzip with unix... from os import popen popen(unzip data.zip) That works for me. No idea why I didn't think of that earlier. I'm new to python but should have realized I could run unix commands with python. I had blinders on. Now I just need to get rid of some bad characters in the unzipped file. I'll start a new thread if I need help with that... -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
Re: Mathematica 7 compares to other languages
A flamer wrote: A moron, wrote: [snip] my machine (PPC Mac, OSX 10.4.x). Well, that explains a great deal. Actually, I suspect all these newsgroups are being trolled. -- http://mail.python.org/mailman/listinfo/python-list
Re: [ANN] final 2008 Python courses, San Francisco
*** FINAL REMINDER also, the course begins on monday immediately following the *free* CodeCamp conference http://siliconvalley-codecamp.com (click Program = Sessions to see all the talks)... 5 straight days of learning in the San Francisco Bay Area!! *** -- Forwarded message -- From: wesley chun [EMAIL PROTECTED] Date: Fri, Sep 5, 2008 at 1:21 AM Subject: [ANN] final 2008 Python courses, San Francisco To: python-list@python.org, [EMAIL PROTECTED] Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for another comprehensive intro course plus a 1-day Internet programming course coming up in November in beautiful Northern California! I look forward to meeting you! (Comprehensive) Introduction to Python Mon-Wed, 2008 Nov 10-12, 9am-5pm Internet Programming with Python Sat, 2008 Nov 15, 9am-5pm courses can be taken separately or combined for a discounted price. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INTERNET PROGRAMMING WITH PYTHON This is a one-day course with lecture and lab exposing attendees to FOUR distinct areas of Internet programming: * Network Programming using Sockets -- we introduce client/server architecture and how to program sockets using Python. * Internet Client Programming -- we learn how to use Python's standard library to create FTP, NNTP, POP3, and SMTP clients * Web Programming -- before you jump on all the web framework bandwagons, it's a good idea to learn basics and the basis of how all web servers deliver dynamic content back to the client browser to prepare you better when jumping to a full-stack web framework * Intro to Django -- a lightweight introduction to the Django web framework including whipping up a very simple blog application in 20min! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1combo.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
[ANN] final 2008 Python courses, San Francisco
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for another comprehensive intro course plus a 1-day Internet programming course coming up in November in beautiful Northern California! I look forward to meeting you! (Comprehensive) Introduction to Python Mon-Wed, 2008 Nov 10-12, 9am-5pm Internet Programming with Python Sat, 2008 Nov 15, 9am-5pm courses can be taken separately or combined for a discounted price. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INTERNET PROGRAMMING WITH PYTHON This is a one-day course with lecture and lab exposing attendees to FOUR distinct areas of Internet programming: * Network Programming using Sockets -- we introduce client/server architecture and how to program sockets using Python. * Internet Client Programming -- we learn how to use Python's standard library to create FTP, NNTP, POP3, and SMTP clients * Web Programming -- before you jump on all the web framework bandwagons, it's a good idea to learn basics and the basis of how all web servers deliver dynamic content back to the client browser to prepare you better when jumping to a full-stack web framework * Intro to Django -- a lightweight introduction to the Django web framework including whipping up a very simple blog application in 20min! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1combo.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com Python Web Development with Django, Addison Wesley, (c) 2008 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations.html
[ANN] final 2008 Python courses, San Francisco
Need to get up-to-speed with Python as quickly as possible? Come join me, Wesley Chun, author of Prentice-Hall's bestseller Core Python Programming, for another comprehensive intro course plus a 1-day Internet programming course coming up in November in beautiful Northern California! I look forward to meeting you! (Comprehensive) Introduction to Python Mon-Wed, 2008 Nov 10-12, 9am-5pm Internet Programming with Python Sat, 2008 Nov 15, 9am-5pm courses can be taken separately or combined for a discounted price. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - (COMPREHENSIVE) INTRODUCTION TO PYTHON Although this course may appear to those new to Python, it is also perfect for those who have tinkered with it and want to fill in the gaps and/or want to get more in-depth formal training. It combines the best of both an introduction to the language as well as a Python Internals training course. We will immerse you in the world of Python in only a few days, showing you more than just its syntax (which you don't really need a book to learn, right?). Knowing more about how Python works under the covers, including the relationship between data objects and memory management, will make you a much more effective Python programmer coming out of the gate. 3 hands-on labs each day will help hammer the concepts home. Come find out why Google, Yahoo!, Disney, ILM/LucasFilm, VMware, NASA, Ubuntu, YouTube, and Red Hat all use Python. Users supporting or jumping to Plone, Zope, TurboGears, Pylons, Django, Google App Engine, Jython, IronPython, and Mailman will also benefit! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - INTERNET PROGRAMMING WITH PYTHON This is a one-day course with lecture and lab exposing attendees to FOUR distinct areas of Internet programming: * Network Programming using Sockets -- we introduce client/server architecture and how to program sockets using Python. * Internet Client Programming -- we learn how to use Python's standard library to create FTP, NNTP, POP3, and SMTP clients * Web Programming -- before you jump on all the web framework bandwagons, it's a good idea to learn basics and the basis of how all web servers deliver dynamic content back to the client browser to prepare you better when jumping to a full-stack web framework * Intro to Django -- a lightweight introduction to the Django web framework including whipping up a very simple blog application in 20min! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WHERE: near the San Francisco Airport (SFO/San Bruno), CA, USA WEB: http://cyberwebconsulting.com (click Python Training) FLYER: http://starship.python.net/crew/wesc/flyerPP1combo.pdf LOCALS: easy freeway (101/280/380) with lots of parking plus public transit (BART and CalTrain) access via the San Bruno stations, easily accessible from all parts of the Bay Area VISITORS: free shuttle to/from the airport, free high-speed internet, free breakfast and regular evening receptions; fully-equipped suites See website for costs, venue info, and registration. Discounts are available for multiple registrations as well as for teachers/students. Hope to see you there! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com Python Web Development with Django, Addison Wesley, (c) 2008 http://withdjango.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Error from zipfile
Dear Users, I'm having a problem when trying to move script from Linux to Windows. A zipfile opperation is failing with the message: BadZipFile: File is not a zip file I have a simple scripts that reads a zip file in the same way as any other file into a string, then sends it across to a network where it is saved as perusual into a file, then read in and processed by zipfile. I've tried adding the flag to allow 64 bit and even using uncompressed zip files. Niether fixes the problem. The zip file and contents were created on linux. To be certain that was not the issue I have emptied the zip file, created a new one, opend all the files in wordpad and saved them, then put the contents into the new file. Still no joy. Any help would be greatly appreciated. On linux I'm running python 2.5 and on windows it is 2.4. Thanks, Wesley Brooks. -- http://mail.python.org/mailman/listinfo/python-list
FYA: visualizing repository commits
have you guys seen this on Slashdot yet? (i did a quick search in the archives and haven't seen any posts yet so hopefully this isn't a duplicate msg!) http://developers.slashdot.org/developers/08/06/16/1855209.shtml this video is a visualization of the commits to the source base (and made by whom) over Python's lifetime: http://www.vimeo.com/1093745 the visualization project's home page is at: http://vis.cs.ucdavis.edu/~ogawa/codeswarm/ -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 http://corepython.com wesley.j.chun :: wescpy-at-gmail.com python training and technical consulting cyberweb.consulting : silicon valley, ca http://cyberwebconsulting.com -- http://mail.python.org/mailman/listinfo/python-list
Re: Python Success stories
http://panela.blog-city.com/python_at_google_greg_stein__sdforum.htm Google big enough? ...or look at the companies on the NASA uses Python... ...so does: box on the top (nearly top any how!) right of http://www.python.org/ On 22/04/2008, azrael [EMAIL PROTECTED] wrote: Which big aplications are written in python. I see its development, But i can't come up with a big name. I know that there are a lot of companys using python, but is there anythong big written only in python. I want him to fuck of with his perl once and for all time -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list
[issue2642] MSVCRT packing in Windows Installer (3.0a4)
New submission from Wesley Spikes [EMAIL PROTECTED]: I've searched and did not find any open ticket to make suggestions on, so I'm posting it here. You currently have posted The MSI installers for Python 3.0a4 are compiled with the new Visual Studio 2008 Professional version. Therefore Python depends on the -Visual C++ runtime library 9.0. We currently don't package this library properly, which means that non- Administrator installation is currently not supported. Contributions to fix this problem are welcome. Two potential fixes, both of which should be very readily doable. First one is to set the Linking option in MSVC++ to a static link to the CRT. This in-builds the library with Python. (Options /MT and /MTd, for release and debug versions, respectively.) The other potential resolution for Non-Admin installs, which may or may not be more stable, is to include the MSVCRT DLLs into the directory containing the Python installation. If needed, you may have to register these files manually into the HKCU hive. Hope that helps with your described packaging issue with the installer. (Classified under Build and Installation, since it deals with both halves -- feel free to reclassify as appropriate.) -- components: Build, Installation messages: 65537 nosy: wesley.spikes severity: normal status: open title: MSVCRT packing in Windows Installer (3.0a4) versions: Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2642 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com